From f4bfc0951e9b849880755af2595f7a1d42145259 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Sep 2023 17:28:38 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .all-contributorsrc | 84 +- docs/FAQ.md | 28 +- docs/Guide-On-Improving-Documentation.md | 38 +- docs/User-Manual-For-Project-Managers.md | 96 +- docs/dev/Frontend.md | 2 +- docs/swagger/index.html | 2 +- docs/swagger/oauth2-redirect.html | 2 +- docs/swagger/swagger-ui-bundle.js | 4124 +++++++++-------- docs/swagger/swagger-ui-es-bundle-core.js | 2462 +++++----- docs/swagger/swagger-ui-es-bundle.js | 3869 ++++++++-------- docs/swagger/swagger-ui-standalone-preset.js | 364 +- docs/swagger/swagger-ui.css | 42 +- docs/swagger/swagger-ui.js | 2298 ++++----- .../import_geojson_as_postgis_with_jsonb.md | 4 +- scripts/postgis_snippets/postgis_resources.md | 9 +- .../task_splitting/task_splitting_readme.md | 34 +- src/backend/app/auth/auth_routes.py | 17 +- src/backend/app/auth/osm.py | 10 +- src/backend/app/central/central_crud.py | 91 +- src/backend/app/central/central_routes.py | 86 +- src/backend/app/central/central_schemas.py | 15 +- src/backend/app/db/db_models.py | 103 +- src/backend/app/db/postgis_utils.py | 11 +- src/backend/app/models/enums.py | 25 +- .../app/models/languages_and_countries.py | 2 +- .../app/organization/organization_crud.py | 58 +- .../app/organization/organization_routes.py | 36 +- .../app/organization/organization_schemas.py | 5 +- src/backend/app/pagination/pagination.py | 13 +- src/backend/app/projects/project_crud.py | 264 +- src/backend/app/projects/project_routes.py | 163 +- src/backend/app/projects/project_schemas.py | 29 +- src/backend/app/projects/utils.py | 12 +- src/backend/app/submission/submission_crud.py | 190 +- .../app/submission/submission_routes.py | 74 +- src/backend/app/tasks/tasks_crud.py | 47 +- src/backend/app/tasks/tasks_routes.py | 93 +- src/backend/app/tasks/tasks_schemas.py | 33 +- src/backend/app/users/user_crud.py | 23 +- src/backend/app/users/user_routes.py | 10 +- src/backend/app/users/user_schemas.py | 26 +- src/frontend/.babelrc | 10 +- src/frontend/main/.prettierrc | 12 +- src/frontend/main/public/manifest.json | 56 +- .../main/src/api/OrganizationService.ts | 183 +- .../LayerSwitcher/index.js | 3 +- .../Layers/VectorTileLayer.js | 2 +- .../OpenLayersComponent/Popup/popup.css | 6 +- .../OpenLayersComponent/Popup/popup.scss | 2 +- .../MapComponent/OpenLayersComponent/map.css | 6 +- .../MapComponent/OpenLayersComponent/map.scss | 25 +- .../OpenLayersComponent/useOLMap/index.js | 2 +- .../main/src/components/MapLegends.jsx | 124 +- .../src/components/ProjectMap/ProjectMap.jsx | 40 +- .../main/src/components/TasksMap/TasksMap.jsx | 24 +- .../validation/DefineTaskValidation.tsx | 35 +- .../validation/SelectFormValidation.tsx | 2 - .../components/home/ProjectCardSkeleton.tsx | 130 +- .../constants/EditProjectSidebarContent.ts | 43 +- src/frontend/main/src/hooks/OnScroll.tsx | 45 +- .../main/src/hooks/WindowDimension.tsx | 87 +- src/frontend/main/src/hooks/useOlMap.ts | 16 +- src/frontend/main/src/index.html | 34 +- src/frontend/main/src/index.ts | 3 +- .../createproject/createProjectModel.ts | 129 +- .../main/src/models/geojsonObjectModel.js | 16 +- .../main/src/models/home/homeModel.ts | 21 +- .../models/organization/organizationModel.ts | 77 +- .../main/src/store/slices/CommonSlice.ts | 48 +- .../src/store/slices/organizationSlice.ts | 54 +- src/frontend/main/src/styles/home.css | 6 +- src/frontend/main/src/styles/home.scss | 17 +- src/frontend/main/src/utilities/BasicCard.tsx | 27 +- .../main/src/utilities/CustomizedImage.jsx | 29 +- .../main/src/utilities/CustomizedMenus.tsx | 116 +- .../main/src/utilities/CustomizedSnackbar.jsx | 32 +- .../main/src/utilities/MappingHeader.tsx | 22 +- src/frontend/main/src/utilities/mapUtils.js | 17 +- src/frontend/main/src/views/NotFound404.jsx | 8 +- src/frontend/main/src/views/Tabbed.tsx | 4 +- src/frontend/main/test-tsconfig.json | 122 +- src/frontend/main/tsconfig.json | 15 +- 82 files changed, 8234 insertions(+), 8310 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 88493fb2fb..1b3957dbe7 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -3,9 +3,7 @@ "projectOwner": "hotosm", "repoType": "github", "repoHost": "https://github.com", - "files": [ - "README.md" - ], + "files": ["README.md"], "imageSize": 100, "badgeTemplate": "[![All Contributors](https://img.shields.io/badge/HOTOSM-Thanks%20for%20contributing!-red/github/all-contributors/hotosm/FMTM?color=red&style=flat-square)](#contributors)", "commit": true, @@ -16,155 +14,105 @@ "name": "Ivan Gayton", "avatar_url": "https://avatars.githubusercontent.com/u/5991943?v=4", "profile": "http://ivangayton.net", - "contributions": [ - "projectManagement", - "code", - "review", - "ideas" - ] + "contributions": ["projectManagement", "code", "review", "ideas"] }, { "login": "robsavoye", "name": "Rob Savoye", "avatar_url": "https://avatars.githubusercontent.com/u/71342768?v=4", "profile": "https://www.hotosm.org", - "contributions": [ - "maintenance", - "mentoring", - "code", - "review", - "ideas" - ] + "contributions": ["maintenance", "mentoring", "code", "review", "ideas"] }, { "login": "krtonga", "name": "krtonga", "avatar_url": "https://avatars.githubusercontent.com/u/7307817?v=4", "profile": "https://github.com/krtonga", - "contributions": [ - "code", - "doc", - "tool", - "ideas" - ] + "contributions": ["code", "doc", "tool", "ideas"] }, { "login": "spwoodcock", "name": "Sam", "avatar_url": "https://avatars.githubusercontent.com/u/78538841?v=4", "profile": "https://github.com/spwoodcock", - "contributions": [ - "code", - "review", - "infra", - "ideas", - "maintenance" - ] + "contributions": ["code", "review", "infra", "ideas", "maintenance"] }, { "login": "petya-kangalova", "name": "Petya ", "avatar_url": "https://avatars.githubusercontent.com/u/98902727?v=4", "profile": "https://www.hotosm.org/people/petya-kangalova/", - "contributions": [ - "doc", - "eventOrganizing", - "ideas" - ] + "contributions": ["doc", "eventOrganizing", "ideas"] }, { "login": "Mudi-business", "name": "Mohamed Bakari Mohamed", "avatar_url": "https://avatars.githubusercontent.com/u/52991565?v=4", "profile": "http://zanrevenue.org", - "contributions": [ - "code" - ] + "contributions": ["code"] }, { "login": "biomassives", "name": "G. Willson", "avatar_url": "https://avatars.githubusercontent.com/u/4379874?v=4", "profile": "https://www.scdhub.org", - "contributions": [ - "code" - ] + "contributions": ["code"] }, { "login": "Ndacyayisenga-droid", "name": "Tayebwa Noah", "avatar_url": "https://avatars.githubusercontent.com/u/58124613?v=4", "profile": "https://github.com/Ndacyayisenga-droid", - "contributions": [ - "doc" - ] + "contributions": ["doc"] }, { "login": "mohammadareeb95", "name": "Mohammad Areeb", "avatar_url": "https://avatars.githubusercontent.com/u/77102111?v=4", "profile": "https://github.com/mohammadareeb95", - "contributions": [ - "doc" - ] + "contributions": ["doc"] }, { "login": "AugustHottie", "name": "AugustHottie", "avatar_url": "https://avatars.githubusercontent.com/u/96122635?v=4", "profile": "https://github.com/AugustHottie", - "contributions": [ - "doc" - ] + "contributions": ["doc"] }, { "login": "Balofire", "name": "Ahmeed Etti-Balogun", "avatar_url": "https://avatars.githubusercontent.com/u/102294666?v=4", "profile": "https://github.com/Balofire", - "contributions": [ - "doc" - ] + "contributions": ["doc"] }, { "login": "Roseford", "name": "Uju", "avatar_url": "https://avatars.githubusercontent.com/u/75838716?v=4", "profile": "https://github.com/Roseford", - "contributions": [ - "doc" - ] + "contributions": ["doc"] }, { "login": "neelimagoogly", "name": "Neelima Mohanty", "avatar_url": "https://avatars.githubusercontent.com/u/97789856?v=4", "profile": "https://github.com/neelimagoogly", - "contributions": [ - "doc" - ] + "contributions": ["doc"] }, { "login": "varun2948", "name": "Deepak Pradhan (Varun)", "avatar_url": "https://avatars.githubusercontent.com/u/37866666?v=4", "profile": "https://github.com/varun2948", - "contributions": [ - "code", - "ideas", - "maintenance" - ] + "contributions": ["code", "ideas", "maintenance"] }, { "login": "nrjadkry", "name": "Niraj Adhikari", "avatar_url": "https://avatars.githubusercontent.com/u/41701707?v=4", "profile": "https://github.com/nrjadkry", - "contributions": [ - "code", - "ideas", - "maintenance" - ] + "contributions": ["code", "ideas", "maintenance"] } ], "contributorsPerLine": 7, diff --git a/docs/FAQ.md b/docs/FAQ.md index 9e65a9fc3d..37ba584815 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -7,6 +7,7 @@ Q: What is FMTM? **A:** FMTM stands for Field Monitoring Task Manager. It is a web-based application that facilitates remote monitoring of field activities for humanitarian organizations. +
**Q:** Do I need to create an account to use the FMTM Web App? @@ -14,6 +15,7 @@ humanitarian organizations. **A:** No, you can use the FMTM Web App without creating an account, but creating an account allows you to contribute to mapping projects and access additional features. +
**Q:** How do I browse and select mapping projects on the FMTM Web App? @@ -22,6 +24,7 @@ access additional features. clicking on the "Projects" tab and selecting a project of interest. You can view project details, tasks, and mapping data on the project page. +
**Q:** How do I contribute to a mapping project on the FMTM Web App? @@ -30,6 +33,7 @@ project page. create an account, select a project of interest, and choose a task to work on. You can then use the mapping tools provided to complete the task. +
**Q:** Can I work on multiple mapping tasks at the same time on the FMTM Web App? @@ -37,6 +41,7 @@ task. **A:** Yes, you can work on multiple mapping tasks at the same time on the FMTM Web App, as long as you can commit the necessary time and effort to each task. +
**Q:** How do I know if my mapping work on the FMTM Web App is accurate? @@ -44,6 +49,7 @@ to each task. **A:** The FMTM Web App has a validation process where other contributors review and validate the mapping work. This helps to ensure the accuracy of the mapping data. +
**Q:** Can I provide feedback on a mapping project on the FMTM Web App? @@ -51,6 +57,7 @@ accuracy of the mapping data. **A:** Yes, you can provide feedback on a mapping project on the FMTM Web App by leaving a comment on the project page or contacting the project manager. +
**Q:** How do I download mapping data from a project on the FMTM Web App? @@ -58,6 +65,7 @@ manager. **A:** To download mapping data from a project on the FMTM Web App, you can select the project of interest and click on the "Export" button on the project page. +
**Q:** Can I use the mapping data from the FMTM Web App for my own research or projects? @@ -66,6 +74,7 @@ the project page. available for use, but it is important to check the specific project requirements and licenses before using the data for your own research or projects. +
### For Contributors @@ -75,12 +84,14 @@ or projects. **A:** The Field Mapping Tasking Manager (FMTM) is an online platform that allows contributors to participate in mapping projects related to humanitarian and development work. +
**Q:** How can I become a contributor to the FMTM? **A:** To become a contributor to the FMTM, you can create an account on the platform and join a mapping project. +
**Q:** Who can contribute to FMTM? @@ -88,6 +99,7 @@ the platform and join a mapping project. **A:** Anyone can contribute to FMTM. It is an open-source project, and contributions from developers, designers, and other contributors are always welcome. +
**Q:** What kind of contributions can I make to FMTM? @@ -113,6 +125,7 @@ improvements. Translation: If you are fluent in a language other than English, you can contribute by translating the application or its documentation into your language. +
**Q:** What technologies are used in FMTM? @@ -120,6 +133,7 @@ into your language. **A:** FMTM is built using several technologies, including Django, Postgres, Redis, Celery, and Vue.js. The codebase is written in Python, HTML, CSS, and JavaScript. +
**Q:** How do I set up FMTM locally? @@ -127,6 +141,7 @@ Python, HTML, CSS, and JavaScript. **A:** To set up FMTM locally, you need to have Python, Postgres, Redis, and Node.js installed on your system. You can follow the instructions in the README file of the FMTM repository to set up the project. +
**Q:** How can I report a bug or suggest a new feature for FMTM? @@ -135,6 +150,7 @@ in the README file of the FMTM repository to set up the project. the FMTM repository on GitHub. Be sure to provide as much detail as possible, including steps to reproduce the bug, screenshots, or mockups for new features. +
**Q:** How can I contribute to FMTM if I'm new to open source or web development? @@ -146,6 +162,7 @@ documentation, asking questions in the community, and contributing to issues labeled as "good first issue." Additionally, you can join the FMTM community on Slack to connect with other contributors and get help with your contributions. +
**Q:** What are the benefits of contributing to the FMTM? @@ -153,6 +170,7 @@ help with your contributions. **A:** Contributing to the FMTM allows you to help with important humanitarian and development work, while also developing your mapping skills and knowledge. +
**Q:** Do I need to have prior mapping experience to contribute to the FMTM? @@ -160,6 +178,7 @@ skills and knowledge. **A:** No, prior mapping experience is not required to contribute to the FMTM. The platform provides training and resources to help new contributors get started. +
**Q:** How do I know which mapping project to join? @@ -168,6 +187,7 @@ contributors get started. location, the organization sponsoring the project, and the mapping goals. Review the project information and choose a project that interests you. +
**Q:** Can I work on multiple mapping projects at the same time? @@ -175,6 +195,7 @@ interests you. **A:** Yes, you can work on multiple mapping projects at the same time. However, it is important to ensure that you can commit the necessary time and effort to each project. +
**Q:** How do I get feedback on my mapping work? @@ -182,6 +203,7 @@ necessary time and effort to each project. **A:** The FMTM provides a validation process where other contributors review and provide feedback on mapping work. You can also contact project managers or experienced contributors for additional feedback. +
**Q:** How can I improve my mapping skills? @@ -189,6 +211,7 @@ project managers or experienced contributors for additional feedback. **A:** The FMTM provides training and resources to help you improve your mapping skills. You can also join mapping communities and forums to connect with other contributors and learn from their experiences. +
**Q:** Can I use the mapping data for my own research or projects? @@ -196,8 +219,3 @@ connect with other contributors and learn from their experiences. **A:** The mapping data on the FMTM is generally open and available for use, but it is important to check the specific project requirements and licenses before using the data for your own research or projects. - - - - - diff --git a/docs/Guide-On-Improving-Documentation.md b/docs/Guide-On-Improving-Documentation.md index 185d1443c1..c228cf0bef 100644 --- a/docs/Guide-On-Improving-Documentation.md +++ b/docs/Guide-On-Improving-Documentation.md @@ -9,6 +9,7 @@ documentation needed by **HOTOSM**. It also includes specific tips for improving already existing documentation. ## Goals + 1. Highlight the definitions of each type of documentation that are commonly used on Github. 2. Provide a foundation to lay information on top of, in order to @@ -27,7 +28,7 @@ documentation may include some Process documentation under the Usage section, demonstrating how to use that product. These 4 types in full, are as follows: -- **Product Documentation** +- **Product Documentation** - **Project Documentation** - **System Documentation** - **Process Documentation** @@ -35,11 +36,12 @@ are as follows: ### 1. Structure for Product Documentation Product documentation is the process of recording key information -(almost everything you need to know) about a product, including how +(almost everything you need to know) about a product, including how to use it. Product documentation may have form of **Process documentation** within it (this will be further explained later on). A flexible and reusable structure of essential components of product documentation is as follows: + - Overview - Introduction: What the product is, what it does, the target audience, etc. - Features: A breakdown of each integral part of the product, their @@ -61,6 +63,7 @@ Project documentation is the process of recording the key project details that are needed to implement a project. It’s like a roadmap of what the project is and all necessary information about what it entails. Main structural components are in the following order: + - Overview - Vision - Aim / Mission @@ -71,7 +74,7 @@ entails. Main structural components are in the following order: - Access - Resources - Support / Guidelines - + ### 3. Structure for System Documentation System documentation is an all-encompassing record of details of a @@ -90,6 +93,7 @@ step. Process documentation is very useful in other documentation forms. As mentioned earlier, it can be used within **System**, **Product** or **Project** documentation, to explain a process. The format is usually: + - Overview - Introduction - Explanation steps (breakdown of the task) @@ -116,20 +120,20 @@ added to and built upon. documentation more user friendly and much easier to understand, since users come from all different backgrounds. For example: - “ODK incorporates a new functionality” can become “ODK has brought in a new feature”. + “ODK incorporates a new functionality” can become “ODK has brought in a new feature”. - “Field Mappers select (or are allocated) individual tasks within a - project’s AOI” could be changed to “Field Mappers choose or are - given tasks that are part of a project’s Areas Of Interest.” + “Field Mappers select (or are allocated) individual tasks within a + project’s AOI” could be changed to “Field Mappers choose or are + given tasks that are part of a project’s Areas Of Interest.” 4. **Avoid long paragraphs**. Short paragraphs that pass a clear - message are less clumsy and flustering for readers. Breaking down - topics into little, easy to understand chunks, is more user - friendly. + message are less clumsy and flustering for readers. Breaking down + topics into little, easy to understand chunks, is more user + friendly. 5. **Maintain a positive tone in the writing.**. Keep the text positive and informative. Avoid words like ‘obviously’ and - ‘basically’, that may be interpreted as demeaning or + ‘basically’, that may be interpreted as demeaning or condescending. Do not expect readers to have a certain amount of knowledge on specific aspects, break down everything that needs to be broken down. @@ -143,9 +147,9 @@ added to and built upon. documentation.This consistency includes but is not limited to elements like numbering, font styles, heading sizes, and spacing. - Using the same font for all headings and subheadings can help - readers quickly identify important sections of the - document. Similarly, using consistent spacing between paragraphs - and sections can make the document more visually appealing and - easier to follow. This helps to create a documentation that is - clear, effective, and easy to use. + Using the same font for all headings and subheadings can help + readers quickly identify important sections of the + document. Similarly, using consistent spacing between paragraphs + and sections can make the document more visually appealing and + easier to follow. This helps to create a documentation that is + clear, effective, and easy to use. diff --git a/docs/User-Manual-For-Project-Managers.md b/docs/User-Manual-For-Project-Managers.md index 5e91836ffa..4071ffd2ba 100644 --- a/docs/User-Manual-For-Project-Managers.md +++ b/docs/User-Manual-For-Project-Managers.md @@ -1,4 +1,5 @@ # User Manual for FMTM +
This manual is a step by step guide for the project managers on how to get started with the Field Mapping Tasking Manager. @@ -9,7 +10,7 @@ This manual is a step by step guide for the project managers on how to get start - [Steps to create a project in FMTM](#steps-to-create-a-project-in-fmtm) - [Steps to start access your project and Start mapping](#steps-to-start-access-your-project-and-start-mapping-or-a-mapping-campaign) - [Help and Support](#help-and-support) -- [Thank you note](#thank-you) +- [Thank you note](#thank-you) ## Introduction @@ -74,54 +75,35 @@ reliability of the data collected by volunteers, **FMTM** helps to provide critical information that can be used to support decision-making and improve the effectiveness of humanitarian efforts. - ## Prerequisites + - Stable Internet connection - Knowledge on field mapping . If you are new to mapping we suggest you to read [this](https://tasks.hotosm.org/learn/map) . - Account on ODK Central Server. [Here are the instructions for setting up an ODK Central server on Digital Ocean](https://docs.getodk.org/central-install-digital-ocean/) (it's very similar on AWS or whatever) ## Video Tutorial + -https://github.com/hotosm/fmtm/assets/97789856/6ad200e7-3af9-418b-bb6e-6666bbab9a15 - - - -https://github.com/hotosm/fmtm/assets/97789856/62646dd8-6130-4612-99fe-4df29ae432d9 - - - -https://github.com/hotosm/fmtm/assets/97789856/8677062c-981c-4ea3-964f-3348c4953f82 - - - - -https://github.com/hotosm/fmtm/assets/97789856/02355809-2f40-470c-856f-afe56250883f - - - -https://github.com/hotosm/fmtm/assets/97789856/084ce707-95ba-4d51-a650-132be84fbe68 - + + -https://github.com/hotosm/fmtm/assets/97789856/6711badb-c93e-4109-9090-0ad1f1554699 + + + -https://github.com/hotosm/fmtm/assets/97789856/b2af3c7d-5392-4e10-bf83-853b2f517c9a - - - - -https://github.com/hotosm/fmtm/assets/97789856/d8b2bf72-e8e0-41bc-a568-77854f45efa6 - + + ## Steps to create a project in FMTM 1. Go to [fmtm](https://fmtm.hotosm.org/) . 2. In the header, you'll find three tabs: Explore Projects, Manage Organization, and Manage Categories. - + ![WhatsApp Image 2023-06-23 at 1 23 07 PM](https://github.com/hotosm/fmtm/assets/97789856/c0d272f0-c69c-483f-9e9d-83dd75b9e748) 3. Start by exploring the projects listed by different nations and world communities for field mapping exercises. @@ -138,33 +120,27 @@ https://github.com/hotosm/fmtm/assets/97789856/d8b2bf72-e8e0-41bc-a568-77854f45e 10. If your organization's name is not listed, you can add it through the "Manage Organization" tab. 11. Provide the necessary credentials for the ODK (Open Data Kit) central setup, including URL, username, and password. 12. Proceed to the next step, which is uploading the area for field mapping. Choose the file option and select the AOI (Area of Interest) file in GEOJSON file format. -Review the displayed map that corresponds to your selected area and click on "Next". + Review the displayed map that corresponds to your selected area and click on "Next". ![3](https://github.com/hotosm/fmtm/assets/97789856/680eb831-790a-48f1-8997-c20b5213909d) 13. Define the tasks of the project. -![WhatsApp Image 2023-06-23 at 1 38 18 PM](https://github.com/hotosm/fmtm/assets/97789856/177d8258-900e-447f-906a-28aeb1fd6b03) + ![WhatsApp Image 2023-06-23 at 1 38 18 PM](https://github.com/hotosm/fmtm/assets/97789856/177d8258-900e-447f-906a-28aeb1fd6b03) If you choose "Divide on Square," specify the dimensions of the square tasks. Click on "Next" to proceed. - ![WhatsApp Image 2023-06-23 at 1 17 37 PM](https://github.com/hotosm/fmtm/assets/97789856/f53d76b4-e6cc-44a4-8c7c-00082eb72693) - 14. Select Form . Select the form category you want to use for the field mapping, such as "Data Extract" or any other relevant category. -Choose a specific form from the existing forms or upload a custom form if needed. -Click on "Submit" to proceed. + Choose a specific form from the existing forms or upload a custom form if needed. + Click on "Submit" to proceed. ![WhatsApp Image 2023-06-23 at 1 37 19 PM](https://github.com/hotosm/fmtm/assets/97789856/f9a4bed7-d1a9-44dd-b2d4-b55f428f9416) - 15. Wait for the system to generate QR codes for each task, which will be used later in the field mapping process. 16. After the QR codes are generated, you can find your project in the project dashboard. - - -
## Steps to start access your project and Start mapping or a mapping campaign @@ -174,29 +150,30 @@ Click on "Submit" to proceed. ![WhatsApp Image 2023-06-23 at 1 26 39 PM](https://github.com/hotosm/fmtm/assets/97789856/162af2e0-dbfa-4787-8037-f03e71417df8) 3. If a task is already locked by another user, choose a different task that is available for mapping.If a task is already locked by another user, choose a different task that is available for mapping. - - The drop down icon beside **LEGEND** displays a color code. This - color code lets you know the status of each task on the map. - - **READY** means that task is available to be mapped - - **LOCKED FOR MAPPING** means that task is already being mapped by another volunteer and therefore unavailable for mapping - - **MAPPED** or **READY FOR VALIDATION** means that task has been completely mapped and ready to be validated. - - **LOCKED FOR VALIDATION** means that task has been mapped and being validated. - - **VALIDATED** means that task has successfully been validated and completely mapped with no errors - - **INVALIDATED** or **MORE MAPPING NEEDED** means that task did not pass the validation process and needs more mapping - - **BAD** means that task is not clear and cannot be mapped +- The drop down icon beside **LEGEND** displays a color code. This + color code lets you know the status of each task on the map. + + - **READY** means that task is available to be mapped + - **LOCKED FOR MAPPING** means that task is already being mapped by another volunteer and therefore unavailable for mapping + - **MAPPED** or **READY FOR VALIDATION** means that task has been completely mapped and ready to be validated. + - **LOCKED FOR VALIDATION** means that task has been mapped and being validated. + - **VALIDATED** means that task has successfully been validated and completely mapped with no errors + - **INVALIDATED** or **MORE MAPPING NEEDED** means that task did not pass the validation process and needs more mapping + - **BAD** means that task is not clear and cannot be mapped > Note: 'task' refers to each section of the map enclosed in the dotted > lines and each task has a corresponding number tag. - ![WhatsApp Image 2023-06-23 at 1 29 10 PM](https://github.com/hotosm/fmtm/assets/97789856/2c0397b0-1829-420a-982e-3d971b514f2c) - - To begin mapping, click on a task closest to you that has the color - code associated with **READY** and change it's status from **READY** - to **LOCKED FOR MAPPING**. Remember to take note of the number tag. - - Scroll to the bottom of the page. The **ACTIVITIES** tab shows the - tasks either **LOCKED FOR MAPPING**, **BAD** or **LOCKED FOR - VALIDATION**. You can search for tasks with the status mentioned - using the number tag associated with each task. +![WhatsApp Image 2023-06-23 at 1 29 10 PM](https://github.com/hotosm/fmtm/assets/97789856/2c0397b0-1829-420a-982e-3d971b514f2c) +- To begin mapping, click on a task closest to you that has the color + code associated with **READY** and change it's status from **READY** + to **LOCKED FOR MAPPING**. Remember to take note of the number tag. +- Scroll to the bottom of the page. The **ACTIVITIES** tab shows the + tasks either **LOCKED FOR MAPPING**, **BAD** or **LOCKED FOR + VALIDATION**. You can search for tasks with the status mentioned + using the number tag associated with each task. 4. Use the QR code to start mapping the selected task using the ODK Collect app on your mobile phone. 5. Install and open the ODK Collect app on your phone. @@ -207,11 +184,14 @@ Click on "Submit" to proceed. 10. After completing the assigned task, go back to the project platform on FMTM and mark it as fully mapped. ## Help and Support + If you encounter any issues or need assistance while using FMTM, you can access the following resources: + - Check the [FAQs](https://github.com/hotosm/fmtm/wiki/FAQ) . - Ask your doubts in the [Slack channel: #fmtm-field-pilots](https://hotosm.slack.com/archives/C04PCBFDEGN) -## Thank you +## Thank you + We are excited to have you join our community of passionate mappers and volunteers. FMTM is a powerful platform developed by the Humanitarian OpenStreetMap Team (HOT) to facilitate mapping projects for disaster response, humanitarian efforts, and community development. With FMTM, you have the opportunity to make a real impact by mapping areas that are in need of support. Your contributions help create detailed and up-to-date maps that aid organizations and communities in their efforts to respond to crises, plan infrastructure, and improve the lives of people around the world. diff --git a/docs/dev/Frontend.md b/docs/dev/Frontend.md index 6a2d5e4359..cc536ad112 100644 --- a/docs/dev/Frontend.md +++ b/docs/dev/Frontend.md @@ -32,7 +32,7 @@ Install the dependencies by running the following command: `npm install` Run the frontend with hot-reloading: `npm run start:live` -The frontend should now be accessible at: <<<<<<>>>>>>>. +The frontend should now be accessible at: <<<<<<<:>>>>>>>. ## Frontend Tips diff --git a/docs/swagger/index.html b/docs/swagger/index.html index 3525d19d81..a1e525c9d0 100644 --- a/docs/swagger/index.html +++ b/docs/swagger/index.html @@ -1,5 +1,5 @@ - + diff --git a/docs/swagger/oauth2-redirect.html b/docs/swagger/oauth2-redirect.html index 1e07e0a97b..96d6441db6 100644 --- a/docs/swagger/oauth2-redirect.html +++ b/docs/swagger/oauth2-redirect.html @@ -1,4 +1,4 @@ - + Swagger UI: OAuth2 Redirect diff --git a/docs/swagger/swagger-ui-bundle.js b/docs/swagger/swagger-ui-bundle.js index 5ddddd8cf7..e0dc709cfb 100644 --- a/docs/swagger/swagger-ui-bundle.js +++ b/docs/swagger/swagger-ui-bundle.js @@ -134,7 +134,7 @@ ? (function (e) { if (void 0 === e) throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" + "this hasn't been initialised - super() hasn't been called", ); return e; })(e) @@ -180,7 +180,7 @@ if ("string" == typeof n) return (0, h.is)(t[n], e[n]); if (Array.isArray(n)) return (0, h.is)(x(t, n), x(e, n)); throw new TypeError( - "Invalid key: expected Array or string: " + n + "Invalid key: expected Array or string: " + n, ); }; })(t, n), @@ -197,18 +197,18 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : g(n).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } return e; - })({}, n, {}, t) + })({}, n, {}, t), ); return o.every(r); } @@ -227,7 +227,7 @@ (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( - "Super expression must either be null or a function" + "Super expression must either be null or a function", ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 }, @@ -275,7 +275,7 @@ ? C(e.replace(/^.*#\/definitions\//, "")) : -1 !== l()(e).call(e, "#/components/schemas/") ? C(e.replace(/^.*#\/components\/schemas\//, "")) - : void 0 + : void 0, ), i()(this, "getRefSchema", (e) => { let { specSelectors: t } = this.props; @@ -312,13 +312,13 @@ p.createElement( "span", { className: "model-title__text" }, - u || a + u || a, ), p.createElement("img", { src: n(2517), height: "20px", width: "20px", - }) + }), ); const b = r.isOAS3() && s.get("deprecated"); switch ( @@ -338,7 +338,7 @@ isRef: l, includeReadOnly: h, includeWriteOnly: f, - }) + }), ); case "array": return p.createElement( @@ -351,7 +351,7 @@ required: i, includeReadOnly: h, includeWriteOnly: f, - }) + }), ); default: return p.createElement( @@ -363,7 +363,7 @@ name: a, deprecated: b, required: i, - }) + }), ); } } @@ -438,14 +438,14 @@ target: "_blank", rel: "noopener noreferrer", href: `${n}/debug?url=${encodeURIComponent( - this.state.url + this.state.url, )}`, }, a.createElement(f, { src: `${n}?url=${encodeURIComponent(this.state.url)}`, alt: "Online validator badge", - }) - ) + }), + ), ) : null; } @@ -762,7 +762,7 @@ a > 0 && (d = u.substr(-1 * Math.floor(a / 2))), (u.substr(0, Math.ceil(a / 2)) + n + d).substr( 0, - a + r + a + r, ) ); })(e, n) @@ -779,7 +779,7 @@ s > 0 && (i = e.substr(-1 * Math.floor(s / 2))), (e.substr(0, Math.ceil(s / 2)) + n + i).substr( 0, - s + r + s + r, ) ); })(e, n) @@ -849,7 +849,7 @@ throw new TypeError( "Class extends value " + String(t) + - " is not a constructor or null" + " is not a constructor or null", ); function n() { this.constructor = e; @@ -936,7 +936,7 @@ return "https://www.tiktok.com/tag/" + t; default: throw new Error( - "Unknown service name to point hashtag to: " + e + "Unknown service name to point hashtag to: " + e, ); } }), @@ -981,7 +981,7 @@ default: throw new Error( "Unknown service name to point mention to: " + - this.serviceName + this.serviceName, ); } }), @@ -1281,7 +1281,7 @@ matchedText: n, offset: p.idx, email: s, - }) + }), ); } _(); @@ -1310,7 +1310,7 @@ }), (e.isValidIpAddress = function (e) { var t = new RegExp( - this.hasFullProtocolRegex.source + this.ipRegex.source + this.hasFullProtocolRegex.source + this.ipRegex.source, ); return null !== e.match(t); }), @@ -1344,7 +1344,7 @@ (e.hasFullProtocolRegex = /^[A-Za-z][-.+A-Za-z0-9]*:\/\//), (e.uriSchemeRegex = /^[A-Za-z][-.+A-Za-z0-9]*:/), (e.hasWordCharAfterProtocolRegex = new RegExp( - ":[^\\s]*?[" + k + "]" + ":[^\\s]*?[" + k + "]", )), (e.ipRegex = /[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/), @@ -1357,7 +1357,7 @@ N + "\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*[" + N + - "\\-+&@#/%=~_()|'$*\\[\\]{}✓])?" + "\\-+&@#/%=~_()|'$*\\[\\]{}✓])?", )), new RegExp( [ @@ -1384,7 +1384,7 @@ "(?::[0-9]+)?", "(?:" + d.source + ")?", ].join(""), - "gi" + "gi", )), W = new RegExp("[" + N + "]"), J = (function (e) { @@ -1456,7 +1456,7 @@ stripPrefix: r, stripTrailingSlash: o, decodePercentEncoding: s, - }) + }), ); }, c = this; @@ -1486,7 +1486,7 @@ var n = 0; t && ((n = e.indexOf(":")), (e = e.slice(n))); var r = new RegExp( - "^((.?//)?[-." + N + "]*[-" + N + "]\\.[-" + N + "]+)" + "^((.?//)?[-." + N + "]*[-" + N + "]\\.[-" + N + "]+)", ).exec(e); return null === r ? -1 @@ -1576,13 +1576,13 @@ .concat( /(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/ .source, - "|" + "|", ) .concat( /(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/ - .source + .source, ), - "g" + "g", ), Y = (function (e) { function t() { @@ -1613,7 +1613,7 @@ offset: t.index, number: i, plusSign: a, - }) + }), ); } return o; @@ -1626,19 +1626,19 @@ })(w), X = new RegExp( "@[_".concat(N, "]{1,50}(?![_").concat(N, "])"), - "g" + "g", ), Q = new RegExp( "@[_.".concat(N, "]{1,30}(?![_").concat(N, "])"), - "g" + "g", ), ee = new RegExp( "@[-_.".concat(N, "]{1,50}(?![-_").concat(N, "])"), - "g" + "g", ), te = new RegExp( "@[_.".concat(N, "]{1,23}[_").concat(N, "](?![_").concat(N, "])"), - "g" + "g", ), ne = new RegExp("[^" + N + "]"), re = (function (e) { @@ -1680,7 +1680,7 @@ offset: a, serviceName: n, mention: u, - }) + }), ); } } @@ -1976,7 +1976,7 @@ ? t.newWindow : this.newWindow), (this.stripPrefix = this.normalizeStripPrefixCfg( - t.stripPrefix + t.stripPrefix, )), (this.stripTrailingSlash = "boolean" == typeof t.stripTrailingSlash @@ -1994,12 +1994,12 @@ ["twitter", "instagram", "soundcloud", "tiktok"].indexOf(n) ) throw new Error( - "invalid `mention` cfg '".concat(n, "' - see docs") + "invalid `mention` cfg '".concat(n, "' - see docs"), ); var r = this.hashtag; if (!1 !== r && -1 === G.indexOf(r)) throw new Error( - "invalid `hashtag` cfg '".concat(r, "' - see docs") + "invalid `hashtag` cfg '".concat(r, "' - see docs"), ); (this.truncate = this.normalizeTruncateCfg(t.truncate)), (this.className = t.className || this.className), @@ -2067,7 +2067,7 @@ var s = (function (e, t) { if (!t.global) throw new Error( - "`splitRegex` must have the 'g' flag set" + "`splitRegex` must have the 'g' flag set", ); for (var n, r = [], o = 0; (n = t.exec(e)); ) r.push(e.substring(o, n.index)), @@ -2076,7 +2076,7 @@ return r.push(e.substring(o)), r; })( e, - /( | |<|<|>|>|"|"|')/gi + /( | |<|<|>|>|"|"|')/gi, ), i = n; s.forEach(function (e, n) { @@ -2402,7 +2402,7 @@ t && !ve.hasWarnedAboutDeprecation && (console.warn( - "useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0." + "useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0.", ), (ve.hasWarnedAboutDeprecation = !0)), fe().sanitize(e, { @@ -2559,7 +2559,7 @@ break; default: console.warn( - `Warning: invalid passwordType ${l} was passed, not including client id and secret` + `Warning: invalid passwordType ${l} was passed, not including client id and secret`, ); } return n.authorizeRequest({ @@ -2677,7 +2677,7 @@ "Content-Type": "application/x-www-form-urlencoded", "X-Requested-With": "XMLHttpRequest", }, - m + m, ); r.fetch({ url: w, @@ -2824,12 +2824,12 @@ (this.rootInjects.preauthorizeApiKey = o()(m).call( m, null, - e + e, )), (this.rootInjects.preauthorizeBasic = o()(d).call( d, null, - e + e, )); }, components: { @@ -2992,7 +2992,7 @@ var n; let { specSelectors: r } = e; console.warn( - "WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version." + "WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.", ); let s = r.securityDefinitions(), i = (0, g.List)(); @@ -3061,7 +3061,7 @@ return ( -1 === u()( - (t = h()((n = d()(e))).call(n, (e) => !!o.get(e))) + (t = h()((n = d()(e))).call(n, (e) => !!o.get(e))), ).call(t, !1) ); }).length @@ -3111,12 +3111,12 @@ r && s && (document.cookie = `${e.get( - "name" + "name", )}=${t}; SameSite=None; Secure`); } catch (e) { console.error( "Error persisting cookie based apiKey in document.cookie.", - e + e, ); } }, @@ -3138,7 +3138,7 @@ } catch (e) { console.error( "Error deleting cookie based apiKey from document.cookie.", - e + e, ); } e(n); @@ -3187,7 +3187,7 @@ const l = { getLocalConfig: () => (0, r.parseYamlConfig)( - '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n' + '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n', ), }; function c() { @@ -3330,8 +3330,10 @@ 2 === n.length ? (0, p.setHash)( (0, d.oJ)( - `/${encodeURIComponent(i)}/${encodeURIComponent(a)}` - ) + `/${encodeURIComponent(i)}/${encodeURIComponent( + a, + )}`, + ), ) : 1 === n.length && (0, p.setHash)((0, d.oJ)(`/${encodeURIComponent(i)}`)); @@ -3355,21 +3357,21 @@ const e = r.isShownKeyFromUrlHashArray([p]); u()(p).call(p, "_") > -1 && (console.warn( - "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead." + "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.", ), n.show( l()(e).call(e, (e) => e.replace(/_/g, " ")), - !0 + !0, )), n.show(e, !0); } (u()(p).call(p, "_") > -1 || u()(h).call(h, "_") > -1) && (console.warn( - "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead." + "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.", ), n.show( l()(a).call(a, (e) => e.replace(/_/g, " ")), - !0 + !0, )), n.show(a, !0), n.scrollTo(a); @@ -3464,7 +3466,7 @@ return s.createElement( "span", { ref: this.onLoad }, - s.createElement(e, this.props) + s.createElement(e, this.props), ); } }; @@ -3492,7 +3494,7 @@ return s.createElement( "span", { ref: this.onLoad }, - s.createElement(e, this.props) + s.createElement(e, this.props), ); } }; @@ -3533,10 +3535,10 @@ r.newThrownErr( o()( new Error( - (t.message || t.statusText) + " " + e + (t.message || t.statusText) + " " + e, ), - { source: "fetch" } - ) + { source: "fetch" }, + ), ), void ( !t.status && @@ -3554,18 +3556,18 @@ ) { const e = o()( new Error( - `Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.` + `Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.`, ), - { source: "fetch" } + { source: "fetch" }, ); return void r.newThrownErr(e); } if (t.origin !== f.Z.location.origin) { const e = o()( new Error( - `Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${f.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.` + `Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${f.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`, ), - { source: "fetch" } + { source: "fetch" }, ); r.newThrownErr(e); } @@ -3617,7 +3619,7 @@ selectors: { loadingStatus: (0, p.P1)( (e) => e || (0, h.Map)(), - (e) => e.get("loadingStatus") || null + (e) => e.get("loadingStatus") || null, ), }, }, @@ -3709,11 +3711,11 @@ return console.error("Transformer error:", t), e; } }, - e + e, ); return i()((t = o()(r).call(r, (e) => !!e))).call( t, - (e) => (!e.get("line") && e.get("path"), e) + (e) => (!e.get("line") && e.get("path"), e), ); } }, @@ -3752,9 +3754,9 @@ : r[n + 1] ? e + t + " " : e + t, - "should be a" + "should be a", ); - })(t) + })(t), ); } return e; @@ -3808,7 +3810,7 @@ r = o()(g, n, { type: "thrown" }); return e .update("errors", (e) => - (e || (0, d.List)()).push((0, d.fromJS)(r)) + (e || (0, d.List)()).push((0, d.fromJS)(r)), ) .update("errors", (e) => (0, m.default)(e)); }, @@ -3816,14 +3818,14 @@ let { payload: n } = t; return ( (n = i()(n).call(n, (e) => - (0, d.fromJS)(o()(g, e, { type: "thrown" })) + (0, d.fromJS)(o()(g, e, { type: "thrown" })), )), e .update("errors", (e) => { var t; return l()((t = e || (0, d.List)())).call( t, - (0, d.fromJS)(n) + (0, d.fromJS)(n), ); }) .update("errors", (e) => (0, m.default)(e)) @@ -3838,7 +3840,7 @@ .update("errors", (e) => (e || (0, d.List)()) .push((0, d.fromJS)(r)) - .sortBy((e) => e.get("line")) + .sortBy((e) => e.get("line")), ) .update("errors", (e) => (0, m.default)(e)) ); @@ -3847,14 +3849,14 @@ let { payload: n } = t; return ( (n = i()(n).call(n, (e) => - (0, d.fromJS)(o()(g, e, { type: "spec" })) + (0, d.fromJS)(o()(g, e, { type: "spec" })), )), e .update("errors", (e) => { var t; return l()((t = e || (0, d.List)())).call( t, - (0, d.fromJS)(n) + (0, d.fromJS)(n), ); }) .update("errors", (e) => (0, m.default)(e)) @@ -3867,7 +3869,7 @@ (r = r.set("type", "auth")), e .update("errors", (e) => - (e || (0, d.List)()).push((0, d.fromJS)(r)) + (e || (0, d.List)()).push((0, d.fromJS)(r)), ) .update("errors", (e) => (0, m.default)(e)) ); @@ -3903,7 +3905,7 @@ o = n(20573); const s = (0, o.P1)( (e) => e, - (e) => e.get("errors", (0, r.List)()) + (e) => e.get("errors", (0, r.List)()), ), i = (0, o.P1)(s, (e) => e.last()); }, @@ -3946,11 +3948,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -3976,11 +3978,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -4006,11 +4008,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -4036,11 +4038,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -4066,7 +4068,7 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement( "g", @@ -4075,8 +4077,8 @@ fill: "#ffffff", fillRule: "evenodd", d: "M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z", - }) - ) + }), + ), ); }; i.defaultProps = { className: null, width: 15, height: 16 }; @@ -4102,11 +4104,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -4132,11 +4134,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -4178,7 +4180,7 @@ (e) => { o(e, !t); }, - [t, o] + [t, o], ); return r.createElement( "button", @@ -4190,7 +4192,7 @@ r.createElement( "div", { className: "json-schema-2020-12-accordion__children" }, - n + n, ), r.createElement( "span", @@ -4200,8 +4202,8 @@ "json-schema-2020-12-accordion__icon--collapsed": !t, }), }, - r.createElement(a, null) - ) + r.createElement(a, null), + ), ); }; a.defaultProps = { expanded: !1 }; @@ -4217,7 +4219,7 @@ (e) => { n(e, !t); }, - [t, n] + [t, n], ); return r.createElement( "button", @@ -4226,7 +4228,7 @@ className: "json-schema-2020-12-expand-deep-button", onClick: o, }, - t ? "Collapse all" : "Expand all" + t ? "Collapse all" : "Expand all", ); }; }, @@ -4303,13 +4305,13 @@ (e, t) => { m(t), !t && y(!1), u(e, t, !1); }, - [u] + [u], ), he = (0, s.useCallback)( (e, t) => { m(t), y(t), u(e, t, !0); }, - [u] + [u], ); return s.createElement( c.JSONSchemaLevelContext.Provider, @@ -4340,9 +4342,9 @@ s.createElement( j, { expanded: d, onChange: pe }, - s.createElement(oe, { title: r, schema: n }) + s.createElement(oe, { title: r, schema: n }), ), - s.createElement(ue, { expanded: d, onClick: he }) + s.createElement(ue, { expanded: d, onClick: he }), ) : s.createElement(oe, { title: r, schema: n }), s.createElement(ae, { schema: n }), @@ -4354,8 +4356,8 @@ s.createElement(te, { key: `${e.scope}-${e.value}`, constraint: e, - }) - ) + }), + ), ), s.createElement( "div", @@ -4391,7 +4393,7 @@ s.createElement(V, { schema: n }), s.createElement(Z, { schema: n }), s.createElement(W, { schema: n }), - s.createElement(re, { schema: n }) + s.createElement(re, { schema: n }), ), s.createElement(Q, { schema: n }), s.createElement(ee, { schema: n }), @@ -4408,12 +4410,12 @@ s.createElement(N, { schema: n }), !x && E && s.createElement(T, { schema: n }), s.createElement(I, { schema: n }), - s.createElement(R, { schema: n }) - ) - ) - ) - ) - ) + s.createElement(R, { schema: n }), + ), + ), + ), + ), + ), ); }); u.defaultProps = { @@ -4438,7 +4440,7 @@ }, r.createElement("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z", - }) + }), ); }, 64922: (e, t, n) => { @@ -4461,7 +4463,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$anchor" + "$anchor", ), r.createElement( "span", @@ -4469,8 +4471,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$anchor - ) + t.$anchor, + ), ) : null; }; @@ -4495,7 +4497,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$comment" + "$comment", ), r.createElement( "span", @@ -4503,8 +4505,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$comment - ) + t.$comment, + ), ) : null; }; @@ -4559,8 +4561,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$defs" - ) + "$defs", + ), ), c.createElement(y, { expanded: a, onClick: w }), c.createElement( @@ -4569,7 +4571,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), c.createElement( "ul", @@ -4579,7 +4581,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !a, - } + }, ), }, a && @@ -4594,12 +4596,12 @@ key: t, className: "json-schema-2020-12-property", }, - c.createElement(v, { name: t, schema: n }) + c.createElement(v, { name: t, schema: n }), ); - }) - ) - ) - ) + }), + ), + ), + ), ); }; }, @@ -4623,7 +4625,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$dynamicAnchor" + "$dynamicAnchor", ), r.createElement( "span", @@ -4631,8 +4633,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$dynamicAnchor - ) + t.$dynamicAnchor, + ), ) : null; }; @@ -4657,7 +4659,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$dynamicRef" + "$dynamicRef", ), r.createElement( "span", @@ -4665,8 +4667,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$dynamicRef - ) + t.$dynamicRef, + ), ) : null; }; @@ -4691,7 +4693,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$id" + "$id", ), r.createElement( "span", @@ -4699,8 +4701,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$id - ) + t.$id, + ), ) : null; }; @@ -4725,7 +4727,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$ref" + "$ref", ), r.createElement( "span", @@ -4733,8 +4735,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$ref - ) + t.$ref, + ), ) : null; }; @@ -4759,7 +4761,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$schema" + "$schema", ), r.createElement( "span", @@ -4767,8 +4769,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$schema - ) + t.$schema, + ), ) : null; }; @@ -4811,8 +4813,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$vocabulary" - ) + "$vocabulary", + ), ), a.createElement( "strong", @@ -4820,7 +4822,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), a.createElement( "ul", @@ -4837,7 +4839,7 @@ { "json-schema-2020-12-$vocabulary-uri--disabled": !n, - } + }, ), }, a.createElement( @@ -4846,11 +4848,11 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t - ) + t, + ), ); - }) - ) + }), + ), ) : null; }; @@ -4872,7 +4874,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Additional properties" + "Additional properties", ); return r.createElement( "div", @@ -4891,8 +4893,8 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "allowed" - ) + "allowed", + ), ) : !1 === s ? r.createElement( @@ -4905,10 +4907,10 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "forbidden" - ) + "forbidden", + ), ) - : r.createElement(i, { name: a, schema: s }) + : r.createElement(i, { name: a, schema: s }), ); }; }, @@ -4960,8 +4962,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "All of" - ) + "All of", + ), ), a.createElement(g, { expanded: l, onClick: w }), a.createElement(v, { schema: { allOf: n } }), @@ -4973,7 +4975,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !l, - } + }, ), }, l && @@ -4990,12 +4992,12 @@ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -5048,8 +5050,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Any of" - ) + "Any of", + ), ), a.createElement(g, { expanded: l, onClick: w }), a.createElement(v, { schema: { anyOf: n } }), @@ -5061,7 +5063,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !l, - } + }, ), }, l && @@ -5078,12 +5080,12 @@ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -5109,7 +5111,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Const" + "Const", ), r.createElement( "span", @@ -5117,8 +5119,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - n.stringify(t.const) - ) + n.stringify(t.const), + ), ) : null; }; @@ -5134,7 +5136,7 @@ { className: `json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`, }, - t.value + t.value, ); }, s = r.memo(o); @@ -5155,7 +5157,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Contains" + "Contains", ); return r.createElement( "div", @@ -5163,7 +5165,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--contains", }, - r.createElement(s, { name: i, schema: t.contains }) + r.createElement(s, { name: i, schema: t.contains }), ); }; }, @@ -5183,7 +5185,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Content schema" + "Content schema", ); return r.createElement( "div", @@ -5191,7 +5193,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema", }, - r.createElement(s, { name: i, schema: t.contentSchema }) + r.createElement(s, { name: i, schema: t.contentSchema }), ); }; }, @@ -5216,7 +5218,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Default" + "Default", ), r.createElement( "span", @@ -5224,8 +5226,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - n.stringify(t.default) - ) + n.stringify(t.default), + ), ) : null; }; @@ -5253,7 +5255,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Required when defined" + "Required when defined", ), s.createElement( "ul", @@ -5268,11 +5270,11 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning", }, - e - ) - ) - ) - ) + e, + ), + ), + ), + ), ); }; }, @@ -5326,8 +5328,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Dependent schemas" - ) + "Dependent schemas", + ), ), c.createElement(y, { expanded: a, onClick: w }), c.createElement( @@ -5336,7 +5338,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), c.createElement( "ul", @@ -5346,7 +5348,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !a, - } + }, ), }, a && @@ -5361,12 +5363,12 @@ key: t, className: "json-schema-2020-12-property", }, - c.createElement(v, { name: t, schema: n }) + c.createElement(v, { name: t, schema: n }), ); - }) - ) - ) - ) + }), + ), + ), + ), ); }; }, @@ -5385,7 +5387,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--warning", }, - "deprecated" + "deprecated", ); }; }, @@ -5409,8 +5411,8 @@ className: "json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary", }, - t.description - ) + t.description, + ), ) : null; }; @@ -5431,7 +5433,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Else" + "Else", ); return r.createElement( "div", @@ -5439,7 +5441,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--if", }, - r.createElement(s, { name: i, schema: t.else }) + r.createElement(s, { name: i, schema: t.else }), ); }; }, @@ -5469,7 +5471,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Allowed values" + "Allowed values", ), a.createElement( "ul", @@ -5485,11 +5487,11 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - t - ) + t, + ), ); - }) - ) + }), + ), ) : null; }; @@ -5510,7 +5512,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "If" + "If", ); return r.createElement( "div", @@ -5518,7 +5520,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--if", }, - r.createElement(s, { name: i, schema: t.if }) + r.createElement(s, { name: i, schema: t.if }), ); }; }, @@ -5538,7 +5540,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Items" + "Items", ); return r.createElement( "div", @@ -5546,7 +5548,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--items", }, - r.createElement(s, { name: i, schema: t.items }) + r.createElement(s, { name: i, schema: t.items }), ); }; }, @@ -5566,7 +5568,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Not" + "Not", ); return r.createElement( "div", @@ -5574,7 +5576,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--not", }, - r.createElement(s, { name: i, schema: t.not }) + r.createElement(s, { name: i, schema: t.not }), ); }; }, @@ -5626,8 +5628,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "One of" - ) + "One of", + ), ), a.createElement(g, { expanded: l, onClick: w }), a.createElement(v, { schema: { oneOf: n } }), @@ -5639,7 +5641,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !l, - } + }, ), }, l && @@ -5656,12 +5658,12 @@ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -5698,10 +5700,10 @@ return c.createElement( "li", { key: t, className: "json-schema-2020-12-property" }, - c.createElement(s, { name: t, schema: n }) + c.createElement(s, { name: t, schema: n }), ); - }) - ) + }), + ), ); }; }, @@ -5753,8 +5755,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Prefix items" - ) + "Prefix items", + ), ), a.createElement(g, { expanded: l, onClick: w }), a.createElement(v, { schema: { prefixItems: n } }), @@ -5766,7 +5768,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !l, - } + }, ), }, l && @@ -5783,12 +5785,12 @@ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -5844,10 +5846,10 @@ name: t, schema: o, dependentRequired: i, - }) + }), ); - }) - ) + }), + ), ); }; }, @@ -5867,7 +5869,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Property names" + "Property names", ); return n.hasKeyword(t, "propertyNames") ? r.createElement( @@ -5876,7 +5878,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames", }, - r.createElement(i, { name: a, schema: s }) + r.createElement(i, { name: a, schema: s }), ) : null; }; @@ -5896,7 +5898,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "read-only" + "read-only", ); }; }, @@ -5916,7 +5918,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Then" + "Then", ); return r.createElement( "div", @@ -5924,7 +5926,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--then", }, - r.createElement(s, { name: i, schema: t.then }) + r.createElement(s, { name: i, schema: t.then }), ); }; }, @@ -5940,7 +5942,7 @@ ? r.createElement( "div", { className: "json-schema-2020-12__title" }, - t || s.getTitle(n) + t || s.getTitle(n), ) : null; }; @@ -5962,7 +5964,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - `${s}${i}` + `${s}${i}`, ); }; s.defaultProps = { isCircular: !1 }; @@ -5985,7 +5987,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Unevaluated items" + "Unevaluated items", ); return r.createElement( "div", @@ -5993,7 +5995,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems", }, - r.createElement(i, { name: a, schema: s }) + r.createElement(i, { name: a, schema: s }), ); }; }, @@ -6014,7 +6016,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Unevaluated properties" + "Unevaluated properties", ); return r.createElement( "div", @@ -6022,7 +6024,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties", }, - r.createElement(i, { name: a, schema: s }) + r.createElement(i, { name: a, schema: s }), ); }; }, @@ -6041,7 +6043,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "write-only" + "write-only", ); }; }, @@ -6158,7 +6160,7 @@ "number", "integer", "string", - ]) + ]), ).call(t, s) ? s : (() => { @@ -6322,7 +6324,7 @@ const o = M( "characters", null == e ? void 0 : e.minLength, - null == e ? void 0 : e.maxLength + null == e ? void 0 : e.maxLength, ); null !== o && t.push({ scope: "string", value: o }), null != e && @@ -6346,19 +6348,19 @@ const s = M( null != e && e.hasUniqueItems ? "unique items" : "items", null == e ? void 0 : e.minItems, - null == e ? void 0 : e.maxItems + null == e ? void 0 : e.maxItems, ); null !== s && t.push({ scope: "array", value: s }); const i = M( "contained items", null == e ? void 0 : e.minContains, - null == e ? void 0 : e.maxContains + null == e ? void 0 : e.maxContains, ); null !== i && t.push({ scope: "array", value: i }); const a = M( "properties", null == e ? void 0 : e.minProperties, - null == e ? void 0 : e.maxProperties + null == e ? void 0 : e.maxProperties, ); return null !== a && t.push({ scope: "object", value: a }), t; }, @@ -6372,8 +6374,8 @@ let [r, o] = n; return l()(o) && h()(o).call(o, e) ? (t.add(r), t) : t; }, - new (O())() - ) + new (O())(), + ), ) : []; }; @@ -6500,7 +6502,7 @@ r.createElement( J.JSONSchemaContext.Provider, { value: n }, - r.createElement(e, t) + r.createElement(e, t), ); return ( (H.contexts = { JSONSchemaContext: J.JSONSchemaContext }), @@ -6761,7 +6763,7 @@ !(function (e, t) { if (t.has(e)) throw new TypeError( - "Cannot initialize the same private elements twice on an object" + "Cannot initialize the same private elements twice on an object", ); })(e, t), t.set(e, n); @@ -6809,7 +6811,7 @@ !(function (e, t) { if (t.has(e)) throw new TypeError( - "Cannot initialize the same private elements twice on an object" + "Cannot initialize the same private elements twice on an object", ); })(e, t), t.set(e, n); @@ -6947,7 +6949,7 @@ ) r.required = d()((a = r.required || [])).call( a, - (e) => e !== s + (e) => e !== s, ); else r.properties[s] = y(i, o, n); } @@ -7503,7 +7505,7 @@ p = !a && o()(e.anyOf) && e.anyOf.length > 0; if (!a && (c || p)) { const t = (0, C.typeCast)( - c ? (0, N.pick)(e.oneOf) : (0, N.pick)(e.anyOf) + c ? (0, N.pick)(e.oneOf) : (0, N.pick)(e.anyOf), ); !(e = (0, I.default)(e, t, n)).xml && t.xml && (e.xml = t.xml), (0, P.hasExample)(e) && (0, P.hasExample)(t) && (a = !0); @@ -7558,7 +7560,7 @@ s ? l()((n = e.required)).call( n, - (e) => (t += void 0 === B[e] ? 0 : 1) + (e) => (t += void 0 === B[e] ? 0 : 1), ) : l()((r = e.required)).call(r, (e) => { var n; @@ -7614,7 +7616,7 @@ _()( null === (o = e.discriminator) || void 0 === o ? void 0 - : o.mapping + : o.mapping, ) && e.discriminator.propertyName === t && "string" == typeof e.$$ref @@ -7701,15 +7703,15 @@ ) t.push( ...g()((G = w.anyOf)).call(G, (e) => - R((0, I.default)(e, w, n), n, void 0, s) - ) + R((0, I.default)(e, w, n), n, void 0, s), + ), ); else if (o()(w.oneOf)) { var Y; t.push( ...g()((Y = w.oneOf)).call(Y, (e) => - R((0, I.default)(e, w, n), n, void 0, s) - ) + R((0, I.default)(e, w, n), n, void 0, s), + ), ); } else { if (!(!s || (s && m.wrapped))) return R(w, n, void 0, s); @@ -7724,15 +7726,15 @@ ) t.push( ...g()((Z = b.anyOf)).call(Z, (e) => - R((0, I.default)(e, b, n), n, void 0, s) - ) + R((0, I.default)(e, b, n), n, void 0, s), + ), ); else if (o()(b.oneOf)) { var X; t.push( ...g()((X = b.oneOf)).call(X, (e) => - R((0, I.default)(e, b, n), n, void 0, s) - ) + R((0, I.default)(e, b, n), n, void 0, s), + ), ); } else { if (!(!s || (s && m.wrapped))) return R(b, n, void 0, s); @@ -8120,7 +8122,7 @@ for (; s.length < r; ) s += s[e++ % s.length]; } return s; - })(L, e) + })(L, e), ); }; }, @@ -8233,7 +8235,7 @@ }, u = (0, r.P1)( (e) => e, - (e) => !l(e, "editor") + (e) => !l(e, "editor"), ); }, 28989: (e, t, n) => { @@ -8444,7 +8446,7 @@ r = r.push( new u.Map({ [t]: i()(a).call(a, (e) => void 0 !== e), - }) + }), ); }), ("http" !== s && "apiKey" !== s) || @@ -8463,7 +8465,7 @@ l()((s = e.get("scopes_supported"))).call( s, (e, t) => e.set(t, ""), - new u.Map() + new u.Map(), ), c = (0, u.fromJS)({ flow: o, @@ -8476,14 +8478,14 @@ r = r.push( new u.Map({ [t]: i()(c).call(c, (e) => void 0 !== e), - }) + }), ); }); } }), r) : r; - } + }, )), (e, t) => function () { @@ -8547,10 +8549,10 @@ path: t.path, specPath: t.specPath, allowTryItOut: !1, - }) - ) + }), + ), ); - }) + }), ); }; }, @@ -8602,7 +8604,7 @@ let m = this.getValue(), g = l()((e = r.allErrors())).call( e, - (e) => e.get("authId") === o + (e) => e.get("authId") === o, ); if ("basic" === d) { var y; @@ -8615,13 +8617,13 @@ null, p.createElement("code", null, o || t.get("name")), "  (http, Basic)", - p.createElement(f, { path: ["securityDefinitions", o] }) + p.createElement(f, { path: ["securityDefinitions", o] }), ), e && p.createElement("h6", null, "Authorized"), p.createElement( i, null, - p.createElement(h, { source: t.get("description") }) + p.createElement(h, { source: t.get("description") }), ), p.createElement( i, @@ -8639,8 +8641,8 @@ "aria-label": "auth-basic-username", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), p.createElement( i, @@ -8657,12 +8659,12 @@ type: "password", "aria-label": "auth-basic-password", onChange: this.onChange, - }) - ) + }), + ), ), u()((y = g.valueSeq())).call(y, (e, t) => - p.createElement(c, { error: e, key: t }) - ) + p.createElement(c, { error: e, key: t }), + ), ); } var v; @@ -8675,13 +8677,13 @@ null, p.createElement("code", null, o || t.get("name")), "  (http, Bearer)", - p.createElement(f, { path: ["securityDefinitions", o] }) + p.createElement(f, { path: ["securityDefinitions", o] }), ), m && p.createElement("h6", null, "Authorized"), p.createElement( i, null, - p.createElement(h, { source: t.get("description") }) + p.createElement(h, { source: t.get("description") }), ), p.createElement( i, @@ -8697,12 +8699,12 @@ "aria-label": "auth-bearer-value", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), u()((v = g.valueSeq())).call(v, (e, t) => - p.createElement(c, { error: e, key: t }) - ) + p.createElement(c, { error: e, key: t }), + ), ) : p.createElement( "div", @@ -8712,8 +8714,8 @@ null, p.createElement("b", null, o), " HTTP authentication: unsupported scheme ", - `'${d}'` - ) + `'${d}'`, + ), ); } } @@ -8763,7 +8765,7 @@ "div", { className: "description" }, a.createElement("b", null, a.createElement("code", null, t)), - c ? a.createElement(r, { source: c }) : null + c ? a.createElement(r, { source: c }) : null, ), a.createElement( "pre", @@ -8779,12 +8781,12 @@ if ("string" != typeof t) return ""; return i()((n = t.split("\n"))) .call(n, (t, n) => - n > 0 ? Array(e + 1).join(" ") + t : t + n > 0 ? Array(e + 1).join(" ") + t : t, ) .join("\n"); })(0, o()(l, null, 2)) || "{}", - a.createElement("br", null) - ) + a.createElement("br", null), + ), ); } } @@ -8825,7 +8827,7 @@ const { path: n, method: r } = this.props; return this.props.getServerVariable( { namespace: `${n}:${r}`, server: e }, - t + t, ); }), o()(this, "getEffectiveServerValue", (e) => { @@ -8858,9 +8860,9 @@ s.createElement( "h4", { className: "opblock-title" }, - "Servers" - ) - ) + "Servers", + ), + ), ), s.createElement( "div", @@ -8870,7 +8872,7 @@ { className: "message" }, "These ", i, - "-level options override the global server options." + "-level options override the global server options.", ), s.createElement(r, { servers: o, @@ -8879,8 +8881,8 @@ setServerVariableValue: this.setServerVariableValue, getServerVariable: this.getServerVariable, getEffectiveServerValue: this.getEffectiveServerValue, - }) - ) + }), + ), ); } } @@ -8934,7 +8936,7 @@ title: t.size ? t.join(", ") : "", value: n, onChange: this.onDomChange, - }) + }), ); } } @@ -9043,7 +9045,7 @@ null, "Example values are not available for ", p.createElement("code", null, b), - " media types." + " media types.", ); } if ( @@ -9075,7 +9077,7 @@ if (g.get("readOnly")) return; let y = D ? (0, f.po)(g) : null; const b = l()( - (i = $.get("required", (0, h.List)())) + (i = $.get("required", (0, h.List)())), ).call(i, m), E = g.get("type"), _ = g.get("format"), @@ -9125,7 +9127,9 @@ : "parameter__name", }, m, - b ? p.createElement("span", null, " *") : null + b + ? p.createElement("span", null, " *") + : null, ), p.createElement( "div", @@ -9137,7 +9141,7 @@ { className: "prop-format" }, "($", _, - ")" + ")", ), D && y.size ? o()((d = y.entrySeq())).call(d, (e) => { @@ -9148,13 +9152,13 @@ xVal: r, }); }) - : null + : null, ), p.createElement( "div", { className: "parameter__deprecated" }, - g.get("deprecated") ? "deprecated" : null - ) + g.get("deprecated") ? "deprecated" : null, + ), ), p.createElement( "td", @@ -9186,14 +9190,14 @@ isDisabled: u()(O) ? 0 !== O.length : !(0, f.O2)(O), - }) + }), ) - : null - ) + : null, + ), ); - }) - ) - ) + }), + ), + ), ) ); } @@ -9230,7 +9234,7 @@ defaultValue: K, onChange: x, getComponent: c, - }) + }), ) : p.createElement(P, { getComponent: c, @@ -9254,7 +9258,7 @@ getComponent: c, getConfigs: g, }) - : null + : null, ) ); }; @@ -9280,7 +9284,7 @@ r.createElement( "span", { className: "servers-title" }, - "Servers" + "Servers", ), r.createElement(i, { servers: s, @@ -9289,7 +9293,7 @@ setServerVariableValue: n.setServerVariableValue, getServerVariable: t.serverVariableValue, getEffectiveServerValue: t.serverEffectiveValue, - }) + }), ) : null; } @@ -9332,7 +9336,7 @@ this.setServer( null === (e = t.first()) || void 0 === e ? void 0 - : e.get("url") + : e.get("url"), ); } UNSAFE_componentWillReceiveProps(e) { @@ -9350,7 +9354,7 @@ a = i()((o = this.props.servers)).call( o, - (e) => e.get("url") === this.props.currentServer + (e) => e.get("url") === this.props.currentServer, ) || (0, u.OrderedMap)(); if (!s) return this.setServer(t.first().get("url")); let c = a.get("variables") || (0, u.OrderedMap)(), @@ -9402,11 +9406,11 @@ "option", { value: e.get("url"), key: e.get("url") }, e.get("url"), - e.get("description") && ` - ${e.get("description")}` - ) + e.get("description") && ` - ${e.get("description")}`, + ), ) - .toArray() - ) + .toArray(), + ), ), p ? c.createElement( @@ -9416,7 +9420,7 @@ "div", { className: "computed-url" }, "Computed URL:", - c.createElement("code", null, s(r)) + c.createElement("code", null, s(r)), ), c.createElement("h4", null, "Server variables"), c.createElement( @@ -9451,9 +9455,9 @@ key: e, value: e, }, - e - ) - ) + e, + ), + ), ) : c.createElement("input", { type: "text", @@ -9461,14 +9465,14 @@ onChange: this.onServerVariableValueChange, "data-variable": n, - }) - ) + }), + ), ); - }) - ) - ) + }), + ), + ), ) - : null + : null, ); } } @@ -9642,7 +9646,7 @@ ) return e.setIn( ["requestData", n, r, "errors"], - (0, c.fromJS)(s) + (0, c.fromJS)(s), ); if (o.missingRequiredKeys && o.missingRequiredKeys.length > 0) { const { missingRequiredKeys: t } = o; @@ -9653,13 +9657,13 @@ l()(t).call( t, (e, t) => e.setIn([t, "errors"], (0, c.fromJS)(s)), - e - ) + e, + ), ); } return ( console.warn( - "unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR" + "unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR", ), e ); @@ -9672,7 +9676,7 @@ if (!c.Map.isMap(s)) return e.setIn( ["requestData", n, r, "errors"], - (0, c.fromJS)([]) + (0, c.fromJS)([]), ); const [...i] = o()(s).call(s); return i @@ -9683,8 +9687,8 @@ l()(i).call( i, (e, t) => e.setIn([t, "errors"], (0, c.fromJS)([])), - e - ) + e, + ), ) : e; }, @@ -9758,11 +9762,11 @@ return e.getIn(n) || ""; }), y = m( - (e, t, n) => e.getIn(["requestData", t, n, "bodyValue"]) || null + (e, t, n) => e.getIn(["requestData", t, n, "bodyValue"]) || null, ), v = m( (e, t, n) => - e.getIn(["requestData", t, n, "retainBodyValue"]) || !1 + e.getIn(["requestData", t, n, "retainBodyValue"]) || !1, ), b = (e, t, n) => (e) => { const { @@ -9777,7 +9781,7 @@ o.specResolvedSubtree(["paths", t, n, "requestBody"]), e, r.activeExamplesMember(t, n, "requestBody", "requestBody"), - s + s, ); } return null; @@ -9794,9 +9798,9 @@ (l = (0, d.Pz)( l .mapEntries((e) => - p.Map.isMap(e[1]) ? [e[0], e[1].get("value")] : e + p.Map.isMap(e[1]) ? [e[0], e[1].get("value")] : e, ) - .toJS() + .toJS(), )), p.List.isList(l) && (l = (0, d.Pz)(l)), a) @@ -9805,7 +9809,7 @@ c, a, r.activeExamplesMember(t, n, "requestBody", "requestBody"), - s + s, ); i = !!l && l !== e; } @@ -9813,22 +9817,22 @@ }), E = m( (e, t, n) => - e.getIn(["requestData", t, n, "bodyInclusion"]) || (0, p.Map)() + e.getIn(["requestData", t, n, "bodyInclusion"]) || (0, p.Map)(), ), x = m( - (e, t, n) => e.getIn(["requestData", t, n, "errors"]) || null + (e, t, n) => e.getIn(["requestData", t, n, "errors"]) || null, ), S = m( (e, t, n, r, o) => - e.getIn(["examples", t, n, r, o, "activeExample"]) || null + e.getIn(["examples", t, n, r, o, "activeExample"]) || null, ), _ = m( (e, t, n) => - e.getIn(["requestData", t, n, "requestContentType"]) || null + e.getIn(["requestData", t, n, "requestContentType"]) || null, ), j = m( (e, t, n) => - e.getIn(["requestData", t, n, "responseContentType"]) || null + e.getIn(["requestData", t, n, "responseContentType"]) || null, ), O = m((e, t, n) => { let r; @@ -9982,7 +9986,7 @@ }; } const w = b( - () => (e) => e.specSelectors.specJson().get("servers", m) + () => (e) => e.specSelectors.specJson().get("servers", m), ), E = b((e, t) => { let { callbacks: n, specPath: r } = t; @@ -10007,8 +10011,8 @@ (e) => { let [t] = e; return u()(s).call(s, t); - } - )) + }, + )), ).call(a, (e) => { let [t, o] = e; return { @@ -10021,12 +10025,12 @@ }); return h()(e).call(e, p); }, - (0, f.List)() + (0, f.List)(), ) : e, - (0, f.List)() + (0, f.List)(), ) - .groupBy((e) => e.callbackName)) + .groupBy((e) => e.callbackName)), ) .call(t, (e) => e.toArray()) .toObject() @@ -10072,13 +10076,13 @@ }), u = a( () => (e) => - e.getSystem().specSelectors.specJson().hasIn(["servers", 0]) + e.getSystem().specSelectors.specJson().hasIn(["servers", 0]), ), p = a( (0, r.P1)( o.specJsonWithResolvedSubtrees, - (e) => e.getIn(["components", "securitySchemes"]) || null - ) + (e) => e.getIn(["components", "securitySchemes"]) || null, + ), ), h = (e, t) => function (n) { @@ -10225,7 +10229,7 @@ (r = s.createElement( "span", { className: "model-deprecated-warning" }, - "Deprecated:" + "Deprecated:", ))), s.createElement( "div", @@ -10237,8 +10241,8 @@ getConfigs: e, depth: 1, expandDepth: this.props.expandDepth || 0, - }) - ) + }), + ), ) ); } @@ -10265,8 +10269,8 @@ r.createElement( "small", { className: "version-stamp" }, - r.createElement("pre", { className: "version" }, "OAS 3.0") - ) + r.createElement("pre", { className: "version" }, "OAS 3.0"), + ), ); }); }, @@ -10282,7 +10286,7 @@ if (t.jsonSchema202012) { const e = (0, s.makeIsExpandable)( t.jsonSchema202012.isExpandable, - n + n, ); o()(this.fn.jsonSchema202012, { isExpandable: e, @@ -10301,7 +10305,7 @@ memoizedCreateXMLExample: t.jsonSchema202012.memoizedCreateXMLExample, }, - n() + n(), ); o()(this.fn, e); } @@ -10329,15 +10333,15 @@ l, { href: (0, o.Nm)(i), target: "_blank" }, s, - " - Website" - ) + " - Website", + ), ), a && r.createElement( l, { href: (0, o.Nm)(`mailto:${a}`) }, - i ? `Send email to ${s}` : `Contact ${s}` - ) + i ? `Send email to ${s}` : `Contact ${s}`, + ), ); }; }, @@ -10378,16 +10382,16 @@ "h2", { className: "title" }, p, - s && r.createElement(b, { version: s }) + s && r.createElement(b, { version: s }), ), (l || a) && r.createElement(E, { host: l, basePath: a }), - i && r.createElement(w, { getComponent: t, url: i }) + i && r.createElement(w, { getComponent: t, url: i }), ), c && r.createElement("p", { className: "info__summary" }, c), r.createElement( "div", { className: "info__description description" }, - r.createElement(y, { source: u }) + r.createElement(y, { source: u }), ), h && r.createElement( @@ -10396,8 +10400,8 @@ r.createElement( v, { target: "_blank", href: (0, o.Nm)(h) }, - "Terms of service" - ) + "Terms of service", + ), ), m.size > 0 && r.createElement(S, null), g.size > 0 && r.createElement(x, null), @@ -10409,9 +10413,9 @@ target: "_blank", href: (0, o.Nm)(f), }, - d || f + d || f, ), - r.createElement(_, null) + r.createElement(_, null), ); }; }, @@ -10438,8 +10442,8 @@ r.createElement( a, { target: "_blank", href: (0, o.Nm)(s) }, - s - ) + s, + ), ), s && s !== i && @@ -10458,7 +10462,7 @@ r.createElement( "h4", { className: "center" }, - "Warning" + "Warning", ), r.createElement( "p", @@ -10466,17 +10470,17 @@ r.createElement( "strong", null, - "OpenAPI.jsonSchemaDialect" + "OpenAPI.jsonSchemaDialect", ), " field contains a value different from the default value of", " ", r.createElement(a, { target: "_blank", href: i }, i), - ". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value." - ) - ) - ) - ) - ) + ". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value.", + ), + ), + ), + ), + ), ); }; }, @@ -10500,10 +10504,10 @@ r.createElement( a, { target: "_blank", href: (0, o.Nm)(i) }, - s - ) + s, + ), ) - : r.createElement("span", null, s) + : r.createElement("span", null, s), ); }; }, @@ -10533,7 +10537,7 @@ (e, t) => { o(l, t); }, - [l, o] + [l, o], ); return s.createElement(a, { name: l, @@ -10624,8 +10628,8 @@ onClick: _, }, c.createElement("span", null, "Schemas"), - b ? c.createElement(x, null) : c.createElement(S, null) - ) + b ? c.createElement(x, null) : c.createElement(S, null), + ), ), c.createElement( w, @@ -10639,8 +10643,8 @@ name: t, onExpand: k(t), }); - }) - ) + }), + ), ); }; }, @@ -10676,7 +10680,7 @@ r.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), r.createElement( "p", @@ -10684,7 +10688,7 @@ r.createElement("code", null, "swagger"), " and ", r.createElement("code", null, "openapi"), - " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields." + " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.", ), r.createElement( "p", @@ -10696,10 +10700,10 @@ " (for example,", " ", r.createElement("code", null, "openapi: 3.1.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ) : n || o || s ? r.createElement("div", null, a) @@ -10719,12 +10723,12 @@ r.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), r.createElement( "p", null, - "The provided definition does not specify a valid version field." + "The provided definition does not specify a valid version field.", ), r.createElement( "p", @@ -10736,10 +10740,10 @@ " (for example,", " ", r.createElement("code", null, "openapi: 3.1.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ); }; }, @@ -10776,10 +10780,10 @@ path: e, specPath: t.specPath, allowTryItOut: !1, - }) - ) + }), + ), ); - }) + }), ); }; }, @@ -10860,7 +10864,10 @@ n.specSelectors.isOAS31() ? p.createElement( e, - o()({}, r, { originalComponent: t, getSystem: n.getSystem }) + o()({}, r, { + originalComponent: t, + getSystem: n.getSystem, + }), ) : p.createElement(t, r), y = (e, t) => { @@ -10880,7 +10887,7 @@ : void 0; }, ]; - }) + }), ); }; }, @@ -10959,7 +10966,7 @@ selectLicenseNameField: b.selectLicenseNameField, selectLicenseUrlField: b.selectLicenseUrlField, selectLicenseIdentifierField: P( - b.selectLicenseIdentifierField + b.selectLicenseIdentifierField, ), selectLicenseUrl: n(b.selectLicenseUrl), contact: b.contact, @@ -10973,7 +10980,7 @@ selectInfoTermsOfServiceField: b.selectInfoTermsOfServiceField, selectInfoTermsOfServiceUrl: n( - b.selectInfoTermsOfServiceUrl + b.selectInfoTermsOfServiceUrl, ), selectExternalDocsDescriptionField: b.selectExternalDocsDescriptionField, @@ -11020,8 +11027,8 @@ className: "json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary", }, - r.createElement(s, { source: t.description }) - ) + r.createElement(s, { source: t.description }), + ), ); }; }, @@ -11076,10 +11083,10 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Discriminator" - ) + "Discriminator", + ), ), - s.createElement(b, { expanded: d, onClick: x }) + s.createElement(b, { expanded: d, onClick: x }), ) : s.createElement( "span", @@ -11087,7 +11094,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Discriminator" + "Discriminator", ), r.propertyName && s.createElement( @@ -11096,7 +11103,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - r.propertyName + r.propertyName, ), s.createElement( "strong", @@ -11104,7 +11111,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), s.createElement( "ul", @@ -11114,17 +11121,17 @@ { "json-schema-2020-12-keyword__children--collapsed": !d, - } + }, ), }, d && s.createElement( "li", { className: "json-schema-2020-12-property" }, - s.createElement(l.default, { discriminator: r }) - ) - ) - ) + s.createElement(l.default, { discriminator: r }), + ), + ), + ), ); }; }, @@ -11158,7 +11165,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - t + t, ), c.createElement( "span", @@ -11166,8 +11173,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - n - ) + n, + ), ); }); }; @@ -11195,7 +11202,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Example" + "Example", ), r.createElement( "span", @@ -11203,8 +11210,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - i(t.example) - ) + i(t.example), + ), ) : null; }; @@ -11262,10 +11269,10 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "External documentation" - ) + "External documentation", + ), ), - s.createElement(b, { expanded: d, onClick: _ }) + s.createElement(b, { expanded: d, onClick: _ }), ) : s.createElement( "span", @@ -11273,7 +11280,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "External documentation" + "External documentation", ), s.createElement( "strong", @@ -11281,7 +11288,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), s.createElement( "ul", @@ -11291,7 +11298,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !d, - } + }, ), }, d && @@ -11302,7 +11309,7 @@ s.createElement( "li", { className: "json-schema-2020-12-property" }, - s.createElement(w, { schema: r, getSystem: n }) + s.createElement(w, { schema: r, getSystem: n }), ), r.url && s.createElement( @@ -11320,7 +11327,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "url" + "url", ), s.createElement( "span", @@ -11334,14 +11341,14 @@ target: "_blank", href: (0, l.Nm)(r.url), }, - r.url - ) - ) - ) - ) - ) - ) - ) + r.url, + ), + ), + ), + ), + ), + ), + ), ); }; }, @@ -11399,10 +11406,10 @@ name: t, schema: r, dependentRequired: s, - }) + }), ); - }) - ) + }), + ), ); }; }, @@ -11456,10 +11463,10 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "XML" - ) + "XML", + ), ), - s.createElement(v, { expanded: f, onClick: E }) + s.createElement(v, { expanded: f, onClick: E }), ) : s.createElement( "span", @@ -11467,7 +11474,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "XML" + "XML", ), !0 === r.attribute && s.createElement( @@ -11476,7 +11483,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "attribute" + "attribute", ), !0 === r.wrapped && s.createElement( @@ -11485,7 +11492,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "wrapped" + "wrapped", ), s.createElement( "strong", @@ -11493,7 +11500,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), s.createElement( "ul", @@ -11503,7 +11510,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !f, - } + }, ), }, f && @@ -11526,7 +11533,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "name" + "name", ), s.createElement( "span", @@ -11534,9 +11541,9 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - r.name - ) - ) + r.name, + ), + ), ), r.namespace && s.createElement( @@ -11551,7 +11558,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "namespace" + "namespace", ), s.createElement( "span", @@ -11559,9 +11566,9 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - r.namespace - ) - ) + r.namespace, + ), + ), ), r.prefix && s.createElement( @@ -11576,7 +11583,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "prefix" + "prefix", ), s.createElement( "span", @@ -11584,13 +11591,13 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - r.prefix - ) - ) - ) - ) - ) - ) + r.prefix, + ), + ), + ), + ), + ), + ), ); }; }, @@ -11645,7 +11652,7 @@ r.createElement(i, { schema: t, getSystem: n }), r.createElement(a, { schema: t, getSystem: n }), r.createElement(c, { schema: t, getSystem: n }), - r.createElement(l, { schema: t, getSystem: n }) + r.createElement(l, { schema: t, getSystem: n }), ); }); }, @@ -11676,7 +11683,7 @@ ? (0, o.mn)(n, e, { selectedServer: t }) : r ? `https://spdx.org/licenses/${r}.html` - : void 0 + : void 0, ); }, 9305: (e, t, n) => { @@ -11745,7 +11752,7 @@ (s = l()((i = n.entrySeq())).call(i, (e) => { let [n] = e; return u()(t).call(t, n); - })) + })), ).call(s, (e) => { let [t, n] = e; return { @@ -11757,14 +11764,14 @@ }); return h()(e).call(e, a); }, - (0, m.List)() + (0, m.List)(), ) - .groupBy((e) => e.path)) + .groupBy((e) => e.path)), ) .call(n, (e) => e.toArray()) .toObject() : {}; - } + }, ), S = () => (e) => e.specSelectors.info().get("license", b), _ = () => (e) => e.specSelectors.license().get("name", "License"), @@ -11775,7 +11782,7 @@ (e, t) => t.specSelectors.selectLicenseUrlField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), k = () => (e) => e.specSelectors.license().get("identifier"), A = () => (e) => e.specSelectors.info().get("contact", b), @@ -11789,7 +11796,7 @@ (e, t) => t.specSelectors.selectContactUrlField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), T = () => (e) => e.specSelectors.info().get("title"), R = () => (e) => e.specSelectors.info().get("summary"), @@ -11801,7 +11808,7 @@ (e, t) => t.specSelectors.selectInfoTermsOfServiceField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), L = () => (e) => e.specSelectors.externalDocs().get("description"), B = () => (e) => e.specSelectors.externalDocs().get("url"), @@ -11811,7 +11818,7 @@ (e, t) => t.specSelectors.selectExternalDocsUrlField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), q = () => (e) => e.specSelectors.specJson().get("jsonSchemaDialect"), @@ -11833,11 +11840,11 @@ (e[r] = (null == s ? void 0 : s.toJS()) || o), e ); }, - {} + {}, ) : e.toJS() : {}; - } + }, ); }, 32884: (e, t, n) => { @@ -11858,7 +11865,7 @@ return r || e(...s); }, s = (0, r.createOnlyOAS31SelectorWrapper)( - () => (e, t) => t.oas31Selectors.selectLicenseUrl() + () => (e, t) => t.oas31Selectors.selectLicenseUrl(), ); }, 77423: (e, t, n) => { @@ -12001,7 +12008,7 @@ upperFirst: a.upperFirst, isExpandable: (0, s.makeIsExpandable)( a.jsonSchema202012.isExpandable, - t + t, ), getProperties: s.getProperties, }, @@ -12153,8 +12160,8 @@ r.createElement( "small", { className: "version-stamp" }, - r.createElement("pre", { className: "version" }, "OAS 3.1") - ) + r.createElement("pre", { className: "version" }, "OAS 3.1"), + ), ); }); }, @@ -12332,17 +12339,17 @@ ? t.push( ` "${e}": {\n "name": "${r.name}"${ r.type ? `,\n "type": "${r.type}"` : "" - }\n }` + }\n }`, ) : t.push( ` "${e}": ${l()(r, null, 2).replace( /(\r\n|\r|\n)/g, - "\n " - )}` + "\n ", + )}`, ); } return `{\n${t.join(",\n")}\n}`; - })(e) + })(e), ) : ("string" != typeof t && (t = l()(t)), a(t)); } @@ -12429,10 +12436,10 @@ [S, _] = (0, p.useState)( null === (t = s.getSnippetGenerators()) || void 0 === t ? void 0 - : t.keySeq().first() + : t.keySeq().first(), ), [j, O] = (0, p.useState)( - null == s ? void 0 : s.getDefaultExpanded() + null == s ? void 0 : s.getDefaultExpanded(), ); (0, p.useEffect)(() => {}, []), (0, p.useEffect)(() => { @@ -12447,15 +12454,15 @@ ? void 0 : t.contains("curl-command")) ); - } + }, ); return ( l()(t).call(t, (e) => - e.addEventListener("mousewheel", I, { passive: !1 }) + e.addEventListener("mousewheel", I, { passive: !1 }), ), () => { l()(t).call(t, (e) => - e.removeEventListener("mousewheel", I) + e.removeEventListener("mousewheel", I), ); } ); @@ -12482,7 +12489,7 @@ className: "curl microlight", style: (0, y.C2)(f()(h, "syntaxHighlight.theme")), }, - C + C, ) : p.createElement("textarea", { readOnly: !0, @@ -12506,7 +12513,7 @@ p.createElement( "h4", { onClick: () => P(), style: { cursor: "pointer" } }, - "Snippets" + "Snippets", ), p.createElement( "button", @@ -12525,8 +12532,8 @@ className: "arrow", width: "10", height: "10", - }) - ) + }), + ), ), j && p.createElement( @@ -12558,10 +12565,10 @@ p.createElement( "h4", { style: t === S ? { color: "white" } : {} }, - n.get("title") - ) + n.get("title"), + ), ); - }) + }), ), p.createElement( "div", @@ -12569,11 +12576,11 @@ p.createElement( g.CopyToClipboard, { text: C }, - p.createElement("button", null) - ) + p.createElement("button", null), + ), ), - p.createElement("div", null, T) - ) + p.createElement("div", null, T), + ), ); }; }, @@ -12609,7 +12616,7 @@ (n = l()((r = h(e))).call(r, (e, t) => { const n = ((e) => s[`requestSnippetGenerator_${e}`])(t); return "function" != typeof n ? null : e.set("fn", n); - })) + })), ).call(n, (e) => e); }, d = (0, c.P1)(p, (e) => e.get("activeLanguage")), @@ -12667,8 +12674,8 @@ null, "Could not render ", "t" === t ? "this component" : t, - ", see the console." - ) + ", see the console.", + ), ); }; }, @@ -12689,7 +12696,7 @@ return s.createElement( i, { targetName: a, getComponent: n, fn: r }, - s.createElement(t, o()({}, this.props, this.context)) + s.createElement(t, o()({}, this.props, this.context)), ); } } @@ -12746,7 +12753,7 @@ o()((r = Array(u.length))).call(r, (e, t) => { let { fn: n } = t; return n.withErrorBoundary(e); - }) + }), ); return { fn: { @@ -12778,7 +12785,7 @@ c, (e, t) => t.when.test(r) ? [...e, ...t.shouldStringifyTypes] : e, - u + u, ); return l()(f, (e) => e === h) ? i()(p, null, 2) : p; }; @@ -12850,7 +12857,7 @@ (c = s.ZP.dump( s.ZP.load(l), { lineWidth: -1 }, - { schema: s.A8 } + { schema: s.A8 }, )), "\n" === c[c.length - 1] && (c = o()(c).call(c, 0, c.length - 1)); @@ -12932,7 +12939,7 @@ (0, C.XV)( e, "$$ref", - (e) => "string" == typeof e && o()(e).call(e, "#") > -1 + (e) => "string" == typeof e && o()(e).call(e, "#") > -1, ), R = ["maxProperties", "minProperties"], M = ["minItems", "maxItems"], @@ -12956,11 +12963,11 @@ ...M, ...D, ...F, - ]) + ]), ).call(n, (n) => ((n) => { void 0 === t[n] && void 0 !== e[n] && (t[n] = e[n]); - })(n) + })(n), ), void 0 !== e.required && l()(e.required)) && ((void 0 !== t.required && t.required.length) || @@ -13066,7 +13073,7 @@ r && (F[O] = []); const $ = (t) => h()(t).call(t, (t) => - Object.prototype.hasOwnProperty.call(e, t) + Object.prototype.hasOwnProperty.call(e, t), ); e && !y && @@ -13088,7 +13095,7 @@ (t = d()(t).call( t, 0, - null === (i = e) || void 0 === i ? void 0 : i.maxItems + null === (i = e) || void 0 === i ? void 0 : i.maxItems, )); if ( null !== @@ -13143,7 +13150,7 @@ r ? i()((n = e.required)).call( n, - (e) => (t += void 0 === F[e] ? 0 : 1) + (e) => (t += void 0 === F[e] ? 0 : 1), ) : i()((o = e.required)).call(o, (e) => { var n; @@ -13195,12 +13202,12 @@ if ( Object.prototype.hasOwnProperty.call( e, - "discriminator" + "discriminator", ) && e.discriminator && Object.prototype.hasOwnProperty.call( e.discriminator, - "mapping" + "mapping", ) && e.discriminator.mapping && Object.prototype.hasOwnProperty.call(e, "$$ref") && @@ -13312,12 +13319,12 @@ (S.xml.name = S.xml.name || m.name); if (l()(S.anyOf)) n = w()((H = S.anyOf)).call(H, (e) => - B(L(S, e, t), t, void 0, r) + B(L(S, e, t), t, void 0, r), ); else if (l()(S.oneOf)) { var G; n = w()((G = S.oneOf)).call(G, (e) => - B(L(S, e, t), t, void 0, r) + B(L(S, e, t), t, void 0, r), ); } else { if (!(!r || (r && m.wrapped))) return B(S, t, void 0, r); @@ -13549,7 +13556,7 @@ } = n; ge || (console.warn( - "specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!" + "specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!", ), (ge = !0)); const { @@ -13583,7 +13590,7 @@ (e.source = "resolver"), l()(e, "message", { enumerable: !0, value: e.message }), e - ) + ), ); a.newThrownErrBatch(e); } @@ -13598,17 +13605,17 @@ let { path: n, system: r } = t; return e.has(r) || e.set(r, []), e.get(r).push(n), e; }, - new (h())() + new (h())(), ); (ve = []), d()(e).call(e, async (e, t) => { if (!t) return void console.error( - "debResolveSubtrees: don't have a system to operate on, aborting." + "debResolveSubtrees: don't have a system to operate on, aborting.", ); if (!t.fn.resolveSubtree) return void console.error( - "Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing." + "Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.", ); const { errActions: n, @@ -13647,7 +13654,7 @@ "resolver" !== e.get("source") || !g()((n = e.get("fullPath"))).call( n, - (e, n) => e === t[n] || void 0 === t[n] + (e, n) => e === t[n] || void 0 === t[n], ) ); }), @@ -13668,7 +13675,7 @@ value: e.message, }), e - ) + ), ); n.newThrownErrBatch(e); } @@ -13681,8 +13688,8 @@ i()( (_ = w()((j = x()(S))).call( j, - (e) => "openIdConnect" === e.type - )) + (e) => "openIdConnect" === e.type, + )), ).call(_, async (e) => { const t = { url: e.openIdConnectUrl, @@ -13697,7 +13704,7 @@ } catch (e) { console.error(e); } - }) + }), )); return ( q()(c, t, S), @@ -13710,7 +13717,7 @@ p.specResolvedSubtree([]) || (0, I.Map)() ).toJS(), specWithCurrentSubtrees: p.specJS(), - }) + }), ); h.updateResolvedSubtree([], t.resultMap); } catch (e) { @@ -13802,14 +13809,14 @@ d()( (g = w()((y = p.get("parameters"))).call( y, - (e) => e && !0 === e.get("allowEmptyValue") - )) + (e) => e && !0 === e.get("allowEmptyValue"), + )), ).call(g, (t) => { if ( s.parameterInclusionSettingFor( [c, u], t.get("name"), - t.get("in") + t.get("in"), ) ) { e.parameters = e.parameters || {}; @@ -13841,13 +13848,13 @@ if (s && s.toJS) e.requestBody = w()( (v = i()(s).call(s, (e) => - I.Map.isMap(e) ? e.get("value") : e - )) + I.Map.isMap(e) ? e.get("value") : e, + )), ) .call( v, (e, t) => - (o()(e) ? 0 !== e.length : !(0, J.O2)(e)) || a.get(t) + (o()(e) ? 0 !== e.length : !(0, J.O2)(e)) || a.get(t), ) .toJS(); else e.requestBody = s; @@ -13992,14 +13999,14 @@ if (!o || !s) return ( console.warn( - "Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey." + "Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey.", ), e ); const a = `${s}.${o}`; return e.setIn( ["meta", "paths", ...r, "parameter_inclusions", a], - i + i, ); }, [f.VALIDATE_PARAMS]: (e, t) => { @@ -14024,7 +14031,7 @@ e, n, o.get("name"), - o.get("in") + o.get("in"), ), l = (0, u.Ik)(o, s, { bypassRequiredCheck: a, @@ -14032,12 +14039,12 @@ }); return t.setIn( [(0, u.V9)(o), "errors"], - (0, c.fromJS)(l) + (0, c.fromJS)(l), ); }, - t + t, ); - } + }, ); }, [f.CLEAR_VALIDATE_PARAMS]: (e, t) => { @@ -14047,7 +14054,8 @@ return e.updateIn( ["meta", "paths", ...n, "parameters"], (0, c.fromJS)([]), - (e) => i()(e).call(e, (e) => e.set("errors", (0, c.fromJS)([]))) + (e) => + i()(e).call(e, (e) => e.set("errors", (0, c.fromJS)([]))), ); }, [f.SET_RESPONSE]: (e, t) => { @@ -14063,7 +14071,7 @@ message: r.err.message, statusCode: r.err.statusCode, }, - r.err.response + r.err.response, ) : r), (n.headers = n.headers || {}); @@ -14238,8 +14246,8 @@ (0, j.OrderedMap)().mergeWith( D, e.get("json"), - e.get("resolvedSubtrees") - ) + e.get("resolvedSubtrees"), + ), ), L = (e) => I(e), B = (0, S.P1)(L, () => !1), @@ -14250,7 +14258,7 @@ var t; return o()((t = /v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e))).call( t, - 1 + 1, ); }), V = (0, S.P1)(F, (e) => e.get("paths")), @@ -14277,7 +14285,7 @@ method: r, operation: e, id: `${r}-${n}`, - }) + }), )); }); }), @@ -14312,12 +14320,12 @@ e.get("produces") || e.update("produces", (e) => (0, j.Set)(e).merge(n)), e - ) + ), ); } return (0, j.Map)(); - }) - ) + }), + ), ), re = (0, S.P1)(L, (e) => { const t = e.get("tags", (0, j.List)()); @@ -14331,7 +14339,7 @@ return d()((n = h()(r).call(r, j.Map.isMap))).call( n, (e) => e.get("name") === t, - (0, j.Map)() + (0, j.Map)(), ); }, se = (0, S.P1)(ne, re, (e, t) => @@ -14344,15 +14352,15 @@ : g()(n).call( n, (e, n) => e.update(n, (0, j.List)(), (e) => e.push(t)), - e + e, ); }, g()(t).call( t, (e, t) => e.set(t.get("name"), (0, j.List)()), - (0, j.OrderedMap)() - ) - ) + (0, j.OrderedMap)(), + ), + ), ), ie = (e) => (t) => { var n; @@ -14364,8 +14372,8 @@ (e, t) => { let n = "function" == typeof o ? o : _.wh.tagsSorter[o]; return n ? n(e, t) : null; - } - )) + }, + )), ).call(n, (t, n) => { let r = "function" == typeof s ? s : _.wh.operationsSorter[s], o = r ? v()(t).call(t, r) : t; @@ -14382,16 +14390,16 @@ de = (e, t, n) => { const r = F(e).getIn( ["paths", ...t, "parameters"], - (0, j.OrderedMap)() + (0, j.OrderedMap)(), ), o = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, j.OrderedMap)() + (0, j.OrderedMap)(), ), s = u()(r).call(r, (e) => { const t = o.get(`${n.get("in")}.${n.get("name")}`), r = o.get( - `${n.get("in")}.${n.get("name")}.hash-${n.hashCode()}` + `${n.get("in")}.${n.get("name")}.hash-${n.hashCode()}`, ); return (0, j.OrderedMap)().merge(e, t, r); }); @@ -14400,25 +14408,25 @@ (e) => e.get("in") === n.get("in") && e.get("name") === n.get("name"), - (0, j.OrderedMap)() + (0, j.OrderedMap)(), ); }, me = (e, t, n, r) => { const o = `${r}.${n}`; return e.getIn( ["meta", "paths", ...t, "parameter_inclusions", o], - !1 + !1, ); }, ge = (e, t, n, r) => { const o = F(e).getIn( ["paths", ...t, "parameters"], - (0, j.OrderedMap)() + (0, j.OrderedMap)(), ), s = d()(o).call( o, (e) => e.get("in") === r && e.get("name") === n, - (0, j.OrderedMap)() + (0, j.OrderedMap)(), ); return de(e, t, s); }, @@ -14427,7 +14435,7 @@ const o = F(e).getIn(["paths", t, n], (0, j.OrderedMap)()), s = e.getIn(["meta", "paths", t, n], (0, j.OrderedMap)()), i = u()((r = o.get("parameters", (0, j.List)()))).call(r, (r) => - de(e, [t, n], r) + de(e, [t, n], r), ); return (0, j.OrderedMap)().merge(o, s).set("parameters", i); }; @@ -14435,13 +14443,13 @@ t = t || []; let o = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, j.fromJS)([]) + (0, j.fromJS)([]), ); return ( d()(o).call( o, (e) => - j.Map.isMap(e) && e.get("name") === n && e.get("in") === r + j.Map.isMap(e) && e.get("name") === n && e.get("in") === r, ) || (0, j.Map)() ); } @@ -14461,7 +14469,7 @@ : t.get("value"); return e.set((0, _.V9)(t, { allowHashes: !1 }), r); }, - (0, j.fromJS)({}) + (0, j.fromJS)({}), ); } function Ee(e) { @@ -14480,7 +14488,7 @@ if (j.List.isList(e)) return w()(e).call( e, - (e) => j.Map.isMap(e) && e.get("type") === t + (e) => j.Map.isMap(e) && e.get("type") === t, ); } function Se(e, t) { @@ -14549,7 +14557,7 @@ t = t || []; let n = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, j.fromJS)([]) + (0, j.fromJS)([]), ); const r = []; return ( @@ -14566,7 +14574,7 @@ let r = { requestBody: !1, requestContentType: {} }, o = e.getIn( ["resolvedSubtrees", "paths", ...t, "requestBody"], - (0, j.fromJS)([]) + (0, j.fromJS)([]), ); return ( o.size < 1 || @@ -14586,7 +14594,7 @@ if ((n || r) && n === r) return !0; let o = e.getIn( ["resolvedSubtrees", "paths", ...t, "requestBody", "content"], - (0, j.fromJS)([]) + (0, j.fromJS)([]), ); if (o.size < 2 || !n || !r) return !1; let s = o.getIn([n, "schema", "properties"], (0, j.fromJS)([])), @@ -14891,7 +14899,7 @@ a = e.call( this, - S(t, { name: n, index: r, operation: o, tree: s }) + S(t, { name: n, index: r, operation: o, tree: s }), ) || this; return ( (a.name = n), @@ -14997,7 +15005,7 @@ "TEST_OPERATION_FAILED", s, t, - e + e, ); return (i.newDocument = e), i; } @@ -15010,7 +15018,7 @@ "OPERATION_OP_INVALID", s, t, - e + e, ); return i; } @@ -15030,7 +15038,7 @@ ("prototype" == h && c > 0 && "constructor" == a[c - 1]))) ) throw new TypeError( - "JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README" + "JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README", ); if ( (n && @@ -15050,7 +15058,7 @@ "OPERATION_PATH_ILLEGAL_ARRAY_INDEX", s, t, - e + e, ); b(h) && (h = ~~h); } @@ -15061,7 +15069,7 @@ "OPERATION_VALUE_OUT_OF_BOUNDS", s, t, - e + e, ); if (!1 === (i = A[t.op].call(t, l, h, e)).test) throw new j( @@ -15069,7 +15077,7 @@ "TEST_OPERATION_FAILED", s, t, - e + e, ); return i; } @@ -15080,7 +15088,7 @@ "TEST_OPERATION_FAILED", s, t, - e + e, ); return i; } @@ -15090,7 +15098,7 @@ "OPERATION_PATH_UNRESOLVABLE", s, t, - e + e, ); } } @@ -15102,7 +15110,7 @@ ) throw new j( "Patch sequence must be an array", - "SEQUENCE_NOT_AN_ARRAY" + "SEQUENCE_NOT_AN_ARRAY", ); r || (e = v(e)); for (var s = new Array(t.length), i = 0, a = t.length; i < a; i++) @@ -15117,7 +15125,7 @@ "TEST_OPERATION_FAILED", n, t, - e + e, ); return r.newDocument; } @@ -15128,7 +15136,7 @@ "OPERATION_NOT_AN_OBJECT", t, e, - n + n, ); if (!k[e.op]) throw new j( @@ -15136,7 +15144,7 @@ "OPERATION_OP_INVALID", t, e, - n + n, ); if ("string" != typeof e.path) throw new j( @@ -15144,7 +15152,7 @@ "OPERATION_PATH_INVALID", t, e, - n + n, ); if (0 !== e.path.indexOf("/") && e.path.length > 0) throw new j( @@ -15152,7 +15160,7 @@ "OPERATION_PATH_INVALID", t, e, - n + n, ); if ( ("move" === e.op || "copy" === e.op) && @@ -15163,7 +15171,7 @@ "OPERATION_FROM_REQUIRED", t, e, - n + n, ); if ( ("add" === e.op || "replace" === e.op || "test" === e.op) && @@ -15174,7 +15182,7 @@ "OPERATION_VALUE_REQUIRED", t, e, - n + n, ); if ( ("add" === e.op || "replace" === e.op || "test" === e.op) && @@ -15185,7 +15193,7 @@ "OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED", t, e, - n + n, ); if (n) if ("add" == e.op) { @@ -15197,7 +15205,7 @@ "OPERATION_PATH_CANNOT_ADD", t, e, - n + n, ); } else if ( "replace" === e.op || @@ -15210,7 +15218,7 @@ "OPERATION_PATH_UNRESOLVABLE", t, e, - n + n, ); } else if ("move" === e.op || "copy" === e.op) { var i = R([{ op: "_get", path: e.from, value: void 0 }], n); @@ -15220,7 +15228,7 @@ "OPERATION_FROM_UNRESOLVABLE", t, e, - n + n, ); } } @@ -15229,7 +15237,7 @@ if (!Array.isArray(e)) throw new j( "Patch sequence must be an array", - "SEQUENCE_NOT_AN_ARRAY" + "SEQUENCE_NOT_AN_ARRAY", ); if (t) N(v(t), v(e), n || !0); else { @@ -15444,8 +15452,8 @@ }), e ), - [] - ) + [], + ), ); } else if ("replace" === t.op && "" === t.path) { let { value: r } = t; @@ -15521,7 +15529,7 @@ ? "" : `/${e .map((e) => - (e + "").replace(/~/g, "~0").replace(/\//g, "~1") + (e + "").replace(/~/g, "~0").replace(/\//g, "~1"), ) .join("/")}` : e; @@ -15767,7 +15775,7 @@ (e) => ( (c = `${c}/${De(e)}`), o[c] && o[c].some((e) => Le(e, i) || Le(i, e)) - ) + ), ); if (u) return !0; return void (o[a] = (o[a] || []).concat(i)); @@ -15859,7 +15867,7 @@ if (!we.test(e)) { if (!t) throw new Ee( - `Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'` + `Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`, ); return ce.resolve(t, e); } @@ -15905,7 +15913,7 @@ if (void 0 === r) throw new Ee( `Could not resolve pointer: ${e} does not exist in document`, - { pointer: e } + { pointer: e }, ); return r; } @@ -15920,7 +15928,7 @@ function Me(e) { if ("string" != typeof e) return e; return new URLSearchParams( - `=${e.replace(/~1/g, "/").replace(/~0/g, "~")}` + `=${e.replace(/~1/g, "/").replace(/~0/g, "~")}`, ).get(""); } function De(e) { @@ -15968,7 +15976,7 @@ if (i) return null; i = !0; const e = new TypeError( - "Elements in allOf must be objects" + "Elements in allOf must be objects", ); return (e.fullPath = n), l.push(e); } @@ -16129,7 +16137,7 @@ }), allowMetaPatches: !1, }, - e + e, ), (this.get = this._get.bind(this)), (this.getContext = this._getContext.bind(this)), @@ -16221,7 +16229,7 @@ } nextPlugin() { return this.wrappedPlugins.find( - (e) => this.getMutationsForPlugin(e).length > 0 + (e) => this.getMutationsForPlugin(e).length > 0, ); } nextPromisedPatch() { @@ -16257,7 +16265,7 @@ return void this.debug( "updatePatches", "Got a non-object patch", - e + e, ); if ( (this.showDebug && this.allPatches.push(e), @@ -16289,7 +16297,7 @@ const t = this.promisedPatches.indexOf(e); t < 0 ? this.debug( - "Tried to remove a promisedPatch that isn't there!" + "Tried to remove a promisedPatch that isn't there!", ) : this.promisedPatches.splice(t, 1); } @@ -16361,13 +16369,13 @@ return Promise.resolve({ spec: e.state, errors: e.errors.concat( - new Error("We've reached a hard limit of 100 plugin runs") + new Error("We've reached a hard limit of 100 plugin runs"), ), }); if (t !== this.currentPlugin && this.promisedPatches.length) { const e = this.promisedPatches.map((e) => e.value); return Promise.all(e.map((e) => e.then(We, We))).then(() => - this.dispatch() + this.dispatch(), ); } return (function () { @@ -16444,7 +16452,7 @@ (e.name && e.name === n.name) || (e.$ref && e.$ref === n.$ref) || (e.$$ref && e.$$ref === n.$$ref) || - e === n + e === n, ) || i[e].push(n); } } else i[e] = t[e]; @@ -16499,7 +16507,7 @@ const n = new TextEncoder(); return Array.from(n.encode(e)) .map((e) => - `0${e.toString(16).toUpperCase()}`.slice(-2) + `0${e.toString(16).toUpperCase()}`.slice(-2), ) .map((e) => `%${e}`) .join(""); @@ -16522,7 +16530,7 @@ .reduce( (e, n) => !e || o ? `${e || ""};${t}=${n}` : `${e},${n}`, - "" + "", ); if ("form" === r) { const e = o ? `&${t}=` : ","; @@ -16556,7 +16564,7 @@ if ("matrix" === r && o) return a.reduce( (e, t) => `${e ? `${e};` : ";"}${t}=${i(n[t])}`, - "" + "", ); if ("matrix" === r) return a.reduce((e, r) => { @@ -16617,7 +16625,7 @@ } catch (e) { if (!r) throw e; const t = new Error( - r.statusText || `response status is ${r.status}` + r.statusText || `response status is ${r.status}`, ); throw ( ((t.status = r.status), @@ -16628,7 +16636,7 @@ } if (!r.ok) { const e = new Error( - r.statusText || `response status is ${r.status}` + r.statusText || `response status is ${r.status}`, ); throw ( ((e.status = r.status), @@ -16643,7 +16651,7 @@ return /(json|xml|yaml|text)\b/.test( arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] - : "" + : "", ); }; function pt(e, t) { @@ -16721,7 +16729,7 @@ : "", arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] - : {} + : {}, ), (this.data = e); } @@ -16750,7 +16758,7 @@ if (i) { if ( [typeof i.style, typeof i.explode, typeof i.allowReserved].some( - (e) => "undefined" !== e + (e) => "undefined" !== e, ) ) { const { style: t, explode: r, allowReserved: o } = i; @@ -17067,7 +17075,7 @@ if ("function" == typeof r[e[o]]) return r[e[o]].apply( r, - Array.prototype.slice.call(arguments, 0, -1) + Array.prototype.slice.call(arguments, 0, -1), ); o += 1; } @@ -17080,7 +17088,7 @@ ) return t.apply( null, - Array.prototype.slice.call(arguments, 0, -1) + Array.prototype.slice.call(arguments, 0, -1), )(r); } return n.apply(this, arguments); @@ -17132,7 +17140,7 @@ n += 1; } return !0; - }) + }), ); function Gt(e, t) { switch (e) { @@ -17182,7 +17190,7 @@ }; default: throw new Error( - "First argument to _arity must be a non-negative integer no greater than ten" + "First argument to _arity must be a non-negative integer no greater than ten", ); } } @@ -17293,7 +17301,7 @@ return !Qt(s, t, e); }, Xt(t), - o + o, ); } function hn(e, t, n, r) { @@ -17530,14 +17538,14 @@ return e(t[r]) && (n[r] = t[r]), n; }, {}, - cn(t) + cn(t), ) : (function (e, t) { for (var n = 0, r = t.length, o = []; n < r; ) e(t[n]) && (o[o.length] = t[n]), (n += 1); return o; })(e, t); - }) + }), ); const jn = $t(function (e, t) { return _n(bn(e), t); @@ -17568,8 +17576,8 @@ e, jn(function (e) { return /^\d+$/.test(e); - }, cn(e)) - ) + }, cn(e)), + ), ) .join(", ") + "]" @@ -17657,13 +17665,13 @@ return (n[r] = e(t[r])), n; }, {}, - cn(t) + cn(t), ); default: return mn(e, t); } - } - ) + }, + ), ), Nn = Number.isInteger || @@ -17798,7 +17806,7 @@ } function zn(e, t, n, r) { return e["@@transducer/result"]( - n[r](qn(e["@@transducer/step"], e), t) + n[r](qn(e["@@transducer/step"], e), t), ); } const Vn = Bn($n, zn, Un); @@ -17880,7 +17888,7 @@ })(e, Pn(n, t)); }, [], - e + e, ); }); const tr = $t(function (e, t) { @@ -17935,7 +17943,7 @@ return wn( er, Pn(n, arguments[0]), - Array.prototype.slice.call(arguments, 1) + Array.prototype.slice.call(arguments, 1), ); }); }); @@ -17957,7 +17965,7 @@ const hr = cr( Bt(function (e) { return !e; - }) + }), ); function fr(e, t) { return function () { @@ -17973,14 +17981,14 @@ ? t.apply(this, arguments) : r[e].apply( r, - Array.prototype.slice.call(arguments, 0, n - 1) + Array.prototype.slice.call(arguments, 0, n - 1), ); }; } const mr = Dn( dr("slice", function (e, t, n) { return Array.prototype.slice.call(n, e, t); - }) + }), ); const gr = Bt(dr("tail", mr(1, 1 / 0))); function yr() { @@ -17996,7 +18004,7 @@ r, mn(function (e) { return e.apply(r, n); - }, t) + }, t), ); }); }); @@ -18011,7 +18019,7 @@ (e.multiline ? "m" : "") + (e.sticky ? "y" : "") + (e.unicode ? "u" : "") + - (e.dotAll ? "s" : "") + (e.dotAll ? "s" : ""), ); } function Er(e, t, n) { @@ -18150,7 +18158,7 @@ return i && i["@@transducer/reduced"] ? zt(r) : ((r[s] = i), r); }); return Vn(o, {}, r); - }) + }), ); const Or = jr; const kr = Bt(function (e) { @@ -18256,7 +18264,7 @@ const Rr = $t( Ut(["take"], Tr, function (e, t) { return mr(0, e < 0 ? 1 / 0 : e, t); - }) + }), ); function Mr(e, t) { for (var n = t.length - 1; n >= 0 && e(t[n]); ) n -= 1; @@ -18321,7 +18329,7 @@ Ut(["dropWhile"], $r, function (e, t) { for (var n = 0, r = t.length; n < r && e(t[n]); ) n += 1; return mr(n, 1 / 0, t); - }) + }), ); const Ur = $t(function (e, t) { return e || t; @@ -18387,8 +18395,8 @@ "groupBy", Or(function (e, t) { return e.push(t), e; - }, []) - ) + }, []), + ), ); const Hr = $t(function (e, t) { if (0 === e.length || or(t)) return !1; @@ -18438,10 +18446,10 @@ if (null != n && ir(n[t])) return n[t].apply( n, - Array.prototype.slice.call(arguments, 0, e) + Array.prototype.slice.call(arguments, 0, e), ); throw new TypeError( - kn(n) + ' does not have a method named "' + t + '"' + kn(n) + ' does not have a method named "' + t + '"', ); }); }); @@ -18453,9 +18461,12 @@ const co = $t(function (e, t) { return function (n) { return function (r) { - return Pn(function (e) { - return t(e, r); - }, n(e(r))); + return Pn( + function (e) { + return t(e, r); + }, + n(e(r)), + ); }; }; }); @@ -18477,7 +18488,7 @@ return (n[r] = e(t[r], r, t)), n; }, {}, - cn(t) + cn(t), ); }); const fo = Dn(function (e, t, n) { @@ -18494,7 +18505,7 @@ return En(r) && En(o) ? e(t, r, o) : t(n, r, o); }, n, - r + r, ); }); const go = $t(function (e, t) { @@ -18503,7 +18514,7 @@ return n; }, e, - t + t, ); }); const yo = $t(function (e, t) { @@ -18570,7 +18581,7 @@ ) throw new TypeError( "‘test’ requires a value of type RegExp as its first argument; received " + - kn(e) + kn(e), ); var n; return wr(e).test(t); @@ -18602,7 +18613,7 @@ for (var n, r = 0, o = t.length, s = []; r < o; ) Qt(e, (n = t[r]), s) || (s[s.length] = n), (r += 1); return s; - }) + }), ); const $o = Dn(function (e, t, n) { return e(n) ? t(n) : n; @@ -18629,12 +18640,13 @@ get warnings() { return this.children.filter( (e) => - "annotation" === e.element && e.classes.contains("warning") + "annotation" === e.element && e.classes.contains("warning"), ); } get errors() { return this.children.filter( - (e) => "annotation" === e.element && e.classes.contains("error") + (e) => + "annotation" === e.element && e.classes.contains("error"), ); } get isEmpty() { @@ -18703,7 +18715,7 @@ var r = n.call(e, t || "default"); if ("object" !== Zo(r)) return r; throw new TypeError( - "@@toPrimitive must return a primitive value." + "@@toPrimitive must return a primitive value.", ); } return ("string" === t ? String : Number)(e); @@ -18729,7 +18741,7 @@ const rs = hr(ns); const os = Yt( 1, - ns(Array.isArray) ? Array.isArray : yr(un, Qr("Array")) + ns(Array.isArray) ? Array.isArray : yr(un, Qr("Array")), ); const ss = ur(os, io); var is = Yt(3, function (e, t, n) { @@ -18779,27 +18791,27 @@ ms = ds( ({ hasBasicElementProps: e, primitiveEq: t }) => (n) => - n instanceof Nt.W_ || (e(n) && t(void 0, n)) + n instanceof Nt.W_ || (e(n) && t(void 0, n)), ), gs = ds( ({ hasBasicElementProps: e, primitiveEq: t }) => (n) => - n instanceof Nt.RP || (e(n) && t("string", n)) + n instanceof Nt.RP || (e(n) && t("string", n)), ), ys = ds( ({ hasBasicElementProps: e, primitiveEq: t }) => (n) => - n instanceof Nt.VL || (e(n) && t("number", n)) + n instanceof Nt.VL || (e(n) && t("number", n)), ), vs = ds( ({ hasBasicElementProps: e, primitiveEq: t }) => (n) => - n instanceof Nt.zr || (e(n) && t("null", n)) + n instanceof Nt.zr || (e(n) && t("null", n)), ), bs = ds( ({ hasBasicElementProps: e, primitiveEq: t }) => (n) => - n instanceof Nt.hh || (e(n) && t("boolean", n)) + n instanceof Nt.hh || (e(n) && t("boolean", n)), ), ws = ds( ({ hasBasicElementProps: e, primitiveEq: t, hasMethod: n }) => @@ -18809,7 +18821,7 @@ t("object", r) && n("keys", r) && n("values", r) && - n("items", r)) + n("items", r)), ), Es = ds( ({ hasBasicElementProps: e, primitiveEq: t, hasMethod: n }) => @@ -18820,45 +18832,47 @@ n("push", r) && n("unshift", r) && n("map", r) && - n("reduce", r)) + n("reduce", r)), ), xs = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Nt.c6 || (e(r) && t("member", r) && n(void 0, r)) + r instanceof Nt.c6 || + (e(r) && t("member", r) && n(void 0, r)), ), Ss = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Nt.EA || (e(r) && t("link", r) && n(void 0, r)) + r instanceof Nt.EA || (e(r) && t("link", r) && n(void 0, r)), ), _s = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Nt.tK || (e(r) && t("ref", r) && n(void 0, r)) + r instanceof Nt.tK || (e(r) && t("ref", r) && n(void 0, r)), ), js = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Tt || - (e(r) && t("annotation", r) && n("array", r)) + (e(r) && t("annotation", r) && n("array", r)), ), Os = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Mt || (e(r) && t("comment", r) && n("string", r)) + r instanceof Mt || + (e(r) && t("comment", r) && n("string", r)), ), ks = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Vo || - (e(r) && t("parseResult", r) && n("array", r)) + (e(r) && t("parseResult", r) && n("array", r)), ), As = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Jo || - (e(r) && t("sourceMap", r) && n("array", r)) + (e(r) && t("sourceMap", r) && n("array", r)), ), Cs = (e) => fs("object", e) || @@ -18877,7 +18891,7 @@ null === (n = t.get) || void 0 === n ? void 0 - : n.call(t, "sourceMap") + : n.call(t, "sourceMap"), ); }, Ns = (e, t) => { @@ -18957,13 +18971,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : Js(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -19021,7 +19035,7 @@ ri = (e) => "string" == typeof ni(e), oi = ( e, - { visitFnGetter: t = ei, nodeTypeGetter: n = ni } = {} + { visitFnGetter: t = ei, nodeTypeGetter: n = ni } = {}, ) => { const r = new Array(e.length); return { @@ -19063,7 +19077,7 @@ nodeTypeGetter: l = ni, nodePredicate: c = ri, detectCycles: u = !0, - } = {} + } = {}, ) => { const p = n || {}; let h, @@ -19091,7 +19105,7 @@ ? E.slice() : Object.create( Object.getPrototypeOf(E), - Object.getOwnPropertyDescriptors(E) + Object.getOwnPropertyDescriptors(E), ); let e = 0; for (let t = 0; t < y.length; t += 1) { @@ -19167,7 +19181,7 @@ nodeTypeGetter: l = ni, nodePredicate: c = ri, detectCycles: u = !0, - } = {} + } = {}, ) => { const p = n || {}; let h, @@ -19195,7 +19209,7 @@ ? E.slice() : Object.create( Object.getPrototypeOf(E), - Object.getOwnPropertyDescriptors(E) + Object.getOwnPropertyDescriptors(E), ); let e = 0; for (let t = 0; t < y.length; t += 1) { @@ -19281,13 +19295,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : li(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -19360,20 +19374,20 @@ return si( e, t, - ci({ keyMap: r, nodeTypeGetter: ui, nodePredicate: pi }, o) + ci({ keyMap: r, nodeTypeGetter: ui, nodePredicate: pi }, o), ); }; di[Symbol.for("nodejs.util.promisify.custom")] = async ( e, t, - n = {} + n = {}, ) => { let { keyMap: r = hi } = n, o = Ys(n, ai); return si[Symbol.for("nodejs.util.promisify.custom")]( e, t, - ci({ keyMap: r, nodeTypeGetter: ui, nodePredicate: pi }, o) + ci({ keyMap: r, nodeTypeGetter: ui, nodePredicate: pi }, o), ); }; const mi = (e, t, n = {}) => { @@ -19410,13 +19424,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : gi(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -19471,7 +19485,7 @@ const r = n.get(e); ws(r) && (r.content = r.map((o, s, i) => - i === e ? (n.delete(e), n.set(t, r), t) : i + i === e ? (n.delete(e), n.set(t, r), t) : i, )); })(n, r, t) : Es(s) @@ -19479,7 +19493,7 @@ const r = n.get(e); Es(r) && (r.content = r.map((o) => - o === e ? (n.delete(e), n.set(t, r), t) : o + o === e ? (n.delete(e), n.set(t, r), t) : o, )); })(n, r, t) : xs(s) && @@ -19519,13 +19533,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : ji(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -19535,7 +19549,7 @@ "string" == typeof (null == e ? void 0 : e.type) ? e.type : ui(e), Ai = Oi( { EphemeralObject: ["content"], EphemeralArray: ["content"] }, - hi + hi, ), Ci = (e, t, n = {}) => { let { keyMap: r = Ai } = n, @@ -19552,13 +19566,13 @@ deleteNodeSymbol: Symbol.for("delete-node"), skipVisitingNodeSymbol: Symbol.for("skip-visiting-node"), }, - o - ) + o, + ), ); }; Ci[Symbol.for("nodejs.util.promisify.custom")] = async ( e, - t = {} + t = {}, ) => { let { keyMap: n = Ai } = t, r = Ys(t, _i); @@ -19574,8 +19588,8 @@ deleteNodeSymbol: Symbol.for("delete-node"), skipVisitingNodeSymbol: Symbol.for("skip-visiting-node"), }, - r - ) + r, + ), ); }; const Pi = class { @@ -19607,7 +19621,7 @@ toObject() { return Object.assign( this.reference, - Object.fromEntries(this.content) + Object.fromEntries(this.content), ); } }, @@ -19658,7 +19672,7 @@ var Fi = Yt(1, Di); var Li = ur( ns(Number.isFinite) ? Yt(1, qn(Number.isFinite, Number)) : Fi, - br(fn, [Math.floor, to]) + br(fn, [Math.floor, to]), ); var Bi = Yt(1, Li); const $i = ns(Number.isInteger) @@ -19671,14 +19685,14 @@ class zi extends Error { constructor(e) { super( - `Invalid $ref pointer "${e}". Pointers must begin with "/"` + `Invalid $ref pointer "${e}". Pointers must begin with "/"`, ), (this.name = this.constructor.name), (this.message = `Invalid $ref pointer "${e}". Pointers must begin with "/"`), "function" == typeof Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : (this.stack = new Error( - `Invalid $ref pointer "${e}". Pointers must begin with "/"` + `Invalid $ref pointer "${e}". Pointers must begin with "/"`, ).stack); } } @@ -20986,13 +21000,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : nl(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -21004,7 +21018,7 @@ MediaElement: ["content"], LinkDescriptionElement: ["content"], }, - hi + hi, ); function sl(e, t) { var n = Object.keys(e); @@ -21028,13 +21042,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : sl(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -21052,7 +21066,7 @@ retrieveFixedFields(e) { return yr( po(["visitors", ...e, "fixedFields"]), - cn + cn, )(this.specObj); }, retrieveVisitor(e) { @@ -21070,7 +21084,7 @@ return ( Uo(this.fallbackVisitorPrototype) && (this.fallbackVisitorPrototype = Object.getPrototypeOf( - this.retrieveVisitorInstance(["value"]) + this.retrieveVisitorInstance(["value"]), )), this.fallbackVisitorPrototype === o ? t.clone() @@ -21101,7 +21115,7 @@ ) { const n = this.toRefractedElement( [...t, "fixedFields", r.toValue()], - e + e, ), s = new Nt.c6(r.clone(), n); this.copyMetaAndAttributes(o, s), @@ -21382,7 +21396,7 @@ e.forEach((e) => { const t = this.toRefractedElement( ["document", "objects", "LinkDescription"], - e + e, ); this.element.push(t); }), @@ -21449,7 +21463,7 @@ })(e) || (function () { throw new TypeError( - "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." + "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.", ); })() ); @@ -21463,10 +21477,10 @@ Io( pr(function (e, t) { return e.length > t.length; - }) + }), ), Yr, - Rn("length") + Rn("length"), ), oc = kr(function (e, t, n) { var r = n.apply(void 0, tc(e)); @@ -21486,14 +21500,14 @@ return Kn(oc(n), void 0, e); }); }, - qo + qo, ), ic = Xs(al, { props: { alternator: [] }, methods: { enter(e) { const t = this.alternator.map( - ({ predicate: e, specPath: t }) => no(e, Gn(t), qo) + ({ predicate: e, specPath: t }) => no(e, Gn(t), qo), ), n = sc(t)(e); return (this.element = this.toRefractedElement(n, e)), ti; @@ -21606,24 +21620,24 @@ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Va || - (e(r) && t("JSONSchemaDraft4", r) && n("object", r)) + (e(r) && t("JSONSchemaDraft4", r) && n("object", r)), ), uc = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Ja || - (e(r) && t("JSONReference", r) && n("object", r)) + (e(r) && t("JSONReference", r) && n("object", r)), ), pc = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Ha || (e(r) && t("media", r) && n("object", r)) + r instanceof Ha || (e(r) && t("media", r) && n("object", r)), ), hc = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Za || - (e(r) && t("linkDescription", r) && n("object", r)) + (e(r) && t("linkDescription", r) && n("object", r)), ), fc = { namespace: (e) => { @@ -21659,13 +21673,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : dc(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -21702,7 +21716,7 @@ ], plugins: n = [], specificationObj: r = lc, - } = {} + } = {}, ) => { const o = (0, Nt.Qc)(e), s = Ya(r), @@ -21730,18 +21744,18 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : yc(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } return e; - })({ specPath: e }, n) + })({ specPath: e }, n), ); (Va.refract = bc([ "visitors", @@ -22055,13 +22069,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : Mc(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -22097,7 +22111,7 @@ ServerVariableElement: ["content"], TagElement: ["content"], }, - hi + hi, ); function Lc(e, t) { var n = Object.keys(e); @@ -22121,13 +22135,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : Lc(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -22160,7 +22174,7 @@ retrieveFixedFields(e) { return yr( po(["visitors", ...e, "fixedFields"]), - cn + cn, )(this.specObj); }, retrieveVisitor(e) { @@ -22178,7 +22192,7 @@ return ( Uo(this.fallbackVisitorPrototype) && (this.fallbackVisitorPrototype = Object.getPrototypeOf( - this.retrieveVisitorInstance(["value"]) + this.retrieveVisitorInstance(["value"]), )), this.fallbackVisitorPrototype === o ? t.clone() @@ -22229,7 +22243,7 @@ ) { const n = this.toRefractedElement( [...t, "fixedFields", r.toValue()], - e + e, ), s = new Nt.c6(r.clone(), n); this.copyMetaAndAttributes(o, s), @@ -22241,7 +22255,7 @@ ) { const e = this.toRefractedElement( ["document", "extension"], - o + o, ); this.element.content.push(e); } else @@ -22420,7 +22434,7 @@ ) { const e = this.toRefractedElement( ["document", "extension"], - n + n, ); this.element.content.push(e); } else if ( @@ -22549,7 +22563,7 @@ methods: { enter(e) { const t = this.alternator.map( - ({ predicate: e, specPath: t }) => no(e, Gn(t), qo) + ({ predicate: e, specPath: t }) => no(e, Gn(t), qo), ), n = sc(t)(e); return (this.element = this.toRefractedElement(n, e)), ti; @@ -22560,49 +22574,52 @@ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Zi || - (e(r) && t("callback", r) && n("object", r)) + (e(r) && t("callback", r) && n("object", r)), ), $u = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Xi || - (e(r) && t("components", r) && n("object", r)) + (e(r) && t("components", r) && n("object", r)), ), qu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof ea || (e(r) && t("contact", r) && n("object", r)) + r instanceof ea || + (e(r) && t("contact", r) && n("object", r)), ), Uu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof ia || (e(r) && t("example", r) && n("object", r)) + r instanceof ia || + (e(r) && t("example", r) && n("object", r)), ), zu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof la || - (e(r) && t("externalDocumentation", r) && n("object", r)) + (e(r) && t("externalDocumentation", r) && n("object", r)), ), Vu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof ua || (e(r) && t("header", r) && n("object", r)) + r instanceof ua || (e(r) && t("header", r) && n("object", r)), ), Wu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof ha || (e(r) && t("info", r) && n("object", r)) + r instanceof ha || (e(r) && t("info", r) && n("object", r)), ), Ju = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof da || (e(r) && t("license", r) && n("object", r)) + r instanceof da || + (e(r) && t("license", r) && n("object", r)), ), Ku = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof ga || (e(r) && t("link", r) && n("object", r)) + r instanceof ga || (e(r) && t("link", r) && n("object", r)), ), Hu = (e) => { if (!Ku(e)) return !1; @@ -22613,36 +22630,37 @@ Gu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof _a || (e(r) && t("openapi", r) && n("string", r)) + r instanceof _a || + (e(r) && t("openapi", r) && n("string", r)), ), Zu = ds( ({ - hasBasicElementProps: e, - isElementType: t, - primitiveEq: n, - hasClass: r, - }) => + hasBasicElementProps: e, + isElementType: t, + primitiveEq: n, + hasClass: r, + }) => (o) => o instanceof Oa || - (e(o) && t("openApi3_0", o) && n("object", o) && r("api", o)) + (e(o) && t("openApi3_0", o) && n("object", o) && r("api", o)), ), Yu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Aa || - (e(r) && t("operation", r) && n("object", r)) + (e(r) && t("operation", r) && n("object", r)), ), Xu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Pa || - (e(r) && t("parameter", r) && n("object", r)) + (e(r) && t("parameter", r) && n("object", r)), ), Qu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Ia || - (e(r) && t("pathItem", r) && n("object", r)) + (e(r) && t("pathItem", r) && n("object", r)), ), ep = (e) => { if (!Qu(e)) return !1; @@ -22653,13 +22671,13 @@ tp = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Ra || (e(r) && t("paths", r) && n("object", r)) + r instanceof Ra || (e(r) && t("paths", r) && n("object", r)), ), np = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Da || - (e(r) && t("reference", r) && n("object", r)) + (e(r) && t("reference", r) && n("object", r)), ), rp = (e) => { if (!np(e)) return !1; @@ -22671,48 +22689,48 @@ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof La || - (e(r) && t("requestBody", r) && n("object", r)) + (e(r) && t("requestBody", r) && n("object", r)), ), sp = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof $a || - (e(r) && t("response", r) && n("object", r)) + (e(r) && t("response", r) && n("object", r)), ), ip = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Ua || - (e(r) && t("responses", r) && n("object", r)) + (e(r) && t("responses", r) && n("object", r)), ), ap = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof wc || (e(r) && t("schema", r) && n("object", r)) + r instanceof wc || (e(r) && t("schema", r) && n("object", r)), ), lp = (e) => bs(e) && e.classes.includes("boolean-json-schema"), cp = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof xc || - (e(r) && t("securityRequirement", r) && n("object", r)) + (e(r) && t("securityRequirement", r) && n("object", r)), ), up = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Oc || (e(r) && t("server", r) && n("object", r)) + r instanceof Oc || (e(r) && t("server", r) && n("object", r)), ), pp = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Ac || - (e(r) && t("serverVariable", r) && n("object", r)) + (e(r) && t("serverVariable", r) && n("object", r)), ), hp = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof va || - (e(r) && t("mediaType", r) && n("object", r)) + (e(r) && t("mediaType", r) && n("object", r)), ), fp = Xs(Lu, Yc, { props: { @@ -22734,7 +22752,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "schema" + "schema", ), t ); @@ -22817,7 +22835,7 @@ if (ws(e)) { const t = this.toRefractedElement( ["document", "objects", "SecurityRequirement"], - e + e, ); this.element.push(t); } else this.element.push(e.clone()); @@ -22928,7 +22946,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "schema" + "schema", ), t ); @@ -22971,7 +22989,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "schema" + "schema", ), t ); @@ -23104,7 +23122,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "schema" + "schema", ), t ); @@ -23165,7 +23183,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "schema" + "schema", ), t ); @@ -23174,12 +23192,12 @@ }), Nh = Object.fromEntries( Object.entries( - lc.visitors.document.objects.JSONSchema.fixedFields + lc.visitors.document.objects.JSONSchema.fixedFields, ).map(([e, t]) => t === lc.visitors.JSONSchemaOrJSONReferenceVisitor ? [e, Ph] - : [e, t] - ) + : [e, t], + ), ), Ih = Xs(Zc, Yc, { props: { @@ -23830,8 +23848,8 @@ : ["document", "objects", "Response"], fieldPatternPredicate: Mo( new RegExp( - `^(1XX|2XX|3XX|4XX|5XX|${Ao(100, 600).join("|")})$` - ) + `^(1XX|2XX|3XX|4XX|5XX|${Ao(100, 600).join("|")})$`, + ), ), canSupportSpecificationExtensions: !0, }, @@ -23876,12 +23894,12 @@ np(this.element) ? this.element.setMetaProperty( "referenced-element", - "response" + "response", ) : sp(this.element) && this.element.setMetaProperty( "http-status-code", - "default" + "default", ), t ); @@ -23971,7 +23989,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "requestBody" + "requestBody", ), t ); @@ -24212,13 +24230,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : um(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -24251,7 +24269,7 @@ }, example: kh, deprecated: Ah, - } + }, ), }, dm = { @@ -24604,13 +24622,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : gm(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -24646,7 +24664,7 @@ "$visitor", ], plugins: n = [], - } = {} + } = {}, ) => { const r = (0, Nt.Qc)(e), o = Ya(dm), @@ -24674,18 +24692,18 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : bm(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } return e; - })({ specPath: e }, n) + })({ specPath: e }, n), ); (Zi.refract = Em([ "visitors", @@ -24949,7 +24967,7 @@ Qo( Nm, "default", - new Nm("https://spec.openapis.org/oas/3.1/dialect/base") + new Nm("https://spec.openapis.org/oas/3.1/dialect/base"), ); const Im = Nm; const Tm = class extends da { @@ -25726,55 +25744,58 @@ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof xm || - (e(r) && t("callback", r) && n("object", r)) + (e(r) && t("callback", r) && n("object", r)), ), Fg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Sm || - (e(r) && t("components", r) && n("object", r)) + (e(r) && t("components", r) && n("object", r)), ), Lg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof _m || (e(r) && t("contact", r) && n("object", r)) + r instanceof _m || + (e(r) && t("contact", r) && n("object", r)), ), Bg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof km || (e(r) && t("example", r) && n("object", r)) + r instanceof km || + (e(r) && t("example", r) && n("object", r)), ), $g = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Am || - (e(r) && t("externalDocumentation", r) && n("object", r)) + (e(r) && t("externalDocumentation", r) && n("object", r)), ), qg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Cm || (e(r) && t("header", r) && n("object", r)) + r instanceof Cm || (e(r) && t("header", r) && n("object", r)), ), Ug = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Pm || (e(r) && t("info", r) && n("object", r)) + r instanceof Pm || (e(r) && t("info", r) && n("object", r)), ), zg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Im || - (e(r) && t("jsonSchemaDialect", r) && n("string", r)) + (e(r) && t("jsonSchemaDialect", r) && n("string", r)), ), Vg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Tm || (e(r) && t("license", r) && n("object", r)) + r instanceof Tm || + (e(r) && t("license", r) && n("object", r)), ), Wg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Rm || (e(r) && t("link", r) && n("object", r)) + r instanceof Rm || (e(r) && t("link", r) && n("object", r)), ), Jg = (e) => { if (!Wg(e)) return !1; @@ -25785,36 +25806,37 @@ Kg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Lm || (e(r) && t("openapi", r) && n("string", r)) + r instanceof Lm || + (e(r) && t("openapi", r) && n("string", r)), ), Hg = ds( ({ - hasBasicElementProps: e, - isElementType: t, - primitiveEq: n, - hasClass: r, - }) => + hasBasicElementProps: e, + isElementType: t, + primitiveEq: n, + hasClass: r, + }) => (o) => o instanceof $m || - (e(o) && t("openApi3_1", o) && n("object", o) && r("api", o)) + (e(o) && t("openApi3_1", o) && n("object", o) && r("api", o)), ), Gg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof qm || - (e(r) && t("operation", r) && n("object", r)) + (e(r) && t("operation", r) && n("object", r)), ), Zg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Um || - (e(r) && t("parameter", r) && n("object", r)) + (e(r) && t("parameter", r) && n("object", r)), ), Yg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof zm || - (e(r) && t("pathItem", r) && n("object", r)) + (e(r) && t("pathItem", r) && n("object", r)), ), Xg = (e) => { if (!Yg(e)) return !1; @@ -25825,13 +25847,13 @@ Qg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Vm || (e(r) && t("paths", r) && n("object", r)) + r instanceof Vm || (e(r) && t("paths", r) && n("object", r)), ), ey = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Jm || - (e(r) && t("reference", r) && n("object", r)) + (e(r) && t("reference", r) && n("object", r)), ), ty = (e) => { if (!ey(e)) return !1; @@ -25843,48 +25865,48 @@ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Km || - (e(r) && t("requestBody", r) && n("object", r)) + (e(r) && t("requestBody", r) && n("object", r)), ), ry = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Hm || - (e(r) && t("response", r) && n("object", r)) + (e(r) && t("response", r) && n("object", r)), ), oy = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Gm || - (e(r) && t("responses", r) && n("object", r)) + (e(r) && t("responses", r) && n("object", r)), ), sy = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Ym || (e(r) && t("schema", r) && n("object", r)) + r instanceof Ym || (e(r) && t("schema", r) && n("object", r)), ), iy = (e) => bs(e) && e.classes.includes("boolean-json-schema"), ay = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Xm || - (e(r) && t("securityRequirement", r) && n("object", r)) + (e(r) && t("securityRequirement", r) && n("object", r)), ), ly = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof eg || (e(r) && t("server", r) && n("object", r)) + r instanceof eg || (e(r) && t("server", r) && n("object", r)), ), cy = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof tg || - (e(r) && t("serverVariable", r) && n("object", r)) + (e(r) && t("serverVariable", r) && n("object", r)), ), uy = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Mm || - (e(r) && t("mediaType", r) && n("object", r)) + (e(r) && t("mediaType", r) && n("object", r)), ), py = Xs({ props: { parent: null }, @@ -25912,8 +25934,8 @@ : null !== this.openApiGenericElement && gs( this.openApiGenericElement.get( - "jsonSchemaDialect" - ) + "jsonSchemaDialect", + ), ) ? this.openApiGenericElement .get("jsonSchemaDialect") @@ -25935,7 +25957,7 @@ : n.toValue(), null === (r = this.parent.$schema) || void 0 === r ? void 0 - : r.toValue() + : r.toValue(), ); this.element.setMetaProperty("inherited$schema", e); } @@ -25966,7 +25988,7 @@ (this.element.classes.push("reference-element"), this.element.setMetaProperty( "referenced-element", - "schema" + "schema", )), r ); @@ -26027,7 +26049,7 @@ if (ws(e)) { const t = this.toRefractedElement( ["document", "objects", "Schema"], - e + e, ); this.element.push(t); } else { @@ -26053,7 +26075,7 @@ if (ws(e)) { const t = this.toRefractedElement( ["document", "objects", "Schema"], - e + e, ); this.element.push(t); } else { @@ -26079,7 +26101,7 @@ if (ws(e)) { const t = this.toRefractedElement( ["document", "objects", "Schema"], - e + e, ); this.element.push(t); } else { @@ -26112,7 +26134,7 @@ if (ws(e)) { const t = this.toRefractedElement( ["document", "objects", "Schema"], - e + e, ); this.element.push(t); } else { @@ -27155,13 +27177,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : Vv(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -27197,7 +27219,7 @@ ServerVariableElement: ["content"], TagElement: ["content"], }, - hi + hi, ), Kv = { namespace: (e) => { @@ -27261,13 +27283,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : Hv(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -27284,7 +27306,7 @@ isArrayElement: Es, isObjectElement: ws, includesClasses: Is, - } + }, ), namespace: e, }; @@ -27312,7 +27334,7 @@ "$visitor", ], plugins: n = [], - } = {} + } = {}, ) => { const r = (0, Nt.Qc)(e), o = Ya(zv), @@ -27340,18 +27362,18 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : Yv(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } return e; - })({ specPath: e }, n) + })({ specPath: e }, n), ); (xm.refract = Qv([ "visitors", @@ -27613,7 +27635,7 @@ const nb = new tb( "application/vnd.oai.openapi;version=3.1.0", "application/vnd.oai.openapi+json;version=3.1.0", - "application/vnd.oai.openapi+yaml;version=3.1.0" + "application/vnd.oai.openapi+yaml;version=3.1.0", ); var rb = n(34155), ob = kr(function (e, t) { @@ -27631,7 +27653,7 @@ !(function (e, t, n) { if (null == n || null == e || null == t) throw TypeError( - "Input values must not be `null` or `undefined`" + "Input values must not be `null` or `undefined`", ); })(e, t, n), cb(n, "str"), @@ -27645,7 +27667,7 @@ ) ) throw TypeError( - "`searchValue` must be a string or an regexp" + "`searchValue` must be a string or an regexp", ); })(e); var r = new RegExp(ab(e) ? e : lb(e), "g"); @@ -27917,7 +27939,7 @@ const t = new e.constructor( e.content, e.meta.clone(), - e.attributes + e.attributes, ); t.classes.push("result"), (n = new Vo([t])), (r = !0); } @@ -28039,13 +28061,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : Xb(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -28081,8 +28103,8 @@ return !t.allowEmpty && n.isEmpty ? Promise.reject( new Fb( - `Error while parsing file "${e.uri}". File is empty.` - ) + `Error while parsing file "${e.uri}". File is empty.`, + ), ) : n; } catch (t) { @@ -28181,7 +28203,7 @@ ...n, t.$id.toValue(), ]); - })(r, e) === r + })(r, e) === r, ); if (Uo(s)) throw new nw(`Evaluation failed on URI: "${e}"`); let i, a; @@ -28212,13 +28234,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : dw(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -28258,7 +28280,7 @@ async toReference(e) { if (this.reference.depth >= this.options.resolve.maxDepth) throw new Gb( - `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"` + `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`, ); const t = this.toBaseURI(e), { refSet: n } = this.reference; @@ -28272,10 +28294,10 @@ parse: mw( mw({}, this.options.parse), {}, - { mediaType: "text/plain" } + { mediaType: "text/plain" }, ), - } - ) + }, + ), ), o = jb({ uri: t, @@ -28316,7 +28338,7 @@ ) { if (gs(e.operationRef) && gs(e.operationId)) throw new Error( - "LinkElement operationRef and operationId are mutually exclusive." + "LinkElement operationRef and operationId are mutually exclusive.", ); if (Jg(e)) { var t; @@ -28337,7 +28359,7 @@ return; if (e.hasKey("value") && gs(e.externalValue)) throw new Error( - "ExampleElement value and externalValue fields are mutually exclusive." + "ExampleElement value and externalValue fields are mutually exclusive.", ); const n = null === (t = e.externalValue) || void 0 === t @@ -28375,7 +28397,9 @@ const n = await this.toReference(e.$ref.toValue()); this.indirections.push(e); const r = Hi( - null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue() + null === (t = e.$ref) || void 0 === t + ? void 0 + : t.toValue(), ); let o = Ki(r, n.value.result); if (Cs(o)) { @@ -28393,7 +28417,7 @@ this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); const s = yw({ reference: n, @@ -28410,7 +28434,9 @@ const n = await this.toReference(e.$ref.toValue()); this.indirections.push(e); const r = Hi( - null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue() + null === (t = e.$ref) || void 0 === t + ? void 0 + : t.toValue(), ); let o = Ki(r, n.value.result); if ( @@ -28418,13 +28444,13 @@ this.indirections.includes(o)) ) throw new Error( - "Recursive Path Item Object reference detected" + "Recursive Path Item Object reference detected", ); if ( this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); const s = yw({ reference: n, @@ -28468,13 +28494,13 @@ } if ((this.visited.add(e), this.indirections.includes(l))) throw new Error( - "Recursive Schema Object reference detected" + "Recursive Schema Object reference detected", ); if ( this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); const c = yw({ reference: t, @@ -28512,7 +28538,7 @@ : Hg( null === (t = e.parseResult) || void 0 === t ? void 0 - : t.result + : t.result, ); }, async resolve(e, t) { @@ -28566,7 +28592,7 @@ const n = String(Ri(e.operationId)), r = o.find( (e) => - Ri(e.meta.get("originalOperationId")) === n + Ri(e.meta.get("originalOperationId")) === n, ); void 0 !== r && ((e.operationId = @@ -28675,7 +28701,7 @@ (n.security = new Pd( null === (a = t) || void 0 === a ? void 0 - : a.content + : a.content, )); }, }, @@ -28934,8 +28960,8 @@ f()( f()({}, n), {}, - { headers: new Headers(n.headers) } - ) + { headers: new Headers(n.headers) }, + ), )), n.headers.delete("Content-Type"); } @@ -28945,8 +28971,8 @@ redirects: i, follow: a, }, - this.swaggerHTTPClientConfig - ) + this.swaggerHTTPClientConfig, + ), ) ).text.arrayBuffer(); } catch (t) { @@ -28982,7 +29008,7 @@ async parse(e) { if (this.sourceMap) throw new Fb( - "json-swagger-client parser plugin doesn't support sourceMaps option" + "json-swagger-client parser plugin doesn't support sourceMaps option", ); const t = new Vo(), n = e.toString(); @@ -29021,7 +29047,7 @@ async parse(e) { if (this.sourceMap) throw new Fb( - "yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option" + "yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option", ); const t = new Vo(), n = e.toString(); @@ -29042,7 +29068,7 @@ fileExtensions: [".json"], mediaTypes: new tb( ...nb.filterByFormat("generic"), - ...nb.filterByFormat("json") + ...nb.filterByFormat("json"), ), detectionRegExp: /"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))"/, @@ -29067,7 +29093,7 @@ async parse(e) { if (this.sourceMap) throw new Fb( - "openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option" + "openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option", ); const t = new Vo(), n = e.toString(); @@ -29088,7 +29114,7 @@ fileExtensions: [".yaml", ".yml"], mediaTypes: new tb( ...nb.filterByFormat("generic"), - ...nb.filterByFormat("yaml") + ...nb.filterByFormat("yaml"), ), detectionRegExp: /(?^(["']?)openapi\2\s*:\s*(["']?)(?3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))")/m, @@ -29113,7 +29139,7 @@ async parse(e) { if (this.sourceMap) throw new Fb( - "openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option" + "openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option", ); const t = new Vo(), n = e.toString(); @@ -29159,13 +29185,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : $w(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -29204,7 +29230,7 @@ async toReference(e) { if (this.reference.depth >= this.options.resolve.maxDepth) throw new Gb( - `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"` + `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`, ); const t = this.toBaseURI(e), { refSet: n } = this.reference; @@ -29218,10 +29244,10 @@ parse: qw( qw({}, this.options.parse), {}, - { mediaType: "text/plain" } + { mediaType: "text/plain" }, ), - } - ) + }, + ), ), o = jb({ uri: t, @@ -29238,14 +29264,14 @@ const h = await this.toReference( null === (s = e.$ref) || void 0 === s ? void 0 - : s.toValue() + : s.toValue(), ), { uri: f } = h, d = Eb( f, null === (i = e.$ref) || void 0 === i ? void 0 - : i.toValue() + : i.toValue(), ); this.indirections.push(e); const m = Hi(d); @@ -29265,7 +29291,7 @@ this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); p.add(e); const y = zw({ @@ -29314,14 +29340,14 @@ const u = await this.toReference( null === (s = e.$ref) || void 0 === s ? void 0 - : s.toValue() + : s.toValue(), ), { uri: p } = u, h = Eb( p, null === (i = e.$ref) || void 0 === i ? void 0 - : i.toValue() + : i.toValue(), ); this.indirections.push(e); const f = Hi(h); @@ -29331,13 +29357,13 @@ this.indirections.includes(d)) ) throw new Error( - "Recursive Path Item Object reference detected" + "Recursive Path Item Object reference detected", ); if ( this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); c.add(e); const m = zw({ @@ -29353,7 +29379,7 @@ const g = new zm( [...d.content], d.meta.clone(), - d.attributes.clone() + d.attributes.clone(), ); return ( e.forEach((e, t, n) => { @@ -29375,7 +29401,7 @@ if (!this.options.resolve.external && Jg(e)) return; if (gs(e.operationRef) && gs(e.operationId)) throw new Error( - "LinkElement operationRef and operationId fields are mutually exclusive." + "LinkElement operationRef and operationId fields are mutually exclusive.", ); let t; if (gs(e.operationRef)) { @@ -29383,19 +29409,19 @@ const s = Hi( null === (n = e.operationRef) || void 0 === n ? void 0 - : n.toValue() + : n.toValue(), ), i = await this.toReference( null === (r = e.operationRef) || void 0 === r ? void 0 - : r.toValue() + : r.toValue(), ); (t = Ki(s, i.value.result)), Cs(t) && (t = qm.refract(t)), (t = new qm( [...t.content], t.meta.clone(), - t.attributes.clone() + t.attributes.clone(), )), t.setMetaProperty("ref-origin", i.uri), null === (o = e.operationRef) || @@ -29411,12 +29437,12 @@ if ( ((t = rw( (e) => Gg(e) && e.operationId.equals(n), - r.value.result + r.value.result, )), Uo(t)) ) throw new Error( - `OperationElement(operationId=${n}) not found.` + `OperationElement(operationId=${n}) not found.`, ); null === (i = e.operationId) || void 0 === i || @@ -29430,17 +29456,17 @@ return; if (e.hasKey("value") && gs(e.externalValue)) throw new Error( - "ExampleElement value and externalValue fields are mutually exclusive." + "ExampleElement value and externalValue fields are mutually exclusive.", ); const n = await this.toReference( null === (t = e.externalValue) || void 0 === t ? void 0 - : t.toValue() + : t.toValue(), ), r = new n.value.result.constructor( n.value.result.content, n.value.result.meta.clone(), - n.value.result.attributes.clone() + n.value.result.attributes.clone(), ); r.setMetaProperty("ref-origin", n.uri), (e.value = r); }, @@ -29482,13 +29508,13 @@ } if (this.indirections.includes(g)) throw new Error( - "Recursive Schema Object reference detected" + "Recursive Schema Object reference detected", ); if ( this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); a.add(e); const y = zw({ @@ -29520,7 +29546,7 @@ const b = new Ym( [...g.content], g.meta.clone(), - g.attributes.clone() + g.attributes.clone(), ); return ( e.forEach((e, t, n) => { @@ -29553,7 +29579,7 @@ : Hg( null === (t = e.parseResult) || void 0 === t ? void 0 - : t.result + : t.result, ); }, async dereference(e, t) { @@ -29644,7 +29670,7 @@ this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); if (!this.useCircularStructures) { if (t.some((e) => e.has(c))) { @@ -29652,7 +29678,7 @@ const t = new Jm( { $ref: a }, e.meta.clone(), - e.attributes.clone() + e.attributes.clone(), ); return t.get("$ref").classes.push("cycle"), t; } @@ -29708,7 +29734,7 @@ ], }); return void this.options.dereference.dereferenceOpts?.errors?.push?.( - s + s, ); } }, @@ -29735,7 +29761,7 @@ this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); if (!this.useCircularStructures) { if (t.some((e) => e.has(c))) { @@ -29743,7 +29769,7 @@ const t = new zm( { $ref: a }, e.meta.clone(), - e.attributes.clone() + e.attributes.clone(), ); return t.get("$ref").classes.push("cycle"), t; } @@ -29767,7 +29793,7 @@ const p = new zm( [...c.content], c.meta.clone(), - c.attributes.clone() + c.attributes.clone(), ); if ( (e.forEach((e, t, n) => { @@ -29796,7 +29822,7 @@ ], }); return void this.options.dereference.dereferenceOpts?.errors?.push?.( - s + s, ); } }, @@ -29812,7 +29838,7 @@ l = bb(a), c = Nb({ uri: l }), u = !this.options.resolve.resolvers.some((e) => - e.canRead(c) + e.canRead(c), ), p = !u, h = p && i !== l; @@ -29841,14 +29867,14 @@ } if (this.indirections.includes(f)) throw new Error( - "Recursive Schema Object reference detected" + "Recursive Schema Object reference detected", ); if ( this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); if (!this.useCircularStructures) { if (t.some((e) => e.has(f))) { @@ -29857,7 +29883,7 @@ n = new Ym( { $ref: t }, e.meta.clone(), - e.attributes.clone() + e.attributes.clone(), ); return n.get("$ref").classes.push("cycle"), n; } @@ -29893,7 +29919,7 @@ const m = new Ym( [...f.content], f.meta.clone(), - f.attributes.clone() + f.attributes.clone(), ); if ( (e.forEach((e, t, n) => { @@ -29922,10 +29948,10 @@ "$ref", ], }, - r + r, ); return void this.options.dereference.dereferenceOpts?.errors?.push?.( - s + s, ); } }, @@ -29938,7 +29964,7 @@ t, n, r, - o + o, ); } catch (t) { const r = Gw(t), @@ -29951,7 +29977,7 @@ ], }); return void this.options.dereference.dereferenceOpts?.errors?.push?.( - s + s, ); } }, @@ -29990,7 +30016,7 @@ const t = new Error(e, { cause: e }); (t.fullPath = Hw([...o, n])), this.options.dereference.dereferenceOpts?.errors?.push?.( - t + t, ); } }, @@ -30018,7 +30044,7 @@ const r = new Error(t, { cause: t }); (r.fullPath = [...Hw([...o, n, e]), "properties"]), this.options.dereference.dereferenceOpts?.errors?.push?.( - r + r, ); } }); @@ -30048,13 +30074,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : oE(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -30146,7 +30172,7 @@ return ( (t.fullPath = [...Hw([...o, n, e]), "allOf"]), void this.options.dereference.dereferenceOpts?.errors?.push?.( - t + t, ) ); } @@ -30154,16 +30180,16 @@ return new Ym( e.content.filter((e) => "allOf" !== e.key.toValue()), e.meta.clone(), - e.attributes.clone() + e.attributes.clone(), ); if (!e.allOf.content.every(sy)) { const t = new TypeError( - "Elements in allOf must be objects" + "Elements in allOf must be objects", ); return ( (t.fullPath = [...Hw([...o, n, e]), "allOf"]), void this.options.dereference.dereferenceOpts?.errors?.push?.( - t + t, ) ); } @@ -30334,7 +30360,7 @@ dereferenceOpts: { errors: O }, }, }), - v + v, ), A = c ? k : Iw(k); return { spec: Ri(A), errors: O }; @@ -30796,8 +30822,8 @@ securities: l, http: u, }, - c - ) + c, + ), ); return ( p.body && @@ -30868,7 +30894,7 @@ if (!o || "object" != typeof o) return !1; const s = o.operationId; return [(0, He.Z)(o, n, r), $E(n, r), s].some( - (e) => e && e === t + (e) => e && e === t, ); }) : null; @@ -30977,7 +31003,7 @@ ? (r = e && e.name && m[`${e.in}.${e.name}`]) : VE(e.name, _).length > 1 && console.warn( - `Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.` + `Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`, ), null !== r) ) { @@ -30986,7 +31012,7 @@ void 0 === r && e.required && !e.allowEmptyValue) ) throw new Error( - `Required parameter ${e.name} is not provided` + `Required parameter ${e.name} is not provided`, ); if ( y && @@ -30998,7 +31024,7 @@ r = JSON.parse(r); } catch (e) { throw new Error( - "Could not parse object parameter value string as JSON" + "Could not parse object parameter value string as JSON", ); } n && @@ -31056,8 +31082,8 @@ f()( f()({}, p), {}, - { spec: h, allowMetaPatches: !0, skipNormalization: !0 } - ) + { spec: h, allowMetaPatches: !0, skipNormalization: !0 }, + ), ); return ( !r && @@ -31217,7 +31243,7 @@ t, n, r, - { areStatesEqual: o, areOwnPropsEqual: s, areStatePropsEqual: i } + { areStatesEqual: o, areOwnPropsEqual: s, areStatePropsEqual: i }, ) { let a, l, @@ -31305,7 +31331,7 @@ throw new Error( `Invalid value of type ${typeof e} for ${t} argument when connecting component ${ r.wrappedComponentName - }.` + }.`, ); }; } @@ -31435,7 +31461,7 @@ areMergedPropsEqual: l = M, forwardRef: c = !1, context: u = y, - } = {} + } = {}, ) { const p = u, h = (function (e) { @@ -31456,7 +31482,7 @@ (n[r] = (...e) => t(o(...e))); } return n; - })(e, t) + })(e, t), ) : e ? "function" == typeof e @@ -31470,7 +31496,7 @@ ? (function (e) { return function ( t, - { displayName: n, areMergedPropsEqual: r } + { displayName: n, areMergedPropsEqual: r }, ) { let o, s = !1; @@ -31513,11 +31539,11 @@ n && n.Consumer && (0, S.isContextConsumer)( - a.createElement(n.Consumer, null) + a.createElement(n.Consumer, null), ) ? n : p, - [n, p] + [n, p], ), l = a.useContext(i), c = @@ -31538,7 +31564,7 @@ s = (0, w.Z)(t, _); return j(n(e, s), r(e, s), o(e, s), e, s); })(h.dispatch, r), - [h] + [h], ), [g, y] = a.useMemo(() => { if (!m) return L; @@ -31548,7 +31574,7 @@ }, [h, c, l]), v = a.useMemo( () => (c ? l : (0, b.Z)({}, l, { subscription: g })), - [c, l, g] + [c, l, g], ), E = a.useRef(), x = a.useRef(s), @@ -31563,14 +31589,14 @@ A.current = !1; } ), - [] + [], ); const P = a.useMemo( () => () => O.current && s === x.current ? O.current : d(h.getState(), s), - [h, s] + [h, s], ), N = a.useMemo( () => (e) => @@ -31612,7 +31638,7 @@ ); })(m, h, g, d, x, E, k, A, O, y, e) : () => {}, - [g] + [g], ); var R, M, $; let q; @@ -31631,11 +31657,11 @@ }); const U = a.useMemo( () => a.createElement(e, (0, b.Z)({}, q, { ref: o })), - [o, e, q] + [o, e, q], ); return a.useMemo( () => (m ? a.createElement(i.Provider, { value: v }, U) : U), - [i, U, v] + [i, U, v], ); } const g = a.memo(u); @@ -31647,7 +31673,7 @@ const t = a.forwardRef(function (e, t) { return a.createElement( g, - (0, b.Z)({}, e, { reactReduxForwardedRef: t }) + (0, b.Z)({}, e, { reactReduxForwardedRef: t }), ); }); return (t.displayName = n), (t.WrappedComponent = e), x()(t, e); @@ -31706,7 +31732,7 @@ render() { return a.createElement( t, - o()({}, e(), this.props, this.context) + o()({}, e(), this.props, this.context), ); } } @@ -31719,7 +31745,7 @@ return a.createElement( U, { store: t }, - a.createElement(n, o()({}, this.props, this.context)) + a.createElement(n, o()({}, this.props, this.context)), ); } } @@ -31737,7 +31763,7 @@ : o.mapStateToProps) || ((e) => ({ state: e })); return i(n, s); }), - G(e) + G(e), )(t), X = (e, t, n, r) => { for (const o in t) { @@ -31778,7 +31804,7 @@ if ("string" != typeof r) throw new TypeError( "Need a string, to fetch a component. Was given a " + - typeof r + typeof r, ); const i = n(r); return i @@ -31835,7 +31861,7 @@ })(e) || (function () { throw new TypeError( - "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." + "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.", ); })() ); @@ -31865,13 +31891,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : f(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -32088,7 +32114,7 @@ })( e.filter(function (e) { return "token" !== e; - }) + }), ).reduce(function (e, t) { return d(d({}, e), n[t]); }, t); @@ -32144,7 +32170,7 @@ w.concat( a.className.filter(function (e) { return !b.includes(e); - }) + }), ); f = d( d({}, a), @@ -32152,7 +32178,7 @@ { className: y(E) || void 0, style: g(a.className, Object.assign({}, a.style, o), n), - } + }, ); } else f = d(d({}, a), {}, { className: y(a.className) }); var x = m(t.children); @@ -32205,13 +32231,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : E(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -32242,14 +32268,14 @@ className: "react-syntax-highlighter-line-number", style: "function" == typeof r ? r(o) : r, }, - "".concat(o, "\n") + "".concat(o, "\n"), ); }); })({ lines: t.replace(/\n$/, "").split("\n"), style: i, startingLineNumber: a, - }) + }), ); } function j(e, t) { @@ -32379,9 +32405,9 @@ k({ children: [a], className: e.properties.className, - }) + }), ), - i + i, ); p.push(l); } else if (o === n.length - 1) { @@ -32456,7 +32482,7 @@ className: t ? "language-".concat(t) : void 0, style: x( x({}, o['code[class*="language-"]']), - o['code[class*="language-'.concat(t, '"]')] + o['code[class*="language-'.concat(t, '"]')], ), } : l, @@ -32524,7 +32550,7 @@ ((c.style = x( x({}, c.style), {}, - A ? { whiteSpace: "pre-wrap" } : { whiteSpace: "pre" } + A ? { whiteSpace: "pre-wrap" } : { whiteSpace: "pre" }, )), !z) ) @@ -32566,8 +32592,8 @@ $, c, !g && W, - D({ rows: Y, stylesheet: o, useInlineStyles: h }) - ) + D({ rows: Y, stylesheet: o, useInlineStyles: h }), + ), ); }); M.registerLanguage = R.registerLanguage; @@ -32938,7 +32964,7 @@ i()(Q).call(Q, e) ? X[e] : (console.warn( - `Request style '${e}' is not available, returning default instead` + `Request style '${e}' is not available, returning default instead`, ), Y); }, @@ -33094,7 +33120,7 @@ return g()((n = d()(e))).call( n, (n, r) => ((n[r] = t(e[r], r)), n), - {} + {}, ); } function de(e, t) { @@ -33105,13 +33131,13 @@ let o = t(e[r], r); return o && "object" == typeof o && v()(n, o), n; }, - {} + {}, ); } function me(e) { return (t) => { let { dispatch: n, getState: r } = t; - return (t) => (n) => "function" == typeof n ? n(e()) : t(n); + return (t) => (n) => ("function" == typeof n ? n(e()) : t(n)); }; } function ge(e) { @@ -33255,7 +33281,7 @@ if ( (u()(t).call(t, (n, r) => { h()(t).call(t, (e) => - ue(e.equals) ? e.equals(n) : e === n + ue(e.equals) ? e.equals(n) : e === n, ).size > 1 && (e = e.add(r)); }), 0 !== e.size) @@ -33315,7 +33341,7 @@ if ( ((e = e.toString().toLowerCase()), !/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test( - e + e, )) ) return "Value must be a Guid"; @@ -33413,8 +33439,8 @@ "" !== r && t.push( [n, "=", encodeURIComponent(r).replace(/%20/g, "+")].join( - "" - ) + "", + ), ); } return t.join("&"); @@ -33437,7 +33463,7 @@ const t = O()(e).call( e, (e, t) => - A()(t).call(t, "2") && d()(e.get("content") || {}).length > 0 + A()(t).call(t, "2") && d()(e.get("content") || {}).length > 0, ), n = e.get("default") || R().OrderedMap(), r = (n.get("content") || R().OrderedMap()).keySeq().toJS().length @@ -33453,7 +33479,7 @@ Ie = (e) => h()(e).call(e, (e, t) => /^x-/.test(t)), Te = (e) => h()(e).call(e, (e, t) => - /^pattern|maxLength|minLength|maximum|minimum/.test(t) + /^pattern|maxLength|minLength|maximum|minimum/.test(t), ); function Re(e, t) { var n; @@ -33493,7 +33519,7 @@ : {}; if (!R().Map.isMap(e)) throw new Error( - "paramToIdentifier: received a non-Im.Map parameter as input" + "paramToIdentifier: received a non-Im.Map parameter as input", ); const r = e.get("name"), o = e.get("in"); @@ -33515,7 +33541,7 @@ const r = Fe(e, { returnAll: !0 }); return h()((n = i()(r).call(r, (e) => t[e]))).call( n, - (e) => void 0 !== e + (e) => void 0 !== e, )[0]; } function Be() { @@ -33634,7 +33660,7 @@ "minItems", "uniqueItems", "enum", - "multipleOf" + "multipleOf", ); function u(e) { let { isOAS3: t } = @@ -33743,7 +33769,7 @@ c = new o( (function (e, t, n) { return (3 * (t + n)) / 4 - n; - })(0, i, l) + })(0, i, l), ), u = 0, p = l > 0 ? i - 4 : i; @@ -33787,7 +33813,7 @@ : 2 === o && ((t = (e[r - 2] << 8) + e[r - 1]), s.push( - n[t >> 10] + n[(t >> 4) & 63] + n[(t << 2) & 63] + "=" + n[t >> 10] + n[(t >> 4) & 63] + n[(t << 2) & 63] + "=", )); return s.join(""); }); @@ -33819,7 +33845,7 @@ n[((s = o) >> 18) & 63] + n[(s >> 12) & 63] + n[(s >> 6) & 63] + - n[63 & s] + n[63 & s], ); return i.join(""); } @@ -33843,7 +33869,7 @@ function a(e) { if (e > i) throw new RangeError( - 'The value "' + e + '" is invalid for option "size"' + 'The value "' + e + '" is invalid for option "size"', ); const t = new Uint8Array(e); return Object.setPrototypeOf(t, l.prototype), t; @@ -33852,7 +33878,7 @@ if ("number" == typeof e) { if ("string" == typeof t) throw new TypeError( - 'The "string" argument must be of type string. Received type number' + 'The "string" argument must be of type string. Received type number', ); return p(e); } @@ -33881,7 +33907,7 @@ if (null == e) throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + - typeof e + typeof e, ); if (G(e, ArrayBuffer) || (e && G(e.buffer, ArrayBuffer))) return f(e, t, n); @@ -33892,7 +33918,7 @@ return f(e, t, n); if ("number" == typeof e) throw new TypeError( - 'The "value" argument must not be of type number. Received type number' + 'The "value" argument must not be of type number. Received type number', ); const r = e.valueOf && e.valueOf(); if (null != r && r !== e) return l.from(r, t, n); @@ -33916,7 +33942,7 @@ return l.from(e[Symbol.toPrimitive]("string"), t, n); throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + - typeof e + typeof e, ); } function u(e) { @@ -33924,7 +33950,7 @@ throw new TypeError('"size" argument must be of type number'); if (e < 0) throw new RangeError( - 'The value "' + e + '" is invalid for option "size"' + 'The value "' + e + '" is invalid for option "size"', ); } function p(e) { @@ -33958,7 +33984,7 @@ throw new RangeError( "Attempt to allocate Buffer larger than maximum size: 0x" + i.toString(16) + - " bytes" + " bytes", ); return 0 | e; } @@ -33968,7 +33994,7 @@ if ("string" != typeof e) throw new TypeError( 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + - typeof e + typeof e, ); const n = e.length, r = arguments.length > 2 && !0 === arguments[2]; @@ -34127,7 +34153,7 @@ })(t), e, n, - r + r, ); } function S(e, t, n, r) { @@ -34148,7 +34174,7 @@ })(t, e.length - n), e, n, - r + r, ); } function j(e, t, n) { @@ -34239,7 +34265,7 @@ "undefined" == typeof console || "function" != typeof console.error || 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." + "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.", ), Object.defineProperty(l.prototype, "parent", { enumerable: !0, @@ -34289,7 +34315,7 @@ !l.isBuffer(e) || !l.isBuffer(t)) ) throw new TypeError( - 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' + 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array', ); if (e === t) return 0; let n = e.length, @@ -34322,7 +34348,7 @@ (l.concat = function (e, t) { if (!Array.isArray(e)) throw new TypeError( - '"list" argument must be an Array of Buffers' + '"list" argument must be an Array of Buffers', ); if (0 === e.length) return l.alloc(0); let n; @@ -34339,7 +34365,7 @@ else { if (!l.isBuffer(t)) throw new TypeError( - '"list" argument must be an Array of Buffers' + '"list" argument must be an Array of Buffers', ); t.copy(r, o); } @@ -34353,7 +34379,7 @@ const e = this.length; if (e % 2 != 0) throw new RangeError( - "Buffer size must be a multiple of 16-bits" + "Buffer size must be a multiple of 16-bits", ); for (let t = 0; t < e; t += 2) y(this, t, t + 1); return this; @@ -34362,7 +34388,7 @@ const e = this.length; if (e % 4 != 0) throw new RangeError( - "Buffer size must be a multiple of 32-bits" + "Buffer size must be a multiple of 32-bits", ); for (let t = 0; t < e; t += 4) y(this, t, t + 3), y(this, t + 1, t + 2); @@ -34372,7 +34398,7 @@ const e = this.length; if (e % 8 != 0) throw new RangeError( - "Buffer size must be a multiple of 64-bits" + "Buffer size must be a multiple of 64-bits", ); for (let t = 0; t < e; t += 8) y(this, t, t + 7), @@ -34414,7 +34440,7 @@ ) throw new TypeError( 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + - typeof e + typeof e, ); if ( (void 0 === t && (t = 0), @@ -34456,7 +34482,7 @@ else { if (!isFinite(t)) throw new Error( - "Buffer.write(string, encoding, offset[, length]) is no longer supported" + "Buffer.write(string, encoding, offset[, length]) is no longer supported", ); (t >>>= 0), isFinite(n) @@ -34535,7 +34561,7 @@ function T(e, t, n, r, o, s) { if (!l.isBuffer(e)) throw new TypeError( - '"buffer" argument must be a Buffer instance' + '"buffer" argument must be a Buffer instance', ); if (t > o || t < s) throw new RangeError('"value" argument is out of bounds'); @@ -34760,7 +34786,7 @@ return ( (BigInt(r) << BigInt(32)) + BigInt( - t + 256 * this[++e] + 65536 * this[++e] + this[++e] * 2 ** 24 + t + 256 * this[++e] + 65536 * this[++e] + this[++e] * 2 ** 24, ) ); })), @@ -34774,7 +34800,7 @@ return ( (BigInt(r) << BigInt(32)) + BigInt( - this[++e] * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + n + this[++e] * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + n, ) ); })), @@ -34979,7 +35005,7 @@ e, t, -BigInt("0x8000000000000000"), - BigInt("0x7fffffffffffffff") + BigInt("0x7fffffffffffffff"), ); })), (l.prototype.writeBigInt64BE = X(function (e, t = 0) { @@ -34988,7 +35014,7 @@ e, t, -BigInt("0x8000000000000000"), - BigInt("0x7fffffffffffffff") + BigInt("0x7fffffffffffffff"), ); })), (l.prototype.writeFloatLE = function (e, t, n) { @@ -35066,7 +35092,7 @@ i = s.length; if (0 === i) throw new TypeError( - 'The value "' + e + '" is invalid for argument "value"' + 'The value "' + e + '" is invalid for argument "value"', ); for (o = 0; o < n - t; ++o) this[o + t] = s[o % i]; } @@ -35145,7 +35171,7 @@ throw new B.ERR_OUT_OF_RANGE( n || "offset", `>= ${n ? 1 : 0} and <= ${t}`, - e + e, ); } $( @@ -35155,14 +35181,14 @@ ? `${e} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds"; }, - RangeError + RangeError, ), $( "ERR_INVALID_ARG_TYPE", function (e, t) { return `The "${e}" argument must be of type number. Received type ${typeof t}`; }, - TypeError + TypeError, ), $( "ERR_OUT_OF_RANGE", @@ -35182,7 +35208,7 @@ r ); }, - RangeError + RangeError, ); const W = /[^+/0-9A-Za-z-_]/g; function J(e, t) { @@ -35227,7 +35253,7 @@ (n >> 18) | 240, ((n >> 12) & 63) | 128, ((n >> 6) & 63) | 128, - (63 & n) | 128 + (63 & n) | 128, ); } } @@ -35242,7 +35268,7 @@ return ""; for (; e.length % 4 != 0; ) e += "="; return e; - })(e) + })(e), ); } function H(e, t, n, r) { @@ -35552,7 +35578,7 @@ })( "message" in t ? t.message - : "Copy to clipboard: #{key}, Enter" + : "Copy to clipboard: #{key}, Enter", )), window.prompt(s, e); } @@ -36500,7 +36526,7 @@ function () { return 1; }, - 1 + 1, ); }) ); @@ -36712,7 +36738,7 @@ s( (function () { return arguments; - })() + })(), ); e.exports = r ? s @@ -36859,7 +36885,7 @@ add: function (e) { return v(this, (e = 0 === e ? 0 : e), e); }, - } + }, ), f && o(h, "size", { @@ -36901,13 +36927,13 @@ : "values" == t ? n.value : [n.key, n.value], - !1 + !1, ) : ((e.target = void 0), p(void 0, !0)); }, n ? "entries" : "values", !n, - !0 + !0, ), h(t); }, @@ -37016,7 +37042,7 @@ add: function (e) { return y(this, e, !0); }, - } + }, ), p ); @@ -37086,7 +37112,7 @@ var s = o[e](0 === n ? 0 : n, r); return t ? this : s; }); - } + }, ), w || f(j, "size", { @@ -37811,7 +37837,7 @@ }), r( { target: "Object", stat: !0, forced: !0 }, - { getOwnPropertyNames: u.f } + { getOwnPropertyNames: u.f }, )); }, fastKey: function (e, t) { @@ -38407,8 +38433,8 @@ f(this, "b", { value: 3, enumerable: !1 }); }, }), - { b: 2 } - ) + { b: 2 }, + ), ).b ) return !0; @@ -38836,7 +38862,7 @@ r = function (e) { e( function () {}, - function () {} + function () {}, ); }; if ( @@ -39199,7 +39225,7 @@ function (e) { return r(n, this); }, - { arity: 1 } + { arity: 1 }, ); }; }, @@ -39640,7 +39666,7 @@ else c(f + 1), u(h, f++, s); return (h.length = f), h; }, - } + }, ); }, 48851: (e, t, n) => { @@ -39653,7 +39679,7 @@ every: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ); }, 80290: (e, t, n) => { @@ -39672,7 +39698,7 @@ filter: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ); }, 44929: (e, t, n) => { @@ -39693,10 +39719,10 @@ return o( this, e, - arguments.length > 1 ? arguments[1] : void 0 + arguments.length > 1 ? arguments[1] : void 0, ); }, - } + }, ), s(i); }, @@ -39718,10 +39744,10 @@ return o( this, e, - arguments.length > 1 ? arguments[1] : void 0 + arguments.length > 1 ? arguments[1] : void 0, ); }, - } + }, ), s(i); }, @@ -39731,7 +39757,7 @@ o = n(56837); r( { target: "Array", proto: !0, forced: [].forEach != o }, - { forEach: o } + { forEach: o }, ); }, 53242: (e, t, n) => { @@ -39745,7 +39771,7 @@ Array.from(e); }), }, - { from: o } + { from: o }, ); }, 97690: (e, t, n) => { @@ -39766,7 +39792,7 @@ includes: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ), i("includes"); }, @@ -39785,7 +39811,7 @@ var t = arguments.length > 1 ? arguments[1] : void 0; return l ? a(this, e, t) || 0 : s(this, e, t); }, - } + }, ); }, 92737: (e, t, n) => { @@ -39820,7 +39846,7 @@ ? ((e.target = void 0), c(void 0, !0)) : c("keys" == n ? r : "values" == n ? t[r] : [r, t[r]], !1); }, - "values" + "values", ); var m = (s.Arguments = s.Array); if ( @@ -39838,7 +39864,7 @@ o = n(67145); r( { target: "Array", proto: !0, forced: o !== [].lastIndexOf }, - { lastIndexOf: o } + { lastIndexOf: o }, ); }, 68787: (e, t, n) => { @@ -39851,7 +39877,7 @@ map: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ); }, 48528: (e, t, n) => { @@ -39889,7 +39915,7 @@ for (var l = 0; l < r; l++) (t[n] = arguments[l]), n++; return i(t, n), n; }, - } + }, ); }, 81876: (e, t, n) => { @@ -39909,7 +39935,7 @@ var t = arguments.length; return o(this, e, t, t > 1 ? arguments[1] : void 0); }, - } + }, ); }, 60186: (e, t, n) => { @@ -39957,7 +39983,7 @@ v in h && u(r, p, h[v]); return (r.length = p), r; }, - } + }, ); }, 36026: (e, t, n) => { @@ -39970,7 +39996,7 @@ some: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ); }, 4115: (e, t, n) => { @@ -40066,7 +40092,7 @@ ? 1 : -1; }; - })(e) + })(e), ), n = a(o), r = 0; @@ -40077,7 +40103,7 @@ for (; r < u; ) l(t, r++); return t; }, - } + }, ); }, 98611: (e, t, n) => { @@ -40133,7 +40159,7 @@ for (g = 0; g < n; g++) b[g + E] = arguments[g + 2]; return l(b, w - r + n), f; }, - } + }, ); }, 95160: (e, t, n) => { @@ -40147,7 +40173,7 @@ now: function () { return i(new s()); }, - } + }, ); }, 18084: () => {}, @@ -40156,7 +40182,7 @@ o = n(98308); r( { target: "Function", proto: !0, forced: Function.bind !== o }, - { bind: o } + { bind: o }, ); }, 32619: (e, t, n) => { @@ -40224,7 +40250,7 @@ o = s(_ ? O : m, null, r); return j && "string" == typeof o ? b(o, E, k) : o; }, - } + }, ); }, 69120: (e, t, n) => { @@ -40240,7 +40266,7 @@ return e(this, arguments.length ? arguments[0] : void 0); }; }, - n(85616) + n(85616), ); }, 37501: (e, t, n) => { @@ -40255,7 +40281,7 @@ nonConfigurable: !0, nonWritable: !0, }, - { EPSILON: Math.pow(2, -52) } + { EPSILON: Math.pow(2, -52) }, ); }, 30800: (e, t, n) => { @@ -40271,7 +40297,7 @@ arity: 2, forced: Object.assign !== o, }, - { assign: o } + { assign: o }, ); }, 74979: (e, t, n) => { @@ -40285,7 +40311,7 @@ forced: Object.defineProperties !== s, sham: !o, }, - { defineProperties: s } + { defineProperties: s }, ); }, 86450: (e, t, n) => { @@ -40299,7 +40325,7 @@ forced: Object.defineProperty !== s, sham: !o, }, - { defineProperty: s } + { defineProperty: s }, ); }, 94366: (e, t, n) => { @@ -40311,7 +40337,7 @@ entries: function (e) { return o(e); }, - } + }, ); }, 28387: (e, t, n) => { @@ -40329,12 +40355,12 @@ function (e, n) { s(t, e, n); }, - { AS_ENTRIES: !0 } + { AS_ENTRIES: !0 }, ), t ); }, - } + }, ); }, 46924: (e, t, n) => { @@ -40358,7 +40384,7 @@ getOwnPropertyDescriptor: function (e, t) { return i(s(e), t); }, - } + }, ); }, 88482: (e, t, n) => { @@ -40380,7 +40406,7 @@ void 0 !== (n = o(r, (t = c[p++]))) && l(u, t, n); return u; }, - } + }, ); }, 37144: (e, t, n) => { @@ -40404,7 +40430,7 @@ var t = i.f; return t ? t(a(e)) : []; }, - } + }, ); }, 21724: (e, t, n) => { @@ -40423,7 +40449,7 @@ keys: function (e) { return s(o(e)); }, - } + }, ); }, 55967: () => {}, @@ -40436,7 +40462,7 @@ values: function (e) { return o(e); }, - } + }, ); }, 4560: (e, t, n) => { @@ -40476,14 +40502,14 @@ ((l = !0), (i[s] = { status: "rejected", reason: e }), --c || r(i)); - } + }, ); }), --c || r(i); }); return u.error && c(u.value), n.promise; }, - } + }, ); }, 16890: (e, t, n) => { @@ -40519,7 +40545,7 @@ }); return u.error && c(u.value), n.promise; }, - } + }, ); }, 91302: (e, t, n) => { @@ -40560,14 +40586,14 @@ c || f || ((c = !0), (i[s] = e), --l || h(new n(i, p))); - } + }, ); }), --l || h(new n(i, p)); }); return f.error && h(f.value), r.promise; }, - } + }, ); }, 83376: (e, t, n) => { @@ -40587,7 +40613,7 @@ catch: function (e) { return this.then(void 0, e); }, - } + }, ), !o && l(i)) ) { @@ -40813,7 +40839,7 @@ u(s, n, e, t); }).then(e, t); }, - { unsafe: !0 } + { unsafe: !0 }, ); try { delete M.constructor; @@ -40822,7 +40848,7 @@ } i( { global: !0, constructor: !0, wrap: !0, forced: P }, - { Promise: D } + { Promise: D }, ), f(D, C, !1, !0), d(C); @@ -40869,10 +40895,10 @@ throw n; }); } - : e + : e, ); }, - } + }, ), !o && l(s)) ) { @@ -40906,7 +40932,7 @@ }); return c.error && r(c.value), n.promise; }, - } + }, ); }, 64069: (e, t, n) => { @@ -40921,7 +40947,7 @@ var t = s.f(this); return o(t.reject, void 0, e), t.promise; }, - } + }, ); }, 14482: (e, t, n) => { @@ -40940,7 +40966,7 @@ resolve: function (e) { return l(u && this === c ? i : this, e); }, - } + }, ); }, 1502: () => {}, @@ -40953,7 +40979,7 @@ return e(this, arguments.length ? arguments[0] : void 0); }; }, - n(85616) + n(85616), ); }, 69008: (e, t, n) => { @@ -40975,10 +41001,10 @@ return !!~c( a(i(this)), a(s(e)), - arguments.length > 1 ? arguments[1] : void 0 + arguments.length > 1 ? arguments[1] : void 0, ); }, - } + }, ); }, 77971: (e, t, n) => { @@ -41005,7 +41031,7 @@ return o >= n.length ? a(void 0, !0) : ((e = r(n, o)), (t.index += e.length), a(e, !1)); - } + }, ); }, 74679: (e, t, n) => { @@ -41029,7 +41055,7 @@ p < r && c(o, a(arguments[p])); } }, - } + }, ); }, 60986: (e, t, n) => { @@ -41067,12 +41093,12 @@ var t = l(u(this)); c(e); var n = a( - m(arguments.length > 1 ? arguments[1] : void 0, t.length) + m(arguments.length > 1 ? arguments[1] : void 0, t.length), ), r = l(e); return f ? f(t, r, n) : d(t, n, n + r.length) === r; }, - } + }, ); }, 57398: (e, t, n) => { @@ -41085,7 +41111,7 @@ trim: function () { return o(this); }, - } + }, ); }, 8555: (e, t, n) => { @@ -41159,7 +41185,7 @@ get: function () { return Y(this, "a", { value: 7 }).a; }, - }) + }), ).a ); }) @@ -41271,7 +41297,7 @@ "toString", function () { return V(this).tag; - } + }, ), k(J, "withoutSetter", function (e) { return ie(I(e), e); @@ -41295,7 +41321,7 @@ a || k(W, "propertyIsEnumerable", ce, { unsafe: !0 }))), r( { global: !0, constructor: !0, wrap: !0, forced: !c, sham: !c }, - { Symbol: J } + { Symbol: J }, ), B(b(re), function (e) { M(e); @@ -41309,7 +41335,7 @@ useSimple: function () { oe = !1; }, - } + }, ), r( { target: "Object", stat: !0, forced: !c, sham: !l }, @@ -41320,11 +41346,11 @@ defineProperty: ae, defineProperties: le, getOwnPropertyDescriptor: ue, - } + }, ), r( { target: "Object", stat: !0, forced: !c }, - { getOwnPropertyNames: pe } + { getOwnPropertyNames: pe }, ), D(), F(J, q), @@ -41349,7 +41375,7 @@ var n = o("Symbol")(t); return (c[t] = n), (u[n] = t), n; }, - } + }, ); }, 21732: (e, t, n) => { @@ -41379,7 +41405,7 @@ if (!s(e)) throw TypeError(i(e) + " is not a symbol"); if (o(c, e)) return c[e]; }, - } + }, ); }, 45915: (e, t, n) => { @@ -41523,7 +41549,7 @@ return e(this, arguments.length ? arguments[0] : void 0); }; }, - n(8850) + n(8850), ); }, 1773: (e, t, n) => { @@ -41545,19 +41571,19 @@ 97618: (e, t, n) => { n(76887)( { target: "Symbol", stat: !0 }, - { isRegisteredSymbol: n(32087) } + { isRegisteredSymbol: n(32087) }, ); }, 22731: (e, t, n) => { n(76887)( { target: "Symbol", stat: !0, name: "isRegisteredSymbol" }, - { isRegistered: n(32087) } + { isRegistered: n(32087) }, ); }, 6989: (e, t, n) => { n(76887)( { target: "Symbol", stat: !0, forced: !0 }, - { isWellKnownSymbol: n(96559) } + { isWellKnownSymbol: n(96559) }, ); }, 85605: (e, t, n) => { @@ -41568,7 +41594,7 @@ name: "isWellKnownSymbol", forced: !0, }, - { isWellKnown: n(96559) } + { isWellKnown: n(96559) }, ); }, 65799: (e, t, n) => { @@ -41609,7 +41635,7 @@ s = n(37620)(o.setInterval, !0); r( { global: !0, bind: !0, forced: o.setInterval !== s }, - { setInterval: s } + { setInterval: s }, ); }, 17749: (e, t, n) => { @@ -41618,7 +41644,7 @@ s = n(37620)(o.setTimeout, !0); r( { global: !0, bind: !0, forced: o.setTimeout !== s }, - { setTimeout: s } + { setTimeout: s }, ); }, 71249: (e, t, n) => { @@ -41744,7 +41770,7 @@ n ); }, - !0 + !0, ), pe = function (e) { (this.entries = []), @@ -41757,7 +41783,7 @@ ? "?" === K(e, 0) ? ee(e, 1) : e - : x(e) + : x(e), )); }; pe.prototype = { @@ -41810,7 +41836,7 @@ m(this, fe); var e = T( this, - new pe(arguments.length > 0 ? arguments[0] : void 0) + new pe(arguments.length > 0 ? arguments[0] : void 0), ); a || (this.size = e.entries.length); }, @@ -41917,7 +41943,7 @@ return new ue(this, "entries"); }, }, - { enumerable: !0 } + { enumerable: !0 }, ), c(fe, P, fe.entries, { name: "entries" }), c( @@ -41926,7 +41952,7 @@ function () { return R(this).serialize(); }, - { enumerable: !0 } + { enumerable: !0 }, ), a && u(fe, "size", { @@ -41939,7 +41965,7 @@ h(he, N), r( { global: !0, constructor: !0, forced: !l }, - { URLSearchParams: he } + { URLSearchParams: he }, ), !l && g($)) ) { @@ -41956,7 +41982,7 @@ me( t, "content-type", - "application/x-www-form-urlencoded;charset=UTF-8" + "application/x-www-form-urlencoded;charset=UTF-8", ), S(e, { body: _(0, x(n)), headers: _(0, t) }) ); @@ -41976,7 +42002,7 @@ fetch: function (e) { return L(e, arguments.length > 1 ? ge(arguments[1]) : {}); }, - } + }, ), g(B)) ) { @@ -41995,7 +42021,7 @@ dontCallGetSet: !0, forced: !0, }, - { Request: ye } + { Request: ye }, ); } } @@ -42038,7 +42064,7 @@ return !1; } }, - } + }, ); }, 47250: (e, t, n) => { @@ -42935,7 +42961,7 @@ function () { return j(this).serialize(); }, - { enumerable: !0 } + { enumerable: !0 }, ), u( Be, @@ -42943,7 +42969,7 @@ function () { return j(this).serialize(); }, - { enumerable: !0 } + { enumerable: !0 }, ), A) ) { @@ -42955,7 +42981,7 @@ w(Le, "URL"), o( { global: !0, constructor: !0, forced: !i, sham: !s }, - { URL: Le } + { URL: Le }, ); }, 33601: (e, t, n) => { @@ -43368,18 +43394,18 @@ ("string" == typeof e ? this.headers.set( "content-type", - "text/plain;charset=UTF-8" + "text/plain;charset=UTF-8", ) : this._bodyBlob && this._bodyBlob.type ? this.headers.set( "content-type", - this._bodyBlob.type + this._bodyBlob.type, ) : n && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set( "content-type", - "application/x-www-form-urlencoded;charset=UTF-8" + "application/x-www-form-urlencoded;charset=UTF-8", )); }), o && @@ -43390,7 +43416,7 @@ return Promise.resolve(this._bodyBlob); if (this._bodyArrayBuffer) return Promise.resolve( - new Blob([this._bodyArrayBuffer]) + new Blob([this._bodyArrayBuffer]), ); if (this._bodyFormData) throw new Error("could not read FormData body as blob"); @@ -43427,7 +43453,7 @@ ) n[r] = String.fromCharCode(t[r]); return n.join(""); - })(this._bodyArrayBuffer) + })(this._bodyArrayBuffer), ); if (this._bodyFormData) throw new Error("could not read FormData body as text"); @@ -43525,7 +43551,7 @@ ("GET" === this.method || "HEAD" === this.method) && o) ) throw new TypeError( - "Body not allowed for GET or HEAD requests" + "Body not allowed for GET or HEAD requests", ); this._initBody(o); } @@ -43819,7 +43845,7 @@ return Object.propertyIsEnumerable.call(e, t); }) : []; - })(e) + })(e), ); } function i(e, t) { @@ -44603,11 +44629,11 @@ $ = i(/^data-[\-\w.\u00B7-\uFFFF]/), q = i(/^aria-[\-\w]+$/), U = i( - /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i + /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i, ), z = i(/^(?:\w+script|data):/i), V = i( - /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g + /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g, ), W = i(/^html$/i); var J = Object.freeze({ @@ -44638,7 +44664,7 @@ } catch (e) { return ( console.warn( - "TrustedTypes policy " + o + " could not be created." + "TrustedTypes policy " + o + " could not be created.", ), null ); @@ -44730,7 +44756,7 @@ enumerable: !0, value: !1, }, - }) + }), ), be = null, we = null, @@ -44911,14 +44937,14 @@ "function" != typeof e.TRUSTED_TYPES_POLICY.createHTML ) throw w( - 'TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.' + 'TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.', ); if ( "function" != typeof e.TRUSTED_TYPES_POLICY.createScriptURL ) throw w( - 'TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.' + 'TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.', ); (X = e.TRUSTED_TYPES_POLICY), (Q = X.createHTML("")); } else @@ -45025,7 +45051,7 @@ n && o.insertBefore( i.createTextNode(n), - o.childNodes[0] || null + o.childNodes[0] || null, ), Ke === Je ? re.call(t, Oe ? "html" : "body")[0] @@ -45040,7 +45066,7 @@ e, x.SHOW_ELEMENT | x.SHOW_COMMENT | x.SHOW_TEXT, null, - !1 + !1, ); }, mt = function (e) { @@ -45275,7 +45301,7 @@ const t = et(e.nodeName); if (!de[t] || be[t]) throw w( - "root node is forbidden and cannot be sanitized in-place" + "root node is forbidden and cannot be sanitized in-place", ); } } else if (e instanceof c) @@ -45372,7 +45398,7 @@ add(e) { return new t( Math.min(this.low, e.low), - Math.max(this.high, e.high) + Math.max(this.high, e.high), ); } subtract(e) { @@ -45523,7 +45549,7 @@ : Object.getOwnPropertySymbols ? function (e) { return Object.getOwnPropertyNames(e).concat( - Object.getOwnPropertySymbols(e) + Object.getOwnPropertySymbols(e), ); } : function (e) { @@ -45564,7 +45590,7 @@ if ("function" != typeof e) throw new TypeError( 'The "listener" argument must be of type Function. Received type ' + - typeof e + typeof e, ); } function l(e) { @@ -45599,7 +45625,7 @@ i.length + " " + String(t) + - " listeners added. Use emitter.setMaxListeners() to increase limit" + " listeners added. Use emitter.setMaxListeners() to increase limit", ); (u.name = "MaxListenersExceededWarning"), (u.emitter = e), @@ -45668,7 +45694,7 @@ if ("function" != typeof e.addEventListener) throw new TypeError( 'The "emitter" argument must be of type EventEmitter. Received type ' + - typeof e + typeof e, ); e.addEventListener(t, function o(s) { r.once && e.removeEventListener(t, o), n(s); @@ -45685,7 +45711,7 @@ throw new RangeError( 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + - "." + ".", ); i = e; }, @@ -45701,7 +45727,7 @@ throw new RangeError( 'The value of "n" is out of range. It must be a non-negative number. Received ' + e + - "." + ".", ); return (this._maxListeners = e), this; }), @@ -45719,7 +45745,7 @@ var i; if ((t.length > 0 && (i = t[0]), i instanceof Error)) throw i; var a = new Error( - "Unhandled error." + (i ? " (" + i.message + ")" : "") + "Unhandled error." + (i ? " (" + i.message + ")" : ""), ); throw ((a.context = i), a); } @@ -45937,7 +45963,7 @@ var r = this; if ("function" != typeof r || "[object Function]" !== n.call(r)) throw new TypeError( - "Function.prototype.bind called on incompatible " + r + "Function.prototype.bind called on incompatible " + r, ); for ( var o, @@ -45954,7 +45980,7 @@ "binder", "return function (" + a.join(",") + - "){ return binder.apply(this,arguments); }" + "){ return binder.apply(this,arguments); }", )(function () { if (this instanceof o) { var n = r.apply(this, s.concat(t.call(arguments))); @@ -46218,7 +46244,7 @@ throw new i( "intrinsic " + e + - " exists, but is not available. Please file an issue!" + " exists, but is not available. Please file an issue!", ); return { alias: n, name: r, value: s }; } @@ -46231,7 +46257,7 @@ throw new i('"allowMissing" argument must be a boolean'); if (null === O(/^%?[^%]*%?$/, e)) throw new o( - "`%` may not be present anywhere but at the beginning and end of the intrinsic name" + "`%` may not be present anywhere but at the beginning and end of the intrinsic name", ); var n = (function (e) { var t = j(e, 0, 1), @@ -46269,7 +46295,7 @@ m !== y ) throw new o( - "property names with quotes must have matching quotes" + "property names with quotes must have matching quotes", ); if ( (("constructor" !== d && f) || (u = !0), @@ -46282,7 +46308,7 @@ throw new i( "base intrinsic for " + e + - " exists, but the property is not available." + " exists, but the property is not available.", ); return; } @@ -46549,7 +46575,7 @@ x = function (e, t, n = {}) { const r = i( { className: "comment", begin: e, end: t, contains: [] }, - n + n, ); return ( r.contains.push(E), @@ -46619,7 +46645,7 @@ 0 !== e.index && t.ignoreMatch(); }, }, - e + e, ) ); }, @@ -46728,7 +46754,7 @@ function n(t, n) { return new RegExp( p(t), - "m" + (e.case_insensitive ? "i" : "") + (n ? "g" : "") + "m" + (e.case_insensitive ? "i" : "") + (n ? "g" : ""), ); } class r { @@ -46776,7 +46802,7 @@ .map((e) => `(${e})`) .join(t); })(e), - !0 + !0, )), (this.lastIndex = 0); } @@ -46839,7 +46865,7 @@ e.contains && e.contains.includes("self")) ) throw new Error( - "ERR: contains `self` is not supported at the top-level of a language. See documentation." + "ERR: contains `self` is not supported at the top-level of a language. See documentation.", ); return ( (e.classNameAliases = i(e.classNameAliases || {})), @@ -46860,7 +46886,7 @@ r.lexemes && l) ) throw new Error( - "ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) " + "ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ", ); return ( (l = l || r.lexemes || /\w+/), @@ -46894,7 +46920,7 @@ if (Object.isFrozen(e)) return i(e); return e; })("self" === e ? r : e); - }) + }), )), r.contains.forEach(function (e) { t(e, a); @@ -46904,7 +46930,7 @@ const t = new o(); return ( e.contains.forEach((e) => - t.addRule(e.begin, { rule: e, type: "begin" }) + t.addRule(e.begin, { rule: e, type: "begin" }), ), e.terminatorEnd && t.addRule(e.terminatorEnd, { type: "end" }), @@ -46936,7 +46962,7 @@ if (!this.autoDetect && !e.getLanguage(this.language)) return ( console.warn( - `The language "${this.language}" you specified could not be found.` + `The language "${this.language}" you specified could not be found.`, ), (this.unknownLanguage = !0), s(this.code) @@ -46949,7 +46975,7 @@ : ((t = e.highlight( this.language, this.code, - this.ignoreIllegals + this.ignoreIllegals, )), (this.detectedLanguage = this.language)), t.value @@ -47104,11 +47130,11 @@ (r = void 0)) : (Q( "10.7.0", - "highlight(lang, code, ...args) has been deprecated." + "highlight(lang, code, ...args) has been deprecated.", ), Q( "10.7.0", - "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277" + "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277", ), (s = e), (o = t)); @@ -47211,7 +47237,7 @@ n.endSameAsBegin && (n.endRe = new RegExp( t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), - "m" + "m", )), n.skip ? (A += t) @@ -47268,7 +47294,7 @@ s + '" for mode "' + (j.className || "") + - '"' + '"', ); throw ((e.mode = j), e); } @@ -47279,7 +47305,7 @@ if ("illegal" === o.type && "" === s) return 1; if (N > 1e5 && N > 3 * o.index) { throw new Error( - "potential infinite loop, way more iterations than matches" + "potential infinite loop, way more iterations than matches", ); } return (A += s), s.length; @@ -47403,7 +47429,7 @@ "after:highlightElement": ({ result: e }) => { p.tabReplace && (e.value = e.value.replace(y, (e) => - e.replace(/\t/g, p.tabReplace) + e.replace(/\t/g, p.tabReplace), )); }, }; @@ -47420,7 +47446,7 @@ (X(l.replace("{}", n[1])), X( "Falling back to no-highlight mode for this block.", - e + e, )), t ? n[1] : "no-highlight" ); @@ -47454,7 +47480,7 @@ (w.called = !0), Q( "10.6.0", - "initHighlighting() is deprecated. Use highlightAll() instead." + "initHighlighting() is deprecated. Use highlightAll() instead.", ); document.querySelectorAll("pre code").forEach(b); }; @@ -47489,7 +47515,7 @@ function () { E && x(); }, - !1 + !1, ), Object.assign(e, { highlight: f, @@ -47500,7 +47526,7 @@ Q("10.2.0", "fixMarkup will be removed entirely in v11.0"), Q( "10.2.0", - "Please see https://github.com/highlightjs/highlight.js/issues/2534" + "Please see https://github.com/highlightjs/highlight.js/issues/2534", ), (t = e), p.tabReplace || p.useBR @@ -47511,7 +47537,7 @@ : e : p.tabReplace ? e.replace(/\t/g, p.tabReplace) - : e + : e, ) : t ); @@ -47522,7 +47548,7 @@ return ( Q( "10.7.0", - "highlightBlock will be removed entirely in v12.0" + "highlightBlock will be removed entirely in v12.0", ), Q("10.7.0", "Please use highlightElement now."), b(e) @@ -47533,7 +47559,7 @@ (Q("10.3.0", "'useBR' will be removed entirely in v11.0"), Q( "10.3.0", - "Please see https://github.com/highlightjs/highlight.js/issues/2559" + "Please see https://github.com/highlightjs/highlight.js/issues/2559", )), (p = te(p, e)); }, @@ -47541,7 +47567,7 @@ initHighlightingOnLoad: function () { Q( "10.6.0", - "initHighlightingOnLoad() is deprecated. Use highlightAll() instead." + "initHighlightingOnLoad() is deprecated. Use highlightAll() instead.", ), (E = !0); }, @@ -47554,8 +47580,8 @@ (Y( "Language definition for '{}' could not be registered.".replace( "{}", - n - ) + n, + ), ), !i) ) @@ -47579,19 +47605,19 @@ requireLanguage: function (e) { Q( "10.4.0", - "requireLanguage will be removed entirely in v11." + "requireLanguage will be removed entirely in v11.", ), Q( "10.4.0", - "Please see https://github.com/highlightjs/highlight.js/pull/2844" + "Please see https://github.com/highlightjs/highlight.js/pull/2844", ); const t = S(e); if (t) return t; throw new Error( "The '{}' language is required, but not loaded.".replace( "{}", - e - ) + e, + ), ); }, autoDetection: j, @@ -47602,14 +47628,14 @@ !e["before:highlightElement"] && (e["before:highlightElement"] = (t) => { e["before:highlightBlock"]( - Object.assign({ block: t.el }, t) + Object.assign({ block: t.el }, t), ); }), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (t) => { e["after:highlightBlock"]( - Object.assign({ block: t.el }, t) + Object.assign({ block: t.el }, t), ); }); })(e), @@ -47924,7 +47950,7 @@ "SyntaxError", "TypeError", "URIError", - ] + ], ); function s(e) { return i("(?=", e, ")"); @@ -48100,9 +48126,9 @@ s( i( /(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/, - a + "\\s*:" - ) - ) + a + "\\s*:", + ), + ), ), relevance: 0, contains: [ @@ -48326,7 +48352,7 @@ { begin: "(".concat( "Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where", - ")+(-)[\\w\\d]+" + ")+(-)[\\w\\d]+", ), }, ], @@ -48381,7 +48407,7 @@ className: "operator", begin: "(".concat( "-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor", - ")\\b" + ")\\b", ), }, { className: "literal", begin: /(-)[\w\d]+/, relevance: 0 }, @@ -48398,7 +48424,7 @@ className: "keyword", begin: "(".concat( t.keyword.toString().replace(/\s/g, "|"), - ")\\b" + ")\\b", ), endsParent: !0, relevance: 0, @@ -48450,7 +48476,7 @@ className: "built_in", relevance: 0, }, - { className: "type", begin: /[\.\w\d]+/, relevance: 0 } + { className: "type", begin: /[\.\w\d]+/, relevance: 0 }, ), }; return ( @@ -48482,7 +48508,7 @@ const t = r( /[A-Z_]/, r("(", /[A-Z0-9_.-]*:/, ")?"), - /[A-Z0-9_.-]*/ + /[A-Z0-9_.-]*/, ), s = { className: "symbol", @@ -49146,7 +49172,7 @@ if (!t) throw new TypeError( "Expected Array or iterable object of [k, v] entries, or keyed object: " + - e + e, ); return t; } @@ -49154,7 +49180,7 @@ var t = ue(e); if (!t) throw new TypeError( - "Expected Array or iterable object of values: " + e + "Expected Array or iterable object of values: " + e, ); return t; } @@ -49163,7 +49189,7 @@ if (!t) throw new TypeError( "Expected Array or iterable object of values, or keyed object: " + - e + e, ); return t; } @@ -49209,7 +49235,7 @@ n, G(t).map(function (n, r) { return de(e, n, r, t); - }) + }), ) : ge(t) ? e.call( @@ -49217,7 +49243,7 @@ n, H(t).map(function (n, r) { return de(e, n, r, t); - }) + }), ) : t; } @@ -49505,7 +49531,7 @@ : new Ee( this.get(e, this._end), this.get(t, this._end), - this._step + this._step, )); }), (Ee.prototype.indexOf = function (e) { @@ -49626,7 +49652,7 @@ else { if (void 0 !== Ie && !1 === Ie(e)) throw new Error( - "Non-extensible objects are not allowed as keys." + "Non-extensible objects are not allowed as keys.", ); if (Te) Object.defineProperty(e, Le, { @@ -49643,14 +49669,14 @@ (e.propertyIsEnumerable = function () { return this.constructor.prototype.propertyIsEnumerable.apply( this, - arguments + arguments, ); }), (e.propertyIsEnumerable[Le] = t); else { if (void 0 === e.nodeType) throw new Error( - "Unable to set a non-enumerable property on object." + "Unable to set a non-enumerable property on object.", ); e[Le] = t; } @@ -49687,7 +49713,7 @@ function ze(e) { we( e !== 1 / 0, - "Cannot perform this action with an infinite size." + "Cannot perform this action with an infinite size.", ); } function Ve(e) { @@ -49920,7 +49946,7 @@ (1 << i) | (1 << a), i === a ? [lt(e, t, n + g, r, o)] - : ((s = new Qe(t, r, o)), i < a ? [e, s] : [s, e]) + : ((s = new Qe(t, r, o)), i < a ? [e, s] : [s, e]), ); } function ct(e, t, n, r) { @@ -50362,7 +50388,7 @@ this._root, this._tail, e, - this.__hash + this.__hash, ) : ((this.__ownerID = e), this); }), @@ -51127,7 +51153,7 @@ } : function (e, t) { s[t] = e[1]; - } + }, ), r ? H(s) : l(e) ? G(s) : Z(s) ); @@ -51193,8 +51219,8 @@ null, n.map(function (e) { return e.value; - }) - ) + }), + ), ) ); }); @@ -51353,7 +51379,7 @@ function (o) { return e(o, t ? --n : n++, r); }), - t + t, ); }), (Kt.prototype.__iterator = function (e, t) { @@ -51456,7 +51482,7 @@ (Sn.prototype.set = function (e, t) { if (!this.has(e)) throw new Error( - 'Cannot set unknown key "' + e + '" on ' + On(this) + 'Cannot set unknown key "' + e + '" on ' + On(this), ); if ( this._map && @@ -52121,7 +52147,7 @@ return ye(n, e); }, void 0, - t + t, ); }, getIn: function (e, t) { @@ -52239,7 +52265,7 @@ .map(function (o, s) { return e.call(t, [s, o], r++, n); }) - .fromEntrySeq() + .fromEntrySeq(), ); }, mapKeys: function (e, t) { @@ -52251,7 +52277,7 @@ .map(function (r, o) { return e.call(t, r, o, n); }) - .flip() + .flip(), ); }, }); @@ -52302,9 +52328,9 @@ } : function (e) { r = (r + Ae(e)) | 0; - } + }, ), - r + r, ); } function ar(e, t) { @@ -52314,7 +52340,7 @@ (t = Oe((t << 13) | (t >>> -13), 5)), (t = Oe( (t = ((t + 3864292196) | 0) ^ e) ^ (t >>> 16), - 2246822507 + 2246822507, )), (t = ke((t = Oe(t ^ (t >>> 13), 3266489909)) ^ (t >>> 16))) ); @@ -52362,7 +52388,7 @@ var r = this.slice(0, e); return mn( this, - 1 === n ? r : r.concat(j(arguments, 2), this.slice(e + t)) + 1 === n ? r : r.concat(j(arguments, 2), this.slice(e + t)), ); }, findLastIndex: function (e, t) { @@ -52385,7 +52411,7 @@ return n === e; }, void 0, - t + t, ); }, has: function (e) { @@ -52590,7 +52616,7 @@ (function (e) { var n = t - (e - l); return p ? m(n, s - (e - c)) : n; - })(e) + })(e), ); } function E(e) { @@ -53258,9 +53284,9 @@ .replace(/[\\^$.*+?()[\]{}|]/g, "\\$&") .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - "$1.*?" + "$1.*?", ) + - "$" + "$", ); e.exports = function (e) { return !(!s(e) || o(e)) && (r(e) ? h : a).test(i(e)); @@ -53404,7 +53430,7 @@ void 0 === f && (f = s), o(t, l, f); } }, - l + l, ); }; }, @@ -53844,7 +53870,7 @@ return function t() { return (this && this !== o && this instanceof t ? i : e).apply( s ? n : this, - arguments + arguments, ); }; }; @@ -54652,7 +54678,7 @@ }, 62689: (e) => { var t = RegExp( - "[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]" + "[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]", ); e.exports = function (e) { return t.test(e); @@ -55373,7 +55399,7 @@ a, E, ].join("|"), - "g" + "g", ); e.exports = function (e) { return e.match(x) || []; @@ -55466,7 +55492,7 @@ void 0, void 0, void 0, - (t = n ? void 0 : t) + (t = n ? void 0 : t), ); return (s.placeholder = o.placeholder), s; } @@ -55508,7 +55534,7 @@ (function (e) { var n = t - (e - f); return g ? a(n, u - (e - d)) : n; - })(e) + })(e), ); } function E(e) { @@ -55830,7 +55856,7 @@ return function (t) { return e({}, t); }; - })(t) + })(t), )) : r.mutate.set[s] && (i = l(t, L))), _(T, function (e) { @@ -56461,7 +56487,7 @@ l = r( (function () { return arguments; - })() + })(), ) ? r : function (e) { @@ -57283,7 +57309,7 @@ } filter(e, t) { return new s( - this.elements.filter((n) => e.bind(t)(n.value, n.key, n)) + this.elements.filter((n) => e.bind(t)(n.value, n.key, n)), ); } reject(e, t) { @@ -57543,7 +57569,7 @@ "fantasy-land/chain"(e) { return this.map((t) => e(t), this).reduce( (e, t) => e.concat(t), - this.empty() + this.empty(), ); } "fantasy-land/filter"(e) { @@ -57647,7 +57673,7 @@ toRef(e) { if ("" === this.id.toValue()) throw Error( - "Cannot create reference to an element that does not contain an ID" + "Cannot create reference to an element that does not contain an ID", ); const t = new this.RefElement(this.id.toValue()); return e && (t.path = e), t; @@ -57655,7 +57681,7 @@ findRecursive(...e) { if (arguments.length > 1 && !this.isFrozen) throw new Error( - "Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`" + "Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`", ); const t = e.pop(); let n = new s(); @@ -57734,7 +57760,7 @@ if ("object" != typeof e) throw new Error("Cannot set content to given value"); this._content = Object.keys(e).map( - (t) => new this.MemberElement(t, e[t]) + (t) => new this.MemberElement(t, e[t]), ); } } @@ -57899,7 +57925,7 @@ (e, t) => ( (e[t.key.toValue()] = t.value ? t.value.toValue() : void 0), e ), - {} + {}, ); } get(e) { @@ -57914,7 +57940,7 @@ let t = null; return ( (this.content = this.content.filter( - (n) => n.key.toValue() !== e || ((t = n), !1) + (n) => n.key.toValue() !== e || ((t = n), !1), )), t ); @@ -57994,7 +58020,7 @@ serialise(e) { if (!(e instanceof this.namespace.elements.Element)) throw new TypeError( - `Given element \`${e}\` is not an Element instance` + `Given element \`${e}\` is not an Element instance`, ); let t; e._attributes && @@ -58074,7 +58100,7 @@ r.content.attributes.remove("typeAttributes"), t.set( "default", - new this.namespace.elements.Array([r.content]) + new this.namespace.elements.Array([r.content]), )), o.forEach((e) => { e.content && @@ -58085,7 +58111,7 @@ (o = o.map((e) => e instanceof this.namespace.elements.Array ? [e] - : new this.namespace.elements.Array([e.content]) + : new this.namespace.elements.Array([e.content]), )), o.length && t.set("samples", o), t.length > 0) @@ -58121,7 +58147,7 @@ if (null === e) return new this.namespace.elements.Null(); if (Array.isArray(e)) return new this.namespace.elements.Array( - e.map(this.deserialise, this) + e.map(this.deserialise, this), ); const t = this.namespace.getElementClass(e.element), n = new t(); @@ -58172,7 +58198,7 @@ n.key._attributes.getValue("variable") && (n.attributes.set( "variable", - n.key.attributes.get("variable") + n.key.attributes.get("variable"), ), n.key.attributes.remove("variable")); return n; @@ -58191,7 +58217,7 @@ if (e.element) return this.deserialise(e); if (e.key) { const t = new this.namespace.KeyValuePair( - this.deserialise(e.key) + this.deserialise(e.key), ); return e.value && (t.value = this.deserialise(e.value)), t; } @@ -58222,7 +58248,7 @@ "object" === t.element || "enum" === t.element ? t.children.map((e) => this.serialise(e)) - : t.toValue() + : t.toValue(), ) : "object" === t.element ? (t.content || []).map(this.serialise, this) @@ -58258,7 +58284,7 @@ serialise(e) { if (!(e instanceof this.namespace.elements.Element)) throw new TypeError( - `Given element \`${e}\` is not an Element instance` + `Given element \`${e}\` is not an Element instance`, ); const t = { element: e.element }; e._meta && @@ -58273,7 +58299,7 @@ deserialise(e) { if (!e.element) throw new Error( - "Given value is not an object containing an element name" + "Given value is not an object containing an element name", ); const t = new (this.namespace.getElementClass(e.element))(); t.element !== e.element && (t.element = e.element), @@ -58301,7 +58327,7 @@ if (e.element) return this.deserialise(e); if (e.key) { const t = new this.namespace.KeyValuePair( - this.deserialise(e.key) + this.deserialise(e.key), ); return e.value && (t.value = this.deserialise(e.value)), t; } @@ -58368,7 +58394,7 @@ a = (function (e) { if (null == e) throw new TypeError( - "Object.assign cannot be called with null or undefined" + "Object.assign cannot be called with null or undefined", ); return Object(e); })(e), @@ -58514,7 +58540,7 @@ "double" !== a.quoteStyle ) throw new TypeError( - 'option "quoteStyle" must be "single" or "double"' + 'option "quoteStyle" must be "single" or "double"', ); if ( V(a, "maxStringLength") && @@ -58523,12 +58549,12 @@ : null !== a.maxStringLength) ) throw new TypeError( - 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`' + 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`', ); var l = !V(a, "customInspect") || a.customInspect; if ("boolean" != typeof l && "symbol" !== l) throw new TypeError( - "option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`" + "option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`", ); if ( V(a, "indent") && @@ -58537,14 +58563,14 @@ !(parseInt(a.indent, 10) === a.indent && a.indent > 0) ) throw new TypeError( - 'option "indent" must be "\\t", an integer > 0, or `null`' + 'option "indent" must be "\\t", an integer > 0, or `null`', ); if ( V(a, "numericSeparator") && "boolean" != typeof a.numericSeparator ) throw new TypeError( - 'option "numericSeparator", if provided, must be `true` or `false`' + 'option "numericSeparator", if provided, must be `true` or `false`', ); var m = a.numericSeparator; if (void 0 === t) return "undefined"; @@ -58863,7 +58889,7 @@ return L( b.call(b.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, H), "single", - t + t, ); } function H(e) { @@ -59043,7 +59069,7 @@ function e(e, t, n, o, s, i) { if (i !== r) { var a = new Error( - "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" + "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types", ); throw ((a.name = "Invariant Violation"), a); } @@ -59227,7 +59253,7 @@ "iso-8859-1" !== e.charset ) throw new TypeError( - "The charset option must be either utf-8, iso-8859-1, or undefined" + "The charset option must be either utf-8, iso-8859-1, or undefined", ); var t = void 0 === e.charset ? i.charset : e.charset; return { @@ -59316,13 +59342,13 @@ y.slice(0, b), i.decoder, d, - "key" + "key", )), (g = r.maybeMap( l(y.slice(b + 1), t), function (e) { return t.decoder(e, i.decoder, d, "value"); - } + }, ))), g && t.interpretNumericEntities && @@ -59502,7 +59528,7 @@ "iso-8859-1" !== e.charset ) throw new TypeError( - "The charset option must be either utf-8, iso-8859-1, or undefined" + "The charset option must be either utf-8, iso-8859-1, or undefined", ); var n = s.default; if (void 0 !== e.format) { @@ -59576,7 +59602,7 @@ "boolean" != typeof t.commaRoundTrip ) throw new TypeError( - "`commaRoundTrip` must be a boolean, or absent" + "`commaRoundTrip` must be a boolean, or absent", ); var m = "comma" === f && t && t.commaRoundTrip; n || (n = Object.keys(o)), c.sort && n.sort(c.sort); @@ -59601,8 +59627,8 @@ c.formatter, c.encodeValuesOnly, c.charset, - y - ) + y, + ), ); } var w = h.join(c.delimiter), @@ -59624,7 +59650,7 @@ i = (function () { for (var e = [], t = 0; t < 256; ++t) e.push( - "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase() + "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase(), ); return e; })(), @@ -59901,7 +59927,7 @@ for ( o = this.randInt( e.min, - e.max === 1 / 0 ? e.min + this.max : e.max + e.max === 1 / 0 ? e.min + this.max : e.max, ), r = "", i = 0; @@ -60003,7 +60029,7 @@ }) : (e.exports = function () { throw new Error( - "Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11" + "Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11", ); }); }, @@ -60058,13 +60084,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : l(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -60122,7 +60148,7 @@ try { return ( Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function () {}) + Reflect.construct(Boolean, [], function () {}), ), !0 ); @@ -60142,7 +60168,7 @@ return t; if (void 0 !== t) throw new TypeError( - "Derived constructors may only return object or undefined" + "Derived constructors may only return object or undefined", ); return d(e); })(this, n); @@ -60151,7 +60177,7 @@ function d(e) { if (void 0 === e) throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" + "this hasn't been initialised - super() hasn't been called", ); return e; } @@ -60182,7 +60208,7 @@ !(function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( - "Super expression must either be null or a function" + "Super expression must either be null or a function", ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 }, @@ -60223,7 +60249,7 @@ c.props && "function" == typeof c.props.onClick && c.props.onClick(t); - } + }, ), e ); @@ -60240,7 +60266,7 @@ r = o.default.Children.only(t); return o.default.cloneElement( r, - c(c({}, n), {}, { onClick: this.onClick }) + c(c({}, n), {}, { onClick: this.onClick }), ); }, }, @@ -60344,13 +60370,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : c(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -60384,7 +60410,7 @@ try { return ( Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function () {}) + Reflect.construct(Boolean, [], function () {}), ), !0 ); @@ -60404,7 +60430,7 @@ return t; if (void 0 !== t) throw new TypeError( - "Derived constructors may only return object or undefined" + "Derived constructors may only return object or undefined", ); return d(e); })(this, n); @@ -60413,7 +60439,7 @@ function d(e) { if (void 0 === e) throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" + "this hasn't been initialised - super() hasn't been called", ); return e; } @@ -60444,7 +60470,7 @@ !(function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( - "Super expression must either be null or a function" + "Super expression must either be null or a function", ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 }, @@ -60475,8 +60501,8 @@ u( u({}, e), {}, - { target: u(u({}, e.target), {}, { value: "" }) } - ) + { target: u(u({}, e.target), {}, { value: "" }) }, + ), ); }); }), @@ -60526,8 +60552,8 @@ u( u({}, e), {}, - { target: u(u({}, e.target), {}, { value: r }) } - ) + { target: u(u({}, e.target), {}, { value: r }) }, + ), ); } }), @@ -60603,12 +60629,12 @@ u({}, f), {}, { onChange: this.onChange, value: d }, - e + e, ), - t + t, ), - m - ) + m, + ), ); }, }, @@ -60706,7 +60732,7 @@ ["contentEditable", "draggable", "spellCheck", "value"].forEach( function (e) { y[e] = new g(e, 2, !1, e.toLowerCase(), null, !1, !1); - } + }, ), [ "autoReverse", @@ -60822,7 +60848,7 @@ e, "http://www.w3.org/1999/xlink", !1, - !1 + !1, ); }), ["xml:base", "xml:lang", "xml:space"].forEach(function (e) { @@ -60834,7 +60860,7 @@ e, "http://www.w3.org/XML/1998/namespace", !1, - !1 + !1, ); }), ["tabIndex", "crossOrigin"].forEach(function (e) { @@ -60847,7 +60873,7 @@ "xlink:href", "http://www.w3.org/1999/xlink", !0, - !1 + !1, )), ["src", "href", "action", "formAction"].forEach(function (e) { y[e] = new g(e, 1, !1, e.toLowerCase(), null, !0, !0); @@ -61070,7 +61096,7 @@ var t = G(e) ? "checked" : "value", n = Object.getOwnPropertyDescriptor( e.constructor.prototype, - t + t, ), r = "" + e[t]; if ( @@ -61416,7 +61442,7 @@ source: !0, track: !0, wbr: !0, - } + }, ); function Se(e, t) { if (t) { @@ -61688,7 +61714,7 @@ pt = [], ht = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split( - " " + " ", ); function ft(e, t, n, r, o) { return { @@ -61760,7 +61786,7 @@ e.domEventName, e.eventSystemFlags, t[0], - e.nativeEvent + e.nativeEvent, ); if (null !== n) return null !== (t = no(n)) && tt(t), (e.blockedOn = n), !1; @@ -61783,7 +61809,7 @@ e.domEventName, e.eventSystemFlags, t[0], - e.nativeEvent + e.nativeEvent, ); if (null !== n) { e.blockedOn = n; @@ -62264,7 +62290,7 @@ yn = an(o({}, mn, { dataTransfer: 0 })), vn = an(o({}, fn, { relatedTarget: 0 })), bn = an( - o({}, pn, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }) + o({}, pn, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), ), wn = o({}, pn, { clipboardData: function (e) { @@ -62394,7 +62420,7 @@ twist: 0, pointerType: 0, isPrimary: 0, - }) + }), ), Nn = an( o({}, fn, { @@ -62406,10 +62432,10 @@ ctrlKey: 0, shiftKey: 0, getModifierState: kn, - }) + }), ), In = an( - o({}, pn, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }) + o({}, pn, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), ), Tn = o({}, mn, { deltaX: function (e) { @@ -62671,21 +62697,21 @@ } Rt( "cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split( - " " + " ", ), - 0 + 0, ), Rt( "drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split( - " " + " ", ), - 1 + 1, ), Rt(Tt, 2); for ( var Sr = "change selectionchange textInput compositionstart compositionend compositionupdate".split( - " " + " ", ), _r = 0; _r < Sr.length; @@ -62699,14 +62725,14 @@ c( "onChange", "change click focusin focusout input keydown keyup selectionchange".split( - " " - ) + " ", + ), ), c( "onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split( - " " - ) + " ", + ), ), c("onBeforeInput", [ "compositionend", @@ -62717,27 +62743,27 @@ c( "onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split( - " " - ) + " ", + ), ), c( "onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split( - " " - ) + " ", + ), ), c( "onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split( - " " - ) + " ", + ), ); var jr = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split( - " " + " ", ), Or = new Set( - "cancel close invalid load scroll toggle".split(" ").concat(jr) + "cancel close invalid load scroll toggle".split(" ").concat(jr), ); function kr(e, t, n) { var r = e.type || "unknown-event"; @@ -63858,8 +63884,8 @@ 31, "[object Object]" === Object.prototype.toString.call(t) ? "object with keys {" + Object.keys(t).join(", ") + "}" - : t - ) + : t, + ), ); } function js(e) { @@ -63913,7 +63939,7 @@ : (((r = Kl(n.type, n.key, n.props, null, e.mode, r)).ref = Ss( e, t, - n + n, )), (r.return = e), r); @@ -63990,7 +64016,7 @@ t, (e = e.get(null === r.key ? n : r.key) || null), r, - o + o, ); } if (xs(r) || U(r)) @@ -64126,7 +64152,7 @@ s.props.children, e.mode, l, - s.key + s.key, )).return = e), (e = r)) : (((l = Kl( @@ -64135,7 +64161,7 @@ s.props, null, e.mode, - l + l, )).ref = Ss(e, r, s)), (l.return = e), (e = l)); @@ -64205,7 +64231,7 @@ default: t = fe( (t = (e = 8 === e ? t.parentNode : t).namespaceURI || null), - (e = e.tagName) + (e = e.tagName), ); } co(Cs), uo(Cs, t); @@ -64570,7 +64596,7 @@ } } }, - [n, t, r] + [n, t, r], ), l.useEffect( function () { @@ -64588,7 +64614,7 @@ } }); }, - [t, r] + [t, r], ), (cr(d, n) && cr(m, t) && cr(h, r)) || (((e = { @@ -64834,7 +64860,7 @@ Ys.transition = t; } }, - [e] + [e], ), n ); @@ -64876,7 +64902,7 @@ n("r:" + (Gr++).toString(36)); }, void 0, - null + null, )), t ); @@ -64914,7 +64940,7 @@ Ys.transition = t; } }, - [e] + [e], ), n ); @@ -64958,7 +64984,7 @@ Ys.transition = t; } }, - [e] + [e], ), n ); @@ -65255,7 +65281,7 @@ { mode: "visible", children: e }, t.mode, n, - null + null, )).return = t), (t.child = n))) : (e.memoizedState, @@ -66059,7 +66085,7 @@ r = e.memoizedState; (t = (e = t.stateNode).getSnapshotBeforeUpdate( t.elementType === t.type ? n : Yo(t.type, n), - r + r, )), (e.__reactInternalSnapshotBeforeUpdate = t); } @@ -66116,7 +66142,7 @@ e.componentDidUpdate( r, t.memoizedState, - e.__reactInternalSnapshotBeforeUpdate + e.__reactInternalSnapshotBeforeUpdate, ))), void (null !== (t = n.updateQueue) && ds(n, t, e)) ); @@ -66469,7 +66495,7 @@ n, !!r.multiple, r.multiple ? [] : "", - !1 + !1, )); } } @@ -66591,7 +66617,7 @@ return 0; } })(e)), - ll + ll, )), e ); @@ -66993,7 +67019,7 @@ } while (null !== h); l = Error( (K(a.type) || "A React component") + - " suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display." + " suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.", ); } 5 !== La && (La = 2), (l = ca(l, a)), (h = i); @@ -67360,7 +67386,7 @@ So, n, void 0, - 64 == (64 & n.current.flags) + 64 == (64 & n.current.flags), ); } catch (e) {} if ((gl(e, zo()), Za)) throw ((Za = !1), (e = Ya), (Ya = null), e); @@ -67654,7 +67680,7 @@ 4, null !== e.children ? e.children : [], e.key, - t + t, )).lanes = n), (t.stateNode = { containerInfo: e.containerInfo, @@ -68207,7 +68233,7 @@ n = n.querySelectorAll( "input[name=" + JSON.stringify("" + t) + - '][type="radio"]' + '][type="radio"]', ), t = 0; t < n.length; @@ -68353,7 +68379,7 @@ t, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] - : null + : null, ); }), (t.unstable_renderSubtreeIntoContainer = function (e, t, n, r) { @@ -68386,7 +68412,7 @@ i = function () { invariant( !1, - "ImmutablePropTypes type checking code is stripped in production." + "ImmutablePropTypes type checking code is stripped in production.", ); }; i.isRequired = i; @@ -68424,7 +68450,7 @@ a + "` was not specified in `" + o + - "`." + "`.", ) : void 0 ); @@ -68453,7 +68479,7 @@ o + "`, expected `" + n + - "`." + "`.", ); } return null; @@ -68814,7 +68840,7 @@ (!i.key || (l && l.key === i.key) ? "" : ("" + i.key).replace(j, "$&/") + "/") + - e + e, )), t.push(i)), 1 @@ -68844,8 +68870,8 @@ 31, "[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" - : t - ) + : t, + ), )) ); return l; @@ -68874,7 +68900,7 @@ }, function (t) { 0 === e._status && ((e._status = 2), (e._result = t)); - } + }, ); } if (1 === e._status) return e._result; @@ -68901,7 +68927,7 @@ function () { t.apply(this, arguments); }, - n + n, ); }, count: function (e) { @@ -69046,7 +69072,7 @@ this, (function (e, t, r) { return "string" == typeof n ? n : n(e, t, r); - })(t, r, o) + })(t, r, o), ) || this ); } @@ -69083,7 +69109,7 @@ function (e, t) { return 'The value "' + t + '" is invalid for option "' + e + '"'; }, - TypeError + TypeError, ), n( "ERR_INVALID_ARG_TYPE", @@ -69119,7 +69145,7 @@ } return (a += ". Received type ".concat(typeof n)); }, - TypeError + TypeError, ), n("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), n("ERR_METHOD_NOT_IMPLEMENTED", function (e) { @@ -69135,18 +69161,18 @@ n( "ERR_STREAM_NULL_VALUES", "May not write null values to stream", - TypeError + TypeError, ), n( "ERR_UNKNOWN_ENCODING", function (e) { return "Unknown encoding: " + e; }, - TypeError + TypeError, ), n( "ERR_STREAM_UNSHIFT_AFTER_END_EVENT", - "stream.unshift() after end event" + "stream.unshift() after end event", ), (e.exports.q = t); }, @@ -69350,7 +69376,7 @@ (n = new v( "chunk", ["string", "Buffer", "Uint8Array"], - t + t, )); var r; return n; @@ -69967,7 +69993,7 @@ this._transform( t.writechunk, t.writeencoding, - t.afterTransform + t.afterTransform, )); }), (u.prototype._destroy = function (e, t) { @@ -70218,7 +70244,7 @@ return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", - "DEP0003" + "DEP0003", ), }); } catch (e) {} @@ -70414,7 +70440,7 @@ var r = n.call(e, t || "default"); if ("object" != typeof r) return r; throw new TypeError( - "@@toPrimitive must return a primitive value." + "@@toPrimitive must return a primitive value.", ); } return ("string" === t ? String : Number)(e); @@ -70481,7 +70507,7 @@ t[u] ? n(d(void 0, !0)) : t[h](n, r); }, r); }; - })(r, this) + })(r, this), ); else { var s = this[f].read(); @@ -70494,7 +70520,7 @@ Symbol.asyncIterator, function () { return this; - } + }, ), s(r, "return", function () { var e = this; @@ -70505,7 +70531,7 @@ }); }), r), - y + y, ); e.exports = function (e) { var t, @@ -70528,7 +70554,7 @@ }, writable: !0, }), - t) + t), ); return ( (n[p] = null), @@ -70578,13 +70604,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : r(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -70620,7 +70646,7 @@ var r = n.call(e, t || "default"); if ("object" != typeof r) return r; throw new TypeError( - "@@toPrimitive must return a primitive value." + "@@toPrimitive must return a primitive value.", ); } return ("string" === t ? String : Number)(e); @@ -70793,7 +70819,7 @@ value: function (e, t) { return c( this, - o(o({}, t), {}, { depth: 0, customInspect: !1 }) + o(o({}, t), {}, { depth: 0, customInspect: !1 }), ); }, }, @@ -71169,7 +71195,7 @@ t + '" returned undefined when handling "' + n.type + - '" action. To ignore an action, you must explicitly return the previous state.' + '" action. To ignore an action, you must explicitly return the previous state.', ); }), (e.exports = t.default); @@ -71200,13 +71226,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : o(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -71459,7 +71485,7 @@ (n = "x" === t[1].toLowerCase() ? parseInt(t.slice(2), 16) - : parseInt(t.slice(1), 10)) + : parseInt(t.slice(1), 10)), ) ? p(n) : e; @@ -72402,22 +72428,22 @@ ? ((g[u.token].content = z( g[u.token].content, u.pos, - e.options.quotes[2] + e.options.quotes[2], )), (n.content = z( n.content, o.index, - e.options.quotes[3] + e.options.quotes[3], ))) : ((g[u.token].content = z( g[u.token].content, u.pos, - e.options.quotes[0] + e.options.quotes[0], )), (n.content = z( n.content, o.index, - e.options.quotes[1] + e.options.quotes[1], ))), (y.length = f); continue e; @@ -73234,7 +73260,7 @@ 124 === c[a].charCodeAt(0) ? 1 : 0, 124 === c[a].charCodeAt(c[a].length - 1) ? c[a].length - 1 - : c[a].length + : c[a].length, ) .trim()), e.tokens.push({ @@ -73703,24 +73729,24 @@ } var ge = me(/(?:unquoted|single_quoted|double_quoted)/)( "unquoted", - /[^"'=<>`\x00-\x20]+/ + /[^"'=<>`\x00-\x20]+/, )("single_quoted", /'[^']*'/)("double_quoted", /"[^"]*"/)(), ye = me(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)( "attr_name", - /[a-zA-Z_:][a-zA-Z0-9:._-]*/ + /[a-zA-Z_:][a-zA-Z0-9:._-]*/, )("attr_value", ge)(), ve = me(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)( "attribute", - ye + ye, )(), be = me( - /^(?:open_tag|close_tag|comment|processing|declaration|cdata)/ + /^(?:open_tag|close_tag|comment|processing|declaration|cdata)/, )("open_tag", ve)("close_tag", /<\/[A-Za-z][A-Za-z0-9]*\s*>/)( "comment", - /|/ + /|/, )("processing", /<[?].*?[?]>/)("declaration", /]*>/)( "cdata", - // + //, )(); var we = /^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i, Ee = /^&([a-z][a-z0-9]{1,31});/i; @@ -74426,7 +74452,7 @@ -1 === (t = m(t)).indexOf(":") || -1 === ["vbscript", "javascript", "file", "data"].indexOf( - t.split(":")[0] + t.split(":")[0], ) ); } @@ -74595,7 +74621,7 @@ t && null != t.linkify && console.warn( - "linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n" + "linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n", ), (this.inline = new Se()), (this.block = new te()), @@ -74613,7 +74639,7 @@ var t = this; if (!e) throw new Error( - "Wrong `remarkable` preset, check name/content" + "Wrong `remarkable` preset, check name/content", ); e.options && t.set(e.options), e.components && @@ -74799,7 +74825,7 @@ throw new Error( "createSelector expects an output function after the inputs, but received: [" + typeof l + - "]" + "]", ); var c = a.memoizeOptions, u = void 0 === c ? n : c, @@ -74821,7 +74847,7 @@ throw new Error( "createSelector expects all input-selectors to be functions, but received the following types: [" + n + - "]" + "]", ); } return t; @@ -74832,7 +74858,7 @@ function () { return i++, l.apply(null, arguments); }, - ].concat(p) + ].concat(p), ), d = e(function () { for (var e = [], t = h.length, n = 0; n < t; n++) @@ -74939,7 +74965,7 @@ r.error( e, `Invalid group, character '${n}' after '?' at column ` + - (a - 1) + (a - 1), ), (g.remember = !1)), u.push(g), @@ -75094,7 +75120,7 @@ : s[l], u = String.fromCharCode(c); return /[[\]{}^$.|?*+()]/.test(u) && (u = "\\" + u), u; - } + }, )); }), (t.tokenizeClass = (e, n) => { @@ -75127,7 +75153,7 @@ }), (t.error = (e, t) => { throw new SyntaxError( - "Invalid regular expression: /" + e + "/: " + t + "Invalid regular expression: /" + e + "/: " + t, ); }); }, @@ -75227,11 +75253,11 @@ var d = window.cancelAnimationFrame; "function" != typeof window.requestAnimationFrame && console.error( - "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills" + "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills", ), "function" != typeof d && console.error( - "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills" + "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills", ); } var m = !1, @@ -75246,7 +75272,7 @@ (t.unstable_forceFrameRate = function (e) { 0 > e || 125 < e ? console.error( - "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported" + "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported", ) : (v = 0 < e ? Math.floor(1e3 / e) : 5); }); @@ -75645,7 +75671,7 @@ var t = r[e]; if (!t) throw new Error( - e + " is not supported (we accept pull requests)" + e + " is not supported (we accept pull requests)", ); return new t(); }); @@ -76353,7 +76379,7 @@ return Object.getOwnPropertyNames(e).concat( Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e) - : [] + : [], ); } function x(e, t) { @@ -76365,7 +76391,7 @@ Object.defineProperty( e, n[r], - Object.getOwnPropertyDescriptor(t, n[r]) + Object.getOwnPropertyDescriptor(t, n[r]), ); return e; }); @@ -76388,12 +76414,12 @@ for (var o, s, i = E(r), a = 0; a < i.length; ) (o = i[a++]), (s = Object.getOwnPropertyDescriptor(r, o)).hasOwnProperty( - "value" + "value", ) ? s.value !== t && (n[o] = e( O(n[o]) || Array.isArray(r[o]) ? n[o] : {}, - r[o] + r[o], )) : Object.defineProperty(n, o, s); return n; @@ -76469,7 +76495,7 @@ (n[w] = function () { return r.apply(this, arguments); }), - e + e, ), n ); @@ -76484,7 +76510,7 @@ return ( ((o = {})[e] = s.apply( t, - Array.prototype.concat.apply([{}], arguments) + Array.prototype.concat.apply([{}], arguments), )), (((n = this) && n[w]) || r).call(n, o) ); @@ -76526,7 +76552,7 @@ (o[u] = j((n = E[u]) || r) ? k({}, r, n) : t), (n = E[p]), (o[p] = j( - (r = E.name && { name: { value: E.name } }) || n + (r = E.name && { name: { value: E.name } }) || n, ) ? S({}, n, r) : t), @@ -76534,7 +76560,7 @@ (o[h] = j((n = E[h]) || r) ? S({}, r, n) : t), (r = E[g]), (o[f] = j((n = E[f]) || r) ? k({}, r, n) : t), - o) + o), ); if ( ((e = P.apply(C || s, _)), @@ -76818,7 +76844,7 @@ this.lastChar, this.lastTotal - this.lastNeed, 0, - this.lastNeed + this.lastNeed, ), this.lastChar.toString(this.encoding, 0, this.lastTotal) ); @@ -76826,7 +76852,7 @@ this.lastChar, this.lastTotal - this.lastNeed, 0, - e.length + e.length, ), (this.lastNeed -= e.length); }); @@ -76855,7 +76881,7 @@ if (n) { let n = `${t.toLowerCase()}_${e}`.replace( /[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g, - "_" + "_", ); return ( (n = n || `${e.substring(1)}_${t}`), @@ -77328,14 +77354,14 @@ (~(f = E.auth.indexOf(":")) ? ((E.username = E.auth.slice(0, f)), (E.username = encodeURIComponent( - decodeURIComponent(E.username) + decodeURIComponent(E.username), )), (E.password = E.auth.slice(f + 1)), (E.password = encodeURIComponent( - decodeURIComponent(E.password) + decodeURIComponent(E.password), ))) : (E.username = encodeURIComponent( - decodeURIComponent(E.auth) + decodeURIComponent(E.auth), )), (E.auth = E.password ? E.username + ":" + E.password @@ -77390,11 +77416,11 @@ ~a ? ((s.username = t.slice(0, a)), (s.username = encodeURIComponent( - decodeURIComponent(s.username) + decodeURIComponent(s.username), )), (s.password = t.slice(a + 1)), (s.password = encodeURIComponent( - decodeURIComponent(s.password) + decodeURIComponent(s.password), ))) : (s.username = encodeURIComponent(decodeURIComponent(t))); } @@ -77704,7 +77730,7 @@ (o.prototype.parse = function (e, t, n) { if ("string" != typeof e) throw new TypeError( - "Parameter 'url' must be a string, not " + typeof e + "Parameter 'url' must be a string, not " + typeof e, ); var o = e.indexOf("?"), i = -1 !== o && o < e.indexOf("#") ? "?" : "#", @@ -77790,7 +77816,7 @@ A && ((this.hostname = this.hostname.substr( 1, - this.hostname.length - 2 + this.hostname.length - 2, )), "/" !== v[0] && (v = "/" + v)); } @@ -78112,7 +78138,7 @@ (o.getSnapshot = t), c(o) && u({ inst: o }); }, - [e, n, t] + [e, n, t], ), i( function () { @@ -78123,7 +78149,7 @@ }) ); }, - [e] + [e], ), l(n), n @@ -78190,7 +78216,7 @@ }, ]; }, - [t, n, r, o] + [t, n, r, o], ); var f = i(e, p[0], p[1]); return ( @@ -78198,7 +78224,7 @@ function () { (h.hasValue = !0), (h.value = f); }, - [f] + [f], ), u(f), f @@ -78357,7 +78383,7 @@ u.push( (function (e, t) { return e + '="' + o(t) + '"'; - })(t, e[t]) + })(t, e[t]), ); }); } @@ -78369,8 +78395,8 @@ p.push( ("/g, - "]]]]>" - ) + "]]>" + "]]]]>", + ) + "]]>", ), l.forEach && ((c = !1), @@ -78412,7 +78438,7 @@ !1, (r > 1 ? t.indents : "") + (t.name ? "" : "") + - (t.indent && !n ? "\n" : "") + (t.indent && !n ? "\n" : ""), ), n && n(); } @@ -78433,7 +78459,7 @@ (t.name ? "<" + t.name : "") + (t.attributes.length ? " " + t.attributes.join(" ") : "") + (r ? (t.name ? ">" : "") : t.name ? "/>" : "") + - (t.indent && r > 1 ? "\n" : "") + (t.indent && r > 1 ? "\n" : ""), ), !r) ) @@ -78512,7 +78538,7 @@ i(e, n, this._elem.icount + (n ? 1 : 0)), function () { t.append(!0); - } + }, ); }, close: function (e) { @@ -78561,7 +78587,7 @@ setTimeout(function () { var n = Math.min( 1, - (new Date().getTime() - u) / o + (new Date().getTime() - u) / o, ), r = Math.max( 0, @@ -78570,15 +78596,15 @@ c * (n < 0.5 ? 2 * n * n - : n * (4 - 2 * n) - 1) - ) + : n * (4 - 2 * n) - 1), + ), ); t.toY(r), n < 1 && t.getHeight() + r < t.body.scrollHeight ? e() : (setTimeout(i, 99), a && a()); - }, 9) + }, 9), ); })(); } @@ -78604,10 +78630,10 @@ 0, t.getTopOf(e) - t.getHeight() / 2 + - (r || e.getBoundingClientRect().height / 2) + (r || e.getBoundingClientRect().height / 2), ), n, - o + o, ); }; return { @@ -78661,7 +78687,7 @@ getHeight: function () { return Math.min( e.clientHeight, - window.innerHeight || n.clientHeight + window.innerHeight || n.clientHeight, ); }, getTopOf: function (e) { @@ -78669,7 +78695,7 @@ }, }, r, - o + o, ); }), "addEventListener" in window && @@ -78693,14 +78719,14 @@ "zenscrollY" in e.state && o.toY(e.state.zenscrollY); }, - !1 + !1, )), window.location.hash && setTimeout(function () { var e = o.setup().edgeOffset; if (e) { var t = document.getElementById( - window.location.href.split("#")[1] + window.location.href.split("#")[1], ); if (t) { var n = Math.max(0, o.getTopOf(t) - e), @@ -78710,7 +78736,7 @@ } }, 9); }, - !1 + !1, ); var a = new RegExp("(^|\\s)noZensmooth(\\s|$)"); window.addEventListener( @@ -78761,7 +78787,7 @@ } } }, - !1 + !1, ); } return o; @@ -79406,7 +79432,7 @@ (e.exports = function (e, t, n) { if (!t.has(e)) throw new TypeError( - "attempted to " + n + " private field on non-instance" + "attempted to " + n + " private field on non-instance", ); return t.get(e); }), @@ -79560,7 +79586,7 @@ var s = n.call(e, t || "default"); if ("object" !== o(s)) return s; throw new TypeError( - "@@toPrimitive must return a primitive value." + "@@toPrimitive must return a primitive value.", ); } return ("string" === t ? String : Number)(e); @@ -79634,7 +79660,7 @@ var o = n.call(e, t || "default"); if ("object" !== r(o)) return o; throw new TypeError( - "@@toPrimitive must return a primitive value." + "@@toPrimitive must return a primitive value.", ); } return ("string" === t ? String : Number)(e); @@ -79790,7 +79816,7 @@ s[a - u], i[a - u], e.position - (s[a] - s[a - u]), - d + d, )), (h = o.repeat(" ", t.indent) + @@ -79817,7 +79843,7 @@ s[a + u], i[a + u], e.position - (s[a] - s[a + u]), - d + d, )), (h += o.repeat(" ", t.indent) + @@ -79850,7 +79876,7 @@ t + '" is met in definition of "' + e + - '" YAML type.' + '" YAML type.', ); }), (this.options = t), @@ -79891,7 +79917,7 @@ this.kind + '" is specified for "' + e + - '" YAML type.' + '" YAML type.', ); }; function d(e, t) { @@ -79924,7 +79950,7 @@ (!Array.isArray(e.implicit) && !Array.isArray(e.explicit)) ) throw new a( - "Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })" + "Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })", ); e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit)); @@ -79932,21 +79958,21 @@ t.forEach(function (e) { if (!(e instanceof f)) throw new a( - "Specified list of YAML types (or a single Type object) contains a non-Type object." + "Specified list of YAML types (or a single Type object) contains a non-Type object.", ); if (e.loadKind && "scalar" !== e.loadKind) throw new a( - "There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported." + "There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.", ); if (e.multi) throw new a( - "There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit." + "There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.", ); }), n.forEach(function (e) { if (!(e instanceof f)) throw new a( - "Specified list of YAML types (or a single Type object) contains a non-Type object." + "Specified list of YAML types (or a single Type object) contains a non-Type object.", ); }); var r = Object.create(m.prototype); @@ -80180,7 +80206,7 @@ }, }), O = new RegExp( - "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" + "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$", ); var k = /^[-+]?[0-9]+e/; var A = new f("tag:yaml.org,2002:float", { @@ -80250,10 +80276,10 @@ C = w.extend({ implicit: [E, x, j, A] }), P = C, N = new RegExp( - "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$" + "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$", ), I = new RegExp( - "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$" + "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$", ); var T = new f("tag:yaml.org,2002:timestamp", { kind: "scalar", @@ -80548,7 +80574,7 @@ ? String.fromCharCode(e) : String.fromCharCode( 55296 + ((e - 65536) >> 10), - 56320 + ((e - 65536) & 1023) + 56320 + ((e - 65536) & 1023), ); } for ( @@ -80617,19 +80643,19 @@ ne.test(r) || ye( e, - "ill-formed tag handle (first argument) of the TAG directive" + "ill-formed tag handle (first argument) of the TAG directive", ), W.call(e.tagMap, r) && ye( e, 'there is a previously declared suffix for "' + r + - '" tag handle' + '" tag handle', ), re.test(o) || ye( e, - "ill-formed tag prefix (second argument) of the TAG directive" + "ill-formed tag prefix (second argument) of the TAG directive", ); try { o = decodeURIComponent(o); @@ -80659,7 +80685,7 @@ o.isObject(n) || ye( e, - "cannot merge mappings; the provided source object is unacceptable" + "cannot merge mappings; the provided source object is unacceptable", ), a = 0, l = (s = Object.keys(n)).length; @@ -80842,7 +80868,7 @@ ne.test(n) || ye( e, - "named tag handle cannot contain such characters" + "named tag handle cannot contain such characters", ), (i = !0), (t = e.position + 1))), @@ -80887,7 +80913,7 @@ e.position === t && ye( e, - "name of an anchor node must contain at least one character" + "name of an anchor node must contain at least one character", ), (e.anchor = e.input.slice(t, e.position)), !0 @@ -80971,7 +80997,7 @@ ((e.position = e.firstTabInLine), ye( e, - "tab characters must not be used in indentation" + "tab characters must not be used in indentation", )), (r = e.input.charCodeAt(e.position + 1)), (s = e.line), @@ -80995,7 +81021,7 @@ ae((c = e.input.charCodeAt(++e.position))) || ye( e, - "a whitespace character is expected after the key-value separator within a block mapping" + "a whitespace character is expected after the key-value separator within a block mapping", ), y && (xe(e, h, f, d, m, null, i, a, l), @@ -81010,14 +81036,14 @@ return (e.tag = u), (e.anchor = p), !0; ye( e, - "can not read an implicit mapping pair; a colon is missed" + "can not read an implicit mapping pair; a colon is missed", ); } } else { if (!v) return (e.tag = u), (e.anchor = p), !0; ye( e, - "can not read a block mapping entry; a multiline key may not be an implicit key" + "can not read a block mapping entry; a multiline key may not be an implicit key", ); } } else @@ -81032,7 +81058,7 @@ ? ((y = !1), (o = !0)) : ye( e, - "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line" + "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line", ), (e.position += 1), (c = r); @@ -81110,7 +81136,7 @@ ye(e, "expected the node content, but found ','") : ye( e, - "missed comma between flow collection entries" + "missed comma between flow collection entries", ), (h = null), (a = l = !1), @@ -81144,7 +81170,7 @@ } ye( e, - "unexpected end of the stream within a flow collection" + "unexpected end of the stream within a flow collection", ); })(e, f) ? (y = !0) @@ -81186,12 +81212,12 @@ 0 === s ? ye( e, - "bad explicit indentation width of a block scalar; it cannot be less than one" + "bad explicit indentation width of a block scalar; it cannot be less than one", ) : u ? ye( e, - "repeat of an indentation width identifier" + "repeat of an indentation width identifier", ) : ((p = t + s - 1), (u = !0)); } @@ -81232,7 +81258,7 @@ ? ((f = !0), (e.result += o.repeat( "\n", - c ? 1 + h : h + c ? 1 + h : h, ))) : f ? ((f = !1), @@ -81281,12 +81307,12 @@ : e.position === e.lineStart && je(e) ? ye( e, - "unexpected end of the document within a single quoted scalar" + "unexpected end of the document within a single quoted scalar", ) : (e.position++, (o = e.position)); ye( e, - "unexpected end of the stream within a single quoted scalar" + "unexpected end of the stream within a single quoted scalar", ); })(e, f) || (function (e, t) { @@ -81323,7 +81349,7 @@ ) { for (o = i, s = 0; o > 0; o--) (i = ce( - (a = e.input.charCodeAt(++e.position)) + (a = e.input.charCodeAt(++e.position)), )) >= 0 ? (s = (s << 4) + i) : ye(e, "expected hexadecimal character"); @@ -81338,13 +81364,13 @@ : e.position === e.lineStart && je(e) ? ye( e, - "unexpected end of the document within a double quoted scalar" + "unexpected end of the document within a double quoted scalar", ) : (e.position++, (r = e.position)); } ye( e, - "unexpected end of the stream within a double quoted scalar" + "unexpected end of the stream within a double quoted scalar", ); })(e, f) ? (y = !0) @@ -81363,7 +81389,7 @@ e.position === t && ye( e, - "name of an alias node must contain at least one character" + "name of an alias node must contain at least one character", ), (n = e.input.slice(t, e.position)), W.call(e.anchorMap, n) || @@ -81417,7 +81443,7 @@ if (58 === u) { if ( ae( - (r = e.input.charCodeAt(e.position + 1)) + (r = e.input.charCodeAt(e.position + 1)), ) || (n && le(r)) ) @@ -81480,7 +81506,7 @@ e, 'unacceptable node kind for ! tag; it should be "scalar", not "' + e.kind + - '"' + '"', ), c = 0, u = e.implicitTypes.length; @@ -81519,14 +81545,16 @@ h.kind + '", not "' + e.kind + - '"' + '"', ), h.resolve(e.result, e.tag) ? ((e.result = h.construct(e.result, e.tag)), null !== e.anchor && (e.anchorMap[e.anchor] = e.result)) : ye( e, - "cannot resolve a node with !<" + e.tag + "> explicit tag" + "cannot resolve a node with !<" + + e.tag + + "> explicit tag", ); } return ( @@ -81563,7 +81591,7 @@ (n = e.input.slice(t, e.position)).length < 1 && ye( e, - "directive name must not be less than one character in length" + "directive name must not be less than one character in length", ); 0 !== o; @@ -81604,7 +81632,7 @@ : e.position < e.length - 1 && ye( e, - "end of the stream or a document separator is expected" + "end of the stream or a document separator is expected", ); } function Ie(e, t) { @@ -81642,7 +81670,7 @@ if (0 !== n.length) { if (1 === n.length) return n[0]; throw new a( - "expected a single document in the stream, but found more" + "expected a single document in the stream, but found more", ); } }, @@ -81718,7 +81746,7 @@ else { if (!(e <= 4294967295)) throw new a( - "code point within a string may not be greater than 0xFFFFFFFF" + "code point within a string may not be greater than 0xFFFFFFFF", ); (n = "U"), (r = 8); } @@ -81928,7 +81956,7 @@ }, e.quotingType, e.forceQuotes && !r, - o + o, ) ) { case xt: @@ -81966,8 +81994,8 @@ } return s; })(t, i), - s - ) + s, + ), ) ); case Ot: @@ -82077,7 +82105,7 @@ l.tag + '> tag resolver accepts not "' + c + - '" style' + '" style', ); r = l.represent[c](t, c); } @@ -82208,7 +82236,7 @@ null !== e.tag && "?" !== e.tag && ((l = encodeURI( - "!" === e.tag[0] ? e.tag.slice(1) : e.tag + "!" === e.tag[0] ? e.tag.slice(1) : e.tag, ).replace(/!/g, "%21")), (l = "!" === e.tag[0] @@ -82246,7 +82274,7 @@ e + " is removed in js-yaml 4. Use yaml." + t + - " instead, which is now safe by default." + " instead, which is now safe by default.", ); }; } @@ -82428,7 +82456,7 @@ boundSystem: {}, toolbox: {}, }, - t + t, ), (this.getSystem = m()((e = this._getSystem)).call(e, this)), (this.store = @@ -82467,7 +82495,7 @@ this.getWrappedAndBoundSelectors(n, this.getSystem), this.getStateThunks(n), this.getFn(), - this.getConfigs() + this.getConfigs(), )), e && this.rebuildReducer(); } @@ -82486,7 +82514,7 @@ Im: N(), React: A, }, - this.system.rootInjects || {} + this.system.rootInjects || {}, ); } _getConfigs() { @@ -82525,10 +82553,10 @@ })(e[n])), t ), - {} + {}, ); return c()(n).length ? (0, I.U)(n) : B; - })((0, L.Ay)(e, (e) => e.reducers))) + })((0, L.Ay)(e, (e) => e.reducers))), ); } getType(e) { @@ -82546,7 +82574,7 @@ return (0, L.Ay)(e, (e) => (0, L.Q2)(e, (e, t) => { if ((0, L.LQ)(e)) return { [t]: e }; - }) + }), ); } getWrappedAndBoundActions(e) { @@ -82568,11 +82596,11 @@ }; if (!(0, L.LQ)(r)) throw new TypeError( - "wrapActions needs to return a function that returns a new function (ie the wrapped action)" + "wrapActions needs to return a function that returns a new function (ie the wrapped action)", ); return V(r); }, - e || Function.prototype + e || Function.prototype, )) : e; }) @@ -82606,11 +82634,11 @@ }; if (!(0, L.LQ)(s)) throw new TypeError( - "wrapSelector needs to return a function that returns a new function (ie the wrapped action)" + "wrapSelector needs to return a function that returns a new function (ie the wrapped action)", ); return s; }, - t || Function.prototype + t || Function.prototype, )) : t; }) @@ -82622,7 +82650,7 @@ return S()((t = c()(this.system.statePlugins))).call( t, (t, n) => ((t[n] = e.get(n)), t), - {} + {}, ); } getStateThunks(e) { @@ -82630,7 +82658,7 @@ return S()((t = c()(this.system.statePlugins))).call( t, (t, n) => ((t[n] = () => e().get(n)), t), - {} + {}, ); } getFn() { @@ -82659,7 +82687,7 @@ s[i] = arguments[i]; let a = V(n).apply(null, [e().getIn(o), ...s]); return "function" == typeof a && (a = V(a)(t())), a; - } + }, ); }); } @@ -82761,7 +82789,7 @@ ) t.statePlugins[e].wrapActions[n] = k()((r = i[n])).call( r, - t.statePlugins[e].wrapActions[n] + t.statePlugins[e].wrapActions[n], ); } if ((0, L.Kn)(a)) @@ -82778,7 +82806,7 @@ ) t.statePlugins[e].wrapSelectors[n] = k()((o = a[n])).call( o, - t.statePlugins[e].wrapSelectors[n] + t.statePlugins[e].wrapSelectors[n], ); } } @@ -83042,7 +83070,7 @@ null, ' No layout defined for "', n, - '" ' + '" ', )) ); } @@ -83097,8 +83125,8 @@ className: "close-modal", onClick: this.close, }, - A.createElement(c, null) - ) + A.createElement(c, null), + ), ), A.createElement( "div", @@ -83113,12 +83141,12 @@ authSelectors: t, authActions: n, specSelectors: s, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ); } } @@ -83145,9 +83173,9 @@ onClick: n, }, A.createElement("span", null, "Authorize"), - e ? A.createElement(s, null) : A.createElement(i, null) + e ? A.createElement(s, null) : A.createElement(i, null), ), - t && A.createElement(o, null) + t && A.createElement(o, null), ); } } @@ -83196,7 +83224,7 @@ }, e ? A.createElement(n, { className: "locked" }) - : A.createElement(r, { className: "unlocked" }) + : A.createElement(r, { className: "unlocked" }), ); } } @@ -83260,7 +83288,7 @@ onAuthChange: this.onAuthChange, authorized: c, errSelectors: o, - }) + }), ) .toArray(), A.createElement( @@ -83273,7 +83301,7 @@ className: "btn modal-btn auth", onClick: this.logoutClick, }, - "Logout" + "Logout", ) : A.createElement( l, @@ -83281,7 +83309,7 @@ type: "submit", className: "btn modal-btn auth authorize", }, - "Authorize" + "Authorize", ), A.createElement( l, @@ -83289,9 +83317,9 @@ className: "btn modal-btn auth btn-done", onClick: this.close, }, - "Close" - ) - ) + "Close", + ), + ), ), h && h.size ? A.createElement( @@ -83303,13 +83331,13 @@ A.createElement( "p", null, - "Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes." + "Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes.", ), A.createElement( "p", null, - "API requires the following scopes. Select which ones you want to grant to Swagger UI." - ) + "API requires the following scopes. Select which ones you want to grant to Swagger UI.", + ), ), j()((e = a()(t).call(t, (e) => "oauth2" === e.get("type")))) .call(e, (e, t) => @@ -83320,12 +83348,12 @@ authorized: c, schema: e, name: t, - }) - ) + }), + ), ) - .toArray() + .toArray(), ) - : null + : null, ); } } @@ -83371,7 +83399,7 @@ "div", { key: t }, "Unknown security definition type ", - c + c, ); } return A.createElement("div", { key: `${t}-jump` }, l); @@ -83387,7 +83415,7 @@ "div", { className: "errors" }, A.createElement("b", null, r, " ", t), - A.createElement("span", null, n) + A.createElement("span", null, n), ); } } @@ -83425,7 +83453,7 @@ let f = this.getValue(), d = a()((e = o.allErrors())).call( e, - (e) => e.get("authId") === s + (e) => e.get("authId") === s, ); return A.createElement( "div", @@ -83435,13 +83463,13 @@ null, A.createElement("code", null, s || n.get("name")), " (apiKey)", - A.createElement(h, { path: ["securityDefinitions", s] }) + A.createElement(h, { path: ["securityDefinitions", s] }), ), f && A.createElement("h6", null, "Authorized"), A.createElement( l, null, - A.createElement(p, { source: n.get("description") }) + A.createElement(p, { source: n.get("description") }), ), A.createElement( l, @@ -83450,8 +83478,8 @@ "p", null, "Name: ", - A.createElement("code", null, n.get("name")) - ) + A.createElement("code", null, n.get("name")), + ), ), A.createElement( l, @@ -83460,8 +83488,8 @@ "p", null, "In: ", - A.createElement("code", null, n.get("in")) - ) + A.createElement("code", null, n.get("in")), + ), ), A.createElement( l, @@ -83476,12 +83504,12 @@ type: "text", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), j()((t = d.valueSeq())).call(t, (e, t) => - A.createElement(u, { error: e, key: t }) - ) + A.createElement(u, { error: e, key: t }), + ), ); } } @@ -83523,7 +83551,7 @@ let f = this.getValue().username, d = a()((e = s.allErrors())).call( e, - (e) => e.get("authId") === o + (e) => e.get("authId") === o, ); return A.createElement( "div", @@ -83532,13 +83560,13 @@ "h4", null, "Basic authorization", - A.createElement(p, { path: ["securityDefinitions", o] }) + A.createElement(p, { path: ["securityDefinitions", o] }), ), f && A.createElement("h6", null, "Authorized"), A.createElement( l, null, - A.createElement(h, { source: n.get("description") }) + A.createElement(h, { source: n.get("description") }), ), A.createElement( l, @@ -83555,8 +83583,8 @@ name: "username", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), A.createElement( l, @@ -83572,12 +83600,12 @@ name: "password", type: "password", onChange: this.onChange, - }) - ) + }), + ), ), j()((t = d.valueSeq())).call(t, (e, t) => - A.createElement(u, { error: e, key: t }) - ) + A.createElement(u, { error: e, key: t }), + ), ); } } @@ -83601,13 +83629,13 @@ A.createElement( "div", { className: "example__section-header" }, - "Example Description" + "Example Description", ), A.createElement( "p", null, - A.createElement(s, { source: t.get("description") }) - ) + A.createElement(s, { source: t.get("description") }), + ), ) : null, n && t.has("value") @@ -83617,14 +83645,14 @@ A.createElement( "div", { className: "example__section-header" }, - "Example Value" + "Example Value", ), A.createElement(i, { getConfigs: o, value: (0, L.Pz)(t.get("value")), - }) + }), ) - : null + : null, ) : null; } @@ -83688,7 +83716,7 @@ ? A.createElement( "span", { className: "examples-select__section-label" }, - "Examples: " + "Examples: ", ) : null, A.createElement( @@ -83702,7 +83730,7 @@ ? A.createElement( "option", { value: "__MODIFIED__VALUE__" }, - "[Modified value]" + "[Modified value]", ) : null, j()(e) @@ -83710,11 +83738,11 @@ A.createElement( "option", { key: t, value: t }, - e.get("summary") || t - ) + e.get("summary") || t, + ), ) - .valueSeq() - ) + .valueSeq(), + ), ); } } @@ -83725,7 +83753,7 @@ t[n] = arguments[n]; return console.log( "DEBUG: ExamplesSelect was not given an onSelect callback", - ...t + ...t, ); }, currentExampleKey: null, @@ -83824,7 +83852,7 @@ l = this._getValueForExample(e.currentKey, e), c = a()(n).call( n, - (e) => e.get("value") === t || (0, L.Pz)(e.get("value")) === t + (e) => e.get("value") === t || (0, L.Pz)(e.get("value")) === t, ); if (c.size) { let t; @@ -83875,7 +83903,7 @@ t[n] = arguments[n]; return console.log( "ExamplesSelectValueRetainer: no `onSelect` function was provided", - ...t + ...t, ); }, updateValue: function () { @@ -83883,7 +83911,7 @@ t[n] = arguments[n]; return console.log( "ExamplesSelectValueRetainer: no `updateValue` function was provided", - ...t + ...t, ); }, }); @@ -83986,7 +84014,7 @@ h.push( j()((y = [e, g[e]])) .call(y, encodeURIComponent) - .join("=") + .join("="), ); } const v = a.get("authorizationUrl"); @@ -83994,7 +84022,7 @@ b = i ? Fe()((0, L.Nm)(v), i, !0).toString() : (0, L.Nm)(v); let w, x = [b, h.join("&")].join( - -1 === pe()(v).call(v, "?") ? "?" : "&" + -1 === pe()(v).call(v, "?") ? "?" : "&", ); (w = "implicit" === p @@ -84035,7 +84063,7 @@ this.setState({ scopes: a()((l = this.state.scopes)).call( l, - (e) => e !== s + (e) => e !== s, ), }); } @@ -84058,8 +84086,8 @@ Te()( (t = this.props.schema.get("allowedScopes") || - this.props.schema.get("scopes")) - ).call(t) + this.props.schema.get("scopes")), + ).call(t), ), }) : this.setState({ scopes: [] }); @@ -84135,7 +84163,7 @@ C = !!o.authorized().get(i), P = a()((e = s.allErrors())).call( e, - (e) => e.get("authId") === i + (e) => e.get("authId") === i, ), N = !a()(P).call(P, (e) => "validation" === e.get("source")).size, I = n.get("description"); @@ -84149,7 +84177,7 @@ " (OAuth2, ", O, ") ", - A.createElement(d, { path: ["securityDefinitions", i] }) + A.createElement(d, { path: ["securityDefinitions", i] }), ), this.state.appName ? A.createElement( @@ -84157,7 +84185,7 @@ null, "Application: ", this.state.appName, - " " + " ", ) : null, I && A.createElement(m, { source: n.get("description") }), @@ -84167,27 +84195,27 @@ "p", null, "OpenID Connect URL: ", - A.createElement("code", null, v) + A.createElement("code", null, v), ), (_ === b || _ === E) && A.createElement( "p", null, "Authorization URL: ", - A.createElement("code", null, n.get("authorizationUrl")) + A.createElement("code", null, n.get("authorizationUrl")), ), (_ === w || _ === E || _ === x) && A.createElement( "p", null, "Token URL:", - A.createElement("code", null, " ", n.get("tokenUrl")) + A.createElement("code", null, " ", n.get("tokenUrl")), ), A.createElement( "p", { className: "flow" }, "Flow: ", - A.createElement("code", null, O) + A.createElement("code", null, O), ), _ !== w ? null @@ -84200,7 +84228,7 @@ A.createElement( "label", { htmlFor: "oauth_username" }, - "username:" + "username:", ), C ? A.createElement( @@ -84208,7 +84236,7 @@ null, " ", this.state.username, - " " + " ", ) : A.createElement( p, @@ -84219,8 +84247,8 @@ "data-name": "username", onChange: this.onInputChange, autoFocus: !0, - }) - ) + }), + ), ), A.createElement( u, @@ -84228,7 +84256,7 @@ A.createElement( "label", { htmlFor: "oauth_password" }, - "password:" + "password:", ), C ? A.createElement("code", null, " ****** ") @@ -84240,8 +84268,8 @@ type: "password", "data-name": "password", onChange: this.onInputChange, - }) - ) + }), + ), ), A.createElement( u, @@ -84249,7 +84277,7 @@ A.createElement( "label", { htmlFor: "password_type" }, - "Client credentials location:" + "Client credentials location:", ), C ? A.createElement( @@ -84257,7 +84285,7 @@ null, " ", this.state.passwordType, - " " + " ", ) : A.createElement( p, @@ -84272,16 +84300,16 @@ A.createElement( "option", { value: "basic" }, - "Authorization header" + "Authorization header", ), A.createElement( "option", { value: "request-body" }, - "Request body" - ) - ) - ) - ) + "Request body", + ), + ), + ), + ), ), (_ === x || _ === b || _ === E || _ === w) && (!C || (C && this.state.clientId)) && @@ -84291,7 +84319,7 @@ A.createElement( "label", { htmlFor: "client_id" }, - "client_id:" + "client_id:", ), C ? A.createElement("code", null, " ****** ") @@ -84305,8 +84333,8 @@ initialValue: this.state.clientId, "data-name": "clientId", onChange: this.onInputChange, - }) - ) + }), + ), ), (_ === x || _ === E || _ === w) && A.createElement( @@ -84315,7 +84343,7 @@ A.createElement( "label", { htmlFor: "client_secret" }, - "client_secret:" + "client_secret:", ), C ? A.createElement("code", null, " ****** ") @@ -84328,8 +84356,8 @@ type: "password", "data-name": "clientSecret", onChange: this.onInputChange, - }) - ) + }), + ), ), !C && k && k.size ? A.createElement( @@ -84342,13 +84370,13 @@ A.createElement( "a", { onClick: this.selectScopes, "data-all": !0 }, - "select all" + "select all", ), A.createElement( "a", { onClick: this.selectScopes }, - "select none" - ) + "select none", + ), ), j()(k) .call(k, (e, t) => { @@ -84380,18 +84408,18 @@ A.createElement( "p", { className: "description" }, - e - ) - ) - ) - ) + e, + ), + ), + ), + ), ); }) - .toArray() + .toArray(), ) : null, j()((t = P.valueSeq())).call(t, (e, t) => - A.createElement(f, { error: e, key: t }) + A.createElement(f, { error: e, key: t }), ), A.createElement( "div", @@ -84404,7 +84432,7 @@ className: "btn modal-btn auth authorize", onClick: this.logout, }, - "Logout" + "Logout", ) : A.createElement( h, @@ -84412,7 +84440,7 @@ className: "btn modal-btn auth authorize", onClick: this.authorize, }, - "Authorize" + "Authorize", )), A.createElement( h, @@ -84420,9 +84448,9 @@ className: "btn modal-btn auth btn-done", onClick: this.close, }, - "Close" - ) - ) + "Close", + ), + ), ); } } @@ -84441,7 +84469,7 @@ className: "btn btn-clear opblock-control__btn", onClick: this.onClick, }, - "Clear" + "Clear", ); } } @@ -84451,7 +84479,7 @@ "div", null, A.createElement("h5", null, "Response headers"), - A.createElement("pre", { className: "microlight" }, t) + A.createElement("pre", { className: "microlight" }, t), ); }, qe = (e) => { @@ -84460,7 +84488,7 @@ "div", null, A.createElement("h5", null, "Request duration"), - A.createElement("pre", { className: "microlight" }, t, " ms") + A.createElement("pre", { className: "microlight" }, t, " ms"), ); }; class Ue extends A.Component { @@ -84503,7 +84531,7 @@ e, ": ", t, - " " + " ", ); }), S = 0 !== x.length, @@ -84525,8 +84553,8 @@ "div", { className: "request-url" }, A.createElement("h4", null, "Request URL"), - A.createElement("pre", { className: "microlight" }, h) - ) + A.createElement("pre", { className: "microlight" }, h), + ), ), A.createElement("h4", null, "Server response"), A.createElement( @@ -84541,14 +84569,14 @@ A.createElement( "td", { className: "col_header response-col_status" }, - "Code" + "Code", ), A.createElement( "td", { className: "col_header response-col_description" }, - "Details" - ) - ) + "Details", + ), + ), ), A.createElement( "tbody", @@ -84564,9 +84592,9 @@ ? A.createElement( "div", { className: "response-undocumented" }, - A.createElement("i", null, " Undocumented ") + A.createElement("i", null, " Undocumented "), ) - : null + : null, ), A.createElement( "td", @@ -84589,11 +84617,11 @@ }) : null, S ? A.createElement($e, { headers: x }) : null, - r && y ? A.createElement(qe, { duration: y }) : null - ) - ) - ) - ) + r && y ? A.createElement(qe, { duration: y }) : null, + ), + ), + ), + ), ); } } @@ -84646,8 +84674,8 @@ tag: t, }); }) - .toArray() - ) + .toArray(), + ), ); }); } @@ -84664,9 +84692,9 @@ ? A.createElement( "h3", null, - " No operations defined in spec! " + " No operations defined in spec! ", ) - : null + : null, ); } } @@ -84730,7 +84758,7 @@ ? A.createElement( "small", null, - A.createElement(f, { source: b }) + A.createElement(f, { source: b }), ) : A.createElement("small", null), v @@ -84747,9 +84775,9 @@ onClick: (e) => e.stopPropagation(), target: "_blank", }, - w || v - ) - ) + w || v, + ), + ), ) : null, A.createElement( @@ -84762,10 +84790,10 @@ }, S ? A.createElement(g, { className: "arrow" }) - : A.createElement(y, { className: "arrow" }) - ) + : A.createElement(y, { className: "arrow" }), + ), ), - A.createElement(h, { isOpened: S }, n) + A.createElement(h, { isOpened: S }, n), ); } } @@ -84872,7 +84900,7 @@ A.createElement( "h4", { className: "opblock-title_normal" }, - " Warning: Deprecated" + " Warning: Deprecated", ), I && A.createElement( @@ -84881,8 +84909,8 @@ A.createElement( "div", { className: "opblock-description" }, - A.createElement(H, { source: I }) - ) + A.createElement(H, { source: I }), + ), ), M ? A.createElement( @@ -84891,7 +84919,7 @@ A.createElement( "h4", { className: "opblock-title_normal" }, - "Find more details" + "Find more details", ), A.createElement( "div", @@ -84902,7 +84930,7 @@ { className: "opblock-external-docs__description", }, - A.createElement(H, { source: T.description }) + A.createElement(H, { source: T.description }), ), A.createElement( Q, @@ -84911,9 +84939,9 @@ className: "opblock-external-docs__link", href: (0, L.Nm)(M), }, - M - ) - ) + M, + ), + ), ) : null, D && D.size @@ -84961,7 +84989,7 @@ method: x, specActions: h, currentScheme: $, - }) + }), ) : null, !P || !k || ne.length <= 0 @@ -84974,9 +85002,9 @@ "ul", null, j()(ne).call(ne, (e, t) => - A.createElement("li", { key: t }, " ", e, " ") - ) - ) + A.createElement("li", { key: t }, " ", e, " "), + ), + ), ), A.createElement( "div", @@ -85002,13 +85030,13 @@ path: E, method: x, }) - : null + : null, ), N ? A.createElement( "div", { className: "loading-container" }, - A.createElement("div", { className: "loading" }) + A.createElement("div", { className: "loading" }), ) : null, F @@ -85033,9 +85061,9 @@ : null, ee && U.size ? A.createElement(Y, { extensions: U, getComponent: u }) - : null - ) - ) + : null, + ), + ), ); } } @@ -85103,16 +85131,16 @@ ? A.createElement( "div", { className: "opblock-summary-description" }, - Ge()(g || a) + Ge()(g || a), ) : null, m && (d || f) ? A.createElement( "span", { className: "opblock-summary-operation-id" }, - d || f + d || f, ) - : null + : null, ), A.createElement(x, { textToCopy: `${i.get(1)}` }), k @@ -85135,9 +85163,9 @@ }, e ? A.createElement(S, { className: "arrow" }) - : A.createElement(_, { className: "arrow" }) + : A.createElement(_, { className: "arrow" }), ), - A.createElement(E, { path: i }) + A.createElement(E, { path: i }), ); } } @@ -85152,7 +85180,7 @@ return A.createElement( "span", { className: "opblock-summary-method" }, - e.toUpperCase() + e.toUpperCase(), ); } } @@ -85187,7 +85215,7 @@ isShown: r, path: (0, L.oJ)(`${s}/${i}`), text: l, - }) + }), ); } } @@ -85201,7 +85229,7 @@ A.createElement( "div", { className: "opblock-section-header" }, - A.createElement("h4", null, "Extensions") + A.createElement("h4", null, "Extensions"), ), A.createElement( "div", @@ -85218,14 +85246,14 @@ A.createElement( "td", { className: "col_header" }, - "Field" + "Field", ), A.createElement( "td", { className: "col_header" }, - "Value" - ) - ) + "Value", + ), + ), ), A.createElement( "tbody", @@ -85237,10 +85265,10 @@ xKey: t, xVal: n, }); - }) - ) - ) - ) + }), + ), + ), + ), ); }, nt = (e) => { @@ -85250,7 +85278,7 @@ "tr", null, A.createElement("td", null, t), - A.createElement("td", null, p()(r)) + A.createElement("td", null, p()(r)), ); }; var rt = n(86), @@ -85284,11 +85312,11 @@ var e; const t = a()((e = Ne()(p.current.childNodes))).call( e, - (e) => !!e.nodeType && e.classList.contains("microlight") + (e) => !!e.nodeType && e.classList.contains("microlight"), ); return ( ot()(t).call(t, (e) => - e.addEventListener("mousewheel", h, { passive: !1 }) + e.addEventListener("mousewheel", h, { passive: !1 }), ), () => { ot()(t).call(t, (e) => e.removeEventListener("mousewheel", h)); @@ -85312,8 +85340,8 @@ A.createElement( dt.CopyToClipboard, { text: t }, - A.createElement("button", null) - ) + A.createElement("button", null), + ), ), o ? A.createElement( @@ -85324,7 +85352,7 @@ ft()(t, n); }, }, - "Download" + "Download", ) : null, u @@ -85334,12 +85362,12 @@ language: l, className: it()(r, "microlight"), style: (0, at.C2)( - ct()(c, "syntaxHighlight.theme", "agate") + ct()(c, "syntaxHighlight.theme", "agate"), ), }, - t + t, ) - : A.createElement("pre", { className: it()(r, "microlight") }, t) + : A.createElement("pre", { className: it()(r, "microlight") }, t), ); }; mt.defaultProps = { fileName: "response.txt" }; @@ -85350,8 +85378,8 @@ ce()(this, "onChangeProducesWrapper", (e) => this.props.specActions.changeProducesValue( [this.props.path, this.props.method], - e - ) + e, + ), ), ce()(this, "onResponseContentTypeChange", (e) => { let { controlsAcceptHeader: t, value: n } = e; @@ -85414,8 +85442,8 @@ contentTypes: v, controlId: E, onChange: this.onChangeProducesWrapper, - }) - ) + }), + ), ), A.createElement( "div", @@ -85433,7 +85461,7 @@ method: this.props.method, displayRequestDuration: l, }), - A.createElement("h4", null, "Responses") + A.createElement("h4", null, "Responses"), ) : null, A.createElement( @@ -85453,21 +85481,21 @@ A.createElement( "td", { className: "col_header response-col_status" }, - "Code" + "Code", ), A.createElement( "td", { className: "col_header response-col_description" }, - "Description" + "Description", ), s.isOAS3() ? A.createElement( "td", { className: "col col_header response-col_links" }, - "Links" + "Links", ) - : null - ) + : null, + ), ), A.createElement( "tbody", @@ -85496,16 +85524,16 @@ u, p, "responses", - t + t, ), oas3Actions: f, getComponent: r, }); }) - .toArray() - ) - ) - ) + .toArray(), + ), + ), + ), ); } } @@ -85630,7 +85658,7 @@ getConfigs: n, language: r, value: (0, L.Pz)(e), - }) + }), ) ); } @@ -85646,7 +85674,7 @@ A.createElement( "div", { className: "response-col_description__inner" }, - A.createElement(k, { source: s.get("description") }) + A.createElement(k, { source: s.get("description") }), ), v && b.size ? j()((e = b.entrySeq())).call(e, (e) => { @@ -85672,7 +85700,7 @@ A.createElement( "small", { className: "response-control-media-type__title" }, - "Media type" + "Media type", ), A.createElement(N, { value: this.state.responseContentType, @@ -85691,9 +85719,9 @@ }, "Controls ", A.createElement("code", null, "Accept"), - " header." + " header.", ) - : null + : null, ), B ? A.createElement( @@ -85702,7 +85730,7 @@ A.createElement( "small", { className: "response-control-examples__title" }, - "Examples" + "Examples", ), A.createElement(I, { examples: B, @@ -85715,9 +85743,9 @@ contextName: o, }), showLabels: !1, - }) + }), ) - : null + : null, ) : null, W || R @@ -85735,14 +85763,14 @@ ? A.createElement(T, { example: B.get( this.getTargetExamplesKey(), - (0, P.Map)({}) + (0, P.Map)({}), ), getComponent: c, getConfigs: u, omitValue: !0, }) : null, - w ? A.createElement(S, { headers: w, getComponent: c }) : null + w ? A.createElement(S, { headers: w, getComponent: c }) : null, ), y ? A.createElement( @@ -85758,9 +85786,9 @@ getComponent: c, }); }) - : A.createElement("i", null, "No links") + : A.createElement("i", null, "No links"), ) - : null + : null, ); } } @@ -85775,7 +85803,7 @@ { className: "response__extension" }, t, ": ", - String(n) + String(n), ); }; var St = n(63460), @@ -85853,8 +85881,8 @@ href: a, onClick: () => F.Z.navigator.msSaveOrOpenBlob(i, l), }, - "Download file" - ) + "Download file", + ), ) : A.createElement( "div", @@ -85862,14 +85890,14 @@ A.createElement( "a", { href: a, download: l }, - "Download file" - ) + "Download file", + ), ); } else h = A.createElement( "pre", { className: "microlight" }, - "Download headers detected but your browser does not support downloading binary via XHR (Blob)." + "Download headers detected but your browser does not support downloading binary via XHR (Blob).", ); else if (/json/i.test(t)) { let t = null; @@ -85927,8 +85955,8 @@ A.createElement( "audio", { controls: !0, key: n }, - A.createElement("source", { src: n, type: t }) - ) + A.createElement("source", { src: n, type: t }), + ), ) : "string" == typeof e ? A.createElement(l, { @@ -85946,7 +85974,7 @@ A.createElement( "p", { className: "i" }, - "Unrecognized response type; displaying content as text." + "Unrecognized response type; displaying content as text.", ), A.createElement(l, { downloadable: !0, @@ -85954,12 +85982,12 @@ value: a, getConfigs: o, canCopy: !0, - }) + }), ) : A.createElement( "p", { className: "i" }, - "Unrecognized response type; unable to display." + "Unrecognized response type; unable to display.", ) : null); return h @@ -85967,7 +85995,7 @@ "div", null, A.createElement("h5", null, "Response body"), - h + h, ) : null; } @@ -86002,7 +86030,7 @@ callbackVisible: !0, parametersVisible: !1, }) - : void 0 + : void 0, ), ce()(this, "onChangeMediaType", (e) => { let { value: t, pathMethod: n } = e, @@ -86059,9 +86087,9 @@ const n = t.get("in"); return e[n] ?? (e[n] = []), e[n].push(t), e; }, - {} - ) - )) + {}, + ), + )), ).call(e, (e, t) => k()(e).call(e, t), []); return A.createElement( "div", @@ -86084,8 +86112,8 @@ A.createElement( "h4", { className: "opblock-title" }, - A.createElement("span", null, "Parameters") - ) + A.createElement("span", null, "Parameters"), + ), ), m.get("callbacks") ? A.createElement( @@ -86099,10 +86127,10 @@ A.createElement( "h4", { className: "opblock-title" }, - A.createElement("span", null, "Callbacks") - ) + A.createElement("span", null, "Callbacks"), + ), ) - : null + : null, ) : A.createElement( "div", @@ -86110,8 +86138,8 @@ A.createElement( "h4", { className: "opblock-title" }, - "Parameters" - ) + "Parameters", + ), ), o ? A.createElement(y, { @@ -86122,7 +86150,7 @@ onTryoutClick: t, onResetClick: () => n(h), }) - : null + : null, ), this.state.parametersVisible ? A.createElement( @@ -86146,7 +86174,7 @@ { className: "col_header parameters-col_name", }, - "Name" + "Name", ), A.createElement( "th", @@ -86154,9 +86182,9 @@ className: "col_header parameters-col_description", }, - "Description" - ) - ) + "Description", + ), + ), ), A.createElement( "tbody", @@ -86179,16 +86207,16 @@ oas3Selectors: d, pathMethod: h, isExecute: x, - }) - ) - ) - ) + }), + ), + ), + ), ) : A.createElement( "div", { className: "opblock-description-wrapper" }, - A.createElement("p", null, "No parameters") - ) + A.createElement("p", null, "No parameters"), + ), ) : null, this.state.callbackVisible @@ -86201,7 +86229,7 @@ A.createElement(w, { callbacks: (0, P.Map)(m.get("callbacks")), specPath: b()(i).call(i, 0, -1).push("callbacks"), - }) + }), ) : null, _ && @@ -86220,7 +86248,7 @@ O.get("required") && "required" }`, }, - "Request body" + "Request body", ), A.createElement( "label", @@ -86233,8 +86261,8 @@ }, className: "body-param-content-type", ariaLabel: "Request content type", - }) - ) + }), + ), ), A.createElement( "div", @@ -86257,7 +86285,7 @@ activeExamplesKey: d.activeExamplesMember( ...h, "requestBody", - "requestBody" + "requestBody", ), updateActiveExamplesKey: (e) => { this.props.oas3Actions.setActiveExamplesMember({ @@ -86286,9 +86314,9 @@ }); }, contentType: d.requestContentType(...h), - }) - ) - ) + }), + ), + ), ); } } @@ -86307,7 +86335,7 @@ { className: "parameter__extension" }, t, ": ", - String(n) + String(n), ); }, Rt = { onChange: () => {}, isIncludedOptions: {} }; @@ -86342,8 +86370,8 @@ checked: !t && e, onChange: this.onCheckboxChange, }), - "Send empty value" - ) + "Send empty value", + ), ); } } @@ -86409,7 +86437,7 @@ const e = r.activeExamplesMember( ...t, "parameters", - this.getParamKey() + this.getParamKey(), ); n = void 0 !== s.getIn(["examples", e, "value"]) @@ -86432,7 +86460,7 @@ l && !s.get("examples") && this.onChangeWrapper( - P.List.isList(l) ? l : (0, L.Pz)(l) + P.List.isList(l) ? l : (0, L.Pz)(l), ); } }), @@ -86548,7 +86576,7 @@ : "parameter__name", }, n.get("name"), - U ? A.createElement("span", null, " *") : null + U ? A.createElement("span", null, " *") : null, ), A.createElement( "div", @@ -86561,20 +86589,20 @@ { className: "prop-format" }, "($", M, - ")" - ) + ")", + ), ), A.createElement( "div", { className: "parameter__deprecated" }, - f && n.get("deprecated") ? "deprecated" : null + f && n.get("deprecated") ? "deprecated" : null, ), A.createElement( "div", { className: "parameter__in" }, "(", n.get("in"), - ")" + ")", ), m && V.size ? j()((e = V.entrySeq())).call(e, (e) => { @@ -86595,7 +86623,7 @@ xVal: n, }); }) - : null + : null, ), A.createElement( "td", @@ -86630,7 +86658,7 @@ A.createElement( "div", null, - "Error: your browser does not support FormData" + "Error: your browser does not support FormData", ), f && n.get("examples") ? A.createElement( @@ -86645,10 +86673,10 @@ currentKey: h.activeExamplesMember( ...u, "parameters", - this.getParamKey() + this.getParamKey(), ), currentUserInputValue: z, - }) + }), ) : null, b @@ -86682,7 +86710,7 @@ isIncluded: c.parameterInclusionSettingFor( u, n.get("name"), - n.get("in") + n.get("in"), ), isDisabled: !(0, L.O2)(z), }) @@ -86694,14 +86722,14 @@ h.activeExamplesMember( ...u, "parameters", - this.getParamKey() + this.getParamKey(), ), ]), getComponent: o, getConfigs: s, }) - : null - ) + : null, + ), ) ); } @@ -86797,8 +86825,8 @@ ce()(this, "onChangeProducesWrapper", (e) => this.props.specActions.changeProducesValue( [this.props.path, this.props.method], - e - ) + e, + ), ); } render() { @@ -86810,7 +86838,7 @@ onClick: this.onClick, disabled: e, }, - "Execute" + "Execute", ); } } @@ -86827,7 +86855,7 @@ A.createElement( "h4", { className: "headers__title" }, - "Headers:" + "Headers:", ), A.createElement( "table", @@ -86841,19 +86869,19 @@ A.createElement( "th", { className: "header-col" }, - "Name" + "Name", ), A.createElement( "th", { className: "header-col" }, - "Description" + "Description", ), A.createElement( "th", { className: "header-col" }, - "Type" - ) - ) + "Type", + ), + ), ), A.createElement( "tbody", @@ -86873,12 +86901,12 @@ A.createElement( "td", { className: "header-col" }, - t + t, ), A.createElement( "td", { className: "header-col" }, - s ? A.createElement(o, { source: s }) : null + s ? A.createElement(o, { source: s }) : null, ), A.createElement( "td", @@ -86891,13 +86919,13 @@ propVal: a, propClass: "header-example", }) - : null - ) + : null, + ), ); }) - .toArray() - ) - ) + .toArray(), + ), + ), ) : null; } @@ -86916,7 +86944,7 @@ let l = t.allErrors(), c = a()(l).call( l, - (e) => "thrown" === e.get("type") || "error" === e.get("level") + (e) => "thrown" === e.get("type") || "error" === e.get("level"), ); if (!c || c.count() < 1) return null; let u = n.isShown(["errorPane"], !0), @@ -86934,8 +86962,8 @@ className: "btn errors__clear-btn", onClick: () => r.show(["errorPane"], !u), }, - u ? "Hide" : "Show" - ) + u ? "Hide" : "Show", + ), ), A.createElement( s, @@ -86954,9 +86982,9 @@ : "spec" === n ? A.createElement(Vt, { key: t, error: e, jumpToLine: i }) : void 0; - }) - ) - ) + }), + ), + ), ); } } @@ -86979,12 +87007,12 @@ : "", t.get("path") ? A.createElement("small", null, " at ", t.get("path")) - : null + : null, ), A.createElement( "span", { className: "message thrown" }, - t.get("message") + t.get("message"), ), A.createElement( "div", @@ -86994,12 +87022,12 @@ "a", { onClick: m()(n).call(n, null, r) }, "Jump to line ", - r + r, ) - : null - ) + : null, + ), ) - : null + : null, ); }, Vt = (e) => { @@ -87012,7 +87040,7 @@ "small", null, "at ", - t.get("path").join(".") + t.get("path").join("."), ) : A.createElement("small", null, "at ", t.get("path"))) : t.get("line") && @@ -87021,7 +87049,7 @@ "small", null, "on line ", - t.get("line") + t.get("line"), )), A.createElement( "div", @@ -87035,12 +87063,12 @@ null, Wt(t.get("source")) + " " + t.get("level"), " ", - r + r, ), A.createElement( "span", { className: "message" }, - t.get("message") + t.get("message"), ), A.createElement( "div", @@ -87050,12 +87078,12 @@ "a", { onClick: m()(n).call(n, null, t.get("line")) }, "Jump to line ", - t.get("line") + t.get("line"), ) - : null - ) + : null, + ), ) - : null + : null, ) ); }; @@ -87070,7 +87098,7 @@ constructor() { super(...arguments), ce()(this, "onChangeWrapper", (e) => - this.props.onChange(e.target.value) + this.props.onChange(e.target.value), ); } componentDidMount() { @@ -87109,10 +87137,10 @@ }, j()(r) .call(r, (e) => - A.createElement("option", { key: e, value: e }, e) + A.createElement("option", { key: e, value: e }, e), ) - .toArray() - ) + .toArray(), + ), ) : null; } @@ -87132,7 +87160,7 @@ return Zt()( (e = a()(n) .call(n, (e) => !!e) - .join(" ")) + .join(" ")), ).call(e); } class Xt extends A.Component { @@ -87142,7 +87170,7 @@ let r = "swagger-container" + (t ? "-full" : ""); return A.createElement( "section", - Ht()({}, n, { className: Yt(n.className, r) }) + Ht()({}, n, { className: Yt(n.className, r) }), ); } } @@ -87188,7 +87216,7 @@ "div", Ht()({}, this.props, { className: Yt(this.props.className, "wrapper"), - }) + }), ); } } @@ -87198,7 +87226,7 @@ "button", Ht()({}, this.props, { className: Yt(this.props.className, "button"), - }) + }), ); } } @@ -87218,7 +87246,7 @@ ? (t = j()( (s = a()(o).call(o, function (e) { return e.selected; - })) + })), ).call(s, function (e) { return e.value; })) @@ -87260,9 +87288,9 @@ return A.createElement( "option", { key: t, value: String(e) }, - String(e) + String(e), ); - }) + }), ); } } @@ -87274,7 +87302,7 @@ Ht()({}, this.props, { rel: "noopener noreferrer", className: Yt(this.props.className, "link"), - }) + }), ); } } @@ -87285,7 +87313,7 @@ { className: "no-margin" }, " ", t, - " " + " ", ); }; class cn extends A.Component { @@ -87330,7 +87358,7 @@ A.createElement( "h4", { className: "overview-title" }, - "Overview" + "Overview", ), j()(o) .call(o, (e, r) => { @@ -87348,7 +87376,7 @@ }, " ", a ? "-" : "+", - r + r, ), A.createElement( s, @@ -87371,13 +87399,13 @@ onClick: n.show, }); }) - .toArray() - ) + .toArray(), + ), ); }) .toArray(), o.size < 1 && - A.createElement("h3", null, " No operations defined in spec! ") + A.createElement("h3", null, " No operations defined in spec! "), ); } } @@ -87410,10 +87438,10 @@ A.createElement( "small", { className: `bold-label-${t}` }, - t.toUpperCase() + t.toUpperCase(), ), - A.createElement("span", { className: "bold-label" }, e) - ) + A.createElement("span", { className: "bold-label" }, e), + ), ); } } @@ -87431,7 +87459,7 @@ } = this.props; return A.createElement( "input", - Ht()({}, r, { ref: (e) => (this.inputRef = e) }) + Ht()({}, r, { ref: (e) => (this.inputRef = e) }), ); } } @@ -87444,7 +87472,7 @@ "[ Base URL: ", e, t, - " ]" + " ]", ); } } @@ -87455,7 +87483,7 @@ return A.createElement( n, { target: "_blank", href: (0, L.Nm)(e) }, - A.createElement("span", { className: "url" }, " ", e) + A.createElement("span", { className: "url" }, " ", e), ); } } @@ -87497,15 +87525,15 @@ "h2", { className: "title" }, u, - l && A.createElement(b, { version: l }) + l && A.createElement(b, { version: l }), ), n || r ? A.createElement(E, { host: n, basePath: r }) : null, - t && A.createElement(w, { getComponent: o, url: t }) + t && A.createElement(w, { getComponent: o, url: t }), ), A.createElement( "div", { className: "description" }, - A.createElement(y, { source: c }) + A.createElement(y, { source: c }), ), p && A.createElement( @@ -87514,8 +87542,8 @@ A.createElement( v, { target: "_blank", href: (0, L.Nm)(p) }, - "Terms of service" - ) + "Terms of service", + ), ), (null == h ? void 0 : h.size) > 0 && A.createElement(S, { @@ -87539,9 +87567,9 @@ target: "_blank", href: (0, L.Nm)(m), }, - g || m + g || m, ) - : null + : null, ); } } @@ -87573,7 +87601,7 @@ getComponent: t, selectedServer: l, }) - : null + : null, ); } } @@ -87600,15 +87628,15 @@ a, { href: (0, L.Nm)(s), target: "_blank" }, o, - " - Website" - ) + " - Website", + ), ), i && A.createElement( a, { href: (0, L.Nm)(`mailto:${i}`) }, - s ? `Send email to ${o}` : `Contact ${o}` - ) + s ? `Send email to ${o}` : `Contact ${o}`, + ), ); } } @@ -87634,10 +87662,10 @@ A.createElement( i, { target: "_blank", href: (0, L.Nm)(s) }, - o - ) + o, + ), ) - : A.createElement("span", null, o) + : A.createElement("span", null, o), ); } } @@ -87660,8 +87688,8 @@ A.createElement( dt.CopyToClipboard, { text: this.props.textToCopy }, - A.createElement(t, null) - ) + A.createElement(t, null), + ), ); } } @@ -87712,9 +87740,9 @@ onChange: this.onFilterChange, value: !0 === i || "true" === i ? "" : i, disabled: o, - }) - ) - ) + }), + ), + ), ) ); } @@ -87759,7 +87787,7 @@ this.onChange(r, { isXml: n, isEditBox: this.state.isEditBox }); }), ce()(this, "toggleIsEditBox", () => - this.setState((e) => ({ isEditBox: !e.isEditBox })) + this.setState((e) => ({ isEditBox: !e.isEditBox })), ), (this.state = { isEditBox: !1, value: "" }); } @@ -87785,7 +87813,7 @@ u = i("contentType"); let p = (r ? r.parameterWithMetaByIdentity(o, t) : t).get( "errors", - (0, P.List)() + (0, P.List)(), ), h = r.contentTypeValues(o).get("requestContentType"), f = @@ -87832,8 +87860,8 @@ : "btn edit body-param__example-edit", onClick: this.toggleIsEditBox, }, - m ? "Cancel" : "Edit" - ) + m ? "Cancel" : "Edit", + ), ) : null, A.createElement( @@ -87846,9 +87874,9 @@ onChange: e, className: "body-param-content-type", ariaLabel: "Parameter content type", - }) - ) - ) + }), + ), + ), ) ); } @@ -87873,7 +87901,7 @@ className: "curl microlight", style: (0, at.C2)(ct()(r, "syntaxHighlight.theme")), }, - n + n, ) : A.createElement("textarea", { readOnly: !0, @@ -87890,10 +87918,10 @@ A.createElement( dt.CopyToClipboard, { text: n }, - A.createElement("button", null) - ) + A.createElement("button", null), + ), ), - A.createElement("div", null, o) + A.createElement("div", null, o), ); } } @@ -87927,17 +87955,17 @@ A.createElement( "span", { className: "schemes-title" }, - "Schemes" + "Schemes", ), A.createElement( "select", { onChange: this.onChange, value: n }, j()((e = t.valueSeq())) .call(e, (e) => - A.createElement("option", { value: e, key: e }, e) + A.createElement("option", { value: e, key: e }, e), ) - .toArray() - ) + .toArray(), + ), ); } } @@ -87967,7 +87995,7 @@ this.props.onToggle && this.props.onToggle( this.props.modelName, - !this.state.expanded + !this.state.expanded, ), this.setState({ expanded: !this.state.expanded }); }), @@ -87977,7 +88005,7 @@ N().is(t, this.props.specPath) && this.toggleCollapsed(), this.props.layoutActions.readyToScroll( this.props.specPath, - e.parentElement + e.parentElement, ); } }); @@ -88005,7 +88033,7 @@ ? A.createElement( "span", { className: t || "" }, - this.props.children + this.props.children, ) : A.createElement( "span", @@ -88024,9 +88052,13 @@ (this.state.expanded ? "" : " collapsed"), }), !this.state.expanded && - A.createElement("span", null, this.state.collapsedContent) + A.createElement( + "span", + null, + this.state.collapsedContent, + ), ), - this.state.expanded && this.props.children + this.state.expanded && this.props.children, ); } } @@ -88109,8 +88141,8 @@ onClick: this.activeTab, role: "tab", }, - o ? "Edit Value" : "Example Value" - ) + o ? "Edit Value" : "Example Value", + ), ), n && A.createElement( @@ -88132,9 +88164,9 @@ onClick: this.activeTab, role: "tab", }, - g ? "Schema" : "Model" - ) - ) + g ? "Schema" : "Model", + ), + ), ), "example" === this.state.activeTab && A.createElement( @@ -88151,7 +88183,7 @@ A.createElement(p, { value: "(no example available)", getConfigs: s, - }) + }), ), "model" === this.state.activeTab && A.createElement( @@ -88173,8 +88205,8 @@ specPath: i, includeReadOnly: a, includeWriteOnly: l, - }) - ) + }), + ), ); } } @@ -88204,8 +88236,8 @@ depth: 1, onToggle: this.onToggle, expandDepth: this.props.expandDepth || 0, - }) - ) + }), + ), ) ); } @@ -88217,7 +88249,7 @@ ce()(this, "getSchemaBasePath", () => this.props.specSelectors.isOAS3() ? ["components", "schemas"] - : ["definitions"] + : ["definitions"], ), ce()(this, "getCollapsedContent", () => " "), ce()(this, "handleToggle", (e, t) => { @@ -88233,7 +88265,7 @@ e && this.props.layoutActions.readyToScroll( this.getSchemaBasePath(), - e + e, ); }), ce()(this, "onLoadModel", (e) => { @@ -88241,7 +88273,7 @@ const t = e.getAttribute("data-name"); this.props.layoutActions.readyToScroll( [...this.getSchemaBasePath(), t], - e + e, ); } }); @@ -88284,8 +88316,8 @@ onClick: () => o.show(c, !u), }, A.createElement("span", null, p ? "Schemas" : "Models"), - u ? A.createElement(g, null) : A.createElement(y, null) - ) + u ? A.createElement(g, null) : A.createElement(y, null), + ), ), A.createElement( f, @@ -88326,8 +88358,8 @@ A.createElement( "span", { className: "model model-title" }, - v - ) + v, + ), ); return A.createElement( "div", @@ -88341,7 +88373,7 @@ A.createElement( "span", { className: "models-jump-to-path" }, - A.createElement(m, { specPath: u }) + A.createElement(m, { specPath: u }), ), A.createElement( d, @@ -88358,12 +88390,12 @@ hideSelfOnExpand: !0, expanded: l > 0 && b, }, - w - ) + w, + ), ); }) - .toArray() - ) + .toArray(), + ), ); } } @@ -88381,8 +88413,8 @@ { collapsedContent: o }, "[ ", t.join(", "), - " ]" - ) + " ]", + ), ); }; class $n extends A.Component { @@ -88425,7 +88457,7 @@ "minProperties", "nullable", "example", - ]) + ]), ).call(n, t) ); }), @@ -88442,7 +88474,7 @@ A.createElement( "span", { className: "model-jump-to-path" }, - A.createElement(D, { specPath: m }) + A.createElement(D, { specPath: m }), ), V = A.createElement( "span", @@ -88450,7 +88482,7 @@ A.createElement("span", null, "{"), "...", A.createElement("span", null, "}"), - l ? A.createElement(z, null) : "" + l ? A.createElement(z, null) : "", ), W = y.isOAS3() ? o.get("anyOf") : null, J = y.isOAS3() ? o.get("oneOf") : null, @@ -88465,9 +88497,13 @@ A.createElement( "span", { className: "model-hint" }, - o.get("$$ref") + o.get("$$ref"), ), - A.createElement("span", { className: "model-title__text" }, C) + A.createElement( + "span", + { className: "model-title__text" }, + C, + ), ); return A.createElement( "span", @@ -88484,7 +88520,7 @@ A.createElement( "span", { className: "brace-open object" }, - "{" + "{", ), l ? A.createElement(z, null) : null, A.createElement( @@ -88504,8 +88540,8 @@ A.createElement( "td", null, - A.createElement(F, { source: _ }) - ) + A.createElement(F, { source: _ }), + ), ) : null, R && @@ -88519,16 +88555,16 @@ A.createElement( U, { target: "_blank", href: (0, L.Nm)(R) }, - M || R - ) - ) + M || R, + ), + ), ), T ? A.createElement( "tr", { className: "property" }, A.createElement("td", null, "deprecated:"), - A.createElement("td", null, "true") + A.createElement("td", null, "true"), ) : null, O && O.size @@ -88539,7 +88575,7 @@ (!t.get("readOnly") || w) && (!t.get("writeOnly") || E) ); - })) + })), ) .call(e, (e) => { let [t, n] = e, @@ -88560,8 +88596,8 @@ A.createElement( "span", { className: "star" }, - "*" - ) + "*", + ), ), A.createElement( "td", @@ -88578,10 +88614,10 @@ getConfigs: u, schema: n, depth: h + 1, - } - ) - ) - ) + }, + ), + ), + ), ) ); }) @@ -88591,7 +88627,7 @@ ? A.createElement( "tr", null, - A.createElement("td", null, " ") + A.createElement("td", null, " "), ) : null, S @@ -88604,7 +88640,7 @@ "tr", { key: t, className: "extension" }, A.createElement("td", null, t), - A.createElement("td", null, p()(r)) + A.createElement("td", null, p()(r)), ); }) .toArray() @@ -88626,9 +88662,9 @@ getConfigs: u, schema: k, depth: h + 1, - }) - ) - ) + }), + ), + ), ) : null, W @@ -88652,11 +88688,11 @@ getConfigs: u, schema: e, depth: h + 1, - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ) : null, J @@ -88680,11 +88716,11 @@ getConfigs: u, schema: e, depth: h + 1, - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ) : null, K @@ -88707,16 +88743,16 @@ getConfigs: u, schema: K, depth: h + 1, - }) - ) - ) - ) + }), + ), + ), + ), ) - : null - ) - ) + : null, + ), + ), ), - A.createElement("span", { className: "brace-close" }, "}") + A.createElement("span", { className: "brace-close" }, "}"), ), I.size ? j()((r = I.entrySeq())).call(r, (e) => { @@ -88728,7 +88764,7 @@ propClass: "property", }); }) - : null + : null, ); } } @@ -88759,7 +88795,7 @@ "description", "$$ref", "externalDocs", - ]) + ]), ).call(n, t) ); }), @@ -88775,7 +88811,11 @@ A.createElement( "span", { className: "model-title" }, - A.createElement("span", { className: "model-title__text" }, h) + A.createElement( + "span", + { className: "model-title__text" }, + h, + ), ); return A.createElement( "span", @@ -88807,8 +88847,8 @@ A.createElement( w, { target: "_blank", href: (0, L.Nm)(d) }, - m || d - ) + m || d, + ), ), A.createElement( "span", @@ -88822,11 +88862,11 @@ schema: p, required: !1, depth: o + 1, - }) - ) + }), + ), ), - "]" - ) + "]", + ), ); } } @@ -88865,7 +88905,7 @@ "description", "$$ref", "externalDocs", - ]) + ]), ).call(n, t) ); }) @@ -88882,7 +88922,11 @@ A.createElement( "span", { className: "model-title" }, - A.createElement("span", { className: "model-title__text" }, g) + A.createElement( + "span", + { className: "model-title__text" }, + g, + ), ); return A.createElement( "span", @@ -88908,7 +88952,7 @@ { className: "prop-format" }, "($", f, - ")" + ")", ), b.size ? j()((e = b.entrySeq())).call(e, (e) => { @@ -88940,8 +88984,8 @@ A.createElement( k, { target: "_blank", href: (0, L.Nm)(w) }, - E || w - ) + E || w, + ), ), d && d.size ? A.createElement( @@ -88959,15 +89003,15 @@ "   ", t, ": ", - String(n) + String(n), ); }) - .toArray() + .toArray(), ) : null, - m && A.createElement(S, { value: m, getComponent: o }) - ) - ) + m && A.createElement(S, { value: m, getComponent: o }), + ), + ), ); } } @@ -88979,7 +89023,7 @@ A.createElement("br", null), t, ": ", - String(n) + String(n), ); }; class Wn extends A.Component { @@ -89000,19 +89044,19 @@ ? A.createElement( "button", { className: "btn try-out__btn cancel", onClick: t }, - "Cancel" + "Cancel", ) : A.createElement( "button", { className: "btn try-out__btn", onClick: e }, - "Try it out " + "Try it out ", ), i && A.createElement( "button", { className: "btn try-out__btn reset", onClick: n }, - "Reset" - ) + "Reset", + ), ); } } @@ -89051,7 +89095,7 @@ A.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), A.createElement( "p", @@ -89059,7 +89103,7 @@ A.createElement("code", null, "swagger"), " and ", A.createElement("code", null, "openapi"), - " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields." + " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.", ), A.createElement( "p", @@ -89070,10 +89114,10 @@ A.createElement("code", null, "openapi: 3.0.n"), " (for example, ", A.createElement("code", null, "openapi: 3.0.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ) : t || n ? A.createElement("div", null, this.props.children) @@ -89093,12 +89137,12 @@ A.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), A.createElement( "p", null, - "The provided definition does not specify a valid version field." + "The provided definition does not specify a valid version field.", ), A.createElement( "p", @@ -89109,10 +89153,10 @@ A.createElement("code", null, "openapi: 3.0.n"), " (for example, ", A.createElement("code", null, "openapi: 3.0.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ); } } @@ -89126,7 +89170,7 @@ return A.createElement( "small", null, - A.createElement("pre", { className: "version" }, " ", t, " ") + A.createElement("pre", { className: "version" }, " ", t, " "), ); }, Hn = (e) => { @@ -89138,7 +89182,7 @@ onClick: t ? (e) => e.preventDefault() : null, href: t ? `#/${n}` : null, }, - A.createElement("span", null, r) + A.createElement("span", null, r), ); }, Gn = () => @@ -89160,56 +89204,56 @@ { viewBox: "0 0 20 20", id: "unlocked" }, A.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 20 20", id: "locked" }, A.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 20 20", id: "close" }, A.createElement("path", { d: "M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow" }, A.createElement("path", { d: "M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow-down" }, A.createElement("path", { d: "M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow-up" }, A.createElement("path", { d: "M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 24 24", id: "jump-to" }, A.createElement("path", { d: "M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 24 24", id: "expand" }, A.createElement("path", { d: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z", - }) + }), ), A.createElement( "symbol", @@ -89221,11 +89265,11 @@ fill: "#ffffff", fillRule: "evenodd", d: "M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z", - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ); var Zn = n(4599); class Yn extends A.Component { @@ -89262,8 +89306,8 @@ A.createElement( "div", { className: "loading-container" }, - A.createElement("div", { className: "loading" }) - ) + A.createElement("div", { className: "loading" }), + ), )), "failed" === w && (E = A.createElement( @@ -89275,10 +89319,10 @@ A.createElement( "h4", { className: "title" }, - "Failed to load API definition." + "Failed to load API definition.", ), - A.createElement(p, null) - ) + A.createElement(p, null), + ), )), "failedConfig" === w) ) { @@ -89293,10 +89337,10 @@ A.createElement( "h4", { className: "title" }, - "Failed to load remote configuration." + "Failed to load remote configuration.", ), - A.createElement("p", null, n) - ) + A.createElement("p", null, n), + ), ); } if ( @@ -89305,14 +89349,14 @@ (E = A.createElement( "h4", null, - "No API definition provided." + "No API definition provided.", )), E) ) return A.createElement( "div", { className: "swagger-ui" }, - A.createElement("div", { className: "loading-container" }, E) + A.createElement("div", { className: "loading-container" }, E), ); const x = t.servers(), S = t.schemes(), @@ -89334,7 +89378,7 @@ A.createElement( c, { className: "information-container" }, - A.createElement(u, { mobile: 12 }, A.createElement(o, null)) + A.createElement(u, { mobile: 12 }, A.createElement(o, null)), ), _ || j || O ? A.createElement( @@ -89345,8 +89389,8 @@ { className: "schemes wrapper", mobile: 12 }, _ ? A.createElement(h, null) : null, j ? A.createElement(f, null) : null, - O ? A.createElement(d, null) : null - ) + O ? A.createElement(d, null) : null, + ), ) : null, A.createElement(m, null), @@ -89356,8 +89400,8 @@ A.createElement( u, { mobile: 12, desktop: 12 }, - A.createElement(i, null) - ) + A.createElement(i, null), + ), ), v && A.createElement( @@ -89366,8 +89410,8 @@ A.createElement( u, { mobile: 12, desktop: 12 }, - A.createElement(l, null) - ) + A.createElement(l, null), + ), ), A.createElement( c, @@ -89375,10 +89419,10 @@ A.createElement( u, { mobile: 12, desktop: 12 }, - A.createElement(a, null) - ) - ) - ) + A.createElement(a, null), + ), + ), + ), ); } } @@ -89429,7 +89473,7 @@ onChange: r, schema: e, disabled: i, - }) + }), ) ); } @@ -89523,10 +89567,10 @@ value: t.push( e.getSampleSchema(this.state.schema.get("items"), !1, { includeWriteOnly: !0, - }) + }), ), }), - this.onChange + this.onChange, ); }), ce()(this, "onEnumChange", (e) => { @@ -89553,7 +89597,7 @@ o = o.toJS ? o.toJS() : E()(o) ? o : []; const l = a()(o).call(o, (e) => "string" == typeof e), c = j()( - (e = a()(o).call(o, (e) => void 0 !== e.needRemove)) + (e = a()(o).call(o, (e) => void 0 !== e.needRemove)), ).call(e, (e) => e.error), u = this.state.value, p = !!(u && u.count && u.count() > 0), @@ -89594,7 +89638,7 @@ const l = (0, P.fromJS)([ ...j()((r = a()(o).call(o, (e) => e.index === n))).call( r, - (e) => e.error + (e) => e.error, ), ]); return A.createElement( @@ -89625,7 +89669,7 @@ schema: m, getComponent: t, fn: s, - }) + }), ), i ? null @@ -89638,8 +89682,8 @@ title: c.length ? c : "", onClick: () => this.removeItem(n), }, - " - " - ) + " - ", + ), ); }) : null, @@ -89656,8 +89700,8 @@ }, "Add ", f ? `${f} ` : "", - "item" - ) + "item", + ), ); } } @@ -89798,7 +89842,7 @@ value: (0, L.Pz)(t), disabled: r, onChange: this.handleOnChange, - }) + }), ) ); } @@ -89955,7 +89999,7 @@ window.location.host }${window.location.pathname.substring( 0, - s()((t = window.location.pathname)).call(t, "/") + s()((t = window.location.pathname)).call(t, "/"), )}/oauth2-redirect.html`, persistAuthorization: !1, configs: {}, @@ -90019,7 +90063,7 @@ spec: { spec: "", url: i.url }, requestSnippets: i.requestSnippets, }, - i.initialState + i.initialState, ), }; if (i.initialState) @@ -90062,7 +90106,7 @@ null === n.dom_id || null === n.domNode || console.error( - "Skipped rendering: no `dom_id` or `domNode` was specified" + "Skipped rendering: no `dom_id` or `domNode` was specified", ); return d; }, @@ -90075,7 +90119,7 @@ requestInterceptor: i.requestInterceptor, responseInterceptor: i.responseInterceptor, }, - m + m, ), d) : m(); @@ -90085,6 +90129,6 @@ })(), (r = r.default) ); - })() + })(), ); //# sourceMappingURL=swagger-ui-bundle.js.map diff --git a/docs/swagger/swagger-ui-es-bundle-core.js b/docs/swagger/swagger-ui-es-bundle-core.js index 059296394d..349bc0ae7e 100644 --- a/docs/swagger/swagger-ui-es-bundle-core.js +++ b/docs/swagger/swagger-ui-es-bundle-core.js @@ -147,7 +147,7 @@ var ut = { ? p(e.replace(/^.*#\/definitions\//, "")) : -1 !== (0, o.default)(e).call(e, "#/components/schemas/") ? p(e.replace(/^.*#\/components\/schemas\//, "")) - : void 0 + : void 0, ), (0, s.default)(this, "getRefSchema", (e) => { let { specSelectors: t } = this.props; @@ -184,13 +184,13 @@ var ut = { i.default.createElement( "span", { className: "model-title__text" }, - d || l + d || l, ), i.default.createElement("img", { src: n(2517), height: "20px", width: "20px", - }) + }), ); const E = a.isOAS3() && s.get("deprecated"); switch ( @@ -208,7 +208,7 @@ var ut = { isRef: c, includeReadOnly: p, includeWriteOnly: m, - }) + }), ); case "array": return i.default.createElement( @@ -221,7 +221,7 @@ var ut = { required: o, includeReadOnly: p, includeWriteOnly: m, - }) + }), ); default: return i.default.createElement( @@ -233,7 +233,7 @@ var ut = { name: l, deprecated: E, required: o, - }) + }), ); } } @@ -304,14 +304,14 @@ var ut = { target: "_blank", rel: "noopener noreferrer", href: `${a}/debug?url=${encodeURIComponent( - this.state.url + this.state.url, )}`, }, s.default.createElement(u, { src: `${a}?url=${encodeURIComponent(this.state.url)}`, alt: "Online validator badge", - }) - ) + }), + ), ) : null; } @@ -402,7 +402,7 @@ var ut = { t && !p.hasWarnedAboutDeprecation && (console.warn( - "useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0." + "useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0.", ), (p.hasWarnedAboutDeprecation = !0)), i.default.sanitize(e, { @@ -552,7 +552,7 @@ var ut = { break; default: console.warn( - `Warning: invalid passwordType ${c} was passed, not including client id and secret` + `Warning: invalid passwordType ${c} was passed, not including client id and secret`, ); } return a.authorizeRequest({ @@ -664,7 +664,7 @@ var ut = { "Content-Type": "application/x-www-form-urlencoded", "X-Requested-With": "XMLHttpRequest", }, - h + h, ); o.fetch({ url: S, @@ -805,12 +805,12 @@ var ut = { (this.rootInjects.preauthorizeApiKey = (0, n.default)(f).call( f, null, - e + e, )), (this.rootInjects.preauthorizeBasic = (0, n.default)(m).call( m, null, - e + e, )); }, components: { @@ -956,7 +956,7 @@ var ut = { var a; let { specSelectors: r } = e; console.warn( - "WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version." + "WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.", ); let s = r.securityDefinitions(), o = (0, u.List)(); @@ -995,7 +995,7 @@ var ut = { return ( (0, n.default)(s).call(s, (e) => { let a = (0, r.default)(t).call(t, (t) => - t.get(e.keySeq().first()) + t.get(e.keySeq().first()), ); a && ((0, n.default)(e).call(e, (t, r) => { @@ -1018,7 +1018,7 @@ var ut = { }, g = (0, c.createSelector)( d, - (e) => e.get("authorized") || (0, u.Map)() + (e) => e.get("authorized") || (0, u.Map)(), ), y = (e, t) => (e) => { var a; @@ -1032,8 +1032,8 @@ var ut = { (0, o.default)( (t = (0, l.default)((a = (0, i.default)(e))).call( a, - (e) => !!r.get(e) - )) + (e) => !!r.get(e), + )), ).call(t, !1) ); }).length @@ -1072,12 +1072,12 @@ var ut = { r && s && (document.cookie = `${e.get( - "name" + "name", )}=${t}; SameSite=None; Secure`); } catch (e) { console.error( "Error persisting cookie based apiKey in document.cookie.", - e + e, ); } }, @@ -1099,7 +1099,7 @@ var ut = { } catch (e) { console.error( "Error deleting cookie based apiKey from document.cookie.", - e + e, ); } e(a); @@ -1145,7 +1145,7 @@ var ut = { const i = { getLocalConfig: () => (0, n.parseYamlConfig)( - '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n' + '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n', ), }; function c() { @@ -1271,8 +1271,8 @@ var ut = { 2 === a.length ? (0, i.setHash)( (0, u.oJ)( - `/${encodeURIComponent(o)}/${encodeURIComponent(l)}` - ) + `/${encodeURIComponent(o)}/${encodeURIComponent(l)}`, + ), ) : 1 === a.length && (0, i.setHash)((0, u.oJ)(`/${encodeURIComponent(o)}`)); @@ -1291,7 +1291,7 @@ var ut = { "/" === t[0] && (t = (0, s.default)(t).call(t, 1)); const r = (0, o.default)((i = t.split("/"))).call( i, - (e) => e || "" + (e) => e || "", ), c = n.isShownKeyFromUrlHashArray(r), [u, d = "", p = ""] = c; @@ -1299,22 +1299,22 @@ var ut = { const e = n.isShownKeyFromUrlHashArray([d]); (0, l.default)(d).call(d, "_") > -1 && (console.warn( - "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead." + "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.", ), a.show( (0, o.default)(e).call(e, (e) => e.replace(/_/g, " ")), - !0 + !0, )), a.show(e, !0); } ((0, l.default)(d).call(d, "_") > -1 || (0, l.default)(p).call(p, "_") > -1) && (console.warn( - "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead." + "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.", ), a.show( (0, o.default)(c).call(c, (e) => e.replace(/_/g, " ")), - !0 + !0, )), a.show(c, !0), a.scrollTo(c); @@ -1409,7 +1409,7 @@ var ut = { return r.default.createElement( "span", { ref: this.onLoad }, - r.default.createElement(e, this.props) + r.default.createElement(e, this.props), ); } }; @@ -1435,7 +1435,7 @@ var ut = { return r.default.createElement( "span", { ref: this.onLoad }, - r.default.createElement(e, this.props) + r.default.createElement(e, this.props), ); } }; @@ -1471,8 +1471,8 @@ var ut = { s.newThrownErr( (0, n.default)( new Error((t.message || t.statusText) + " " + e), - { source: "fetch" } - ) + { source: "fetch" }, + ), ), void ( !t.status && @@ -1490,18 +1490,18 @@ var ut = { ) { const e = (0, n.default)( new Error( - `Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.` + `Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.`, ), - { source: "fetch" } + { source: "fetch" }, ); return void s.newThrownErr(e); } if (t.origin !== c.Z.location.origin) { const e = (0, n.default)( new Error( - `Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${c.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.` + `Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${c.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`, ), - { source: "fetch" } + { source: "fetch" }, ); s.newThrownErr(e); } @@ -1538,7 +1538,7 @@ var ut = { return ( -1 === (0, s.default)(t).call(t, e) && console.error( - `Error: ${e} is not one of ${(0, o.default)(t)}` + `Error: ${e} is not one of ${(0, o.default)(t)}`, ), { type: "spec_update_loading_status", payload: e } ); @@ -1553,7 +1553,7 @@ var ut = { selectors: { loadingStatus: (0, l.createSelector)( (e) => e || (0, i.Map)(), - (e) => e.get("loadingStatus") || null + (e) => e.get("loadingStatus") || null, ), }, }, @@ -1641,11 +1641,11 @@ var ut = { return console.error("Transformer error:", t), e; } }, - e + e, ); return (0, s.default)((t = (0, n.default)(r).call(r, (e) => !!e))).call( t, - (e) => (!e.get("line") && e.get("path"), e) + (e) => (!e.get("line") && e.get("path"), e), ); } }, @@ -1679,9 +1679,9 @@ var ut = { : n[a + 1] ? e + t + " " : e + t, - "should be a" + "should be a", ); - })(t) + })(t), ); } return e; @@ -1727,7 +1727,7 @@ var ut = { r = (0, n.default)(d, a, { type: "thrown" }); return e .update("errors", (e) => - (e || (0, c.List)()).push((0, c.fromJS)(r)) + (e || (0, c.List)()).push((0, c.fromJS)(r)), ) .update("errors", (e) => (0, u.default)(e)); }, @@ -1735,14 +1735,14 @@ var ut = { let { payload: a } = t; return ( (a = (0, r.default)(a).call(a, (e) => - (0, c.fromJS)((0, n.default)(d, e, { type: "thrown" })) + (0, c.fromJS)((0, n.default)(d, e, { type: "thrown" })), )), e .update("errors", (e) => { var t; return (0, s.default)((t = e || (0, c.List)())).call( t, - (0, c.fromJS)(a) + (0, c.fromJS)(a), ); }) .update("errors", (e) => (0, u.default)(e)) @@ -1757,7 +1757,7 @@ var ut = { .update("errors", (e) => (e || (0, c.List)()) .push((0, c.fromJS)(n)) - .sortBy((e) => e.get("line")) + .sortBy((e) => e.get("line")), ) .update("errors", (e) => (0, u.default)(e)) ); @@ -1766,14 +1766,14 @@ var ut = { let { payload: a } = t; return ( (a = (0, r.default)(a).call(a, (e) => - (0, c.fromJS)((0, n.default)(d, e, { type: "spec" })) + (0, c.fromJS)((0, n.default)(d, e, { type: "spec" })), )), e .update("errors", (e) => { var t; return (0, s.default)((t = e || (0, c.List)())).call( t, - (0, c.fromJS)(a) + (0, c.fromJS)(a), ); }) .update("errors", (e) => (0, u.default)(e)) @@ -1786,7 +1786,7 @@ var ut = { (r = r.set("type", "auth")), e .update("errors", (e) => - (e || (0, c.List)()).push((0, c.fromJS)(r)) + (e || (0, c.List)()).push((0, c.fromJS)(r)), ) .update("errors", (e) => (0, u.default)(e)) ); @@ -1821,7 +1821,7 @@ var ut = { r = a(8639); const s = (0, r.createSelector)( (e) => e, - (e) => e.get("errors", (0, n.List)()) + (e) => e.get("errors", (0, n.List)()), ), o = (0, r.createSelector)(s, (e) => e.last()); }, @@ -1839,7 +1839,7 @@ var ut = { function s(e, t) { return (0, n.default)(e).call( e, - (e, a) => -1 !== (0, r.default)(a).call(a, t) + (e, a) => -1 !== (0, r.default)(a).call(a, t), ); } }, @@ -1862,11 +1862,11 @@ var ut = { "aria-hidden": "true", focusable: "false", }, - o + o, ), r.default.createElement("path", { d: "M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z", - }) + }), ); }; s.defaultProps = { className: null, width: 20, height: 20 }; @@ -1891,11 +1891,11 @@ var ut = { "aria-hidden": "true", focusable: "false", }, - o + o, ), r.default.createElement("path", { d: "M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z", - }) + }), ); }; s.defaultProps = { className: null, width: 20, height: 20 }; @@ -1920,11 +1920,11 @@ var ut = { "aria-hidden": "true", focusable: "false", }, - o + o, ), r.default.createElement("path", { d: "M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z", - }) + }), ); }; s.defaultProps = { className: null, width: 20, height: 20 }; @@ -1949,11 +1949,11 @@ var ut = { "aria-hidden": "true", focusable: "false", }, - o + o, ), r.default.createElement("path", { d: "M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z", - }) + }), ); }; s.defaultProps = { className: null, width: 20, height: 20 }; @@ -1978,7 +1978,7 @@ var ut = { "aria-hidden": "true", focusable: "false", }, - o + o, ), r.default.createElement( "g", @@ -1987,8 +1987,8 @@ var ut = { fill: "#ffffff", fillRule: "evenodd", d: "M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z", - }) - ) + }), + ), ); }; s.defaultProps = { className: null, width: 15, height: 16 }; @@ -2013,11 +2013,11 @@ var ut = { "aria-hidden": "true", focusable: "false", }, - o + o, ), r.default.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z", - }) + }), ); }; s.defaultProps = { className: null, width: 20, height: 20 }; @@ -2042,11 +2042,11 @@ var ut = { "aria-hidden": "true", focusable: "false", }, - o + o, ), r.default.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z", - }) + }), ); }; s.defaultProps = { className: null, width: 20, height: 20 }; @@ -2085,7 +2085,7 @@ var ut = { (e) => { o(e, !t); }, - [t, o] + [t, o], ); return n.default.createElement( "button", @@ -2097,7 +2097,7 @@ var ut = { n.default.createElement( "div", { className: "json-schema-2020-12-accordion__children" }, - a + a, ), n.default.createElement( "span", @@ -2107,8 +2107,8 @@ var ut = { "json-schema-2020-12-accordion__icon--collapsed": !t, }), }, - n.default.createElement(l, null) - ) + n.default.createElement(l, null), + ), ); }; o.defaultProps = { expanded: !1 }; @@ -2124,7 +2124,7 @@ var ut = { (e) => { a(e, !t); }, - [t, a] + [t, a], ); return n.default.createElement( "button", @@ -2133,7 +2133,7 @@ var ut = { className: "json-schema-2020-12-expand-deep-button", onClick: r, }, - t ? "Collapse all" : "Expand all" + t ? "Collapse all" : "Expand all", ); }; }, @@ -2207,13 +2207,13 @@ var ut = { (e, t) => { h(t), !t && y(!1), u(e, t, !1); }, - [u] + [u], ), pe = (0, r.useCallback)( (e, t) => { h(t), y(t), u(e, t, !0); }, - [u] + [u], ); return r.default.createElement( l.JSONSchemaLevelContext.Provider, @@ -2244,12 +2244,12 @@ var ut = { r.default.createElement( C, { expanded: f, onChange: de }, - r.default.createElement(re, { title: i, schema: a }) + r.default.createElement(re, { title: i, schema: a }), ), r.default.createElement(ue, { expanded: f, onClick: pe, - }) + }), ) : r.default.createElement(re, { title: i, schema: a }), r.default.createElement(le, { schema: a }), @@ -2261,8 +2261,8 @@ var ut = { r.default.createElement(te, { key: `${e.scope}-${e.value}`, constraint: e, - }) - ) + }), + ), ), r.default.createElement( "div", @@ -2298,7 +2298,7 @@ var ut = { r.default.createElement(K, { schema: a }), r.default.createElement(Z, { schema: a }), r.default.createElement(F, { schema: a }), - r.default.createElement(ne, { schema: a }) + r.default.createElement(ne, { schema: a }), ), r.default.createElement(Q, { schema: a }), r.default.createElement(ee, { schema: a }), @@ -2315,12 +2315,12 @@ var ut = { r.default.createElement(I, { schema: a }), !b && w && r.default.createElement(P, { schema: a }), r.default.createElement(R, { schema: a }), - r.default.createElement(T, { schema: a }) - ) - ) - ) - ) - ) + r.default.createElement(T, { schema: a }), + ), + ), + ), + ), + ), ); }); i.defaultProps = { name: "", dependentRequired: [], onExpand: () => {} }; @@ -2340,7 +2340,7 @@ var ut = { }, n.default.createElement("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z", - }) + }), ); }, 4922: (e, t, a) => { @@ -2362,7 +2362,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$anchor" + "$anchor", ), n.default.createElement( "span", @@ -2370,8 +2370,8 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$anchor - ) + t.$anchor, + ), ) : null; }; @@ -2395,7 +2395,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$comment" + "$comment", ), n.default.createElement( "span", @@ -2403,8 +2403,8 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$comment - ) + t.$comment, + ), ) : null; }; @@ -2454,8 +2454,8 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$defs" - ) + "$defs", + ), ), o.default.createElement(y, { expanded: p, onClick: S }), o.default.createElement( @@ -2464,14 +2464,16 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), o.default.createElement( "ul", { className: (0, l.default)( "json-schema-2020-12-keyword__children", - { "json-schema-2020-12-keyword__children--collapsed": !p } + { + "json-schema-2020-12-keyword__children--collapsed": !p, + }, ), }, p && @@ -2483,12 +2485,12 @@ var ut = { return o.default.createElement( "li", { key: t, className: "json-schema-2020-12-property" }, - o.default.createElement(v, { name: t, schema: a }) + o.default.createElement(v, { name: t, schema: a }), ); - }) - ) - ) - ) + }), + ), + ), + ), ); }; }, @@ -2511,7 +2513,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$dynamicAnchor" + "$dynamicAnchor", ), n.default.createElement( "span", @@ -2519,8 +2521,8 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$dynamicAnchor - ) + t.$dynamicAnchor, + ), ) : null; }; @@ -2544,7 +2546,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$dynamicRef" + "$dynamicRef", ), n.default.createElement( "span", @@ -2552,8 +2554,8 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$dynamicRef - ) + t.$dynamicRef, + ), ) : null; }; @@ -2577,7 +2579,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$id" + "$id", ), n.default.createElement( "span", @@ -2585,8 +2587,8 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$id - ) + t.$id, + ), ) : null; }; @@ -2610,7 +2612,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$ref" + "$ref", ), n.default.createElement( "span", @@ -2618,8 +2620,8 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$ref - ) + t.$ref, + ), ) : null; }; @@ -2643,7 +2645,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$schema" + "$schema", ), n.default.createElement( "span", @@ -2651,8 +2653,8 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$schema - ) + t.$schema, + ), ) : null; }; @@ -2691,8 +2693,8 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$vocabulary" - ) + "$vocabulary", + ), ), s.default.createElement( "strong", @@ -2700,7 +2702,7 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), s.default.createElement( "ul", @@ -2719,7 +2721,7 @@ var ut = { { "json-schema-2020-12-$vocabulary-uri--disabled": !a, - } + }, ), }, s.default.createElement( @@ -2728,12 +2730,12 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t - ) + t, + ), ); - } - ) - ) + }, + ), + ), ) : null; }; @@ -2754,7 +2756,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Additional properties" + "Additional properties", ); return n.default.createElement( "div", @@ -2773,8 +2775,8 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "allowed" - ) + "allowed", + ), ) : !1 === s ? n.default.createElement( @@ -2787,10 +2789,10 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "forbidden" - ) + "forbidden", + ), ) - : n.default.createElement(o, { name: l, schema: s }) + : n.default.createElement(o, { name: l, schema: s }), ); }; }, @@ -2838,8 +2840,8 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "All of" - ) + "All of", + ), ), s.default.createElement(g, { expanded: d, onClick: S }), s.default.createElement(v, { schema: { allOf: a } }), @@ -2848,7 +2850,9 @@ var ut = { { className: (0, o.default)( "json-schema-2020-12-keyword__children", - { "json-schema-2020-12-keyword__children--collapsed": !d } + { + "json-schema-2020-12-keyword__children--collapsed": !d, + }, ), }, d && @@ -2865,12 +2869,12 @@ var ut = { s.default.createElement(y, { name: `#${t} ${c.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -2919,8 +2923,8 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Any of" - ) + "Any of", + ), ), s.default.createElement(g, { expanded: d, onClick: S }), s.default.createElement(v, { schema: { anyOf: a } }), @@ -2929,7 +2933,9 @@ var ut = { { className: (0, o.default)( "json-schema-2020-12-keyword__children", - { "json-schema-2020-12-keyword__children--collapsed": !d } + { + "json-schema-2020-12-keyword__children--collapsed": !d, + }, ), }, d && @@ -2946,12 +2952,12 @@ var ut = { s.default.createElement(y, { name: `#${t} ${c.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -2976,7 +2982,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Const" + "Const", ), n.default.createElement( "span", @@ -2984,8 +2990,8 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - a.stringify(t.const) - ) + a.stringify(t.const), + ), ) : null; }; @@ -3001,7 +3007,7 @@ var ut = { { className: `json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`, }, - t.value + t.value, ); }, s = n.default.memo(r); @@ -3021,7 +3027,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Contains" + "Contains", ); return n.default.createElement( "div", @@ -3029,7 +3035,7 @@ var ut = { className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--contains", }, - n.default.createElement(s, { name: o, schema: t.contains }) + n.default.createElement(s, { name: o, schema: t.contains }), ); }; }, @@ -3048,7 +3054,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Content schema" + "Content schema", ); return n.default.createElement( "div", @@ -3056,7 +3062,7 @@ var ut = { className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema", }, - n.default.createElement(s, { name: o, schema: t.contentSchema }) + n.default.createElement(s, { name: o, schema: t.contentSchema }), ); }; }, @@ -3080,7 +3086,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Default" + "Default", ), n.default.createElement( "span", @@ -3088,8 +3094,8 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - a.stringify(t.default) - ) + a.stringify(t.default), + ), ) : null; }; @@ -3115,7 +3121,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Required when defined" + "Required when defined", ), r.default.createElement( "ul", @@ -3130,11 +3136,11 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning", }, - e - ) - ) - ) - ) + e, + ), + ), + ), + ), ); }; }, @@ -3183,8 +3189,8 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Dependent schemas" - ) + "Dependent schemas", + ), ), o.default.createElement(y, { expanded: p, onClick: S }), o.default.createElement( @@ -3193,14 +3199,16 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), o.default.createElement( "ul", { className: (0, l.default)( "json-schema-2020-12-keyword__children", - { "json-schema-2020-12-keyword__children--collapsed": !p } + { + "json-schema-2020-12-keyword__children--collapsed": !p, + }, ), }, p && @@ -3212,12 +3220,12 @@ var ut = { return o.default.createElement( "li", { key: t, className: "json-schema-2020-12-property" }, - o.default.createElement(v, { name: t, schema: a }) + o.default.createElement(v, { name: t, schema: a }), ); - }) - ) - ) - ) + }), + ), + ), + ), ); }; }, @@ -3235,7 +3243,7 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--warning", }, - "deprecated" + "deprecated", ); }; }, @@ -3258,8 +3266,8 @@ var ut = { className: "json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary", }, - t.description - ) + t.description, + ), ) : null; }; @@ -3279,7 +3287,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Else" + "Else", ); return n.default.createElement( "div", @@ -3287,7 +3295,7 @@ var ut = { className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--if", }, - n.default.createElement(s, { name: o, schema: t.else }) + n.default.createElement(s, { name: o, schema: t.else }), ); }; }, @@ -3314,7 +3322,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Allowed values" + "Allowed values", ), s.default.createElement( "ul", @@ -3330,11 +3338,11 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - t - ) + t, + ), ); - }) - ) + }), + ), ) : null; }; @@ -3354,7 +3362,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "If" + "If", ); return n.default.createElement( "div", @@ -3362,7 +3370,7 @@ var ut = { className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--if", }, - n.default.createElement(s, { name: o, schema: t.if }) + n.default.createElement(s, { name: o, schema: t.if }), ); }; }, @@ -3381,7 +3389,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Items" + "Items", ); return n.default.createElement( "div", @@ -3389,7 +3397,7 @@ var ut = { className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--items", }, - n.default.createElement(s, { name: o, schema: t.items }) + n.default.createElement(s, { name: o, schema: t.items }), ); }; }, @@ -3408,7 +3416,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Not" + "Not", ); return n.default.createElement( "div", @@ -3416,7 +3424,7 @@ var ut = { className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--not", }, - n.default.createElement(s, { name: o, schema: t.not }) + n.default.createElement(s, { name: o, schema: t.not }), ); }; }, @@ -3464,8 +3472,8 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "One of" - ) + "One of", + ), ), s.default.createElement(g, { expanded: d, onClick: S }), s.default.createElement(v, { schema: { oneOf: a } }), @@ -3474,7 +3482,9 @@ var ut = { { className: (0, o.default)( "json-schema-2020-12-keyword__children", - { "json-schema-2020-12-keyword__children--collapsed": !d } + { + "json-schema-2020-12-keyword__children--collapsed": !d, + }, ), }, d && @@ -3491,12 +3501,12 @@ var ut = { s.default.createElement(y, { name: `#${t} ${c.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -3529,10 +3539,10 @@ var ut = { return o.default.createElement( "li", { key: t, className: "json-schema-2020-12-property" }, - o.default.createElement(c, { name: t, schema: a }) + o.default.createElement(c, { name: t, schema: a }), ); - }) - ) + }), + ), ); }; }, @@ -3580,8 +3590,8 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Prefix items" - ) + "Prefix items", + ), ), s.default.createElement(g, { expanded: d, onClick: S }), s.default.createElement(v, { schema: { prefixItems: a } }), @@ -3590,7 +3600,9 @@ var ut = { { className: (0, o.default)( "json-schema-2020-12-keyword__children", - { "json-schema-2020-12-keyword__children--collapsed": !d } + { + "json-schema-2020-12-keyword__children--collapsed": !d, + }, ), }, d && @@ -3607,12 +3619,12 @@ var ut = { s.default.createElement(y, { name: `#${t} ${c.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -3655,17 +3667,17 @@ var ut = { key: t, className: (0, c.default)( "json-schema-2020-12-property", - { "json-schema-2020-12-property--required": r } + { "json-schema-2020-12-property--required": r }, ), }, i.default.createElement(f, { name: t, schema: n, dependentRequired: s, - }) + }), ); - }) - ) + }), + ), ); }; }, @@ -3684,7 +3696,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Property names" + "Property names", ); return a.hasKeyword(t, "propertyNames") ? n.default.createElement( @@ -3693,7 +3705,7 @@ var ut = { className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames", }, - n.default.createElement(o, { name: l, schema: s }) + n.default.createElement(o, { name: l, schema: s }), ) : null; }; @@ -3712,7 +3724,7 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "read-only" + "read-only", ); }; }, @@ -3731,7 +3743,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Then" + "Then", ); return n.default.createElement( "div", @@ -3739,7 +3751,7 @@ var ut = { className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--then", }, - n.default.createElement(s, { name: o, schema: t.then }) + n.default.createElement(s, { name: o, schema: t.then }), ); }; }, @@ -3754,7 +3766,7 @@ var ut = { ? n.default.createElement( "div", { className: "json-schema-2020-12__title" }, - t || s.getTitle(a) + t || s.getTitle(a), ) : null; }; @@ -3775,7 +3787,7 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - `${s}${o}` + `${s}${o}`, ); }; s.defaultProps = { isCircular: !1 }; @@ -3797,7 +3809,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Unevaluated items" + "Unevaluated items", ); return n.default.createElement( "div", @@ -3805,7 +3817,7 @@ var ut = { className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems", }, - n.default.createElement(o, { name: l, schema: s }) + n.default.createElement(o, { name: l, schema: s }), ); }; }, @@ -3825,7 +3837,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Unevaluated properties" + "Unevaluated properties", ); return n.default.createElement( "div", @@ -3833,7 +3845,7 @@ var ut = { className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties", }, - n.default.createElement(o, { name: l, schema: s }) + n.default.createElement(o, { name: l, schema: s }), ); }; }, @@ -3851,7 +3863,7 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "write-only" + "write-only", ); }; }, @@ -3953,7 +3965,7 @@ var ut = { "number", "integer", "string", - ]) + ]), ).call(t, d) ? d : (() => { @@ -4064,7 +4076,7 @@ var ut = { return null === e || (0, l.default)((t = ["number", "bigint", "boolean"])).call( t, - typeof e + typeof e, ) ? String(e) : (0, s.default)(e) @@ -4123,7 +4135,7 @@ var ut = { const r = x( "characters", null == e ? void 0 : e.minLength, - null == e ? void 0 : e.maxLength + null == e ? void 0 : e.maxLength, ); null !== r && t.push({ scope: "string", value: r }), null != e && @@ -4147,19 +4159,19 @@ var ut = { const s = x( null != e && e.hasUniqueItems ? "unique items" : "items", null == e ? void 0 : e.minItems, - null == e ? void 0 : e.maxItems + null == e ? void 0 : e.maxItems, ); null !== s && t.push({ scope: "array", value: s }); const o = x( "contained items", null == e ? void 0 : e.minContains, - null == e ? void 0 : e.maxContains + null == e ? void 0 : e.maxContains, ); null !== o && t.push({ scope: "array", value: o }); const l = x( "properties", null == e ? void 0 : e.minProperties, - null == e ? void 0 : e.maxProperties + null == e ? void 0 : e.maxProperties, ); return null !== l && t.push({ scope: "object", value: l }), t; }, @@ -4175,8 +4187,8 @@ var ut = { ? (t.add(n), t) : t; }, - new f.default() - ) + new f.default(), + ), ) : []; }; @@ -4299,7 +4311,7 @@ var ut = { n.default.createElement( z.JSONSchemaContext.Provider, { value: a }, - n.default.createElement(e, t) + n.default.createElement(e, t), ); return ( (H.contexts = { JSONSchemaContext: z.JSONSchemaContext }), @@ -4547,7 +4559,7 @@ var ut = { !(function (e, t) { if (t.has(e)) throw new TypeError( - "Cannot initialize the same private elements twice on an object" + "Cannot initialize the same private elements twice on an object", ); })(e, t), t.set(e, a); @@ -4591,7 +4603,7 @@ var ut = { !(function (e, t) { if (t.has(e)) throw new TypeError( - "Cannot initialize the same private elements twice on an object" + "Cannot initialize the same private elements twice on an object", ); })(e, t), t.set(e, a); @@ -4717,7 +4729,7 @@ var ut = { ) p.required = (0, i.default)((f = p.required || [])).call( f, - (e) => e !== r + (e) => e !== r, ); else p.properties[r] = d(s, n, a); } @@ -5209,7 +5221,7 @@ var ut = { C = !p && (0, n.default)(e.anyOf) && e.anyOf.length > 0; if (!p && (g || C)) { const t = (0, E.typeCast)( - g ? (0, w.pick)(e.oneOf) : (0, w.pick)(e.anyOf) + g ? (0, w.pick)(e.oneOf) : (0, w.pick)(e.anyOf), ); !(e = (0, b.default)(e, t, a)).xml && t.xml && (e.xml = t.xml), (0, S.hasExample)(e) && (0, S.hasExample)(t) && (p = !0); @@ -5267,7 +5279,7 @@ var ut = { d ? (0, s.default)((a = e.required)).call( a, - (e) => (t += void 0 === B[e] ? 0 : 1) + (e) => (t += void 0 === B[e] ? 0 : 1), ) : (0, s.default)((r = e.required)).call(r, (e) => { var a; @@ -5277,7 +5289,7 @@ var ut = { ? void 0 : (0, o.default)(a).call( a, - (t) => void 0 !== t[e] + (t) => void 0 !== t[e], )) ? 0 : 1; @@ -5326,7 +5338,7 @@ var ut = { (0, f.default)( null === (r = e.discriminator) || void 0 === r ? void 0 - : r.mapping + : r.mapping, ) && e.discriminator.propertyName === t && "string" == typeof e.$$ref @@ -5408,15 +5420,15 @@ var ut = { ) t.push( ...(0, c.default)((G = I.anyOf)).call(G, (e) => - _((0, b.default)(e, I, a), a, void 0, d) - ) + _((0, b.default)(e, I, a), a, void 0, d), + ), ); else if ((0, n.default)(I.oneOf)) { var Y; t.push( ...(0, c.default)((Y = I.oneOf)).call(Y, (e) => - _((0, b.default)(e, I, a), a, void 0, d) - ) + _((0, b.default)(e, I, a), a, void 0, d), + ), ); } else { if (!(!d || (d && N.wrapped))) return _(I, a, void 0, d); @@ -5431,15 +5443,15 @@ var ut = { ) t.push( ...(0, c.default)((Z = A.anyOf)).call(Z, (e) => - _((0, b.default)(e, A, a), a, void 0, d) - ) + _((0, b.default)(e, A, a), a, void 0, d), + ), ); else if ((0, n.default)(A.oneOf)) { var X; t.push( ...(0, c.default)((X = A.oneOf)).call(X, (e) => - _((0, b.default)(e, A, a), a, void 0, d) - ) + _((0, b.default)(e, A, a), a, void 0, d), + ), ); } else { if (!(!d || (d && N.wrapped))) return _(A, a, void 0, d); @@ -5808,7 +5820,7 @@ var ut = { for (; o.length < s; ) o += o[e++ % o.length]; } return o; - })(q, e) + })(q, e), ); }; }, @@ -5880,7 +5892,7 @@ var ut = { s = t.payload.mode; return e.setIn( (0, n.default)((a = ["modes"])).call(a, r), - (s || "") + "" + (s || "") + "", ); }, }; @@ -5910,7 +5922,7 @@ var ut = { }, u = (0, n.createSelector)( (e) => e, - (e) => !i(e, "editor") + (e) => !i(e, "editor"), ); }, 8989: (e, t, a) => { @@ -6102,11 +6114,11 @@ var ut = { new l.Map({ [t]: (0, r.default)(i).call( i, - (e) => void 0 !== e + (e) => void 0 !== e, ), - }) + }), ); - } + }, ), ("http" !== i && "apiKey" !== i) || (o = o.push(new l.Map({ [t]: a }))), @@ -6124,7 +6136,7 @@ var ut = { (0, s.default)((i = e.get("scopes_supported"))).call( i, (e, t) => e.set(t, ""), - new l.Map() + new l.Map(), ), u = (0, l.fromJS)({ flow: n, @@ -6137,14 +6149,14 @@ var ut = { o = o.push( new l.Map({ [t]: (0, r.default)(u).call(u, (e) => void 0 !== e), - }) + }), ); }); } }), o) : o; - } + }, )), (e, t) => function () { @@ -6201,10 +6213,10 @@ var ut = { path: t.path, specPath: t.specPath, allowTryItOut: !1, - }) - ) + }), + ), ); - }) + }), ); }; }, @@ -6252,7 +6264,7 @@ var ut = { let h = this.getValue(), g = (0, s.default)((e = n.allErrors())).call( e, - (e) => e.get("authId") === r + (e) => e.get("authId") === r, ); if ("basic" === f) { var y; @@ -6265,13 +6277,15 @@ var ut = { null, l.default.createElement("code", null, r || t.get("name")), "  (http, Basic)", - l.default.createElement(m, { path: ["securityDefinitions", r] }) + l.default.createElement(m, { + path: ["securityDefinitions", r], + }), ), e && l.default.createElement("h6", null, "Authorized"), l.default.createElement( c, null, - l.default.createElement(p, { source: t.get("description") }) + l.default.createElement(p, { source: t.get("description") }), ), l.default.createElement( c, @@ -6289,8 +6303,8 @@ var ut = { "aria-label": "auth-basic-username", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), l.default.createElement( c, @@ -6307,12 +6321,12 @@ var ut = { type: "password", "aria-label": "auth-basic-password", onChange: this.onChange, - }) - ) + }), + ), ), (0, o.default)((y = g.valueSeq())).call(y, (e, t) => - l.default.createElement(d, { error: e, key: t }) - ) + l.default.createElement(d, { error: e, key: t }), + ), ); } var v; @@ -6327,13 +6341,13 @@ var ut = { "  (http, Bearer)", l.default.createElement(m, { path: ["securityDefinitions", r], - }) + }), ), h && l.default.createElement("h6", null, "Authorized"), l.default.createElement( c, null, - l.default.createElement(p, { source: t.get("description") }) + l.default.createElement(p, { source: t.get("description") }), ), l.default.createElement( c, @@ -6349,12 +6363,12 @@ var ut = { "aria-label": "auth-bearer-value", onChange: this.onChange, autoFocus: !0, - }) - ) - ), + }), + ), + ), (0, o.default)((v = g.valueSeq())).call(v, (e, t) => - l.default.createElement(d, { error: e, key: t }) - ) + l.default.createElement(d, { error: e, key: t }), + ), ) : l.default.createElement( "div", @@ -6364,8 +6378,8 @@ var ut = { null, l.default.createElement("b", null, r), " HTTP authentication: unsupported scheme ", - `'${f}'` - ) + `'${f}'`, + ), ); } } @@ -6413,9 +6427,9 @@ var ut = { s.default.createElement( "b", null, - s.default.createElement("code", null, t) + s.default.createElement("code", null, t), ), - c ? s.default.createElement(o, { source: c }) : null + c ? s.default.createElement(o, { source: c }) : null, ), s.default.createElement( "pre", @@ -6433,8 +6447,8 @@ var ut = { .call(a, (t, a) => (a > 0 ? Array(e + 1).join(" ") + t : t)) .join("\n"); })(0, (0, n.default)(i, null, 2)) || "{}", - s.default.createElement("br", null) - ) + s.default.createElement("br", null), + ), ); } } @@ -6472,7 +6486,7 @@ var ut = { const { path: a, method: n } = this.props; return this.props.getServerVariable( { namespace: `${a}:${n}`, server: e }, - t + t, ); }), (0, n.default)(this, "getEffectiveServerValue", (e) => { @@ -6505,9 +6519,9 @@ var ut = { r.default.createElement( "h4", { className: "opblock-title" }, - "Servers" - ) - ) + "Servers", + ), + ), ), r.default.createElement( "div", @@ -6517,7 +6531,7 @@ var ut = { { className: "message" }, "These ", o, - "-level options override the global server options." + "-level options override the global server options.", ), r.default.createElement(n, { servers: s, @@ -6526,8 +6540,8 @@ var ut = { setServerVariableValue: this.setServerVariableValue, getServerVariable: this.getServerVariable, getEffectiveServerValue: this.getEffectiveServerValue, - }) - ) + }), + ), ); } } @@ -6578,7 +6592,7 @@ var ut = { title: t.size ? t.join(", ") : "", value: a, onChange: this.onDomChange, - }) + }), ); } } @@ -6680,7 +6694,7 @@ var ut = { null, "Example values are not available for ", l.default.createElement("code", null, E), - " media types." + " media types.", ); } if ( @@ -6712,7 +6726,7 @@ var ut = { if (g.get("readOnly")) return; let y = D ? (0, c.po)(g) : null; const E = (0, s.default)( - (r = U.get("required", (0, i.List)())) + (r = U.get("required", (0, i.List)())), ).call(r, d), w = g.get("type"), _ = g.get("format"), @@ -6761,7 +6775,7 @@ var ut = { d, E ? l.default.createElement("span", null, " *") - : null + : null, ), l.default.createElement( "div", @@ -6773,7 +6787,7 @@ var ut = { { className: "prop-format" }, "($", _, - ")" + ")", ), D && y.size ? (0, n.default)((u = y.entrySeq())).call( @@ -6785,15 +6799,15 @@ var ut = { xKey: a, xVal: n, }); - } + }, ) - : null + : null, ), l.default.createElement( "div", { className: "parameter__deprecated" }, - g.get("deprecated") ? "deprecated" : null - ) + g.get("deprecated") ? "deprecated" : null, + ), ), l.default.createElement( "td", @@ -6825,14 +6839,14 @@ var ut = { isDisabled: (0, o.default)(j) ? 0 !== j.length : !(0, c.O2)(j), - }) + }), ) - : null - ) + : null, + ), ); - }) - ) - ) + }), + ), + ), ) ); } @@ -6869,7 +6883,7 @@ var ut = { defaultValue: W, onChange: b, getComponent: h, - }) + }), ) : l.default.createElement(A, { getComponent: h, @@ -6893,7 +6907,7 @@ var ut = { getComponent: h, getConfigs: g, }) - : null + : null, ) ); }; @@ -6919,7 +6933,7 @@ var ut = { n.default.createElement( "span", { className: "servers-title" }, - "Servers" + "Servers", ), n.default.createElement(o, { servers: s, @@ -6928,7 +6942,7 @@ var ut = { setServerVariableValue: a.setServerVariableValue, getServerVariable: t.serverVariableValue, getEffectiveServerValue: t.serverEffectiveValue, - }) + }), ) : null; } @@ -6964,7 +6978,7 @@ var ut = { let { servers: t, currentServer: a } = this.props; a || this.setServer( - null === (e = t.first()) || void 0 === e ? void 0 : e.get("url") + null === (e = t.first()) || void 0 === e ? void 0 : e.get("url"), ); } UNSAFE_componentWillReceiveProps(e) { @@ -6980,12 +6994,12 @@ var ut = { var o; let i = (0, r.default)(t).call( t, - (t) => t.get("url") === e.currentServer + (t) => t.get("url") === e.currentServer, ), c = (0, r.default)((o = this.props.servers)).call( o, - (e) => e.get("url") === this.props.currentServer + (e) => e.get("url") === this.props.currentServer, ) || (0, l.OrderedMap)(); if (!i) return this.setServer(t.first().get("url")); let u = c.get("variables") || (0, l.OrderedMap)(), @@ -7037,11 +7051,11 @@ var ut = { "option", { value: e.get("url"), key: e.get("url") }, e.get("url"), - e.get("description") && ` - ${e.get("description")}` - ) + e.get("description") && ` - ${e.get("description")}`, + ), ) - .toArray() - ) + .toArray(), + ), ), d ? o.default.createElement( @@ -7051,7 +7065,7 @@ var ut = { "div", { className: "computed-url" }, "Computed URL:", - o.default.createElement("code", null, c(n)) + o.default.createElement("code", null, c(n)), ), o.default.createElement("h4", null, "Server variables"), o.default.createElement( @@ -7087,23 +7101,23 @@ var ut = { key: e, value: e, }, - e - ) - ) + e, + ), + ), ) : o.default.createElement("input", { type: "text", value: i(n, a) || "", onChange: this.onServerVariableValueChange, "data-variable": a, - }) - ) + }), + ), ); - }) - ) - ) + }), + ), + ), ) - : null + : null, ); } } @@ -7273,8 +7287,8 @@ var ut = { (0, s.default)(t).call( t, (e, t) => e.setIn([t, "errors"], (0, o.fromJS)(l)), - e - ) + e, + ), ); } return ( @@ -7298,8 +7312,8 @@ var ut = { (0, s.default)(i).call( i, (e, t) => e.setIn([t, "errors"], (0, o.fromJS)([])), - e - ) + e, + ), ) : e; }, @@ -7367,7 +7381,7 @@ var ut = { }), m = d((e, t, a) => e.getIn(["requestData", t, a, "bodyValue"]) || null), f = d( - (e, t, a) => e.getIn(["requestData", t, a, "retainBodyValue"]) || !1 + (e, t, a) => e.getIn(["requestData", t, a, "retainBodyValue"]) || !1, ), h = (e, t, a) => (e) => { const { oas3Selectors: n, specSelectors: r, fn: s } = e.getSystem(); @@ -7378,7 +7392,7 @@ var ut = { r.specResolvedSubtree(["paths", t, a, "requestBody"]), e, n.activeExamplesMember(t, a, "requestBody", "requestBody"), - s + s, ); } return null; @@ -7395,9 +7409,9 @@ var ut = { (d = (0, u.Pz)( d .mapEntries((e) => - l.Map.isMap(e[1]) ? [e[0], e[1].get("value")] : e + l.Map.isMap(e[1]) ? [e[0], e[1].get("value")] : e, ) - .toJS() + .toJS(), )), l.List.isList(d) && (d = (0, u.Pz)(d)), i) @@ -7406,7 +7420,7 @@ var ut = { p, i, n.activeExamplesMember(t, a, "requestBody", "requestBody"), - s + s, ); o = !!d && d !== e; } @@ -7414,20 +7428,20 @@ var ut = { }), y = d( (e, t, a) => - e.getIn(["requestData", t, a, "bodyInclusion"]) || (0, l.Map)() + e.getIn(["requestData", t, a, "bodyInclusion"]) || (0, l.Map)(), ), v = d((e, t, a) => e.getIn(["requestData", t, a, "errors"]) || null), E = d( (e, t, a, n, r) => - e.getIn(["examples", t, a, n, r, "activeExample"]) || null + e.getIn(["examples", t, a, n, r, "activeExample"]) || null, ), S = d( (e, t, a) => - e.getIn(["requestData", t, a, "requestContentType"]) || null + e.getIn(["requestData", t, a, "requestContentType"]) || null, ), w = d( (e, t, a) => - e.getIn(["requestData", t, a, "responseContentType"]) || null + e.getIn(["requestData", t, a, "responseContentType"]) || null, ), b = d((e, t, a) => { let n; @@ -7508,7 +7522,7 @@ var ut = { (0, o.default)(d).call(d, e) < 0 && d.push(e); }); } - } + }, ), (0, r.default)(d).call(d, (e) => { c.getIn([e, "value"]) || u.push(e); @@ -7594,8 +7608,8 @@ var ut = { (e) => { let [t] = e; return (0, o.default)(u).call(u, t); - } - )) + }, + )), ).call(d, (e) => { let [t, n] = e; return { @@ -7612,12 +7626,12 @@ var ut = { }); return (0, l.default)(e).call(e, m); }, - (0, i.List)() + (0, i.List)(), ) : e, - (0, i.List)() + (0, i.List)(), ) - .groupBy((e) => e.callbackName)) + .groupBy((e) => e.callbackName)), ) .call(t, (e) => e.toArray()) .toObject() @@ -7662,13 +7676,13 @@ var ut = { }), u = l( () => (e) => - e.getSystem().specSelectors.specJson().hasIn(["servers", 0]) + e.getSystem().specSelectors.specJson().hasIn(["servers", 0]), ), d = l( (0, n.createSelector)( r.specJsonWithResolvedSubtrees, - (e) => e.getIn(["components", "securitySchemes"]) || null - ) + (e) => e.getIn(["components", "securitySchemes"]) || null, + ), ), p = (e, t) => function (a) { @@ -7802,7 +7816,7 @@ var ut = { (s = r.default.createElement( "span", { className: "model-deprecated-warning" }, - "Deprecated:" + "Deprecated:", ))), r.default.createElement( "div", @@ -7814,8 +7828,8 @@ var ut = { getConfigs: e, depth: 1, expandDepth: this.props.expandDepth || 0, - }) - ) + }), + ), ) ); } @@ -7840,8 +7854,8 @@ var ut = { n.default.createElement( "small", { className: "version-stamp" }, - n.default.createElement("pre", { className: "version" }, "OAS 3.0") - ) + n.default.createElement("pre", { className: "version" }, "OAS 3.0"), + ), ); }); }, @@ -7871,7 +7885,7 @@ var ut = { memoizedCreateXMLExample: t.jsonSchema202012.memoizedCreateXMLExample, }, - a() + a(), ); (0, n.default)(this.fn, e); } @@ -7898,15 +7912,15 @@ var ut = { i, { href: (0, r.Nm)(o), target: "_blank" }, s, - " - Website" - ) + " - Website", + ), ), l && n.default.createElement( i, { href: (0, r.Nm)(`mailto:${l}`) }, - o ? `Send email to ${s}` : `Contact ${s}` - ) + o ? `Send email to ${s}` : `Contact ${s}`, + ), ); }; }, @@ -7946,16 +7960,16 @@ var ut = { "h2", { className: "title" }, d, - s && n.default.createElement(E, { version: s }) + s && n.default.createElement(E, { version: s }), ), (i || l) && n.default.createElement(w, { host: i, basePath: l }), - o && n.default.createElement(S, { getComponent: t, url: o }) + o && n.default.createElement(S, { getComponent: t, url: o }), ), c && n.default.createElement("p", { className: "info__summary" }, c), n.default.createElement( "div", { className: "info__description description" }, - n.default.createElement(y, { source: u }) + n.default.createElement(y, { source: u }), ), p && n.default.createElement( @@ -7964,8 +7978,8 @@ var ut = { n.default.createElement( v, { target: "_blank", href: (0, r.Nm)(p) }, - "Terms of service" - ) + "Terms of service", + ), ), h.size > 0 && n.default.createElement(x, null), g.size > 0 && n.default.createElement(b, null), @@ -7977,9 +7991,9 @@ var ut = { target: "_blank", href: (0, r.Nm)(m), }, - f || m + f || m, ), - n.default.createElement(_, null) + n.default.createElement(_, null), ); }; }, @@ -8005,8 +8019,8 @@ var ut = { n.default.createElement( l, { target: "_blank", href: (0, r.Nm)(s) }, - s - ) + s, + ), ), s && s !== o && @@ -8025,7 +8039,7 @@ var ut = { n.default.createElement( "h4", { className: "center" }, - "Warning" + "Warning", ), n.default.createElement( "p", @@ -8033,21 +8047,21 @@ var ut = { n.default.createElement( "strong", null, - "OpenAPI.jsonSchemaDialect" + "OpenAPI.jsonSchemaDialect", ), " field contains a value different from the default value of", " ", n.default.createElement( l, { target: "_blank", href: o }, - o + o, ), - ". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value." - ) - ) - ) - ) - ) + ". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value.", + ), + ), + ), + ), + ), ); }; }, @@ -8070,10 +8084,10 @@ var ut = { n.default.createElement( l, { target: "_blank", href: (0, r.Nm)(o) }, - s - ) + s, + ), ) - : n.default.createElement("span", null, s) + : n.default.createElement("span", null, s), ); }; }, @@ -8102,7 +8116,7 @@ var ut = { (e, t) => { o(i, t); }, - [i, o] + [i, o], ); return r.default.createElement(l, { name: i, @@ -8190,8 +8204,8 @@ var ut = { o.default.createElement("span", null, "Schemas"), E ? o.default.createElement(b, null) - : o.default.createElement(x, null) - ) + : o.default.createElement(x, null), + ), ), o.default.createElement( S, @@ -8205,8 +8219,8 @@ var ut = { name: t, onExpand: N(t), }); - }) - ) + }), + ), ); }; }, @@ -8242,7 +8256,7 @@ var ut = { n.default.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), n.default.createElement( "p", @@ -8250,7 +8264,7 @@ var ut = { n.default.createElement("code", null, "swagger"), " and ", n.default.createElement("code", null, "openapi"), - " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields." + " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.", ), n.default.createElement( "p", @@ -8262,10 +8276,10 @@ var ut = { " (for example,", " ", n.default.createElement("code", null, "openapi: 3.1.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ) : a || r || s ? n.default.createElement("div", null, l) @@ -8285,12 +8299,12 @@ var ut = { n.default.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), n.default.createElement( "p", null, - "The provided definition does not specify a valid version field." + "The provided definition does not specify a valid version field.", ), n.default.createElement( "p", @@ -8302,10 +8316,10 @@ var ut = { " (for example,", " ", n.default.createElement("code", null, "openapi: 3.1.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ); }; }, @@ -8340,10 +8354,10 @@ var ut = { path: e, specPath: t.specPath, allowTryItOut: !1, - }) - ) + }), + ), ); - }) + }), ); }; }, @@ -8416,7 +8430,7 @@ var ut = { (0, n.default)({}, r, { originalComponent: t, getSystem: a.getSystem, - }) + }), ) : l.default.createElement(t, r), m = (e, t) => { @@ -8436,7 +8450,7 @@ var ut = { : void 0; }, ]; - }) + }), ); }; }, @@ -8569,8 +8583,8 @@ var ut = { className: "json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary", }, - n.default.createElement(s, { source: t.description }) - ) + n.default.createElement(s, { source: t.description }), + ), ); }; }, @@ -8622,10 +8636,10 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Discriminator" - ) + "Discriminator", + ), ), - r.default.createElement(E, { expanded: f, onClick: b }) + r.default.createElement(E, { expanded: f, onClick: b }), ) : r.default.createElement( "span", @@ -8633,7 +8647,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Discriminator" + "Discriminator", ), l.propertyName && r.default.createElement( @@ -8642,7 +8656,7 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - l.propertyName + l.propertyName, ), r.default.createElement( "strong", @@ -8650,24 +8664,26 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), r.default.createElement( "ul", { className: (0, s.default)( "json-schema-2020-12-keyword__children", - { "json-schema-2020-12-keyword__children--collapsed": !f } + { + "json-schema-2020-12-keyword__children--collapsed": !f, + }, ), }, f && r.default.createElement( "li", { className: "json-schema-2020-12-property" }, - r.default.createElement(o.default, { discriminator: l }) - ) - ) - ) + r.default.createElement(o.default, { discriminator: l }), + ), + ), + ), ); }; }, @@ -8695,7 +8711,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - t + t, ), o.default.createElement( "span", @@ -8703,8 +8719,8 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - a - ) + a, + ), ); }); }; @@ -8732,7 +8748,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Example" + "Example", ), n.default.createElement( "span", @@ -8740,8 +8756,8 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - o(t.example) - ) + o(t.example), + ), ) : null; }; @@ -8796,10 +8812,10 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "External documentation" - ) + "External documentation", + ), ), - r.default.createElement(E, { expanded: f, onClick: _ }) + r.default.createElement(E, { expanded: f, onClick: _ }), ) : r.default.createElement( "span", @@ -8807,7 +8823,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "External documentation" + "External documentation", ), r.default.createElement( "strong", @@ -8815,14 +8831,16 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), r.default.createElement( "ul", { className: (0, s.default)( "json-schema-2020-12-keyword__children", - { "json-schema-2020-12-keyword__children--collapsed": !f } + { + "json-schema-2020-12-keyword__children--collapsed": !f, + }, ), }, f && @@ -8836,7 +8854,7 @@ var ut = { r.default.createElement(S, { schema: l, getSystem: a, - }) + }), ), l.url && r.default.createElement( @@ -8854,7 +8872,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "url" + "url", ), r.default.createElement( "span", @@ -8865,14 +8883,14 @@ var ut = { r.default.createElement( w, { target: "_blank", href: (0, o.Nm)(l.url) }, - l.url - ) - ) - ) - ) - ) - ) - ) + l.url, + ), + ), + ), + ), + ), + ), + ), ); }; }, @@ -8917,17 +8935,17 @@ var ut = { key: t, className: (0, c.default)( "json-schema-2020-12-property", - { "json-schema-2020-12-property--required": r } + { "json-schema-2020-12-property--required": r }, ), }, i.default.createElement(y, { name: t, schema: n, dependentRequired: s, - }) + }), ); - }) - ) + }), + ), ); }; }, @@ -8978,10 +8996,10 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "XML" - ) + "XML", + ), ), - r.default.createElement(v, { expanded: m, onClick: w }) + r.default.createElement(v, { expanded: m, onClick: w }), ) : r.default.createElement( "span", @@ -8989,7 +9007,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "XML" + "XML", ), !0 === o.attribute && r.default.createElement( @@ -8998,7 +9016,7 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "attribute" + "attribute", ), !0 === o.wrapped && r.default.createElement( @@ -9007,7 +9025,7 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "wrapped" + "wrapped", ), r.default.createElement( "strong", @@ -9015,14 +9033,16 @@ var ut = { className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), r.default.createElement( "ul", { className: (0, s.default)( "json-schema-2020-12-keyword__children", - { "json-schema-2020-12-keyword__children--collapsed": !m } + { + "json-schema-2020-12-keyword__children--collapsed": !m, + }, ), }, m && @@ -9045,7 +9065,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "name" + "name", ), r.default.createElement( "span", @@ -9053,9 +9073,9 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - o.name - ) - ) + o.name, + ), + ), ), o.namespace && r.default.createElement( @@ -9070,7 +9090,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "namespace" + "namespace", ), r.default.createElement( "span", @@ -9078,9 +9098,9 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - o.namespace - ) - ) + o.namespace, + ), + ), ), o.prefix && r.default.createElement( @@ -9095,7 +9115,7 @@ var ut = { className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "prefix" + "prefix", ), r.default.createElement( "span", @@ -9103,13 +9123,13 @@ var ut = { className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - o.prefix - ) - ) - ) - ) - ) - ) + o.prefix, + ), + ), + ), + ), + ), + ), ); }; }, @@ -9159,7 +9179,7 @@ var ut = { n.default.createElement(o, { schema: t, getSystem: a }), n.default.createElement(l, { schema: t, getSystem: a }), n.default.createElement(c, { schema: t, getSystem: a }), - n.default.createElement(i, { schema: t, getSystem: a }) + n.default.createElement(i, { schema: t, getSystem: a }), ); }); }, @@ -9187,7 +9207,7 @@ var ut = { ? (0, r.mn)(a, e, { selectedServer: t }) : n ? `https://spdx.org/licenses/${n}.html` - : void 0 + : void 0, ); }, 9305: (e, t, a) => { @@ -9231,7 +9251,7 @@ var ut = { const m = (0, c.Map)(), f = (0, u.createSelector)( (e, t) => t.specSelectors.specJson(), - p.isOAS31 + p.isOAS31, ), h = () => (e) => e.specSelectors.specJson().get("webhooks", m), g = (0, u.createSelector)( @@ -9254,8 +9274,8 @@ var ut = { (e) => { let [a] = e; return (0, o.default)(t).call(t, a); - } - )) + }, + )), ).call(i, (e) => { let [t, a] = e; return { @@ -9267,14 +9287,14 @@ var ut = { }); return (0, l.default)(e).call(e, d); }, - (0, c.List)() + (0, c.List)(), ) - .groupBy((e) => e.path)) + .groupBy((e) => e.path)), ) .call(a, (e) => e.toArray()) .toObject() : {}; - } + }, ), y = () => (e) => e.specSelectors.info().get("license", m), v = () => (e) => e.specSelectors.license().get("name", "License"), @@ -9285,7 +9305,7 @@ var ut = { (e, t) => t.specSelectors.selectLicenseUrlField(), (e, t, a) => { if (a) return (0, d.mn)(a, e, { selectedServer: t }); - } + }, ), w = () => (e) => e.specSelectors.license().get("identifier"), b = () => (e) => e.specSelectors.info().get("contact", m), @@ -9298,7 +9318,7 @@ var ut = { (e, t) => t.specSelectors.selectContactUrlField(), (e, t, a) => { if (a) return (0, d.mn)(a, e, { selectedServer: t }); - } + }, ), N = () => (e) => e.specSelectors.info().get("title"), O = () => (e) => e.specSelectors.info().get("summary"), @@ -9310,7 +9330,7 @@ var ut = { (e, t) => t.specSelectors.selectInfoTermsOfServiceField(), (e, t, a) => { if (a) return (0, d.mn)(a, e, { selectedServer: t }); - } + }, ), R = () => (e) => e.specSelectors.externalDocs().get("description"), P = () => (e) => e.specSelectors.externalDocs().get("url"), @@ -9320,7 +9340,7 @@ var ut = { (e, t) => t.specSelectors.selectExternalDocsUrlField(), (e, t, a) => { if (a) return (0, d.mn)(a, e, { selectedServer: t }); - } + }, ), M = () => (e) => e.specSelectors.specJson().get("jsonSchemaDialect"), D = () => "https://spec.openapis.org/oas/3.1/dialect/base", @@ -9339,11 +9359,11 @@ var ut = { const s = t.get(n); return (e[n] = (null == s ? void 0 : s.toJS()) || r), e; }, - {} + {}, ) : e.toJS() : {}; - } + }, ); }, 2884: (e, t, a) => { @@ -9361,7 +9381,7 @@ var ut = { return n || e(...s); }, s = (0, n.createOnlyOAS31SelectorWrapper)( - () => (e, t) => t.oas31Selectors.selectLicenseUrl() + () => (e, t) => t.oas31Selectors.selectLicenseUrl(), ); }, 7423: (e, t, a) => { @@ -9499,7 +9519,7 @@ var ut = { upperFirst: l.upperFirst, isExpandable: (0, s.makeIsExpandable)( l.jsonSchema202012.isExpandable, - t + t, ), getProperties: s.getProperties, }, @@ -9646,8 +9666,8 @@ var ut = { n.default.createElement( "small", { className: "version-stamp" }, - n.default.createElement("pre", { className: "version" }, "OAS 3.1") - ) + n.default.createElement("pre", { className: "version" }, "OAS 3.1"), + ), ); }); }, @@ -9791,7 +9811,7 @@ var ut = { r && (0, u.default)((w = ["POST", "PUT", "PATCH"])).call( w, - e.get("method") + e.get("method"), ) ) for (let [e, t] of S.entrySeq()) { @@ -9820,17 +9840,17 @@ var ut = { ? t.push( ` "${e}": {\n "name": "${n.name}"${ n.type ? `,\n "type": "${n.type}"` : "" - }\n }` + }\n }`, ) : t.push( ` "${e}": ${(0, s.default)(n, null, 2).replace( /(\r\n|\r|\n)/g, - "\n " - )}` + "\n ", + )}`, ); } return `{\n${t.join(",\n")}\n}`; - })(e) + })(e), ) : ("string" != typeof t && (t = (0, s.default)(t)), h(t)); } @@ -9909,16 +9929,16 @@ var ut = { [x, _] = (0, l.useState)( null === (t = h.getSnippetGenerators()) || void 0 === t ? void 0 - : t.keySeq().first() + : t.keySeq().first(), ), [C, j] = (0, l.useState)( - null == h ? void 0 : h.getDefaultExpanded() + null == h ? void 0 : h.getDefaultExpanded(), ); (0, l.useEffect)(() => {}, []), (0, l.useEffect)(() => { var e; const t = (0, n.default)( - (e = (0, r.default)(S.current.childNodes)) + (e = (0, r.default)(S.current.childNodes)), ).call(e, (e) => { var t; return ( @@ -9930,11 +9950,11 @@ var ut = { }); return ( (0, s.default)(t).call(t, (e) => - e.addEventListener("mousewheel", R, { passive: !1 }) + e.addEventListener("mousewheel", R, { passive: !1 }), ), () => { (0, s.default)(t).call(t, (e) => - e.removeEventListener("mousewheel", R) + e.removeEventListener("mousewheel", R), ); } ); @@ -9960,10 +9980,10 @@ var ut = { language: O.get("syntax"), className: "curl microlight", style: (0, d.C2)( - (0, i.default)(v, "syntaxHighlight.theme") + (0, i.default)(v, "syntaxHighlight.theme"), ), }, - k + k, ) : l.default.createElement("textarea", { readOnly: !0, @@ -9987,7 +10007,7 @@ var ut = { l.default.createElement( "h4", { onClick: () => A(), style: { cursor: "pointer" } }, - "Snippets" + "Snippets", ), l.default.createElement( "button", @@ -10006,8 +10026,8 @@ var ut = { className: "arrow", width: "10", height: "10", - }) - ) + }), + ), ), C && l.default.createElement( @@ -10039,10 +10059,10 @@ var ut = { l.default.createElement( "h4", { style: t === x ? { color: "white" } : {} }, - a.get("title") - ) + a.get("title"), + ), ); - }) + }), ), l.default.createElement( "div", @@ -10050,11 +10070,11 @@ var ut = { l.default.createElement( u.CopyToClipboard, { text: k }, - l.default.createElement("button", null) - ) + l.default.createElement("button", null), + ), ), - l.default.createElement("div", null, P) - ) + l.default.createElement("div", null, P), + ), ); }; }, @@ -10086,7 +10106,7 @@ var ut = { (a = (0, s.default)((r = c(e))).call(r, (e, t) => { const a = ((e) => o[`requestSnippetGenerator_${e}`])(t); return "function" != typeof a ? null : e.set("fn", a); - })) + })), ).call(a, (e) => e); }, d = (0, o.createSelector)(i, (e) => e.get("activeLanguage")), @@ -10140,8 +10160,8 @@ var ut = { null, "Could not render ", "t" === t ? "this component" : t, - ", see the console." - ) + ", see the console.", + ), ); }; }, @@ -10162,8 +10182,8 @@ var ut = { { targetName: l, getComponent: a, fn: s }, r.default.createElement( t, - (0, n.default)({}, this.props, this.context) - ) + (0, n.default)({}, this.props, this.context), + ), ); } } @@ -10221,7 +10241,7 @@ var ut = { (0, n.default)((i = Array(u.length))).call(i, (e, t) => { let { fn: a } = t; return a.withErrorBoundary(e); - }) + }), ); return { fn: { @@ -10249,7 +10269,7 @@ var ut = { o, (e, t) => t.when.test(i) ? [...e, ...t.shouldStringifyTypes] : e, - l + l, ); return (0, s.default)(m, (e) => e === p) ? (0, r.default)(d, null, 2) @@ -10319,7 +10339,7 @@ var ut = { (c = r.default.dump( r.default.load(i), { lineWidth: -1 }, - { schema: r.JSON_SCHEMA } + { schema: r.JSON_SCHEMA }, )), "\n" === c[c.length - 1] && (c = (0, n.default)(c).call(c, 0, c.length - 1)); @@ -10388,7 +10408,7 @@ var ut = { (0, y.XV)( e, "$$ref", - (e) => "string" == typeof e && (0, n.default)(e).call(e, "#") > -1 + (e) => "string" == typeof e && (0, n.default)(e).call(e, "#") > -1, ), b = ["maxProperties", "minProperties"], x = ["minItems", "maxItems"], @@ -10410,11 +10430,11 @@ var ut = { ...x, ..._, ...C, - ]) + ]), ).call(a, (a) => ((a) => { void 0 === t[a] && void 0 !== e[a] && (t[a] = e[a]); - })(a) + })(a), ), void 0 !== e.required && (0, s.default)(e.required)) && ((void 0 !== t.required && t.required.length) || (t.required = []), @@ -10514,7 +10534,7 @@ var ut = { p && (B[M] = []); const U = (t) => (0, l.default)(t).call(t, (t) => - Object.prototype.hasOwnProperty.call(e, t) + Object.prototype.hasOwnProperty.call(e, t), ); e && !O && @@ -10534,7 +10554,7 @@ var ut = { (t = (0, i.default)(t).call( t, 0, - null === (o = e) || void 0 === o ? void 0 : o.maxItems + null === (o = e) || void 0 === o ? void 0 : o.maxItems, )); if ( null !== @@ -10587,7 +10607,7 @@ var ut = { p ? (0, r.default)((a = e.required)).call( a, - (e) => (t += void 0 === B[e] ? 0 : 1) + (e) => (t += void 0 === B[e] ? 0 : 1), ) : (0, r.default)((n = e.required)).call(n, (e) => { var a; @@ -10597,7 +10617,7 @@ var ut = { ? void 0 : (0, c.default)(a).call( a, - (t) => void 0 !== t[e] + (t) => void 0 !== t[e], )) ? 0 : 1); @@ -10644,12 +10664,12 @@ var ut = { if ( Object.prototype.hasOwnProperty.call( e, - "discriminator" + "discriminator", ) && e.discriminator && Object.prototype.hasOwnProperty.call( e.discriminator, - "mapping" + "mapping", ) && e.discriminator.mapping && Object.prototype.hasOwnProperty.call(e, "$$ref") && @@ -10761,12 +10781,12 @@ var ut = { (R.xml.name = R.xml.name || C.name); if ((0, s.default)(R.anyOf)) a = (0, d.default)((H = R.anyOf)).call(H, (e) => - N(j(R, e, t), t, void 0, p) + N(j(R, e, t), t, void 0, p), ); else if ((0, s.default)(R.oneOf)) { var G; a = (0, d.default)((G = R.oneOf)).call(G, (e) => - N(j(R, e, t), t, void 0, p) + N(j(R, e, t), t, void 0, p), ); } else { if (!(!p || (p && C.wrapped))) return N(R, t, void 0, p); @@ -11000,7 +11020,7 @@ var ut = { } = a; re || (console.warn( - "specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!" + "specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!", ), (re = !0)); const { @@ -11036,7 +11056,7 @@ var ut = { (e.source = "resolver"), o()(e, "message", { enumerable: !0, value: e.message }), e - ) + ), ); i.newThrownErrBatch(e); } @@ -11051,17 +11071,17 @@ var ut = { let { path: a, system: n } = t; return e.has(n) || e.set(n, []), e.get(n).push(a), e; }, - new i.default() + new i.default(), ); (oe = []), (0, c.default)(e).call(e, async (e, t) => { if (!t) return void console.error( - "debResolveSubtrees: don't have a system to operate on, aborting." + "debResolveSubtrees: don't have a system to operate on, aborting.", ); if (!t.fn.resolveSubtree) return void console.error( - "Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing." + "Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.", ); const { errActions: a, @@ -11099,7 +11119,7 @@ var ut = { "resolver" !== e.get("source") || !(0, y.default)((a = e.get("fullPath"))).call( a, - (e, a) => e === t[a] || void 0 === t[a] + (e, a) => e === t[a] || void 0 === t[a], ) ); }), @@ -11118,7 +11138,7 @@ var ut = { value: e.message, }), e - ) + ), ); a.newThrownErrBatch(e); } @@ -11131,8 +11151,8 @@ var ut = { (0, r.default)( (_ = (0, E.default)((C = (0, S.default)(x))).call( C, - (e) => "openIdConnect" === e.type - )) + (e) => "openIdConnect" === e.type, + )), ).call(_, async (e) => { const t = { url: e.openIdConnectUrl, @@ -11147,7 +11167,7 @@ var ut = { } catch (e) { console.error(e); } - }) + }), )); return ( (0, I.default)(l, t, x), @@ -11160,7 +11180,7 @@ var ut = { d.specResolvedSubtree([]) || (0, j.Map)() ).toJS(), specWithCurrentSubtrees: d.specJS(), - }) + }), ); p.updateResolvedSubtree([], t.resultMap); } catch (e) { @@ -11240,14 +11260,14 @@ var ut = { (0, c.default)( (g = (0, E.default)((y = p.get("parameters"))).call( y, - (e) => e && !0 === e.get("allowEmptyValue") - )) + (e) => e && !0 === e.get("allowEmptyValue"), + )), ).call(g, (t) => { if ( o.parameterInclusionSettingFor( [u, d], t.get("name"), - t.get("in") + t.get("in"), ) ) { e.parameters = e.parameters || {}; @@ -11278,14 +11298,14 @@ var ut = { if (o && o.toJS) e.requestBody = (0, E.default)( (v = (0, r.default)(o).call(o, (e) => - j.Map.isMap(e) ? e.get("value") : e - )) + j.Map.isMap(e) ? e.get("value") : e, + )), ) .call( v, (e, t) => ((0, n.default)(e) ? 0 !== e.length : !(0, T.O2)(e)) || - l.get(t) + l.get(t), ) .toJS(); else e.requestBody = o; @@ -11425,7 +11445,7 @@ var ut = { if (!r || !s) return ( console.warn( - "Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey." + "Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey.", ), e ); @@ -11447,7 +11467,7 @@ var ut = { (t) => { var u; return (0, n.default)( - (u = s.get("parameters", (0, o.List)())) + (u = s.get("parameters", (0, o.List)())), ).call( u, (t, n) => { @@ -11456,14 +11476,14 @@ var ut = { e, a, n.get("name"), - n.get("in") + n.get("in"), ), d = (0, l.Ik)(n, s, { bypassRequiredCheck: u, isOAS3: r }); return t.setIn([(0, l.V9)(n), "errors"], (0, o.fromJS)(d)); }, - t + t, ); - } + }, ); }, [u.CLEAR_VALIDATE_PARAMS]: (e, t) => { @@ -11475,8 +11495,8 @@ var ut = { (0, o.fromJS)([]), (e) => (0, r.default)(e).call(e, (e) => - e.set("errors", (0, o.fromJS)([])) - ) + e.set("errors", (0, o.fromJS)([])), + ), ); }, [u.SET_RESPONSE]: (e, t) => { @@ -11492,7 +11512,7 @@ var ut = { message: n.err.message, statusCode: n.err.statusCode, }, - n.err.response + n.err.response, ) : n), (a.headers = a.headers || {}); @@ -11643,7 +11663,7 @@ var ut = { S = (0, m.createSelector)(y, (e) => e.get("spec") || ""), w = (0, m.createSelector)( y, - (e) => e.get("specSource") || "not-editor" + (e) => e.get("specSource") || "not-editor", ), b = (0, m.createSelector)(y, (e) => e.get("json", (0, h.Map)())), x = (0, m.createSelector)(b, (e) => e.toJS()), @@ -11659,8 +11679,8 @@ var ut = { (0, h.OrderedMap)().mergeWith( j, e.get("json"), - e.get("resolvedSubtrees") - ) + e.get("resolvedSubtrees"), + ), ), O = (e) => b(e), k = (0, m.createSelector)(O, () => !1), @@ -11670,7 +11690,7 @@ var ut = { P = (0, m.createSelector)(R, (e) => { var t; return (0, n.default)( - (t = /v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e)) + (t = /v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e)), ).call(t, 1); }), T = (0, m.createSelector)(N, (e) => e.get("paths")), @@ -11697,7 +11717,7 @@ var ut = { method: n, operation: e, id: `${n}-${a}`, - }) + }), )); }); }), @@ -11732,13 +11752,13 @@ var ut = { e.get("produces") || e.update("produces", (e) => (0, h.Set)(e).merge(a)), e - ) + ), ); } return (0, h.Map)(); - }) - ) - ), + }), + ), + ), W = (0, m.createSelector)(O, (e) => { const t = e.get("tags", (0, h.List)()); return h.List.isList(t) @@ -11749,7 +11769,7 @@ var ut = { var a; let n = W(e) || (0, h.List)(); return (0, i.default)( - (a = (0, l.default)(n).call(n, h.Map.isMap)) + (a = (0, l.default)(n).call(n, h.Map.isMap)), ).call(a, (e) => e.get("name") === t, (0, h.Map)()); }, G = (0, m.createSelector)(z, W, (e, t) => @@ -11762,15 +11782,15 @@ var ut = { : (0, c.default)(a).call( a, (e, a) => e.update(a, (0, h.List)(), (e) => e.push(t)), - e + e, ); }, (0, c.default)(t).call( t, (e, t) => e.set(t.get("name"), (0, h.List)()), - (0, h.OrderedMap)() - ) - ) + (0, h.OrderedMap)(), + ), + ), ), Z = (e) => (t) => { var a; @@ -11782,8 +11802,8 @@ var ut = { (e, t) => { let a = "function" == typeof r ? r : f.wh.tagsSorter[r]; return a ? a(e, t) : null; - } - )) + }, + )), ).call(a, (t, a) => { let n = "function" == typeof s ? s : f.wh.operationsSorter[s], r = n ? (0, u.default)(t).call(t, n) : t; @@ -11793,7 +11813,7 @@ var ut = { Y = (0, m.createSelector)(y, (e) => e.get("responses", (0, h.Map)())), X = (0, m.createSelector)(y, (e) => e.get("requests", (0, h.Map)())), Q = (0, m.createSelector)(y, (e) => - e.get("mutatedRequests", (0, h.Map)()) + e.get("mutatedRequests", (0, h.Map)()), ), ee = (e, t, a) => Y(e).getIn([t, a], null), te = (e, t, a) => X(e).getIn([t, a], null), @@ -11802,16 +11822,16 @@ var ut = { re = (e, t, a) => { const n = N(e).getIn( ["paths", ...t, "parameters"], - (0, h.OrderedMap)() + (0, h.OrderedMap)(), ), r = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, h.OrderedMap)() + (0, h.OrderedMap)(), ), s = (0, o.default)(n).call(n, (e) => { const t = r.get(`${a.get("in")}.${a.get("name")}`), n = r.get( - `${a.get("in")}.${a.get("name")}.hash-${a.hashCode()}` + `${a.get("in")}.${a.get("name")}.hash-${a.hashCode()}`, ); return (0, h.OrderedMap)().merge(e, t, n); }); @@ -11819,25 +11839,25 @@ var ut = { s, (e) => e.get("in") === a.get("in") && e.get("name") === a.get("name"), - (0, h.OrderedMap)() + (0, h.OrderedMap)(), ); }, se = (e, t, a, n) => { const r = `${n}.${a}`; return e.getIn( ["meta", "paths", ...t, "parameter_inclusions", r], - !1 + !1, ); }, oe = (e, t, a, n) => { const r = N(e).getIn( ["paths", ...t, "parameters"], - (0, h.OrderedMap)() + (0, h.OrderedMap)(), ), s = (0, i.default)(r).call( r, (e) => e.get("in") === n && e.get("name") === a, - (0, h.OrderedMap)() + (0, h.OrderedMap)(), ); return re(e, t, s); }, @@ -11847,7 +11867,7 @@ var ut = { s = e.getIn(["meta", "paths", t, a], (0, h.OrderedMap)()), l = (0, o.default)((n = r.get("parameters", (0, h.List)()))).call( n, - (n) => re(e, [t, a], n) + (n) => re(e, [t, a], n), ); return (0, h.OrderedMap)().merge(r, s).set("parameters", l); }; @@ -11855,12 +11875,12 @@ var ut = { t = t || []; let r = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, h.fromJS)([]) + (0, h.fromJS)([]), ); return ( (0, i.default)(r).call( r, - (e) => h.Map.isMap(e) && e.get("name") === a && e.get("in") === n + (e) => h.Map.isMap(e) && e.get("name") === a && e.get("in") === n, ) || (0, h.Map)() ); } @@ -11878,7 +11898,7 @@ var ut = { a && "body" === t.get("in") ? t.get("value_xml") : t.get("value"); return e.set((0, f.V9)(t, { allowHashes: !1 }), n); }, - (0, h.fromJS)({}) + (0, h.fromJS)({}), ); } function de(e) { @@ -11887,7 +11907,7 @@ var ut = { if (h.List.isList(e)) return (0, d.default)(e).call( e, - (e) => h.Map.isMap(e) && e.get("in") === t + (e) => h.Map.isMap(e) && e.get("in") === t, ); } function pe(e) { @@ -11896,7 +11916,7 @@ var ut = { if (h.List.isList(e)) return (0, d.default)(e).call( e, - (e) => h.Map.isMap(e) && e.get("type") === t + (e) => h.Map.isMap(e) && e.get("type") === t, ); } function me(e, t) { @@ -11964,7 +11984,7 @@ var ut = { t = t || []; let a = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, h.fromJS)([]) + (0, h.fromJS)([]), ); const n = []; return ( @@ -11981,7 +12001,7 @@ var ut = { let n = { requestBody: !1, requestContentType: {} }, s = e.getIn( ["resolvedSubtrees", "paths", ...t, "requestBody"], - (0, h.fromJS)([]) + (0, h.fromJS)([]), ); return ( s.size < 1 || @@ -11994,7 +12014,7 @@ var ut = { const a = e[1].getIn(["schema", "required"]).toJS(); n.requestContentType[t] = a; } - } + }, )), n ); @@ -12003,7 +12023,7 @@ var ut = { if ((a || n) && a === n) return !0; let r = e.getIn( ["resolvedSubtrees", "paths", ...t, "requestBody", "content"], - (0, h.fromJS)([]) + (0, h.fromJS)([]), ); if (r.size < 2 || !a || !n) return !1; let s = r.getIn([a, "schema", "properties"], (0, h.fromJS)([])), @@ -12210,7 +12230,7 @@ var ut = { render() { return s.default.createElement( t, - (0, n.default)({}, e(), this.props, this.context) + (0, n.default)({}, e(), this.props, this.context), ); } } @@ -12225,8 +12245,8 @@ var ut = { { store: t }, s.default.createElement( a, - (0, n.default)({}, this.props, this.context) - ) + (0, n.default)({}, this.props, this.context), + ), ); } } @@ -12244,7 +12264,7 @@ var ut = { : r.mapStateToProps) || ((e) => ({ state: e })); return o(a, s); }), - d(e) + d(e), )(t), f = (e, t, a, n) => { for (const r in t) { @@ -12283,7 +12303,7 @@ var ut = { : {}; if ("string" != typeof n) throw new TypeError( - "Need a string, to fetch a component. Was given a " + typeof n + "Need a string, to fetch a component. Was given a " + typeof n, ); const o = a(n); return o @@ -12382,7 +12402,7 @@ var ut = { (0, r.default)(w).call(w, e) ? S[e] : (console.warn( - `Request style '${e}' is not available, returning default instead` + `Request style '${e}' is not available, returning default instead`, ), m.default); }, @@ -12536,7 +12556,7 @@ var ut = { return (0, c.default)((a = (0, i.default)(e))).call( a, (a, n) => ((a[n] = t(e[n], n)), a), - {} + {}, ); } function X(e, t) { @@ -12547,13 +12567,13 @@ var ut = { let r = t(e[n], n); return r && "object" == typeof r && (0, u.default)(a, r), a; }, - {} + {}, ); } function Q(e) { return (t) => { let { dispatch: a, getState: n } = t; - return (t) => (a) => "function" == typeof a ? a(e()) : t(a); + return (t) => (a) => ("function" == typeof a ? a(e()) : t(a)); }; } function ee(e) { @@ -12562,7 +12582,7 @@ var ut = { return a.contains(T) ? T : (0, d.default)( - (t = (0, l.default)(a).call(a, (e) => "2" === (e + "")[0])) + (t = (0, l.default)(a).call(a, (e) => "2" === (e + "")[0])), ) .call(t) .first(); @@ -12660,7 +12680,7 @@ var ut = { (0, o.default)((R = t.get("properties"))).call(R, (e, t) => { const n = re(a[t], e, !1, s, i); c.push( - ...(0, r.default)(n).call(n, (e) => ({ propKey: t, error: e })) + ...(0, r.default)(n).call(n, (e) => ({ propKey: t, error: e })), ); }); } @@ -12698,7 +12718,7 @@ var ut = { if ( ((0, o.default)(t).call(t, (a, n) => { (0, l.default)(t).call(t, (e) => - J(e.equals) ? e.equals(a) : e === a + J(e.equals) ? e.equals(a) : e === a, ).size > 1 && (e = e.add(n)); }), 0 !== e.size) @@ -12757,7 +12777,7 @@ var ut = { if ( ((e = e.toString().toLowerCase()), !/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test( - e + e, )) ) return "Value must be a Guid"; @@ -12795,7 +12815,7 @@ var ut = { (0, o.default)(e).call(e, (e, a) => { const n = re(e, t.get("items"), !1, s, i); c.push( - ...(0, r.default)(n).call(n, (e) => ({ index: a, error: e })) + ...(0, r.default)(n).call(n, (e) => ({ index: a, error: e })), ); }); } else if ("file" === h) { @@ -12853,7 +12873,7 @@ var ut = { void 0 !== n && "" !== n && t.push( - [a, "=", encodeURIComponent(n).replace(/%20/g, "+")].join("") + [a, "=", encodeURIComponent(n).replace(/%20/g, "+")].join(""), ); } return t.join("&"); @@ -12878,7 +12898,7 @@ var ut = { e, (e, t) => (0, h.default)(t).call(t, "2") && - (0, i.default)(e.get("content") || {}).length > 0 + (0, i.default)(e.get("content") || {}).length > 0, ), a = e.get("default") || v.default.OrderedMap(), n = (a.get("content") || v.default.OrderedMap()).keySeq().toJS() @@ -12895,7 +12915,7 @@ var ut = { ge = (e) => (0, l.default)(e).call(e, (e, t) => /^x-/.test(t)), ye = (e) => (0, l.default)(e).call(e, (e, t) => - /^pattern|maxLength|minLength|maximum|minimum/.test(t) + /^pattern|maxLength|minLength|maximum|minimum/.test(t), ); function ve(e, t) { var a; @@ -12931,7 +12951,7 @@ var ut = { arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (!v.default.Map.isMap(e)) throw new Error( - "paramToIdentifier: received a non-Im.Map parameter as input" + "paramToIdentifier: received a non-Im.Map parameter as input", ); const n = e.get("name"), r = e.get("in"); @@ -12952,7 +12972,7 @@ var ut = { var a; const n = we(e, { returnAll: !0 }); return (0, l.default)( - (a = (0, r.default)(n).call(n, (e) => t[e])) + (a = (0, r.default)(n).call(n, (e) => t[e])), ).call(a, (e) => void 0 !== e)[0]; } function xe() { @@ -13060,7 +13080,7 @@ var ut = { "minItems", "uniqueItems", "enum", - "multipleOf" + "multipleOf", ); function l(e) { let { isOAS3: t } = @@ -13075,7 +13095,7 @@ var ut = { } : { schema: (0, n.default)(e).call(e, (e, t) => - (0, r.default)(o).call(o, t) + (0, r.default)(o).call(o, t), ), parameterContentMediaType: null, }; @@ -13159,7 +13179,7 @@ var ut = { function l(e) { if (e > o) throw new RangeError( - 'The value "' + e + '" is invalid for option "size"' + 'The value "' + e + '" is invalid for option "size"', ); const t = new Uint8Array(e); return Object.setPrototypeOf(t, i.prototype), t; @@ -13168,7 +13188,7 @@ var ut = { if ("number" == typeof e) { if ("string" == typeof t) throw new TypeError( - 'The "string" argument must be of type string. Received type number' + 'The "string" argument must be of type string. Received type number', ); return d(e); } @@ -13196,7 +13216,7 @@ var ut = { if (null == e) throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + - typeof e + typeof e, ); if (G(e, ArrayBuffer) || (e && G(e.buffer, ArrayBuffer))) return m(e, t, a); @@ -13207,7 +13227,7 @@ var ut = { return m(e, t, a); if ("number" == typeof e) throw new TypeError( - 'The "value" argument must not be of type number. Received type number' + 'The "value" argument must not be of type number. Received type number', ); const n = e.valueOf && e.valueOf(); if (null != n && n !== e) return i.from(n, t, a); @@ -13230,7 +13250,7 @@ var ut = { return i.from(e[Symbol.toPrimitive]("string"), t, a); throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + - typeof e + typeof e, ); } function u(e) { @@ -13238,7 +13258,7 @@ var ut = { throw new TypeError('"size" argument must be of type number'); if (e < 0) throw new RangeError( - 'The value "' + e + '" is invalid for option "size"' + 'The value "' + e + '" is invalid for option "size"', ); } function d(e) { @@ -13272,7 +13292,7 @@ var ut = { throw new RangeError( "Attempt to allocate Buffer larger than maximum size: 0x" + o.toString(16) + - " bytes" + " bytes", ); return 0 | e; } @@ -13282,7 +13302,7 @@ var ut = { if ("string" != typeof e) throw new TypeError( 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + - typeof e + typeof e, ); const a = e.length, n = arguments.length > 2 && !0 === arguments[2]; @@ -13437,7 +13457,7 @@ var ut = { })(t), e, a, - n + n, ); } function x(e, t, a, n) { @@ -13458,7 +13478,7 @@ var ut = { })(t, e.length - a), e, a, - n + n, ); } function C(e, t, a) { @@ -13549,7 +13569,7 @@ var ut = { "undefined" == typeof console || "function" != typeof console.error || 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." + "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.", ), Object.defineProperty(i.prototype, "parent", { enumerable: !0, @@ -13599,7 +13619,7 @@ var ut = { !i.isBuffer(e) || !i.isBuffer(t)) ) throw new TypeError( - 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' + 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array', ); if (e === t) return 0; let a = e.length, @@ -13647,7 +13667,7 @@ var ut = { else { if (!i.isBuffer(t)) throw new TypeError( - '"list" argument must be an Array of Buffers' + '"list" argument must be an Array of Buffers', ); t.copy(n, r); } @@ -13715,7 +13735,7 @@ var ut = { ) throw new TypeError( 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + - typeof e + typeof e, ); if ( (void 0 === t && (t = 0), @@ -13757,7 +13777,7 @@ var ut = { else { if (!isFinite(t)) throw new Error( - "Buffer.write(string, encoding, offset[, length]) is no longer supported" + "Buffer.write(string, encoding, offset[, length]) is no longer supported", ); (t >>>= 0), isFinite(a) @@ -14054,7 +14074,7 @@ var ut = { return ( (BigInt(n) << BigInt(32)) + BigInt( - t + 256 * this[++e] + 65536 * this[++e] + this[++e] * 2 ** 24 + t + 256 * this[++e] + 65536 * this[++e] + this[++e] * 2 ** 24, ) ); })), @@ -14067,7 +14087,7 @@ var ut = { return ( (BigInt(n) << BigInt(32)) + BigInt( - this[++e] * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + a + this[++e] * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + a, ) ); })), @@ -14264,7 +14284,7 @@ var ut = { e, t, -BigInt("0x8000000000000000"), - BigInt("0x7fffffffffffffff") + BigInt("0x7fffffffffffffff"), ); })), (i.prototype.writeBigInt64BE = X(function (e, t = 0) { @@ -14273,7 +14293,7 @@ var ut = { e, t, -BigInt("0x8000000000000000"), - BigInt("0x7fffffffffffffff") + BigInt("0x7fffffffffffffff"), ); })), (i.prototype.writeFloatLE = function (e, t, a) { @@ -14350,7 +14370,7 @@ var ut = { o = s.length; if (0 === o) throw new TypeError( - 'The value "' + e + '" is invalid for argument "value"' + 'The value "' + e + '" is invalid for argument "value"', ); for (r = 0; r < a - t; ++r) this[r + t] = s[r % o]; } @@ -14428,7 +14448,7 @@ var ut = { throw new B.ERR_OUT_OF_RANGE( a || "offset", `>= ${a ? 1 : 0} and <= ${t}`, - e + e, ); } U( @@ -14438,14 +14458,14 @@ var ut = { ? `${e} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds"; }, - RangeError + RangeError, ), U( "ERR_INVALID_ARG_TYPE", function (e, t) { return `The "${e}" argument must be of type number. Received type ${typeof t}`; }, - TypeError + TypeError, ), U( "ERR_OUT_OF_RANGE", @@ -14465,7 +14485,7 @@ var ut = { n ); }, - RangeError + RangeError, ); const F = /[^+/0-9A-Za-z-_]/g; function z(e, t) { @@ -14510,7 +14530,7 @@ var ut = { (a >> 18) | 240, ((a >> 12) & 63) | 128, ((a >> 6) & 63) | 128, - (63 & a) | 128 + (63 & a) | 128, ); } } @@ -14523,7 +14543,7 @@ var ut = { return ""; for (; e.length % 4 != 0; ) e += "="; return e; - })(e) + })(e), ); } function H(e, t, a, n) { @@ -15212,7 +15232,7 @@ var ut = { forced: Object.defineProperty !== s, sham: !r, }, - { defineProperty: s } + { defineProperty: s }, ); }, 1910: (e, t, a) => { @@ -15298,7 +15318,7 @@ var ut = { : Object.getOwnPropertySymbols ? function (e) { return Object.getOwnPropertyNames(e).concat( - Object.getOwnPropertySymbols(e) + Object.getOwnPropertySymbols(e), ); } : function (e) { @@ -15339,7 +15359,7 @@ var ut = { if ("function" != typeof e) throw new TypeError( 'The "listener" argument must be of type Function. Received type ' + - typeof e + typeof e, ); } function i(e) { @@ -15374,7 +15394,7 @@ var ut = { o.length + " " + String(t) + - " listeners added. Use emitter.setMaxListeners() to increase limit" + " listeners added. Use emitter.setMaxListeners() to increase limit", ); (u.name = "MaxListenersExceededWarning"), (u.emitter = e), @@ -15437,7 +15457,7 @@ var ut = { if ("function" != typeof e.addEventListener) throw new TypeError( 'The "emitter" argument must be of type EventEmitter. Received type ' + - typeof e + typeof e, ); e.addEventListener(t, function r(s) { n.once && e.removeEventListener(t, r), a(s); @@ -15454,7 +15474,7 @@ var ut = { throw new RangeError( 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + - "." + ".", ); o = e; }, @@ -15470,7 +15490,7 @@ var ut = { throw new RangeError( 'The value of "n" is out of range. It must be a non-negative number. Received ' + e + - "." + ".", ); return (this._maxListeners = e), this; }), @@ -15488,7 +15508,7 @@ var ut = { var o; if ((t.length > 0 && (o = t[0]), o instanceof Error)) throw o; var l = new Error( - "Unhandled error." + (o ? " (" + o.message + ")" : "") + "Unhandled error." + (o ? " (" + o.message + ")" : ""), ); throw ((l.context = o), l); } @@ -15754,7 +15774,7 @@ var ut = { }) : (e.exports = function () { throw new Error( - "Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11" + "Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11", ); }); }, @@ -15770,7 +15790,7 @@ var ut = { this, (function (e, t, n) { return "string" == typeof a ? a : a(e, t, n); - })(t, n, r) + })(t, n, r), ) || this ); } @@ -15807,7 +15827,7 @@ var ut = { function (e, t) { return 'The value "' + t + '" is invalid for option "' + e + '"'; }, - TypeError + TypeError, ), a( "ERR_INVALID_ARG_TYPE", @@ -15843,7 +15863,7 @@ var ut = { } return (l += ". Received type ".concat(typeof a)); }, - TypeError + TypeError, ), a("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), a("ERR_METHOD_NOT_IMPLEMENTED", function (e) { @@ -15859,18 +15879,18 @@ var ut = { a( "ERR_STREAM_NULL_VALUES", "May not write null values to stream", - TypeError + TypeError, ), a( "ERR_UNKNOWN_ENCODING", function (e) { return "Unknown encoding: " + e; }, - TypeError + TypeError, ), a( "ERR_STREAM_UNSHIFT_AFTER_END_EVENT", - "stream.unshift() after end event" + "stream.unshift() after end event", ), (e.exports.q = t); }, @@ -16909,7 +16929,7 @@ var ut = { return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", - "DEP0003" + "DEP0003", ), }); } catch (e) {} @@ -17103,7 +17123,7 @@ var ut = { var n = a.call(e, t || "default"); if ("object" != typeof n) return n; throw new TypeError( - "@@toPrimitive must return a primitive value." + "@@toPrimitive must return a primitive value.", ); } return ("string" === t ? String : Number)(e); @@ -17170,7 +17190,7 @@ var ut = { t[u] ? a(f(void 0, !0)) : t[p](a, n); }, n); }; - })(n, this) + })(n, this), ); else { var s = this[m].read(); @@ -17183,7 +17203,7 @@ var ut = { Symbol.asyncIterator, function () { return this; - } + }, ), s(n, "return", function () { var e = this; @@ -17194,7 +17214,7 @@ var ut = { }); }), n), - y + y, ); e.exports = function (e) { var t, @@ -17214,7 +17234,7 @@ var ut = { }, writable: !0, }), - t) + t), ); return ( (a[d] = null), @@ -17263,7 +17283,7 @@ var ut = { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(a, t) + Object.getOwnPropertyDescriptor(a, t), ); }); } @@ -17465,7 +17485,7 @@ var ut = { value: function (e, t) { return c( this, - r(r({}, t), {}, { depth: 0, customInspect: !1 }) + r(r({}, t), {}, { depth: 0, customInspect: !1 }), ); }, }, @@ -18664,7 +18684,7 @@ var ut = { this.lastChar, this.lastTotal - this.lastNeed, 0, - this.lastNeed + this.lastNeed, ), this.lastChar.toString(this.encoding, 0, this.lastTotal) ); @@ -18738,7 +18758,7 @@ var ut = { u.push( (function (e, t) { return e + '="' + r(t) + '"'; - })(t, e[t]) + })(t, e[t]), ); }); } @@ -18750,8 +18770,8 @@ var ut = { d.push( ("/g, - "]]]]>" - ) + "]]>" + "]]]]>", + ) + "]]>", ), i.forEach && ((c = !1), @@ -18793,7 +18813,7 @@ var ut = { !1, (n > 1 ? t.indents : "") + (t.name ? "" : "") + - (t.indent && !a ? "\n" : "") + (t.indent && !a ? "\n" : ""), ), a && a(); } @@ -18814,7 +18834,7 @@ var ut = { (t.name ? "<" + t.name : "") + (t.attributes.length ? " " + t.attributes.join(" ") : "") + (n ? (t.name ? ">" : "") : t.name ? "/>" : "") + - (t.indent && n > 1 ? "\n" : "") + (t.indent && n > 1 ? "\n" : ""), ), !n) ) @@ -18892,7 +18912,7 @@ var ut = { o(e, a, this._elem.icount + (a ? 1 : 0)), function () { t.append(!0); - } + }, ); }, close: function (e) { @@ -19880,7 +19900,7 @@ var mt = {}; boundSystem: {}, toolbox: {}, }, - t + t, ), (this.getSystem = (0, i.default)((e = this._getSystem)).call(e, this)), (this.store = @@ -19917,7 +19937,7 @@ var mt = {}; this.getWrappedAndBoundSelectors(a, this.getSystem), this.getStateThunks(a), this.getFn(), - this.getConfigs() + this.getConfigs(), )), e && this.rebuildReducer(); } @@ -19936,7 +19956,7 @@ var mt = {}; Im: y.default, React: h.default, }, - this.system.rootInjects || {} + this.system.rootInjects || {}, ); } _getConfigs() { @@ -19975,10 +19995,10 @@ var mt = {}; })(e[a])), t ), - {} + {}, ); return (0, r.default)(a).length ? (0, v.combineReducers)(a) : _; - })((0, x.Ay)(e, (e) => e.reducers))) + })((0, x.Ay)(e, (e) => e.reducers))), ); } getType(e) { @@ -19996,7 +20016,7 @@ var mt = {}; return (0, x.Ay)(e, (e) => (0, x.Q2)(e, (e, t) => { if ((0, x.LQ)(e)) return { [t]: e }; - }) + }), ); } getWrappedAndBoundActions(e) { @@ -20019,11 +20039,11 @@ var mt = {}; }; if (!(0, x.LQ)(n)) throw new TypeError( - "wrapActions needs to return a function that returns a new function (ie the wrapped action)" + "wrapActions needs to return a function that returns a new function (ie the wrapped action)", ); return k(n); }, - e || Function.prototype + e || Function.prototype, )) : e; }) @@ -20055,11 +20075,11 @@ var mt = {}; }; if (!(0, x.LQ)(s)) throw new TypeError( - "wrapSelector needs to return a function that returns a new function (ie the wrapped action)" + "wrapSelector needs to return a function that returns a new function (ie the wrapped action)", ); return s; }, - t || Function.prototype + t || Function.prototype, )) : t; }) @@ -20069,13 +20089,13 @@ var mt = {}; getStates(e) { var t; return (0, p.default)( - (t = (0, r.default)(this.system.statePlugins)) + (t = (0, r.default)(this.system.statePlugins)), ).call(t, (t, a) => ((t[a] = e.get(a)), t), {}); } getStateThunks(e) { var t; return (0, p.default)( - (t = (0, r.default)(this.system.statePlugins)) + (t = (0, r.default)(this.system.statePlugins)), ).call(t, (t, a) => ((t[a] = () => e().get(a)), t), {}); } getFn() { @@ -20104,7 +20124,7 @@ var mt = {}; s[o] = arguments[o]; let l = k(a).apply(null, [e().getIn(r), ...s]); return "function" == typeof l && (l = k(l)(t())), l; - } + }, ); }); } @@ -20144,7 +20164,7 @@ var mt = {}; var n; const r = "chain" === a.pluginLoadType ? t.getComponents() : {}; return (0, p.default)( - (n = (0, m.default)(e).call(e, (e) => j(e, t, a))) + (n = (0, m.default)(e).call(e, (e) => j(e, t, a))), ).call(n, O, r); } return {}; @@ -20198,7 +20218,7 @@ var mt = {}; t.statePlugins[e].wrapActions[a]) ) t.statePlugins[e].wrapActions[a] = (0, f.default)( - (n = o[a]) + (n = o[a]), ).call(n, t.statePlugins[e].wrapActions[a]); } if ((0, x.Kn)(l)) @@ -20214,7 +20234,7 @@ var mt = {}; t.statePlugins[e].wrapSelectors[a]) ) t.statePlugins[e].wrapSelectors[a] = (0, f.default)( - (s = l[a]) + (s = l[a]), ).call(s, t.statePlugins[e].wrapSelectors[a]); } } @@ -20277,7 +20297,7 @@ var mt = {}; }), (0, W.default)(this, "onResetClick", (e) => { const t = this.props.oas3Selectors.selectDefaultRequestBodyValue( - ...e + ...e, ); this.props.oas3Actions.setRequestBodyValue({ value: t, @@ -20465,7 +20485,7 @@ var mt = {}; null, ' No layout defined for "', a, - '" ' + '" ', )) ); } @@ -20520,8 +20540,8 @@ var mt = {}; className: "close-modal", onClick: this.close, }, - h.default.createElement(c, null) - ) + h.default.createElement(c, null), + ), ), h.default.createElement( "div", @@ -20536,12 +20556,12 @@ var mt = {}; authSelectors: t, authActions: a, specSelectors: s, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ); } } @@ -20568,9 +20588,9 @@ var mt = {}; h.default.createElement("span", null, "Authorize"), e ? h.default.createElement(s, null) - : h.default.createElement(o, null) + : h.default.createElement(o, null), ), - t && h.default.createElement(r, null) + t && h.default.createElement(r, null), ); } } @@ -20619,7 +20639,7 @@ var mt = {}; }, e ? h.default.createElement(a, { className: "locked" }) - : h.default.createElement(n, { className: "unlocked" }) + : h.default.createElement(n, { className: "unlocked" }), ); } } @@ -20642,7 +20662,7 @@ var mt = {}; .call(a, (e, t) => t) .toArray(); this.setState( - (0, p.default)(n).call(n, (e, t) => ((e[t] = ""), e), {}) + (0, p.default)(n).call(n, (e, t) => ((e[t] = ""), e), {}), ), t.logoutWithPersistOption(n); }), @@ -20685,7 +20705,7 @@ var mt = {}; onAuthChange: this.onAuthChange, authorized: c, errSelectors: s, - }) + }), ) .toArray(), h.default.createElement( @@ -20698,7 +20718,7 @@ var mt = {}; className: "btn modal-btn auth", onClick: this.logoutClick, }, - "Logout" + "Logout", ) : h.default.createElement( i, @@ -20706,7 +20726,7 @@ var mt = {}; type: "submit", className: "btn modal-btn auth authorize", }, - "Authorize" + "Authorize", ), h.default.createElement( i, @@ -20714,9 +20734,9 @@ var mt = {}; className: "btn modal-btn auth btn-done", onClick: this.close, }, - "Close" - ) - ) + "Close", + ), + ), ), p && p.size ? h.default.createElement( @@ -20728,19 +20748,19 @@ var mt = {}; h.default.createElement( "p", null, - "Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes." + "Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes.", ), h.default.createElement( "p", null, - "API requires the following scopes. Select which ones you want to grant to Swagger UI." - ) + "API requires the following scopes. Select which ones you want to grant to Swagger UI.", + ), ), (0, m.default)( (e = (0, n.default)(t).call( t, - (e) => "oauth2" === e.get("type") - )) + (e) => "oauth2" === e.get("type"), + )), ) .call(e, (e, t) => h.default.createElement( @@ -20750,12 +20770,12 @@ var mt = {}; authorized: c, schema: e, name: t, - }) - ) + }), + ), ) - .toArray() + .toArray(), ) - : null + : null, ); } } @@ -20801,7 +20821,7 @@ var mt = {}; "div", { key: t }, "Unknown security definition type ", - c + c, ); } return h.default.createElement("div", { key: `${t}-jump` }, i); @@ -20817,7 +20837,7 @@ var mt = {}; "div", { className: "errors" }, h.default.createElement("b", null, n, " ", t), - h.default.createElement("span", null, a) + h.default.createElement("span", null, a), ); } } @@ -20850,7 +20870,7 @@ var mt = {}; let f = this.getValue(), g = (0, n.default)((e = s.allErrors())).call( e, - (e) => e.get("authId") === o + (e) => e.get("authId") === o, ); return h.default.createElement( "div", @@ -20860,13 +20880,13 @@ var mt = {}; null, h.default.createElement("code", null, o || a.get("name")), " (apiKey)", - h.default.createElement(p, { path: ["securityDefinitions", o] }) + h.default.createElement(p, { path: ["securityDefinitions", o] }), ), f && h.default.createElement("h6", null, "Authorized"), h.default.createElement( i, null, - h.default.createElement(d, { source: a.get("description") }) + h.default.createElement(d, { source: a.get("description") }), ), h.default.createElement( i, @@ -20875,8 +20895,8 @@ var mt = {}; "p", null, "Name: ", - h.default.createElement("code", null, a.get("name")) - ) + h.default.createElement("code", null, a.get("name")), + ), ), h.default.createElement( i, @@ -20885,8 +20905,8 @@ var mt = {}; "p", null, "In: ", - h.default.createElement("code", null, a.get("in")) - ) + h.default.createElement("code", null, a.get("in")), + ), ), h.default.createElement( i, @@ -20901,12 +20921,12 @@ var mt = {}; type: "text", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), (0, m.default)((t = g.valueSeq())).call(t, (e, t) => - h.default.createElement(u, { error: e, key: t }) - ) + h.default.createElement(u, { error: e, key: t }), + ), ); } } @@ -20939,7 +20959,7 @@ var mt = {}; let f = this.getValue().username, g = (0, n.default)((e = o.allErrors())).call( e, - (e) => e.get("authId") === s + (e) => e.get("authId") === s, ); return h.default.createElement( "div", @@ -20948,13 +20968,13 @@ var mt = {}; "h4", null, "Basic authorization", - h.default.createElement(d, { path: ["securityDefinitions", s] }) + h.default.createElement(d, { path: ["securityDefinitions", s] }), ), f && h.default.createElement("h6", null, "Authorized"), h.default.createElement( i, null, - h.default.createElement(p, { source: a.get("description") }) + h.default.createElement(p, { source: a.get("description") }), ), h.default.createElement( i, @@ -20971,8 +20991,8 @@ var mt = {}; name: "username", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), h.default.createElement( i, @@ -20988,12 +21008,12 @@ var mt = {}; name: "password", type: "password", onChange: this.onChange, - }) - ) + }), + ), ), (0, m.default)((t = g.valueSeq())).call(t, (e, t) => - h.default.createElement(u, { error: e, key: t }) - ) + h.default.createElement(u, { error: e, key: t }), + ), ); } } @@ -21012,13 +21032,13 @@ var mt = {}; h.default.createElement( "div", { className: "example__section-header" }, - "Example Description" + "Example Description", ), h.default.createElement( "p", null, - h.default.createElement(s, { source: t.get("description") }) - ) + h.default.createElement(s, { source: t.get("description") }), + ), ) : null, a && t.has("value") @@ -21028,14 +21048,14 @@ var mt = {}; h.default.createElement( "div", { className: "example__section-header" }, - "Example Value" + "Example Value", ), h.default.createElement(o, { getConfigs: r, value: (0, x.Pz)(t.get("value")), - }) + }), ) - : null + : null, ) : null; } @@ -21096,7 +21116,7 @@ var mt = {}; ? h.default.createElement( "span", { className: "examples-select__section-label" }, - "Examples: " + "Examples: ", ) : null, h.default.createElement( @@ -21110,7 +21130,7 @@ var mt = {}; ? h.default.createElement( "option", { value: "__MODIFIED__VALUE__" }, - "[Modified value]" + "[Modified value]", ) : null, (0, m.default)(e) @@ -21118,11 +21138,11 @@ var mt = {}; h.default.createElement( "option", { key: t, value: t }, - e.get("summary") || t - ) + e.get("summary") || t, + ), ) - .valueSeq() - ) + .valueSeq(), + ), ); } } @@ -21133,7 +21153,7 @@ var mt = {}; t[a] = arguments[a]; return console.log( "DEBUG: ExamplesSelect was not given an onSelect callback", - ...t + ...t, ); }, currentExampleKey: null, @@ -21226,7 +21246,7 @@ var mt = {}; i = this._getValueForExample(e.currentKey, e), c = (0, n.default)(a).call( a, - (e) => e.get("value") === t || (0, x.Pz)(e.get("value")) === t + (e) => e.get("value") === t || (0, x.Pz)(e.get("value")) === t, ); if (c.size) { let t; @@ -21276,7 +21296,7 @@ var mt = {}; t[a] = arguments[a]; return console.log( "ExamplesSelectValueRetainer: no `onSelect` function was provided", - ...t + ...t, ); }, updateValue: function () { @@ -21284,7 +21304,7 @@ var mt = {}; t[a] = arguments[a]; return console.log( "ExamplesSelectValueRetainer: no `updateValue` function was provided", - ...t + ...t, ); }, }); @@ -21383,7 +21403,7 @@ var mt = {}; f.push( (0, m.default)((S = [e, E[e]])) .call(S, encodeURIComponent) - .join("=") + .join("="), ); } const w = l.get("authorizationUrl"); @@ -21393,7 +21413,7 @@ var mt = {}; : (0, x.Nm)(w); let _, C = [b, f.join("&")].join( - -1 === (0, H.default)(w).call(w, "?") ? "?" : "&" + -1 === (0, H.default)(w).call(w, "?") ? "?" : "&", ); (_ = "implicit" === p @@ -21434,7 +21454,7 @@ var mt = {}; this.setState({ scopes: (0, n.default)((i = this.state.scopes)).call( i, - (e) => e !== o + (e) => e !== o, ), }); } @@ -21457,8 +21477,8 @@ var mt = {}; (0, me.default)( (t = this.props.schema.get("allowedScopes") || - this.props.schema.get("scopes")) - ).call(t) + this.props.schema.get("scopes")), + ).call(t), ), }) : this.setState({ scopes: [] }); @@ -21529,7 +21549,7 @@ var mt = {}; k = !!s.authorized().get(l), A = (0, n.default)((e = o.allErrors())).call( e, - (e) => e.get("authId") === l + (e) => e.get("authId") === l, ), I = !(0, n.default)(A).call(A, (e) => "validation" === e.get("source")) .size, @@ -21544,7 +21564,7 @@ var mt = {}; " (OAuth2, ", N, ") ", - h.default.createElement(g, { path: ["securityDefinitions", l] }) + h.default.createElement(g, { path: ["securityDefinitions", l] }), ), this.state.appName ? h.default.createElement( @@ -21552,7 +21572,7 @@ var mt = {}; null, "Application: ", this.state.appName, - " " + " ", ) : null, R && h.default.createElement(y, { source: a.get("description") }), @@ -21562,27 +21582,27 @@ var mt = {}; "p", null, "OpenID Connect URL: ", - h.default.createElement("code", null, S) + h.default.createElement("code", null, S), ), (j === w || j === x) && h.default.createElement( "p", null, "Authorization URL: ", - h.default.createElement("code", null, a.get("authorizationUrl")) + h.default.createElement("code", null, a.get("authorizationUrl")), ), (j === b || j === x || j === _) && h.default.createElement( "p", null, "Token URL:", - h.default.createElement("code", null, " ", a.get("tokenUrl")) + h.default.createElement("code", null, " ", a.get("tokenUrl")), ), h.default.createElement( "p", { className: "flow" }, "Flow: ", - h.default.createElement("code", null, N) + h.default.createElement("code", null, N), ), j !== b ? null @@ -21595,7 +21615,7 @@ var mt = {}; h.default.createElement( "label", { htmlFor: "oauth_username" }, - "username:" + "username:", ), k ? h.default.createElement( @@ -21603,7 +21623,7 @@ var mt = {}; null, " ", this.state.username, - " " + " ", ) : h.default.createElement( d, @@ -21614,8 +21634,8 @@ var mt = {}; "data-name": "username", onChange: this.onInputChange, autoFocus: !0, - }) - ) + }), + ), ), h.default.createElement( u, @@ -21623,7 +21643,7 @@ var mt = {}; h.default.createElement( "label", { htmlFor: "oauth_password" }, - "password:" + "password:", ), k ? h.default.createElement("code", null, " ****** ") @@ -21635,8 +21655,8 @@ var mt = {}; type: "password", "data-name": "password", onChange: this.onInputChange, - }) - ) + }), + ), ), h.default.createElement( u, @@ -21644,7 +21664,7 @@ var mt = {}; h.default.createElement( "label", { htmlFor: "password_type" }, - "Client credentials location:" + "Client credentials location:", ), k ? h.default.createElement( @@ -21652,7 +21672,7 @@ var mt = {}; null, " ", this.state.passwordType, - " " + " ", ) : h.default.createElement( d, @@ -21667,16 +21687,16 @@ var mt = {}; h.default.createElement( "option", { value: "basic" }, - "Authorization header" + "Authorization header", ), h.default.createElement( "option", { value: "request-body" }, - "Request body" - ) - ) - ) - ) + "Request body", + ), + ), + ), + ), ), (j === _ || j === w || j === x || j === b) && (!k || (k && this.state.clientId)) && @@ -21686,7 +21706,7 @@ var mt = {}; h.default.createElement( "label", { htmlFor: "client_id" }, - "client_id:" + "client_id:", ), k ? h.default.createElement("code", null, " ****** ") @@ -21700,8 +21720,8 @@ var mt = {}; initialValue: this.state.clientId, "data-name": "clientId", onChange: this.onInputChange, - }) - ) + }), + ), ), (j === _ || j === x || j === b) && h.default.createElement( @@ -21710,7 +21730,7 @@ var mt = {}; h.default.createElement( "label", { htmlFor: "client_secret" }, - "client_secret:" + "client_secret:", ), k ? h.default.createElement("code", null, " ****** ") @@ -21723,8 +21743,8 @@ var mt = {}; type: "password", "data-name": "clientSecret", onChange: this.onInputChange, - }) - ) + }), + ), ), !k && O && O.size ? h.default.createElement( @@ -21737,13 +21757,13 @@ var mt = {}; h.default.createElement( "a", { onClick: this.selectScopes, "data-all": !0 }, - "select all" + "select all", ), h.default.createElement( "a", { onClick: this.selectScopes }, - "select none" - ) + "select none", + ), ), (0, m.default)(O) .call(O, (e, t) => { @@ -21760,7 +21780,7 @@ var mt = {}; disabled: k, checked: (0, fe.default)((a = this.state.scopes)).call( a, - t + t, ), type: "checkbox", onChange: this.onScopeChange, @@ -21775,23 +21795,23 @@ var mt = {}; h.default.createElement( "p", { className: "name" }, - t + t, ), h.default.createElement( "p", { className: "description" }, - e - ) - ) - ) - ) + e, + ), + ), + ), + ), ); }) - .toArray() + .toArray(), ) : null, (0, m.default)((t = A.valueSeq())).call(t, (e, t) => - h.default.createElement(f, { error: e, key: t }) + h.default.createElement(f, { error: e, key: t }), ), h.default.createElement( "div", @@ -21804,7 +21824,7 @@ var mt = {}; className: "btn modal-btn auth authorize", onClick: this.logout, }, - "Logout" + "Logout", ) : h.default.createElement( p, @@ -21812,14 +21832,14 @@ var mt = {}; className: "btn modal-btn auth authorize", onClick: this.authorize, }, - "Authorize" + "Authorize", )), h.default.createElement( p, { className: "btn modal-btn auth btn-done", onClick: this.close }, - "Close" - ) - ) + "Close", + ), + ), ); } } @@ -21838,7 +21858,7 @@ var mt = {}; className: "btn btn-clear opblock-control__btn", onClick: this.onClick, }, - "Clear" + "Clear", ); } } @@ -21848,7 +21868,7 @@ var mt = {}; "div", null, h.default.createElement("h5", null, "Response headers"), - h.default.createElement("pre", { className: "microlight" }, t) + h.default.createElement("pre", { className: "microlight" }, t), ); }, Ee = (e) => { @@ -21857,7 +21877,7 @@ var mt = {}; "div", null, h.default.createElement("h5", null, "Request duration"), - h.default.createElement("pre", { className: "microlight" }, t, " ms") + h.default.createElement("pre", { className: "microlight" }, t, " ms"), ); }; class Se extends h.default.Component { @@ -21900,7 +21920,7 @@ var mt = {}; e, ": ", t, - " " + " ", ); }), C = 0 !== _.length, @@ -21922,8 +21942,8 @@ var mt = {}; "div", { className: "request-url" }, h.default.createElement("h4", null, "Request URL"), - h.default.createElement("pre", { className: "microlight" }, f) - ) + h.default.createElement("pre", { className: "microlight" }, f), + ), ), h.default.createElement("h4", null, "Server response"), h.default.createElement( @@ -21938,14 +21958,14 @@ var mt = {}; h.default.createElement( "td", { className: "col_header response-col_status" }, - "Code" + "Code", ), h.default.createElement( "td", { className: "col_header response-col_description" }, - "Details" - ) - ) + "Details", + ), + ), ), h.default.createElement( "tbody", @@ -21961,9 +21981,9 @@ var mt = {}; ? h.default.createElement( "div", { className: "response-undocumented" }, - h.default.createElement("i", null, " Undocumented ") + h.default.createElement("i", null, " Undocumented "), ) - : null + : null, ), h.default.createElement( "td", @@ -21986,11 +22006,11 @@ var mt = {}; }) : null, C ? h.default.createElement(ve, { headers: _ }) : null, - n && S ? h.default.createElement(Ee, { duration: S }) : null - ) - ) - ) - ) + n && S ? h.default.createElement(Ee, { duration: S }) : null, + ), + ), + ), + ), ); } } @@ -22043,8 +22063,8 @@ var mt = {}; tag: t, }); }) - .toArray() - ) + .toArray(), + ), ); }); } @@ -22061,9 +22081,9 @@ var mt = {}; ? h.default.createElement( "h3", null, - " No operations defined in spec! " + " No operations defined in spec! ", ) - : null + : null, ); } } @@ -22125,7 +22145,7 @@ var mt = {}; ? h.default.createElement( "small", null, - h.default.createElement(f, { source: w }) + h.default.createElement(f, { source: w }), ) : h.default.createElement("small", null), S @@ -22142,9 +22162,9 @@ var mt = {}; onClick: (e) => e.stopPropagation(), target: "_blank", }, - b || S - ) - ) + b || S, + ), + ), ) : null, h.default.createElement( @@ -22157,10 +22177,10 @@ var mt = {}; }, j ? h.default.createElement(v, { className: "arrow" }) - : h.default.createElement(E, { className: "arrow" }) - ) + : h.default.createElement(E, { className: "arrow" }), + ), ), - h.default.createElement(p, { isOpened: j }, a) + h.default.createElement(p, { isOpened: j }, a), ); } } @@ -22265,7 +22285,7 @@ var mt = {}; h.default.createElement( "h4", { className: "opblock-title_normal" }, - " Warning: Deprecated" + " Warning: Deprecated", ), R && h.default.createElement( @@ -22274,8 +22294,8 @@ var mt = {}; h.default.createElement( "div", { className: "opblock-description" }, - h.default.createElement(W, { source: R }) - ) + h.default.createElement(W, { source: R }), + ), ), M ? h.default.createElement( @@ -22284,7 +22304,7 @@ var mt = {}; h.default.createElement( "h4", { className: "opblock-title_normal" }, - "Find more details" + "Find more details", ), h.default.createElement( "div", @@ -22293,7 +22313,7 @@ var mt = {}; h.default.createElement( "span", { className: "opblock-external-docs__description" }, - h.default.createElement(W, { source: P.description }) + h.default.createElement(W, { source: P.description }), ), h.default.createElement( X, @@ -22302,9 +22322,9 @@ var mt = {}; className: "opblock-external-docs__link", href: (0, x.Nm)(M), }, - M - ) - ) + M, + ), + ), ) : null, D && D.size @@ -22352,7 +22372,7 @@ var mt = {}; method: _, specActions: d, currentScheme: B, - }) + }), ) : null, !A || !O || te.length <= 0 @@ -22365,9 +22385,9 @@ var mt = {}; "ul", null, (0, m.default)(te).call(te, (e, t) => - h.default.createElement("li", { key: t }, " ", e, " ") - ) - ) + h.default.createElement("li", { key: t }, " ", e, " "), + ), + ), ), h.default.createElement( "div", @@ -22391,13 +22411,13 @@ var mt = {}; path: b, method: _, }) - : null + : null, ), I ? h.default.createElement( "div", { className: "loading-container" }, - h.default.createElement("div", { className: "loading" }) + h.default.createElement("div", { className: "loading" }), ) : null, L @@ -22422,9 +22442,9 @@ var mt = {}; : null, Q && J.size ? h.default.createElement(Z, { extensions: J, getComponent: c }) - : null - ) - ) + : null, + ), + ), ); } } @@ -22494,16 +22514,16 @@ var mt = {}; ? h.default.createElement( "div", { className: "opblock-summary-description" }, - (0, je.default)(y || l) + (0, je.default)(y || l), ) : null, g && (f || m) ? h.default.createElement( "span", { className: "opblock-summary-operation-id" }, - f || m + f || m, ) - : null + : null, ), h.default.createElement(x, { textToCopy: `${o.get(1)}` }), O @@ -22526,9 +22546,9 @@ var mt = {}; }, e ? h.default.createElement(_, { className: "arrow" }) - : h.default.createElement(C, { className: "arrow" }) + : h.default.createElement(C, { className: "arrow" }), ), - h.default.createElement(b, { path: o }) + h.default.createElement(b, { path: o }), ); } } @@ -22543,7 +22563,7 @@ var mt = {}; return h.default.createElement( "span", { className: "opblock-summary-method" }, - e.toUpperCase() + e.toUpperCase(), ); } } @@ -22569,7 +22589,7 @@ var mt = {}; i, e, 0, - h.default.createElement("wbr", { key: e }) + h.default.createElement("wbr", { key: e }), ); const c = e("DeepLink"); return h.default.createElement( @@ -22585,7 +22605,7 @@ var mt = {}; isShown: n, path: (0, x.oJ)(`${s}/${o}`), text: i, - }) + }), ); } } @@ -22599,7 +22619,7 @@ var mt = {}; h.default.createElement( "div", { className: "opblock-section-header" }, - h.default.createElement("h4", null, "Extensions") + h.default.createElement("h4", null, "Extensions"), ), h.default.createElement( "div", @@ -22616,14 +22636,14 @@ var mt = {}; h.default.createElement( "td", { className: "col_header" }, - "Field" + "Field", ), h.default.createElement( "td", { className: "col_header" }, - "Value" - ) - ) + "Value", + ), + ), ), h.default.createElement( "tbody", @@ -22635,10 +22655,10 @@ var mt = {}; xKey: t, xVal: a, }); - }) - ) - ) - ) + }), + ), + ), + ), ); }, Re = (e) => { @@ -22648,7 +22668,7 @@ var mt = {}; "tr", null, h.default.createElement("td", null, t), - h.default.createElement("td", null, (0, s.default)(n)) + h.default.createElement("td", null, (0, s.default)(n)), ); }; var Pe = pt(29), @@ -22679,15 +22699,15 @@ var mt = {}; (0, h.useEffect)(() => { var e; const t = (0, n.default)( - (e = (0, pe.default)(d.current.childNodes)) + (e = (0, pe.default)(d.current.childNodes)), ).call(e, (e) => !!e.nodeType && e.classList.contains("microlight")); return ( (0, Pe.default)(t).call(t, (e) => - e.addEventListener("mousewheel", p, { passive: !1 }) + e.addEventListener("mousewheel", p, { passive: !1 }), ), () => { (0, Pe.default)(t).call(t, (e) => - e.removeEventListener("mousewheel", p) + e.removeEventListener("mousewheel", p), ); } ); @@ -22709,8 +22729,8 @@ var mt = {}; h.default.createElement( Be.CopyToClipboard, { text: t }, - h.default.createElement("button", null) - ) + h.default.createElement("button", null), + ), ), s ? h.default.createElement( @@ -22721,7 +22741,7 @@ var mt = {}; (0, qe.default)(t, a); }, }, - "Download" + "Download", ) : null, u @@ -22731,16 +22751,16 @@ var mt = {}; language: i, className: (0, Te.default)(r, "microlight"), style: (0, Me.C2)( - (0, De.default)(c, "syntaxHighlight.theme", "agate") + (0, De.default)(c, "syntaxHighlight.theme", "agate"), ), }, - t + t, ) : h.default.createElement( "pre", { className: (0, Te.default)(r, "microlight") }, - t - ) + t, + ), ); }; Ue.defaultProps = { fileName: "response.txt" }; @@ -22751,8 +22771,8 @@ var mt = {}; (0, W.default)(this, "onChangeProducesWrapper", (e) => this.props.specActions.changeProducesValue( [this.props.path, this.props.method], - e - ) + e, + ), ), (0, W.default)(this, "onResponseContentTypeChange", (e) => { let { controlsAcceptHeader: t, value: a } = e; @@ -22815,8 +22835,8 @@ var mt = {}; contentTypes: S, controlId: _, onChange: this.onChangeProducesWrapper, - }) - ) + }), + ), ), h.default.createElement( "div", @@ -22834,7 +22854,7 @@ var mt = {}; method: this.props.method, displayRequestDuration: i, }), - h.default.createElement("h4", null, "Responses") + h.default.createElement("h4", null, "Responses"), ) : null, h.default.createElement( @@ -22854,21 +22874,21 @@ var mt = {}; h.default.createElement( "td", { className: "col_header response-col_status" }, - "Code" + "Code", ), h.default.createElement( "td", { className: "col_header response-col_description" }, - "Description" + "Description", ), s.isOAS3() ? h.default.createElement( "td", { className: "col col_header response-col_links" }, - "Links" + "Links", ) - : null - ) + : null, + ), ), h.default.createElement( "tbody", @@ -22896,16 +22916,16 @@ var mt = {}; u, d, "responses", - t + t, ), oas3Actions: f, getComponent: n, }); }) - .toArray() - ) - ) - ) + .toArray(), + ), + ), + ), ); } } @@ -23024,7 +23044,7 @@ var mt = {}; getConfigs: a, language: n, value: (0, x.Pz)(e), - }) + }), ) ); } @@ -23040,7 +23060,7 @@ var mt = {}; h.default.createElement( "div", { className: "response-col_description__inner" }, - h.default.createElement(A, { source: s.get("description") }) + h.default.createElement(A, { source: s.get("description") }), ), w && b.size ? (0, m.default)((e = b.entrySeq())).call(e, (e) => { @@ -23066,7 +23086,7 @@ var mt = {}; h.default.createElement( "small", { className: "response-control-media-type__title" }, - "Media type" + "Media type", ), h.default.createElement(R, { value: this.state.responseContentType, @@ -23085,9 +23105,9 @@ var mt = {}; }, "Controls ", h.default.createElement("code", null, "Accept"), - " header." + " header.", ) - : null + : null, ), B ? h.default.createElement( @@ -23096,7 +23116,7 @@ var mt = {}; h.default.createElement( "small", { className: "response-control-examples__title" }, - "Examples" + "Examples", ), h.default.createElement(P, { examples: B, @@ -23109,9 +23129,9 @@ var mt = {}; contextName: r, }), showLabels: !1, - }) + }), ) - : null + : null, ) : null, F || M @@ -23133,7 +23153,9 @@ var mt = {}; omitValue: !0, }) : null, - _ ? h.default.createElement(N, { headers: _, getComponent: c }) : null + _ + ? h.default.createElement(N, { headers: _, getComponent: c }) + : null, ), S ? h.default.createElement( @@ -23149,9 +23171,9 @@ var mt = {}; getComponent: c, }); }) - : h.default.createElement("i", null, "No links") + : h.default.createElement("i", null, "No links"), ) - : null + : null, ); } } @@ -23166,7 +23188,7 @@ var mt = {}; { className: "response__extension" }, t, ": ", - String(a) + String(a), ); }; var We = pt(3769); @@ -23247,8 +23269,8 @@ var mt = {}; href: l, onClick: () => b.Z.navigator.msSaveOrOpenBlob(o, i), }, - "Download file" - ) + "Download file", + ), ) : h.default.createElement( "div", @@ -23256,14 +23278,14 @@ var mt = {}; h.default.createElement( "a", { href: l, download: i }, - "Download file" - ) + "Download file", + ), ); } else p = h.default.createElement( "pre", { className: "microlight" }, - "Download headers detected but your browser does not support downloading binary via XHR (Blob)." + "Download headers detected but your browser does not support downloading binary via XHR (Blob).", ); else if (/json/i.test(t)) { let t = null; @@ -23324,8 +23346,8 @@ var mt = {}; h.default.createElement( "audio", { controls: !0, key: n }, - h.default.createElement("source", { src: n, type: t }) - ) + h.default.createElement("source", { src: n, type: t }), + ), ) : "string" == typeof e ? h.default.createElement(c, { @@ -23343,7 +23365,7 @@ var mt = {}; h.default.createElement( "p", { className: "i" }, - "Unrecognized response type; displaying content as text." + "Unrecognized response type; displaying content as text.", ), h.default.createElement(c, { downloadable: !0, @@ -23351,12 +23373,12 @@ var mt = {}; value: i, getConfigs: o, canCopy: !0, - }) + }), ) : h.default.createElement( "p", { className: "i" }, - "Unrecognized response type; unable to display." + "Unrecognized response type; unable to display.", ) : null); return p @@ -23364,7 +23386,7 @@ var mt = {}; "div", null, h.default.createElement("h5", null, "Response body"), - p + p, ) : null; } @@ -23392,7 +23414,7 @@ var mt = {}; ? this.setState({ parametersVisible: !0, callbackVisible: !1 }) : "callbacks" === e ? this.setState({ callbackVisible: !0, parametersVisible: !1 }) - : void 0 + : void 0, ), (0, W.default)(this, "onChangeMediaType", (e) => { let { value: t, pathMethod: a } = e, @@ -23444,9 +23466,9 @@ var mt = {}; const a = t.get("in"); return e[a] ?? (e[a] = []), e[a].push(t), e; }, - {} - ) - )) + {}, + ), + )), ).call(e, (e, t) => (0, f.default)(e).call(e, t), []); return h.default.createElement( "div", @@ -23469,8 +23491,8 @@ var mt = {}; h.default.createElement( "h4", { className: "opblock-title" }, - h.default.createElement("span", null, "Parameters") - ) + h.default.createElement("span", null, "Parameters"), + ), ), w.get("callbacks") ? h.default.createElement( @@ -23484,10 +23506,10 @@ var mt = {}; h.default.createElement( "h4", { className: "opblock-title" }, - h.default.createElement("span", null, "Callbacks") - ) + h.default.createElement("span", null, "Callbacks"), + ), ) - : null + : null, ) : h.default.createElement( "div", @@ -23495,8 +23517,8 @@ var mt = {}; h.default.createElement( "h4", { className: "opblock-title" }, - "Parameters" - ) + "Parameters", + ), ), r ? h.default.createElement(x, { @@ -23507,7 +23529,7 @@ var mt = {}; onTryoutClick: t, onResetClick: () => a(v), }) - : null + : null, ), this.state.parametersVisible ? h.default.createElement( @@ -23529,7 +23551,7 @@ var mt = {}; h.default.createElement( "th", { className: "col_header parameters-col_name" }, - "Name" + "Name", ), h.default.createElement( "th", @@ -23537,9 +23559,9 @@ var mt = {}; className: "col_header parameters-col_description", }, - "Description" - ) - ) + "Description", + ), + ), ), h.default.createElement( "tbody", @@ -23561,16 +23583,16 @@ var mt = {}; oas3Selectors: S, pathMethod: v, isExecute: N, - }) - ) - ) - ) + }), + ), + ), + ), ) : h.default.createElement( "div", { className: "opblock-description-wrapper" }, - h.default.createElement("p", null, "No parameters") - ) + h.default.createElement("p", null, "No parameters"), + ), ) : null, this.state.callbackVisible @@ -23580,7 +23602,7 @@ var mt = {}; h.default.createElement(C, { callbacks: (0, y.Map)(w.get("callbacks")), specPath: (0, u.default)(o).call(o, 0, -1).push("callbacks"), - }) + }), ) : null, O && @@ -23599,7 +23621,7 @@ var mt = {}; k.get("required") && "required" }`, }, - "Request body" + "Request body", ), h.default.createElement( "label", @@ -23612,8 +23634,8 @@ var mt = {}; }, className: "body-param-content-type", ariaLabel: "Request content type", - }) - ) + }), + ), ), h.default.createElement( "div", @@ -23626,7 +23648,7 @@ var mt = {}; requestBody: k, requestBodyValue: S.requestBodyValue(...v), requestBodyInclusionSetting: S.requestBodyInclusionSetting( - ...v + ...v, ), requestBodyErrors: S.requestBodyErrors(...v), isExecute: N, @@ -23634,7 +23656,7 @@ var mt = {}; activeExamplesKey: S.activeExamplesMember( ...v, "requestBody", - "requestBody" + "requestBody", ), updateActiveExamplesKey: (e) => { this.props.oas3Actions.setActiveExamplesMember({ @@ -23663,9 +23685,9 @@ var mt = {}; }); }, contentType: S.requestContentType(...v), - }) - ) - ) + }), + ), + ), ); } } @@ -23684,7 +23706,7 @@ var mt = {}; { className: "parameter__extension" }, t, ": ", - String(a) + String(a), ); }, ut = { onChange: () => {}, isIncludedOptions: {} }; @@ -23719,8 +23741,8 @@ var mt = {}; checked: !t && e, onChange: this.onCheckboxChange, }), - "Send empty value" - ) + "Send empty value", + ), ); } } @@ -23781,7 +23803,7 @@ var mt = {}; const e = n.activeExamplesMember( ...t, "parameters", - this.getParamKey() + this.getParamKey(), ); a = void 0 !== s.getIn(["examples", e, "value"]) @@ -23909,7 +23931,7 @@ var mt = {}; "div", { className: $ ? "parameter__name required" : "parameter__name" }, a.get("name"), - $ ? h.default.createElement("span", null, " *") : null + $ ? h.default.createElement("span", null, " *") : null, ), h.default.createElement( "div", @@ -23922,20 +23944,20 @@ var mt = {}; { className: "prop-format" }, "($", L, - ")" - ) + ")", + ), ), h.default.createElement( "div", { className: "parameter__deprecated" }, - f && a.get("deprecated") ? "deprecated" : null + f && a.get("deprecated") ? "deprecated" : null, ), h.default.createElement( "div", { className: "parameter__in" }, "(", a.get("in"), - ")" + ")", ), v && K.size ? (0, m.default)((e = K.entrySeq())).call(e, (e) => { @@ -23956,7 +23978,7 @@ var mt = {}; xVal: a, }); }) - : null + : null, ), h.default.createElement( "td", @@ -23991,7 +24013,7 @@ var mt = {}; h.default.createElement( "div", null, - "Error: your browser does not support FormData" + "Error: your browser does not support FormData", ), f && a.get("examples") ? h.default.createElement( @@ -24006,10 +24028,10 @@ var mt = {}; currentKey: p.activeExamplesMember( ...u, "parameters", - this.getParamKey() + this.getParamKey(), ), currentUserInputValue: V, - }) + }), ) : null, _ @@ -24043,7 +24065,7 @@ var mt = {}; isIncluded: c.parameterInclusionSettingFor( u, a.get("name"), - a.get("in") + a.get("in"), ), isDisabled: !(0, x.O2)(V), }) @@ -24055,14 +24077,14 @@ var mt = {}; p.activeExamplesMember( ...u, "parameters", - this.getParamKey() + this.getParamKey(), ), ]), getComponent: r, getConfigs: s, }) - : null - ) + : null, + ), ) ); } @@ -24150,8 +24172,8 @@ var mt = {}; (0, W.default)(this, "onChangeProducesWrapper", (e) => this.props.specActions.changeProducesValue( [this.props.path, this.props.method], - e - ) + e, + ), ); } render() { @@ -24163,7 +24185,7 @@ var mt = {}; onClick: this.onClick, disabled: e, }, - "Execute" + "Execute", ); } } @@ -24180,7 +24202,7 @@ var mt = {}; h.default.createElement( "h4", { className: "headers__title" }, - "Headers:" + "Headers:", ), h.default.createElement( "table", @@ -24194,19 +24216,19 @@ var mt = {}; h.default.createElement( "th", { className: "header-col" }, - "Name" + "Name", ), h.default.createElement( "th", { className: "header-col" }, - "Description" + "Description", ), h.default.createElement( "th", { className: "header-col" }, - "Type" - ) - ) + "Type", + ), + ), ), h.default.createElement( "tbody", @@ -24226,12 +24248,12 @@ var mt = {}; h.default.createElement( "td", { className: "header-col" }, - t + t, ), h.default.createElement( "td", { className: "header-col" }, - s ? h.default.createElement(r, { source: s }) : null + s ? h.default.createElement(r, { source: s }) : null, ), h.default.createElement( "td", @@ -24244,13 +24266,13 @@ var mt = {}; propVal: l, propClass: "header-example", }) - : null - ) + : null, + ), ); }) - .toArray() - ) - ) + .toArray(), + ), + ), ) : null; } @@ -24269,7 +24291,7 @@ var mt = {}; let i = t.allErrors(), c = (0, n.default)(i).call( i, - (e) => "thrown" === e.get("type") || "error" === e.get("level") + (e) => "thrown" === e.get("type") || "error" === e.get("level"), ); if (!c || c.count() < 1) return null; let u = a.isShown(["errorPane"], !0), @@ -24283,7 +24305,7 @@ var mt = {}; h.default.createElement( "h4", { className: "errors__title" }, - "Errors" + "Errors", ), h.default.createElement( "button", @@ -24291,8 +24313,8 @@ var mt = {}; className: "btn errors__clear-btn", onClick: () => r.show(["errorPane"], !u), }, - u ? "Hide" : "Show" - ) + u ? "Hide" : "Show", + ), ), h.default.createElement( o, @@ -24315,9 +24337,9 @@ var mt = {}; jumpToLine: l, }) : void 0; - }) - ) - ) + }), + ), + ), ); } } @@ -24343,14 +24365,14 @@ var mt = {}; "small", null, " at ", - t.get("path") + t.get("path"), ) - : null + : null, ), h.default.createElement( "span", { className: "message thrown" }, - t.get("message") + t.get("message"), ), h.default.createElement( "div", @@ -24360,12 +24382,12 @@ var mt = {}; "a", { onClick: (0, i.default)(a).call(a, null, n) }, "Jump to line ", - n + n, ) - : null - ) + : null, + ), ) - : null + : null, ); }, wt = (e) => { @@ -24378,7 +24400,7 @@ var mt = {}; "small", null, "at ", - t.get("path").join(".") + t.get("path").join("."), ) : h.default.createElement("small", null, "at ", t.get("path"))) : t.get("line") && @@ -24387,7 +24409,7 @@ var mt = {}; "small", null, "on line ", - t.get("line") + t.get("line"), )), h.default.createElement( "div", @@ -24401,12 +24423,12 @@ var mt = {}; null, bt(t.get("source")) + " " + t.get("level"), " ", - n + n, ), h.default.createElement( "span", { className: "message" }, - t.get("message") + t.get("message"), ), h.default.createElement( "div", @@ -24418,16 +24440,16 @@ var mt = {}; onClick: (0, i.default)(a).call( a, null, - t.get("line") + t.get("line"), ), }, "Jump to line ", - t.get("line") + t.get("line"), ) - : null - ) + : null, + ), ) - : null + : null, ) ); }; @@ -24442,7 +24464,7 @@ var mt = {}; constructor() { super(...arguments), (0, W.default)(this, "onChangeWrapper", (e) => - this.props.onChange(e.target.value) + this.props.onChange(e.target.value), ); } componentDidMount() { @@ -24481,10 +24503,10 @@ var mt = {}; }, (0, m.default)(n) .call(n, (e) => - h.default.createElement("option", { key: e, value: e }, e) + h.default.createElement("option", { key: e, value: e }, e), ) - .toArray() - ) + .toArray(), + ), ) : null; } @@ -24502,7 +24524,7 @@ var mt = {}; return (0, Ct.default)( (e = (0, n.default)(a) .call(a, (e) => !!e) - .join(" ")) + .join(" ")), ).call(e); } class Nt extends h.default.Component { @@ -24512,7 +24534,7 @@ var mt = {}; let n = "swagger-container" + (t ? "-full" : ""); return h.default.createElement( "section", - (0, _t.default)({}, a, { className: jt(a.className, n) }) + (0, _t.default)({}, a, { className: jt(a.className, n) }), ); } } @@ -24551,7 +24573,7 @@ var mt = {}; let i = jt(o.className, ...l); return h.default.createElement( "section", - (0, _t.default)({}, o, { className: i }) + (0, _t.default)({}, o, { className: i }), ); } } @@ -24561,7 +24583,7 @@ var mt = {}; "div", (0, _t.default)({}, this.props, { className: jt(this.props.className, "wrapper"), - }) + }), ); } } @@ -24571,7 +24593,7 @@ var mt = {}; "button", (0, _t.default)({}, this.props, { className: jt(this.props.className, "button"), - }) + }), ); } } @@ -24591,7 +24613,7 @@ var mt = {}; ? (t = (0, m.default)( (o = (0, n.default)(s).call(s, function (e) { return e.selected; - })) + })), ).call(o, function (e) { return e.value; })) @@ -24633,9 +24655,9 @@ var mt = {}; return h.default.createElement( "option", { key: t, value: String(e) }, - String(e) + String(e), ); - }) + }), ); } } @@ -24647,7 +24669,7 @@ var mt = {}; (0, _t.default)({}, this.props, { rel: "noopener noreferrer", className: jt(this.props.className, "link"), - }) + }), ); } } @@ -24658,7 +24680,7 @@ var mt = {}; { className: "no-margin" }, " ", t, - " " + " ", ); }; class Lt extends h.default.Component { @@ -24681,7 +24703,7 @@ var mt = {}; super(...arguments), (this.setTagShown = (0, i.default)((e = this._setTagShown)).call( e, - this + this, )); } _setTagShown(e, t) { @@ -24706,7 +24728,7 @@ var mt = {}; h.default.createElement( "h4", { className: "overview-title" }, - "Overview" + "Overview", ), (0, m.default)(r) .call(r, (e, n) => { @@ -24724,7 +24746,7 @@ var mt = {}; }, " ", l ? "-" : "+", - n + n, ), h.default.createElement( s, @@ -24747,8 +24769,8 @@ var mt = {}; onClick: a.show, }); }) - .toArray() - ) + .toArray(), + ), ); }) .toArray(), @@ -24756,8 +24778,8 @@ var mt = {}; h.default.createElement( "h3", null, - " No operations defined in spec! " - ) + " No operations defined in spec! ", + ), ); } } @@ -24786,10 +24808,10 @@ var mt = {}; h.default.createElement( "small", { className: `bold-label-${t}` }, - t.toUpperCase() + t.toUpperCase(), ), - h.default.createElement("span", { className: "bold-label" }, e) - ) + h.default.createElement("span", { className: "bold-label" }, e), + ), ); } } @@ -24802,7 +24824,7 @@ var mt = {}; const { value: e, defaultValue: t, initialValue: a, ...n } = this.props; return h.default.createElement( "input", - (0, _t.default)({}, n, { ref: (e) => (this.inputRef = e) }) + (0, _t.default)({}, n, { ref: (e) => (this.inputRef = e) }), ); } } @@ -24815,7 +24837,7 @@ var mt = {}; "[ Base URL: ", e, t, - " ]" + " ]", ); } } @@ -24826,7 +24848,7 @@ var mt = {}; return h.default.createElement( a, { target: "_blank", href: (0, x.Nm)(e) }, - h.default.createElement("span", { className: "url" }, " ", e) + h.default.createElement("span", { className: "url" }, " ", e), ); } } @@ -24868,15 +24890,15 @@ var mt = {}; "h2", { className: "title" }, u, - i && h.default.createElement(S, { version: i }) + i && h.default.createElement(S, { version: i }), ), a || n ? h.default.createElement(b, { host: a, basePath: n }) : null, - t && h.default.createElement(w, { getComponent: r, url: t }) + t && h.default.createElement(w, { getComponent: r, url: t }), ), h.default.createElement( "div", { className: "description" }, - h.default.createElement(v, { source: c }) + h.default.createElement(v, { source: c }), ), d && h.default.createElement( @@ -24885,8 +24907,8 @@ var mt = {}; h.default.createElement( E, { target: "_blank", href: (0, x.Nm)(d) }, - "Terms of service" - ) + "Terms of service", + ), ), (null == p ? void 0 : p.size) > 0 && h.default.createElement(C, { @@ -24910,9 +24932,9 @@ var mt = {}; target: "_blank", href: (0, x.Nm)(g), }, - y || g + y || g, ) - : null + : null, ); } } @@ -24944,7 +24966,7 @@ var mt = {}; getComponent: t, selectedServer: i, }) - : null + : null, ); } } @@ -24971,15 +24993,15 @@ var mt = {}; l, { href: (0, x.Nm)(s), target: "_blank" }, r, - " - Website" - ) + " - Website", + ), ), o && h.default.createElement( l, { href: (0, x.Nm)(`mailto:${o}`) }, - s ? `Send email to ${r}` : `Contact ${r}` - ) + s ? `Send email to ${r}` : `Contact ${r}`, + ), ); } } @@ -25005,10 +25027,10 @@ var mt = {}; h.default.createElement( o, { target: "_blank", href: (0, x.Nm)(s) }, - r - ) + r, + ), ) - : h.default.createElement("span", null, r) + : h.default.createElement("span", null, r), ); } } @@ -25031,8 +25053,8 @@ var mt = {}; h.default.createElement( Be.CopyToClipboard, { text: this.props.textToCopy }, - h.default.createElement(t, null) - ) + h.default.createElement(t, null), + ), ); } } @@ -25083,9 +25105,9 @@ var mt = {}; onChange: this.onFilterChange, value: !0 === o || "true" === o ? "" : o, disabled: r, - }) - ) - ) + }), + ), + ), ) ); } @@ -25127,7 +25149,7 @@ var mt = {}; this.onChange(n, { isXml: a, isEditBox: this.state.isEditBox }); }), (0, W.default)(this, "toggleIsEditBox", () => - this.setState((e) => ({ isEditBox: !e.isEditBox })) + this.setState((e) => ({ isEditBox: !e.isEditBox })), ), (this.state = { isEditBox: !1, value: "" }); } @@ -25153,7 +25175,7 @@ var mt = {}; u = o("contentType"); let d = (n ? n.parameterWithMetaByIdentity(r, t) : t).get( "errors", - (0, y.List)() + (0, y.List)(), ), p = n.contentTypeValues(r).get("requestContentType"), m = @@ -25199,8 +25221,8 @@ var mt = {}; : "btn edit body-param__example-edit", onClick: this.toggleIsEditBox, }, - g ? "Cancel" : "Edit" - ) + g ? "Cancel" : "Edit", + ), ) : null, h.default.createElement( @@ -25213,9 +25235,9 @@ var mt = {}; onChange: e, className: "body-param-content-type", ariaLabel: "Parameter content type", - }) - ) - ) + }), + ), + ), ) ); } @@ -25240,7 +25262,7 @@ var mt = {}; className: "curl microlight", style: (0, Me.C2)((0, De.default)(n, "syntaxHighlight.theme")), }, - a + a, ) : h.default.createElement("textarea", { readOnly: !0, @@ -25257,10 +25279,10 @@ var mt = {}; h.default.createElement( Be.CopyToClipboard, { text: a }, - h.default.createElement("button", null) - ) + h.default.createElement("button", null), + ), ), - h.default.createElement("div", null, r) + h.default.createElement("div", null, r), ); } } @@ -25294,17 +25316,17 @@ var mt = {}; h.default.createElement( "span", { className: "schemes-title" }, - "Schemes" + "Schemes", ), h.default.createElement( "select", { onChange: this.onChange, value: a }, (0, m.default)((e = t.valueSeq())) .call(e, (e) => - h.default.createElement("option", { value: e, key: e }, e) + h.default.createElement("option", { value: e, key: e }, e), ) - .toArray() - ) + .toArray(), + ), ); } } @@ -25337,7 +25359,7 @@ var mt = {}; y.default.is(t, this.props.specPath) && this.toggleCollapsed(), this.props.layoutActions.readyToScroll( this.props.specPath, - e.parentElement + e.parentElement, ); } }); @@ -25361,7 +25383,7 @@ var mt = {}; ? h.default.createElement( "span", { className: t || "" }, - this.props.children + this.props.children, ) : h.default.createElement( "span", @@ -25382,10 +25404,10 @@ var mt = {}; h.default.createElement( "span", null, - this.state.collapsedContent - ) + this.state.collapsedContent, + ), ), - this.state.expanded && this.props.children + this.state.expanded && this.props.children, ); } } @@ -25468,8 +25490,8 @@ var mt = {}; onClick: this.activeTab, role: "tab", }, - r ? "Edit Value" : "Example Value" - ) + r ? "Edit Value" : "Example Value", + ), ), a && h.default.createElement( @@ -25491,9 +25513,9 @@ var mt = {}; onClick: this.activeTab, role: "tab", }, - y ? "Schema" : "Model" - ) - ) + y ? "Schema" : "Model", + ), + ), ), "example" === this.state.activeTab && h.default.createElement( @@ -25510,7 +25532,7 @@ var mt = {}; h.default.createElement(d, { value: "(no example available)", getConfigs: s, - }) + }), ), "model" === this.state.activeTab && h.default.createElement( @@ -25532,8 +25554,8 @@ var mt = {}; specPath: o, includeReadOnly: l, includeWriteOnly: i, - }) - ) + }), + ), ); } } @@ -25563,8 +25585,8 @@ var mt = {}; depth: 1, onToggle: this.onToggle, expandDepth: this.props.expandDepth || 0, - }) - ) + }), + ), ) ); } @@ -25576,7 +25598,7 @@ var mt = {}; (0, W.default)(this, "getSchemaBasePath", () => this.props.specSelectors.isOAS3() ? ["components", "schemas"] - : ["definitions"] + : ["definitions"], ), (0, W.default)(this, "getCollapsedContent", () => " "), (0, W.default)(this, "handleToggle", (e, t) => { @@ -25597,7 +25619,7 @@ var mt = {}; const t = e.getAttribute("data-name"); this.props.layoutActions.readyToScroll( [...this.getSchemaBasePath(), t], - e + e, ); } }); @@ -25639,8 +25661,8 @@ var mt = {}; h.default.createElement("span", null, d ? "Schemas" : "Models"), u ? h.default.createElement(E, null) - : h.default.createElement(S, null) - ) + : h.default.createElement(S, null), + ), ), h.default.createElement( f, @@ -25681,8 +25703,8 @@ var mt = {}; h.default.createElement( "span", { className: "model model-title" }, - S - ) + S, + ), ); return h.default.createElement( "div", @@ -25696,7 +25718,7 @@ var mt = {}; h.default.createElement( "span", { className: "models-jump-to-path" }, - h.default.createElement(v, { specPath: u }) + h.default.createElement(v, { specPath: u }), ), h.default.createElement( g, @@ -25713,12 +25735,12 @@ var mt = {}; hideSelfOnExpand: !0, expanded: i > 0 && w, }, - b - ) + b, + ), ); }) - .toArray() - ) + .toArray(), + ), ); } } @@ -25736,8 +25758,8 @@ var mt = {}; { collapsedContent: r }, "[ ", t.join(", "), - " ]" - ) + " ]", + ), ); }; class fa extends h.Component { @@ -25775,7 +25797,7 @@ var mt = {}; return ( -1 !== (0, H.default)( - (a = ["maxProperties", "minProperties", "nullable", "example"]) + (a = ["maxProperties", "minProperties", "nullable", "example"]), ).call(a, t) ); }), @@ -25792,7 +25814,7 @@ var mt = {}; h.default.createElement( "span", { className: "model-jump-to-path" }, - h.default.createElement(L, { specPath: E }) + h.default.createElement(L, { specPath: E }), ), K = h.default.createElement( "span", @@ -25800,7 +25822,7 @@ var mt = {}; h.default.createElement("span", null, "{"), "...", h.default.createElement("span", null, "}"), - c ? h.default.createElement(V, null) : "" + c ? h.default.createElement(V, null) : "", ), F = w.isOAS3() ? o.get("anyOf") : null, z = w.isOAS3() ? o.get("oneOf") : null, @@ -25815,13 +25837,13 @@ var mt = {}; h.default.createElement( "span", { className: "model-hint" }, - o.get("$$ref") + o.get("$$ref"), ), h.default.createElement( "span", { className: "model-title__text" }, - I - ) + I, + ), ); return h.default.createElement( "span", @@ -25838,7 +25860,7 @@ var mt = {}; h.default.createElement( "span", { className: "brace-open object" }, - "{" + "{", ), c ? h.default.createElement(V, null) : null, h.default.createElement( @@ -25858,8 +25880,8 @@ var mt = {}; h.default.createElement( "td", null, - h.default.createElement(q, { source: O }) - ) + h.default.createElement(q, { source: O }), + ), ) : null, M && @@ -25873,16 +25895,16 @@ var mt = {}; h.default.createElement( $, { target: "_blank", href: (0, x.Nm)(M) }, - D || M - ) - ) + D || M, + ), + ), ), T ? h.default.createElement( "tr", { className: "property" }, h.default.createElement("td", null, "deprecated:"), - h.default.createElement("td", null, "true") + h.default.createElement("td", null, "true"), ) : null, k && k.size @@ -25893,7 +25915,7 @@ var mt = {}; (!t.get("readOnly") || _) && (!t.get("writeOnly") || C) ); - })) + })), ) .call(e, (e) => { let [t, a] = e, @@ -25914,8 +25936,8 @@ var mt = {}; h.default.createElement( "span", { className: "star" }, - "*" - ) + "*", + ), ), h.default.createElement( "td", @@ -25932,10 +25954,10 @@ var mt = {}; getConfigs: p, schema: a, depth: f + 1, - } - ) - ) - ) + }, + ), + ), + ), ) ); }) @@ -25945,7 +25967,7 @@ var mt = {}; ? h.default.createElement( "tr", null, - h.default.createElement("td", null, " ") + h.default.createElement("td", null, " "), ) : null, N @@ -25958,7 +25980,11 @@ var mt = {}; "tr", { key: t, className: "extension" }, h.default.createElement("td", null, t), - h.default.createElement("td", null, (0, s.default)(n)) + h.default.createElement( + "td", + null, + (0, s.default)(n), + ), ); }) .toArray() @@ -25980,9 +26006,9 @@ var mt = {}; getConfigs: p, schema: A, depth: f + 1, - }) - ) - ) + }), + ), + ), ) : null, F @@ -26006,11 +26032,11 @@ var mt = {}; getConfigs: p, schema: e, depth: f + 1, - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ) : null, z @@ -26034,11 +26060,11 @@ var mt = {}; getConfigs: p, schema: e, depth: f + 1, - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ) : null, W @@ -26061,16 +26087,16 @@ var mt = {}; getConfigs: p, schema: W, depth: f + 1, - }) - ) - ) - ) + }), + ), + ), + ), ) - : null - ) - ) + : null, + ), + ), ), - h.default.createElement("span", { className: "brace-close" }, "}") + h.default.createElement("span", { className: "brace-close" }, "}"), ), P.size ? (0, m.default)((r = P.entrySeq())).call(r, (e) => { @@ -26082,7 +26108,7 @@ var mt = {}; propClass: "property", }); }) - : null + : null, ); } } @@ -26107,7 +26133,7 @@ var mt = {}; return ( -1 === (0, H.default)( - (a = ["type", "items", "description", "$$ref", "externalDocs"]) + (a = ["type", "items", "description", "$$ref", "externalDocs"]), ).call(a, t) ); }), @@ -26126,8 +26152,8 @@ var mt = {}; h.default.createElement( "span", { className: "model-title__text" }, - p - ) + p, + ), ); return h.default.createElement( "span", @@ -26159,8 +26185,8 @@ var mt = {}; h.default.createElement( b, { target: "_blank", href: (0, x.Nm)(g) }, - y || g - ) + y || g, + ), ), h.default.createElement( "span", @@ -26174,11 +26200,11 @@ var mt = {}; schema: d, required: !1, depth: s + 1, - }) - ) + }), + ), ), - "]" - ) + "]", + ), ); } } @@ -26217,7 +26243,7 @@ var mt = {}; "description", "$$ref", "externalDocs", - ]) + ]), ).call(a, t) ); }) @@ -26237,8 +26263,8 @@ var mt = {}; h.default.createElement( "span", { className: "model-title__text" }, - v - ) + v, + ), ); return h.default.createElement( "span", @@ -26264,7 +26290,7 @@ var mt = {}; { className: "prop-format" }, "($", f, - ")" + ")", ), w.size ? (0, m.default)((e = w.entrySeq())).call(e, (e) => { @@ -26296,8 +26322,8 @@ var mt = {}; h.default.createElement( k, { target: "_blank", href: (0, x.Nm)(b) }, - _ || b - ) + _ || b, + ), ), g && g.size ? h.default.createElement( @@ -26315,15 +26341,15 @@ var mt = {}; "   ", t, ": ", - String(a) + String(a), ); }) - .toArray() + .toArray(), ) : null, - y && h.default.createElement(j, { value: y, getComponent: s }) - ) - ) + y && h.default.createElement(j, { value: y, getComponent: s }), + ), + ), ); } } @@ -26335,7 +26361,7 @@ var mt = {}; h.default.createElement("br", null), t, ": ", - String(a) + String(a), ); }; class Ea extends h.default.Component { @@ -26356,19 +26382,19 @@ var mt = {}; ? h.default.createElement( "button", { className: "btn try-out__btn cancel", onClick: t }, - "Cancel" + "Cancel", ) : h.default.createElement( "button", { className: "btn try-out__btn", onClick: e }, - "Try it out " + "Try it out ", ), o && h.default.createElement( "button", { className: "btn try-out__btn reset", onClick: a }, - "Reset" - ) + "Reset", + ), ); } } @@ -26402,7 +26428,7 @@ var mt = {}; h.default.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), h.default.createElement( "p", @@ -26410,7 +26436,7 @@ var mt = {}; h.default.createElement("code", null, "swagger"), " and ", h.default.createElement("code", null, "openapi"), - " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields." + " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.", ), h.default.createElement( "p", @@ -26421,10 +26447,10 @@ var mt = {}; h.default.createElement("code", null, "openapi: 3.0.n"), " (for example, ", h.default.createElement("code", null, "openapi: 3.0.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ) : t || a ? h.default.createElement("div", null, this.props.children) @@ -26444,12 +26470,12 @@ var mt = {}; h.default.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), h.default.createElement( "p", null, - "The provided definition does not specify a valid version field." + "The provided definition does not specify a valid version field.", ), h.default.createElement( "p", @@ -26460,10 +26486,10 @@ var mt = {}; h.default.createElement("code", null, "openapi: 3.0.n"), " (for example, ", h.default.createElement("code", null, "openapi: 3.0.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ); } } @@ -26477,7 +26503,7 @@ var mt = {}; return h.default.createElement( "small", null, - h.default.createElement("pre", { className: "version" }, " ", t, " ") + h.default.createElement("pre", { className: "version" }, " ", t, " "), ); }, ba = (e) => { @@ -26489,7 +26515,7 @@ var mt = {}; onClick: t ? (e) => e.preventDefault() : null, href: t ? `#/${a}` : null, }, - h.default.createElement("span", null, n) + h.default.createElement("span", null, n), ); }, xa = () => @@ -26511,56 +26537,56 @@ var mt = {}; { viewBox: "0 0 20 20", id: "unlocked" }, h.default.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z", - }) + }), ), h.default.createElement( "symbol", { viewBox: "0 0 20 20", id: "locked" }, h.default.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z", - }) + }), ), h.default.createElement( "symbol", { viewBox: "0 0 20 20", id: "close" }, h.default.createElement("path", { d: "M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z", - }) + }), ), h.default.createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow" }, h.default.createElement("path", { d: "M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z", - }) + }), ), h.default.createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow-down" }, h.default.createElement("path", { d: "M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z", - }) + }), ), h.default.createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow-up" }, h.default.createElement("path", { d: "M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z", - }) + }), ), h.default.createElement( "symbol", { viewBox: "0 0 24 24", id: "jump-to" }, h.default.createElement("path", { d: "M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z", - }) + }), ), h.default.createElement( "symbol", { viewBox: "0 0 24 24", id: "expand" }, h.default.createElement("path", { d: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z", - }) + }), ), h.default.createElement( "symbol", @@ -26572,11 +26598,11 @@ var mt = {}; fill: "#ffffff", fillRule: "evenodd", d: "M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z", - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ); var _a = pt(5466); class Ca extends h.default.Component { @@ -26609,8 +26635,8 @@ var mt = {}; h.default.createElement( "div", { className: "loading-container" }, - h.default.createElement("div", { className: "loading" }) - ) + h.default.createElement("div", { className: "loading" }), + ), )), "failed" === w && (b = h.default.createElement( @@ -26622,10 +26648,10 @@ var mt = {}; h.default.createElement( "h4", { className: "title" }, - "Failed to load API definition." + "Failed to load API definition.", ), - h.default.createElement(d, null) - ) + h.default.createElement(d, null), + ), )), "failedConfig" === w) ) { @@ -26640,10 +26666,10 @@ var mt = {}; h.default.createElement( "h4", { className: "title" }, - "Failed to load remote configuration." + "Failed to load remote configuration.", ), - h.default.createElement("p", null, a) - ) + h.default.createElement("p", null, a), + ), ); } if ( @@ -26652,14 +26678,14 @@ var mt = {}; (b = h.default.createElement( "h4", null, - "No API definition provided." + "No API definition provided.", )), b) ) return h.default.createElement( "div", { className: "swagger-ui" }, - h.default.createElement("div", { className: "loading-container" }, b) + h.default.createElement("div", { className: "loading-container" }, b), ); const x = t.servers(), _ = t.schemes(), @@ -26684,8 +26710,8 @@ var mt = {}; h.default.createElement( u, { mobile: 12 }, - h.default.createElement(r, null) - ) + h.default.createElement(r, null), + ), ), C || j || N ? h.default.createElement( @@ -26696,8 +26722,8 @@ var mt = {}; { className: "schemes wrapper", mobile: 12 }, C ? h.default.createElement(p, null) : null, j ? h.default.createElement(m, null) : null, - N ? h.default.createElement(f, null) : null - ) + N ? h.default.createElement(f, null) : null, + ), ) : null, h.default.createElement(g, null), @@ -26707,8 +26733,8 @@ var mt = {}; h.default.createElement( u, { mobile: 12, desktop: 12 }, - h.default.createElement(o, null) - ) + h.default.createElement(o, null), + ), ), E && h.default.createElement( @@ -26717,8 +26743,8 @@ var mt = {}; h.default.createElement( u, { mobile: 12, desktop: 12 }, - h.default.createElement(i, null) - ) + h.default.createElement(i, null), + ), ), h.default.createElement( c, @@ -26726,10 +26752,10 @@ var mt = {}; h.default.createElement( u, { mobile: 12, desktop: 12 }, - h.default.createElement(l, null) - ) - ) - ) + h.default.createElement(l, null), + ), + ), + ), ); } } @@ -26778,7 +26804,7 @@ var mt = {}; onChange: n, schema: e, disabled: o, - }) + }), ) ); } @@ -26872,10 +26898,10 @@ var mt = {}; value: t.push( e.getSampleSchema(this.state.schema.get("items"), !1, { includeWriteOnly: !0, - }) + }), ), }), - this.onChange + this.onChange, ); }), (0, W.default)(this, "onEnumChange", (e) => { @@ -26901,7 +26927,7 @@ var mt = {}; s = s.toJS ? s.toJS() : (0, d.default)(s) ? s : []; const i = (0, n.default)(s).call(s, (e) => "string" == typeof e), c = (0, m.default)( - (e = (0, n.default)(s).call(s, (e) => void 0 !== e.needRemove)) + (e = (0, n.default)(s).call(s, (e) => void 0 !== e.needRemove)), ).call(e, (e) => e.error), u = this.state.value, p = !!(u && u.count && u.count() > 0), @@ -26941,7 +26967,7 @@ var mt = {}; var r; const i = (0, y.fromJS)([ ...(0, m.default)( - (r = (0, n.default)(s).call(s, (e) => e.index === a)) + (r = (0, n.default)(s).call(s, (e) => e.index === a)), ).call(r, (e) => e.error), ]); return h.default.createElement( @@ -26972,7 +26998,7 @@ var mt = {}; schema: E, getComponent: t, fn: o, - }) + }), ), l ? null @@ -26985,8 +27011,8 @@ var mt = {}; title: c.length ? c : "", onClick: () => this.removeItem(a), }, - " - " - ) + " - ", + ), ); }) : null, @@ -27003,8 +27029,8 @@ var mt = {}; }, "Add ", g ? `${g} ` : "", - "item" - ) + "item", + ), ); } } @@ -27131,7 +27157,7 @@ var mt = {}; value: (0, x.Pz)(t), disabled: n, onChange: this.handleOnChange, - }) + }), ) ); } @@ -27288,7 +27314,7 @@ var mt = {}; window.location.host }${window.location.pathname.substring( 0, - (0, a.default)((t = window.location.pathname)).call(t, "/") + (0, a.default)((t = window.location.pathname)).call(t, "/"), )}/oauth2-redirect.html`, persistAuthorization: !1, configs: {}, @@ -27349,7 +27375,7 @@ var mt = {}; spec: { spec: "", url: u.url }, requestSnippets: u.requestSnippets, }, - u.initialState + u.initialState, ), }; if (u.initialState) @@ -27394,7 +27420,7 @@ var mt = {}; null === a.dom_id || null === a.domNode || console.error( - "Skipped rendering: no `dom_id` or `domNode` was specified" + "Skipped rendering: no `dom_id` or `domNode` was specified", ); return f; }, @@ -27407,7 +27433,7 @@ var mt = {}; requestInterceptor: u.requestInterceptor, responseInterceptor: u.responseInterceptor, }, - h + h, ), f) : h(); diff --git a/docs/swagger/swagger-ui-es-bundle.js b/docs/swagger/swagger-ui-es-bundle.js index 0c3b5072f8..aabeb50fdb 100644 --- a/docs/swagger/swagger-ui-es-bundle.js +++ b/docs/swagger/swagger-ui-es-bundle.js @@ -124,7 +124,7 @@ ? (function (e) { if (void 0 === e) throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" + "this hasn't been initialised - super() hasn't been called", ); return e; })(e) @@ -170,7 +170,7 @@ if ("string" == typeof n) return (0, h.is)(t[n], e[n]); if (Array.isArray(n)) return (0, h.is)(x(t, n), x(e, n)); throw new TypeError( - "Invalid key: expected Array or string: " + n + "Invalid key: expected Array or string: " + n, ); }; })(t, n), @@ -187,18 +187,18 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : g(n).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } return e; - })({}, n, {}, t) + })({}, n, {}, t), ); return o.every(r); } @@ -217,7 +217,7 @@ (function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( - "Super expression must either be null or a function" + "Super expression must either be null or a function", ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 }, @@ -265,7 +265,7 @@ ? C(e.replace(/^.*#\/definitions\//, "")) : -1 !== l()(e).call(e, "#/components/schemas/") ? C(e.replace(/^.*#\/components\/schemas\//, "")) - : void 0 + : void 0, ), i()(this, "getRefSchema", (e) => { let { specSelectors: t } = this.props; @@ -302,13 +302,13 @@ p.createElement( "span", { className: "model-title__text" }, - u || a + u || a, ), p.createElement("img", { src: n(2517), height: "20px", width: "20px", - }) + }), ); const b = r.isOAS3() && s.get("deprecated"); switch ( @@ -326,7 +326,7 @@ isRef: l, includeReadOnly: h, includeWriteOnly: f, - }) + }), ); case "array": return p.createElement( @@ -339,7 +339,7 @@ required: i, includeReadOnly: h, includeWriteOnly: f, - }) + }), ); default: return p.createElement( @@ -351,7 +351,7 @@ name: a, deprecated: b, required: i, - }) + }), ); } } @@ -426,14 +426,14 @@ target: "_blank", rel: "noopener noreferrer", href: `${n}/debug?url=${encodeURIComponent( - this.state.url + this.state.url, )}`, }, a.createElement(f, { src: `${n}?url=${encodeURIComponent(this.state.url)}`, alt: "Online validator badge", - }) - ) + }), + ), ) : null; } @@ -828,7 +828,7 @@ throw new TypeError( "Class extends value " + String(t) + - " is not a constructor or null" + " is not a constructor or null", ); function n() { this.constructor = e; @@ -914,7 +914,7 @@ return "https://www.tiktok.com/tag/" + t; default: throw new Error( - "Unknown service name to point hashtag to: " + e + "Unknown service name to point hashtag to: " + e, ); } }), @@ -959,7 +959,7 @@ default: throw new Error( "Unknown service name to point mention to: " + - this.serviceName + this.serviceName, ); } }), @@ -1249,7 +1249,7 @@ matchedText: n, offset: p.idx, email: s, - }) + }), ); } _(); @@ -1278,7 +1278,7 @@ }), (e.isValidIpAddress = function (e) { var t = new RegExp( - this.hasFullProtocolRegex.source + this.ipRegex.source + this.hasFullProtocolRegex.source + this.ipRegex.source, ); return null !== e.match(t); }), @@ -1311,7 +1311,7 @@ (e.hasFullProtocolRegex = /^[A-Za-z][-.+A-Za-z0-9]*:\/\//), (e.uriSchemeRegex = /^[A-Za-z][-.+A-Za-z0-9]*:/), (e.hasWordCharAfterProtocolRegex = new RegExp( - ":[^\\s]*?[" + k + "]" + ":[^\\s]*?[" + k + "]", )), (e.ipRegex = /[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/), @@ -1324,7 +1324,7 @@ N + "\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*[" + N + - "\\-+&@#/%=~_()|'$*\\[\\]{}✓])?" + "\\-+&@#/%=~_()|'$*\\[\\]{}✓])?", )), new RegExp( [ @@ -1351,7 +1351,7 @@ "(?::[0-9]+)?", "(?:" + d.source + ")?", ].join(""), - "gi" + "gi", )), W = new RegExp("[" + N + "]"), J = (function (e) { @@ -1423,7 +1423,7 @@ stripPrefix: r, stripTrailingSlash: o, decodePercentEncoding: s, - }) + }), ); }, c = this; @@ -1453,7 +1453,7 @@ var n = 0; t && ((n = e.indexOf(":")), (e = e.slice(n))); var r = new RegExp( - "^((.?//)?[-." + N + "]*[-" + N + "]\\.[-" + N + "]+)" + "^((.?//)?[-." + N + "]*[-" + N + "]\\.[-" + N + "]+)", ).exec(e); return null === r ? -1 @@ -1541,13 +1541,13 @@ .concat( /(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/ .source, - "|" + "|", ) .concat( /(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/ - .source + .source, ), - "g" + "g", ), Y = (function (e) { function t() { @@ -1578,7 +1578,7 @@ offset: t.index, number: i, plusSign: a, - }) + }), ); } return o; @@ -1593,11 +1593,11 @@ Q = new RegExp("@[_.".concat(N, "]{1,30}(?![_").concat(N, "])"), "g"), ee = new RegExp( "@[-_.".concat(N, "]{1,50}(?![-_").concat(N, "])"), - "g" + "g", ), te = new RegExp( "@[_.".concat(N, "]{1,23}[_").concat(N, "](?![_").concat(N, "])"), - "g" + "g", ), ne = new RegExp("[^" + N + "]"), re = (function (e) { @@ -1639,7 +1639,7 @@ offset: a, serviceName: n, mention: u, - }) + }), ); } } @@ -1946,12 +1946,12 @@ -1 === ["twitter", "instagram", "soundcloud", "tiktok"].indexOf(n) ) throw new Error( - "invalid `mention` cfg '".concat(n, "' - see docs") + "invalid `mention` cfg '".concat(n, "' - see docs"), ); var r = this.hashtag; if (!1 !== r && -1 === G.indexOf(r)) throw new Error( - "invalid `hashtag` cfg '".concat(r, "' - see docs") + "invalid `hashtag` cfg '".concat(r, "' - see docs"), ); (this.truncate = this.normalizeTruncateCfg(t.truncate)), (this.className = t.className || this.className), @@ -2018,7 +2018,7 @@ var s = (function (e, t) { if (!t.global) throw new Error( - "`splitRegex` must have the 'g' flag set" + "`splitRegex` must have the 'g' flag set", ); for (var n, r = [], o = 0; (n = t.exec(e)); ) r.push(e.substring(o, n.index)), @@ -2027,7 +2027,7 @@ return r.push(e.substring(o)), r; })( e, - /( | |<|<|>|>|"|"|')/gi + /( | |<|<|>|>|"|"|')/gi, ), i = n; s.forEach(function (e, n) { @@ -2343,7 +2343,7 @@ t && !ve.hasWarnedAboutDeprecation && (console.warn( - "useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0." + "useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0.", ), (ve.hasWarnedAboutDeprecation = !0)), fe().sanitize(e, { @@ -2500,7 +2500,7 @@ break; default: console.warn( - `Warning: invalid passwordType ${l} was passed, not including client id and secret` + `Warning: invalid passwordType ${l} was passed, not including client id and secret`, ); } return n.authorizeRequest({ @@ -2618,7 +2618,7 @@ "Content-Type": "application/x-www-form-urlencoded", "X-Requested-With": "XMLHttpRequest", }, - m + m, ); r.fetch({ url: w, @@ -2919,7 +2919,7 @@ var n; let { specSelectors: r } = e; console.warn( - "WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version." + "WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.", ); let s = r.securityDefinitions(), i = (0, g.List)(); @@ -2988,7 +2988,7 @@ return ( -1 === u()( - (t = h()((n = d()(e))).call(n, (e) => !!o.get(e))) + (t = h()((n = d()(e))).call(n, (e) => !!o.get(e))), ).call(t, !1) ); }).length @@ -3032,12 +3032,12 @@ r && s && (document.cookie = `${e.get( - "name" + "name", )}=${t}; SameSite=None; Secure`); } catch (e) { console.error( "Error persisting cookie based apiKey in document.cookie.", - e + e, ); } }, @@ -3059,7 +3059,7 @@ } catch (e) { console.error( "Error deleting cookie based apiKey from document.cookie.", - e + e, ); } e(n); @@ -3108,7 +3108,7 @@ const l = { getLocalConfig: () => (0, r.parseYamlConfig)( - '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n' + '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n', ), }; function c() { @@ -3248,8 +3248,8 @@ 2 === n.length ? (0, p.setHash)( (0, d.oJ)( - `/${encodeURIComponent(i)}/${encodeURIComponent(a)}` - ) + `/${encodeURIComponent(i)}/${encodeURIComponent(a)}`, + ), ) : 1 === n.length && (0, p.setHash)((0, d.oJ)(`/${encodeURIComponent(i)}`)); @@ -3273,21 +3273,21 @@ const e = r.isShownKeyFromUrlHashArray([p]); u()(p).call(p, "_") > -1 && (console.warn( - "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead." + "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.", ), n.show( l()(e).call(e, (e) => e.replace(/_/g, " ")), - !0 + !0, )), n.show(e, !0); } (u()(p).call(p, "_") > -1 || u()(h).call(h, "_") > -1) && (console.warn( - "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead." + "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.", ), n.show( l()(a).call(a, (e) => e.replace(/_/g, " ")), - !0 + !0, )), n.show(a, !0), n.scrollTo(a); @@ -3382,7 +3382,7 @@ return s.createElement( "span", { ref: this.onLoad }, - s.createElement(e, this.props) + s.createElement(e, this.props), ); } }; @@ -3410,7 +3410,7 @@ return s.createElement( "span", { ref: this.onLoad }, - s.createElement(e, this.props) + s.createElement(e, this.props), ); } }; @@ -3451,8 +3451,8 @@ r.newThrownErr( o()( new Error((t.message || t.statusText) + " " + e), - { source: "fetch" } - ) + { source: "fetch" }, + ), ), void ( !t.status && @@ -3470,18 +3470,18 @@ ) { const e = o()( new Error( - `Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.` + `Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.`, ), - { source: "fetch" } + { source: "fetch" }, ); return void r.newThrownErr(e); } if (t.origin !== f.Z.location.origin) { const e = o()( new Error( - `Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${f.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.` + `Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${f.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`, ), - { source: "fetch" } + { source: "fetch" }, ); r.newThrownErr(e); } @@ -3532,7 +3532,7 @@ selectors: { loadingStatus: (0, p.P1)( (e) => e || (0, h.Map)(), - (e) => e.get("loadingStatus") || null + (e) => e.get("loadingStatus") || null, ), }, }, @@ -3624,11 +3624,11 @@ return console.error("Transformer error:", t), e; } }, - e + e, ); return i()((t = o()(r).call(r, (e) => !!e))).call( t, - (e) => (!e.get("line") && e.get("path"), e) + (e) => (!e.get("line") && e.get("path"), e), ); } }, @@ -3667,9 +3667,9 @@ : r[n + 1] ? e + t + " " : e + t, - "should be a" + "should be a", ); - })(t) + })(t), ); } return e; @@ -3723,7 +3723,7 @@ r = o()(g, n, { type: "thrown" }); return e .update("errors", (e) => - (e || (0, d.List)()).push((0, d.fromJS)(r)) + (e || (0, d.List)()).push((0, d.fromJS)(r)), ) .update("errors", (e) => (0, m.default)(e)); }, @@ -3731,14 +3731,14 @@ let { payload: n } = t; return ( (n = i()(n).call(n, (e) => - (0, d.fromJS)(o()(g, e, { type: "thrown" })) + (0, d.fromJS)(o()(g, e, { type: "thrown" })), )), e .update("errors", (e) => { var t; return l()((t = e || (0, d.List)())).call( t, - (0, d.fromJS)(n) + (0, d.fromJS)(n), ); }) .update("errors", (e) => (0, m.default)(e)) @@ -3753,7 +3753,7 @@ .update("errors", (e) => (e || (0, d.List)()) .push((0, d.fromJS)(r)) - .sortBy((e) => e.get("line")) + .sortBy((e) => e.get("line")), ) .update("errors", (e) => (0, m.default)(e)) ); @@ -3762,14 +3762,14 @@ let { payload: n } = t; return ( (n = i()(n).call(n, (e) => - (0, d.fromJS)(o()(g, e, { type: "spec" })) + (0, d.fromJS)(o()(g, e, { type: "spec" })), )), e .update("errors", (e) => { var t; return l()((t = e || (0, d.List)())).call( t, - (0, d.fromJS)(n) + (0, d.fromJS)(n), ); }) .update("errors", (e) => (0, m.default)(e)) @@ -3782,7 +3782,7 @@ (r = r.set("type", "auth")), e .update("errors", (e) => - (e || (0, d.List)()).push((0, d.fromJS)(r)) + (e || (0, d.List)()).push((0, d.fromJS)(r)), ) .update("errors", (e) => (0, m.default)(e)) ); @@ -3818,7 +3818,7 @@ o = n(20573); const s = (0, o.P1)( (e) => e, - (e) => e.get("errors", (0, r.List)()) + (e) => e.get("errors", (0, r.List)()), ), i = (0, o.P1)(s, (e) => e.last()); }, @@ -3861,11 +3861,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -3891,11 +3891,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -3921,11 +3921,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -3951,11 +3951,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -3981,7 +3981,7 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement( "g", @@ -3990,8 +3990,8 @@ fill: "#ffffff", fillRule: "evenodd", d: "M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z", - }) - ) + }), + ), ); }; i.defaultProps = { className: null, width: 15, height: 16 }; @@ -4017,11 +4017,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -4047,11 +4047,11 @@ "aria-hidden": "true", focusable: "false", }, - i + i, ), s.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z", - }) + }), ); }; i.defaultProps = { className: null, width: 20, height: 20 }; @@ -4093,7 +4093,7 @@ (e) => { o(e, !t); }, - [t, o] + [t, o], ); return r.createElement( "button", @@ -4105,7 +4105,7 @@ r.createElement( "div", { className: "json-schema-2020-12-accordion__children" }, - n + n, ), r.createElement( "span", @@ -4115,8 +4115,8 @@ "json-schema-2020-12-accordion__icon--collapsed": !t, }), }, - r.createElement(a, null) - ) + r.createElement(a, null), + ), ); }; a.defaultProps = { expanded: !1 }; @@ -4132,7 +4132,7 @@ (e) => { n(e, !t); }, - [t, n] + [t, n], ); return r.createElement( "button", @@ -4141,7 +4141,7 @@ className: "json-schema-2020-12-expand-deep-button", onClick: o, }, - t ? "Collapse all" : "Expand all" + t ? "Collapse all" : "Expand all", ); }; }, @@ -4218,13 +4218,13 @@ (e, t) => { m(t), !t && y(!1), u(e, t, !1); }, - [u] + [u], ), he = (0, s.useCallback)( (e, t) => { m(t), y(t), u(e, t, !0); }, - [u] + [u], ); return s.createElement( c.JSONSchemaLevelContext.Provider, @@ -4255,9 +4255,9 @@ s.createElement( j, { expanded: d, onChange: pe }, - s.createElement(oe, { title: r, schema: n }) + s.createElement(oe, { title: r, schema: n }), ), - s.createElement(ue, { expanded: d, onClick: he }) + s.createElement(ue, { expanded: d, onClick: he }), ) : s.createElement(oe, { title: r, schema: n }), s.createElement(ae, { schema: n }), @@ -4269,8 +4269,8 @@ s.createElement(te, { key: `${e.scope}-${e.value}`, constraint: e, - }) - ) + }), + ), ), s.createElement( "div", @@ -4306,7 +4306,7 @@ s.createElement(V, { schema: n }), s.createElement(Z, { schema: n }), s.createElement(W, { schema: n }), - s.createElement(re, { schema: n }) + s.createElement(re, { schema: n }), ), s.createElement(Q, { schema: n }), s.createElement(ee, { schema: n }), @@ -4323,12 +4323,12 @@ s.createElement(N, { schema: n }), !x && E && s.createElement(T, { schema: n }), s.createElement(I, { schema: n }), - s.createElement(R, { schema: n }) - ) - ) - ) - ) - ) + s.createElement(R, { schema: n }), + ), + ), + ), + ), + ), ); }); u.defaultProps = { @@ -4353,7 +4353,7 @@ }, r.createElement("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z", - }) + }), ); }, 64922: (e, t, n) => { @@ -4376,7 +4376,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$anchor" + "$anchor", ), r.createElement( "span", @@ -4384,8 +4384,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$anchor - ) + t.$anchor, + ), ) : null; }; @@ -4410,7 +4410,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$comment" + "$comment", ), r.createElement( "span", @@ -4418,8 +4418,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$comment - ) + t.$comment, + ), ) : null; }; @@ -4474,8 +4474,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$defs" - ) + "$defs", + ), ), c.createElement(y, { expanded: a, onClick: w }), c.createElement( @@ -4484,7 +4484,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), c.createElement( "ul", @@ -4505,12 +4505,12 @@ key: t, className: "json-schema-2020-12-property", }, - c.createElement(v, { name: t, schema: n }) + c.createElement(v, { name: t, schema: n }), ); - }) - ) - ) - ) + }), + ), + ), + ), ); }; }, @@ -4534,7 +4534,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$dynamicAnchor" + "$dynamicAnchor", ), r.createElement( "span", @@ -4542,8 +4542,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$dynamicAnchor - ) + t.$dynamicAnchor, + ), ) : null; }; @@ -4568,7 +4568,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$dynamicRef" + "$dynamicRef", ), r.createElement( "span", @@ -4576,8 +4576,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$dynamicRef - ) + t.$dynamicRef, + ), ) : null; }; @@ -4602,7 +4602,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$id" + "$id", ), r.createElement( "span", @@ -4610,8 +4610,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$id - ) + t.$id, + ), ) : null; }; @@ -4636,7 +4636,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$ref" + "$ref", ), r.createElement( "span", @@ -4644,8 +4644,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$ref - ) + t.$ref, + ), ) : null; }; @@ -4670,7 +4670,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$schema" + "$schema", ), r.createElement( "span", @@ -4678,8 +4678,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$schema - ) + t.$schema, + ), ) : null; }; @@ -4722,8 +4722,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$vocabulary" - ) + "$vocabulary", + ), ), a.createElement( "strong", @@ -4731,7 +4731,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), a.createElement( "ul", @@ -4748,7 +4748,7 @@ { "json-schema-2020-12-$vocabulary-uri--disabled": !n, - } + }, ), }, a.createElement( @@ -4757,11 +4757,11 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t - ) + t, + ), ); - }) - ) + }), + ), ) : null; }; @@ -4783,7 +4783,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Additional properties" + "Additional properties", ); return r.createElement( "div", @@ -4802,8 +4802,8 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "allowed" - ) + "allowed", + ), ) : !1 === s ? r.createElement( @@ -4816,10 +4816,10 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "forbidden" - ) + "forbidden", + ), ) - : r.createElement(i, { name: a, schema: s }) + : r.createElement(i, { name: a, schema: s }), ); }; }, @@ -4871,8 +4871,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "All of" - ) + "All of", + ), ), a.createElement(g, { expanded: l, onClick: w }), a.createElement(v, { schema: { allOf: n } }), @@ -4897,12 +4897,12 @@ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -4955,8 +4955,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Any of" - ) + "Any of", + ), ), a.createElement(g, { expanded: l, onClick: w }), a.createElement(v, { schema: { anyOf: n } }), @@ -4981,12 +4981,12 @@ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -5012,7 +5012,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Const" + "Const", ), r.createElement( "span", @@ -5020,8 +5020,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - n.stringify(t.const) - ) + n.stringify(t.const), + ), ) : null; }; @@ -5037,7 +5037,7 @@ { className: `json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`, }, - t.value + t.value, ); }, s = r.memo(o); @@ -5058,7 +5058,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Contains" + "Contains", ); return r.createElement( "div", @@ -5066,7 +5066,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--contains", }, - r.createElement(s, { name: i, schema: t.contains }) + r.createElement(s, { name: i, schema: t.contains }), ); }; }, @@ -5086,7 +5086,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Content schema" + "Content schema", ); return r.createElement( "div", @@ -5094,7 +5094,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema", }, - r.createElement(s, { name: i, schema: t.contentSchema }) + r.createElement(s, { name: i, schema: t.contentSchema }), ); }; }, @@ -5119,7 +5119,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Default" + "Default", ), r.createElement( "span", @@ -5127,8 +5127,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - n.stringify(t.default) - ) + n.stringify(t.default), + ), ) : null; }; @@ -5156,7 +5156,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Required when defined" + "Required when defined", ), s.createElement( "ul", @@ -5171,11 +5171,11 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning", }, - e - ) - ) - ) - ) + e, + ), + ), + ), + ), ); }; }, @@ -5229,8 +5229,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Dependent schemas" - ) + "Dependent schemas", + ), ), c.createElement(y, { expanded: a, onClick: w }), c.createElement( @@ -5239,7 +5239,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), c.createElement( "ul", @@ -5260,12 +5260,12 @@ key: t, className: "json-schema-2020-12-property", }, - c.createElement(v, { name: t, schema: n }) + c.createElement(v, { name: t, schema: n }), ); - }) - ) - ) - ) + }), + ), + ), + ), ); }; }, @@ -5284,7 +5284,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--warning", }, - "deprecated" + "deprecated", ); }; }, @@ -5308,8 +5308,8 @@ className: "json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary", }, - t.description - ) + t.description, + ), ) : null; }; @@ -5330,7 +5330,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Else" + "Else", ); return r.createElement( "div", @@ -5338,7 +5338,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--if", }, - r.createElement(s, { name: i, schema: t.else }) + r.createElement(s, { name: i, schema: t.else }), ); }; }, @@ -5368,7 +5368,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Allowed values" + "Allowed values", ), a.createElement( "ul", @@ -5384,11 +5384,11 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - t - ) + t, + ), ); - }) - ) + }), + ), ) : null; }; @@ -5409,7 +5409,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "If" + "If", ); return r.createElement( "div", @@ -5417,7 +5417,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--if", }, - r.createElement(s, { name: i, schema: t.if }) + r.createElement(s, { name: i, schema: t.if }), ); }; }, @@ -5437,7 +5437,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Items" + "Items", ); return r.createElement( "div", @@ -5445,7 +5445,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--items", }, - r.createElement(s, { name: i, schema: t.items }) + r.createElement(s, { name: i, schema: t.items }), ); }; }, @@ -5465,7 +5465,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Not" + "Not", ); return r.createElement( "div", @@ -5473,7 +5473,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--not", }, - r.createElement(s, { name: i, schema: t.not }) + r.createElement(s, { name: i, schema: t.not }), ); }; }, @@ -5525,8 +5525,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "One of" - ) + "One of", + ), ), a.createElement(g, { expanded: l, onClick: w }), a.createElement(v, { schema: { oneOf: n } }), @@ -5551,12 +5551,12 @@ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -5593,10 +5593,10 @@ return c.createElement( "li", { key: t, className: "json-schema-2020-12-property" }, - c.createElement(s, { name: t, schema: n }) + c.createElement(s, { name: t, schema: n }), ); - }) - ) + }), + ), ); }; }, @@ -5648,8 +5648,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Prefix items" - ) + "Prefix items", + ), ), a.createElement(g, { expanded: l, onClick: w }), a.createElement(v, { schema: { prefixItems: n } }), @@ -5674,12 +5674,12 @@ a.createElement(y, { name: `#${t} ${r.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -5735,10 +5735,10 @@ name: t, schema: o, dependentRequired: i, - }) + }), ); - }) - ) + }), + ), ); }; }, @@ -5758,7 +5758,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Property names" + "Property names", ); return n.hasKeyword(t, "propertyNames") ? r.createElement( @@ -5767,7 +5767,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames", }, - r.createElement(i, { name: a, schema: s }) + r.createElement(i, { name: a, schema: s }), ) : null; }; @@ -5787,7 +5787,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "read-only" + "read-only", ); }; }, @@ -5807,7 +5807,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Then" + "Then", ); return r.createElement( "div", @@ -5815,7 +5815,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--then", }, - r.createElement(s, { name: i, schema: t.then }) + r.createElement(s, { name: i, schema: t.then }), ); }; }, @@ -5831,7 +5831,7 @@ ? r.createElement( "div", { className: "json-schema-2020-12__title" }, - t || s.getTitle(n) + t || s.getTitle(n), ) : null; }; @@ -5853,7 +5853,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - `${s}${i}` + `${s}${i}`, ); }; s.defaultProps = { isCircular: !1 }; @@ -5876,7 +5876,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Unevaluated items" + "Unevaluated items", ); return r.createElement( "div", @@ -5884,7 +5884,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems", }, - r.createElement(i, { name: a, schema: s }) + r.createElement(i, { name: a, schema: s }), ); }; }, @@ -5905,7 +5905,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Unevaluated properties" + "Unevaluated properties", ); return r.createElement( "div", @@ -5913,7 +5913,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties", }, - r.createElement(i, { name: a, schema: s }) + r.createElement(i, { name: a, schema: s }), ); }; }, @@ -5932,7 +5932,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "write-only" + "write-only", ); }; }, @@ -6049,7 +6049,7 @@ "number", "integer", "string", - ]) + ]), ).call(t, s) ? s : (() => { @@ -6213,7 +6213,7 @@ const o = M( "characters", null == e ? void 0 : e.minLength, - null == e ? void 0 : e.maxLength + null == e ? void 0 : e.maxLength, ); null !== o && t.push({ scope: "string", value: o }), null != e && @@ -6237,19 +6237,19 @@ const s = M( null != e && e.hasUniqueItems ? "unique items" : "items", null == e ? void 0 : e.minItems, - null == e ? void 0 : e.maxItems + null == e ? void 0 : e.maxItems, ); null !== s && t.push({ scope: "array", value: s }); const i = M( "contained items", null == e ? void 0 : e.minContains, - null == e ? void 0 : e.maxContains + null == e ? void 0 : e.maxContains, ); null !== i && t.push({ scope: "array", value: i }); const a = M( "properties", null == e ? void 0 : e.minProperties, - null == e ? void 0 : e.maxProperties + null == e ? void 0 : e.maxProperties, ); return null !== a && t.push({ scope: "object", value: a }), t; }, @@ -6263,8 +6263,8 @@ let [r, o] = n; return l()(o) && h()(o).call(o, e) ? (t.add(r), t) : t; }, - new (O())() - ) + new (O())(), + ), ) : []; }; @@ -6388,7 +6388,7 @@ r.createElement( J.JSONSchemaContext.Provider, { value: n }, - r.createElement(e, t) + r.createElement(e, t), ); return ( (H.contexts = { JSONSchemaContext: J.JSONSchemaContext }), @@ -6649,7 +6649,7 @@ !(function (e, t) { if (t.has(e)) throw new TypeError( - "Cannot initialize the same private elements twice on an object" + "Cannot initialize the same private elements twice on an object", ); })(e, t), t.set(e, n); @@ -6697,7 +6697,7 @@ !(function (e, t) { if (t.has(e)) throw new TypeError( - "Cannot initialize the same private elements twice on an object" + "Cannot initialize the same private elements twice on an object", ); })(e, t), t.set(e, n); @@ -6825,7 +6825,7 @@ ) r.required = d()((a = r.required || [])).call( a, - (e) => e !== s + (e) => e !== s, ); else r.properties[s] = y(i, o, n); } @@ -7379,7 +7379,7 @@ p = !a && o()(e.anyOf) && e.anyOf.length > 0; if (!a && (c || p)) { const t = (0, C.typeCast)( - c ? (0, N.pick)(e.oneOf) : (0, N.pick)(e.anyOf) + c ? (0, N.pick)(e.oneOf) : (0, N.pick)(e.anyOf), ); !(e = (0, I.default)(e, t, n)).xml && t.xml && (e.xml = t.xml), (0, P.hasExample)(e) && (0, P.hasExample)(t) && (a = !0); @@ -7434,7 +7434,7 @@ s ? l()((n = e.required)).call( n, - (e) => (t += void 0 === B[e] ? 0 : 1) + (e) => (t += void 0 === B[e] ? 0 : 1), ) : l()((r = e.required)).call(r, (e) => { var n; @@ -7490,7 +7490,7 @@ _()( null === (o = e.discriminator) || void 0 === o ? void 0 - : o.mapping + : o.mapping, ) && e.discriminator.propertyName === t && "string" == typeof e.$$ref @@ -7577,15 +7577,15 @@ ) t.push( ...g()((G = w.anyOf)).call(G, (e) => - R((0, I.default)(e, w, n), n, void 0, s) - ) + R((0, I.default)(e, w, n), n, void 0, s), + ), ); else if (o()(w.oneOf)) { var Y; t.push( ...g()((Y = w.oneOf)).call(Y, (e) => - R((0, I.default)(e, w, n), n, void 0, s) - ) + R((0, I.default)(e, w, n), n, void 0, s), + ), ); } else { if (!(!s || (s && m.wrapped))) return R(w, n, void 0, s); @@ -7600,15 +7600,15 @@ ) t.push( ...g()((Z = b.anyOf)).call(Z, (e) => - R((0, I.default)(e, b, n), n, void 0, s) - ) + R((0, I.default)(e, b, n), n, void 0, s), + ), ); else if (o()(b.oneOf)) { var X; t.push( ...g()((X = b.oneOf)).call(X, (e) => - R((0, I.default)(e, b, n), n, void 0, s) - ) + R((0, I.default)(e, b, n), n, void 0, s), + ), ); } else { if (!(!s || (s && m.wrapped))) return R(b, n, void 0, s); @@ -7991,7 +7991,7 @@ for (; s.length < r; ) s += s[e++ % s.length]; } return s; - })(L, e) + })(L, e), ); }; }, @@ -8101,7 +8101,7 @@ }, u = (0, r.P1)( (e) => e, - (e) => !l(e, "editor") + (e) => !l(e, "editor"), ); }, 28989: (e, t, n) => { @@ -8299,7 +8299,7 @@ r = r.push( new u.Map({ [t]: i()(a).call(a, (e) => void 0 !== e), - }) + }), ); }), ("http" !== s && "apiKey" !== s) || @@ -8318,7 +8318,7 @@ l()((s = e.get("scopes_supported"))).call( s, (e, t) => e.set(t, ""), - new u.Map() + new u.Map(), ), c = (0, u.fromJS)({ flow: o, @@ -8331,14 +8331,14 @@ r = r.push( new u.Map({ [t]: i()(c).call(c, (e) => void 0 !== e), - }) + }), ); }); } }), r) : r; - } + }, )), (e, t) => function () { @@ -8402,10 +8402,10 @@ path: t.path, specPath: t.specPath, allowTryItOut: !1, - }) - ) + }), + ), ); - }) + }), ); }; }, @@ -8457,7 +8457,7 @@ let m = this.getValue(), g = l()((e = r.allErrors())).call( e, - (e) => e.get("authId") === o + (e) => e.get("authId") === o, ); if ("basic" === d) { var y; @@ -8470,13 +8470,13 @@ null, p.createElement("code", null, o || t.get("name")), "  (http, Basic)", - p.createElement(f, { path: ["securityDefinitions", o] }) + p.createElement(f, { path: ["securityDefinitions", o] }), ), e && p.createElement("h6", null, "Authorized"), p.createElement( i, null, - p.createElement(h, { source: t.get("description") }) + p.createElement(h, { source: t.get("description") }), ), p.createElement( i, @@ -8494,8 +8494,8 @@ "aria-label": "auth-basic-username", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), p.createElement( i, @@ -8512,12 +8512,12 @@ type: "password", "aria-label": "auth-basic-password", onChange: this.onChange, - }) - ) + }), + ), ), u()((y = g.valueSeq())).call(y, (e, t) => - p.createElement(c, { error: e, key: t }) - ) + p.createElement(c, { error: e, key: t }), + ), ); } var v; @@ -8530,13 +8530,13 @@ null, p.createElement("code", null, o || t.get("name")), "  (http, Bearer)", - p.createElement(f, { path: ["securityDefinitions", o] }) + p.createElement(f, { path: ["securityDefinitions", o] }), ), m && p.createElement("h6", null, "Authorized"), p.createElement( i, null, - p.createElement(h, { source: t.get("description") }) + p.createElement(h, { source: t.get("description") }), ), p.createElement( i, @@ -8552,12 +8552,12 @@ "aria-label": "auth-bearer-value", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), u()((v = g.valueSeq())).call(v, (e, t) => - p.createElement(c, { error: e, key: t }) - ) + p.createElement(c, { error: e, key: t }), + ), ) : p.createElement( "div", @@ -8567,8 +8567,8 @@ null, p.createElement("b", null, o), " HTTP authentication: unsupported scheme ", - `'${d}'` - ) + `'${d}'`, + ), ); } } @@ -8618,7 +8618,7 @@ "div", { className: "description" }, a.createElement("b", null, a.createElement("code", null, t)), - c ? a.createElement(r, { source: c }) : null + c ? a.createElement(r, { source: c }) : null, ), a.createElement( "pre", @@ -8636,8 +8636,8 @@ .call(n, (t, n) => (n > 0 ? Array(e + 1).join(" ") + t : t)) .join("\n"); })(0, o()(l, null, 2)) || "{}", - a.createElement("br", null) - ) + a.createElement("br", null), + ), ); } } @@ -8678,7 +8678,7 @@ const { path: n, method: r } = this.props; return this.props.getServerVariable( { namespace: `${n}:${r}`, server: e }, - t + t, ); }), o()(this, "getEffectiveServerValue", (e) => { @@ -8711,9 +8711,9 @@ s.createElement( "h4", { className: "opblock-title" }, - "Servers" - ) - ) + "Servers", + ), + ), ), s.createElement( "div", @@ -8723,7 +8723,7 @@ { className: "message" }, "These ", i, - "-level options override the global server options." + "-level options override the global server options.", ), s.createElement(r, { servers: o, @@ -8732,8 +8732,8 @@ setServerVariableValue: this.setServerVariableValue, getServerVariable: this.getServerVariable, getEffectiveServerValue: this.getEffectiveServerValue, - }) - ) + }), + ), ); } } @@ -8787,7 +8787,7 @@ title: t.size ? t.join(", ") : "", value: n, onChange: this.onDomChange, - }) + }), ); } } @@ -8895,7 +8895,7 @@ null, "Example values are not available for ", p.createElement("code", null, b), - " media types." + " media types.", ); } if ( @@ -8927,7 +8927,7 @@ if (g.get("readOnly")) return; let y = D ? (0, f.po)(g) : null; const b = l()( - (i = $.get("required", (0, h.List)())) + (i = $.get("required", (0, h.List)())), ).call(i, m), E = g.get("type"), _ = g.get("format"), @@ -8976,7 +8976,7 @@ : "parameter__name", }, m, - b ? p.createElement("span", null, " *") : null + b ? p.createElement("span", null, " *") : null, ), p.createElement( "div", @@ -8988,7 +8988,7 @@ { className: "prop-format" }, "($", _, - ")" + ")", ), D && y.size ? o()((d = y.entrySeq())).call(d, (e) => { @@ -8999,13 +8999,13 @@ xVal: r, }); }) - : null + : null, ), p.createElement( "div", { className: "parameter__deprecated" }, - g.get("deprecated") ? "deprecated" : null - ) + g.get("deprecated") ? "deprecated" : null, + ), ), p.createElement( "td", @@ -9037,14 +9037,14 @@ isDisabled: u()(O) ? 0 !== O.length : !(0, f.O2)(O), - }) + }), ) - : null - ) + : null, + ), ); - }) - ) - ) + }), + ), + ), ) ); } @@ -9081,7 +9081,7 @@ defaultValue: K, onChange: x, getComponent: c, - }) + }), ) : p.createElement(P, { getComponent: c, @@ -9105,7 +9105,7 @@ getComponent: c, getConfigs: g, }) - : null + : null, ) ); }; @@ -9131,7 +9131,7 @@ r.createElement( "span", { className: "servers-title" }, - "Servers" + "Servers", ), r.createElement(i, { servers: s, @@ -9140,7 +9140,7 @@ setServerVariableValue: n.setServerVariableValue, getServerVariable: t.serverVariableValue, getEffectiveServerValue: t.serverEffectiveValue, - }) + }), ) : null; } @@ -9181,7 +9181,9 @@ let { servers: t, currentServer: n } = this.props; n || this.setServer( - null === (e = t.first()) || void 0 === e ? void 0 : e.get("url") + null === (e = t.first()) || void 0 === e + ? void 0 + : e.get("url"), ); } UNSAFE_componentWillReceiveProps(e) { @@ -9199,7 +9201,7 @@ a = i()((o = this.props.servers)).call( o, - (e) => e.get("url") === this.props.currentServer + (e) => e.get("url") === this.props.currentServer, ) || (0, u.OrderedMap)(); if (!s) return this.setServer(t.first().get("url")); let c = a.get("variables") || (0, u.OrderedMap)(), @@ -9249,11 +9251,11 @@ "option", { value: e.get("url"), key: e.get("url") }, e.get("url"), - e.get("description") && ` - ${e.get("description")}` - ) + e.get("description") && ` - ${e.get("description")}`, + ), ) - .toArray() - ) + .toArray(), + ), ), p ? c.createElement( @@ -9263,7 +9265,7 @@ "div", { className: "computed-url" }, "Computed URL:", - c.createElement("code", null, s(r)) + c.createElement("code", null, s(r)), ), c.createElement("h4", null, "Server variables"), c.createElement( @@ -9298,23 +9300,23 @@ key: e, value: e, }, - e - ) - ) + e, + ), + ), ) : c.createElement("input", { type: "text", value: o(r, n) || "", onChange: this.onServerVariableValueChange, "data-variable": n, - }) - ) + }), + ), ); - }) - ) - ) + }), + ), + ), ) - : null + : null, ); } } @@ -9493,13 +9495,13 @@ l()(t).call( t, (e, t) => e.setIn([t, "errors"], (0, c.fromJS)(s)), - e - ) + e, + ), ); } return ( console.warn( - "unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR" + "unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR", ), e ); @@ -9512,7 +9514,7 @@ if (!c.Map.isMap(s)) return e.setIn( ["requestData", n, r, "errors"], - (0, c.fromJS)([]) + (0, c.fromJS)([]), ); const [...i] = o()(s).call(s); return i @@ -9523,8 +9525,8 @@ l()(i).call( i, (e, t) => e.setIn([t, "errors"], (0, c.fromJS)([])), - e - ) + e, + ), ) : e; }, @@ -9596,10 +9598,11 @@ return e.getIn(n) || ""; }), y = m( - (e, t, n) => e.getIn(["requestData", t, n, "bodyValue"]) || null + (e, t, n) => e.getIn(["requestData", t, n, "bodyValue"]) || null, ), v = m( - (e, t, n) => e.getIn(["requestData", t, n, "retainBodyValue"]) || !1 + (e, t, n) => + e.getIn(["requestData", t, n, "retainBodyValue"]) || !1, ), b = (e, t, n) => (e) => { const { oas3Selectors: r, specSelectors: o, fn: s } = e.getSystem(); @@ -9610,7 +9613,7 @@ o.specResolvedSubtree(["paths", t, n, "requestBody"]), e, r.activeExamplesMember(t, n, "requestBody", "requestBody"), - s + s, ); } return null; @@ -9627,9 +9630,9 @@ (l = (0, d.Pz)( l .mapEntries((e) => - p.Map.isMap(e[1]) ? [e[0], e[1].get("value")] : e + p.Map.isMap(e[1]) ? [e[0], e[1].get("value")] : e, ) - .toJS() + .toJS(), )), p.List.isList(l) && (l = (0, d.Pz)(l)), a) @@ -9638,7 +9641,7 @@ c, a, r.activeExamplesMember(t, n, "requestBody", "requestBody"), - s + s, ); i = !!l && l !== e; } @@ -9646,20 +9649,20 @@ }), E = m( (e, t, n) => - e.getIn(["requestData", t, n, "bodyInclusion"]) || (0, p.Map)() + e.getIn(["requestData", t, n, "bodyInclusion"]) || (0, p.Map)(), ), x = m((e, t, n) => e.getIn(["requestData", t, n, "errors"]) || null), S = m( (e, t, n, r, o) => - e.getIn(["examples", t, n, r, o, "activeExample"]) || null + e.getIn(["examples", t, n, r, o, "activeExample"]) || null, ), _ = m( (e, t, n) => - e.getIn(["requestData", t, n, "requestContentType"]) || null + e.getIn(["requestData", t, n, "requestContentType"]) || null, ), j = m( (e, t, n) => - e.getIn(["requestData", t, n, "responseContentType"]) || null + e.getIn(["requestData", t, n, "responseContentType"]) || null, ), O = m((e, t, n) => { let r; @@ -9834,8 +9837,8 @@ (e) => { let [t] = e; return u()(s).call(s, t); - } - )) + }, + )), ).call(a, (e) => { let [t, o] = e; return { @@ -9848,12 +9851,12 @@ }); return h()(e).call(e, p); }, - (0, f.List)() + (0, f.List)(), ) : e, - (0, f.List)() + (0, f.List)(), ) - .groupBy((e) => e.callbackName)) + .groupBy((e) => e.callbackName)), ) .call(t, (e) => e.toArray()) .toObject() @@ -9899,13 +9902,13 @@ }), u = a( () => (e) => - e.getSystem().specSelectors.specJson().hasIn(["servers", 0]) + e.getSystem().specSelectors.specJson().hasIn(["servers", 0]), ), p = a( (0, r.P1)( o.specJsonWithResolvedSubtrees, - (e) => e.getIn(["components", "securitySchemes"]) || null - ) + (e) => e.getIn(["components", "securitySchemes"]) || null, + ), ), h = (e, t) => function (n) { @@ -10049,7 +10052,7 @@ (r = s.createElement( "span", { className: "model-deprecated-warning" }, - "Deprecated:" + "Deprecated:", ))), s.createElement( "div", @@ -10061,8 +10064,8 @@ getConfigs: e, depth: 1, expandDepth: this.props.expandDepth || 0, - }) - ) + }), + ), ) ); } @@ -10089,8 +10092,8 @@ r.createElement( "small", { className: "version-stamp" }, - r.createElement("pre", { className: "version" }, "OAS 3.0") - ) + r.createElement("pre", { className: "version" }, "OAS 3.0"), + ), ); }); }, @@ -10106,7 +10109,7 @@ if (t.jsonSchema202012) { const e = (0, s.makeIsExpandable)( t.jsonSchema202012.isExpandable, - n + n, ); o()(this.fn.jsonSchema202012, { isExpandable: e, @@ -10125,7 +10128,7 @@ memoizedCreateXMLExample: t.jsonSchema202012.memoizedCreateXMLExample, }, - n() + n(), ); o()(this.fn, e); } @@ -10153,15 +10156,15 @@ l, { href: (0, o.Nm)(i), target: "_blank" }, s, - " - Website" - ) + " - Website", + ), ), a && r.createElement( l, { href: (0, o.Nm)(`mailto:${a}`) }, - i ? `Send email to ${s}` : `Contact ${s}` - ) + i ? `Send email to ${s}` : `Contact ${s}`, + ), ); }; }, @@ -10202,16 +10205,16 @@ "h2", { className: "title" }, p, - s && r.createElement(b, { version: s }) + s && r.createElement(b, { version: s }), ), (l || a) && r.createElement(E, { host: l, basePath: a }), - i && r.createElement(w, { getComponent: t, url: i }) + i && r.createElement(w, { getComponent: t, url: i }), ), c && r.createElement("p", { className: "info__summary" }, c), r.createElement( "div", { className: "info__description description" }, - r.createElement(y, { source: u }) + r.createElement(y, { source: u }), ), h && r.createElement( @@ -10220,8 +10223,8 @@ r.createElement( v, { target: "_blank", href: (0, o.Nm)(h) }, - "Terms of service" - ) + "Terms of service", + ), ), m.size > 0 && r.createElement(S, null), g.size > 0 && r.createElement(x, null), @@ -10233,9 +10236,9 @@ target: "_blank", href: (0, o.Nm)(f), }, - d || f + d || f, ), - r.createElement(_, null) + r.createElement(_, null), ); }; }, @@ -10259,7 +10262,7 @@ { className: "info__jsonschemadialect" }, "JSON Schema dialect:", " ", - r.createElement(a, { target: "_blank", href: (0, o.Nm)(s) }, s) + r.createElement(a, { target: "_blank", href: (0, o.Nm)(s) }, s), ), s && s !== i && @@ -10282,17 +10285,17 @@ r.createElement( "strong", null, - "OpenAPI.jsonSchemaDialect" + "OpenAPI.jsonSchemaDialect", ), " field contains a value different from the default value of", " ", r.createElement(a, { target: "_blank", href: i }, i), - ". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value." - ) - ) - ) - ) - ) + ". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value.", + ), + ), + ), + ), + ), ); }; }, @@ -10316,10 +10319,10 @@ r.createElement( a, { target: "_blank", href: (0, o.Nm)(i) }, - s - ) + s, + ), ) - : r.createElement("span", null, s) + : r.createElement("span", null, s), ); }; }, @@ -10349,7 +10352,7 @@ (e, t) => { o(l, t); }, - [l, o] + [l, o], ); return s.createElement(a, { name: l, @@ -10440,8 +10443,8 @@ onClick: _, }, c.createElement("span", null, "Schemas"), - b ? c.createElement(x, null) : c.createElement(S, null) - ) + b ? c.createElement(x, null) : c.createElement(S, null), + ), ), c.createElement( w, @@ -10455,8 +10458,8 @@ name: t, onExpand: k(t), }); - }) - ) + }), + ), ); }; }, @@ -10492,7 +10495,7 @@ r.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), r.createElement( "p", @@ -10500,7 +10503,7 @@ r.createElement("code", null, "swagger"), " and ", r.createElement("code", null, "openapi"), - " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields." + " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.", ), r.createElement( "p", @@ -10512,10 +10515,10 @@ " (for example,", " ", r.createElement("code", null, "openapi: 3.1.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ) : n || o || s ? r.createElement("div", null, a) @@ -10535,12 +10538,12 @@ r.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), r.createElement( "p", null, - "The provided definition does not specify a valid version field." + "The provided definition does not specify a valid version field.", ), r.createElement( "p", @@ -10552,10 +10555,10 @@ " (for example,", " ", r.createElement("code", null, "openapi: 3.1.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ); }; }, @@ -10592,10 +10595,10 @@ path: e, specPath: t.specPath, allowTryItOut: !1, - }) - ) + }), + ), ); - }) + }), ); }; }, @@ -10676,7 +10679,7 @@ n.specSelectors.isOAS31() ? p.createElement( e, - o()({}, r, { originalComponent: t, getSystem: n.getSystem }) + o()({}, r, { originalComponent: t, getSystem: n.getSystem }), ) : p.createElement(t, r), y = (e, t) => { @@ -10696,7 +10699,7 @@ : void 0; }, ]; - }) + }), ); }; }, @@ -10775,7 +10778,7 @@ selectLicenseNameField: b.selectLicenseNameField, selectLicenseUrlField: b.selectLicenseUrlField, selectLicenseIdentifierField: P( - b.selectLicenseIdentifierField + b.selectLicenseIdentifierField, ), selectLicenseUrl: n(b.selectLicenseUrl), contact: b.contact, @@ -10833,8 +10836,8 @@ className: "json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary", }, - r.createElement(s, { source: t.description }) - ) + r.createElement(s, { source: t.description }), + ), ); }; }, @@ -10889,10 +10892,10 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Discriminator" - ) + "Discriminator", + ), ), - s.createElement(b, { expanded: d, onClick: x }) + s.createElement(b, { expanded: d, onClick: x }), ) : s.createElement( "span", @@ -10900,7 +10903,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Discriminator" + "Discriminator", ), r.propertyName && s.createElement( @@ -10909,7 +10912,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - r.propertyName + r.propertyName, ), s.createElement( "strong", @@ -10917,7 +10920,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), s.createElement( "ul", @@ -10930,10 +10933,10 @@ s.createElement( "li", { className: "json-schema-2020-12-property" }, - s.createElement(l.default, { discriminator: r }) - ) - ) - ) + s.createElement(l.default, { discriminator: r }), + ), + ), + ), ); }; }, @@ -10967,7 +10970,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - t + t, ), c.createElement( "span", @@ -10975,8 +10978,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - n - ) + n, + ), ); }); }; @@ -11004,7 +11007,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Example" + "Example", ), r.createElement( "span", @@ -11012,8 +11015,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - i(t.example) - ) + i(t.example), + ), ) : null; }; @@ -11071,10 +11074,10 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "External documentation" - ) + "External documentation", + ), ), - s.createElement(b, { expanded: d, onClick: _ }) + s.createElement(b, { expanded: d, onClick: _ }), ) : s.createElement( "span", @@ -11082,7 +11085,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "External documentation" + "External documentation", ), s.createElement( "strong", @@ -11090,7 +11093,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), s.createElement( "ul", @@ -11107,7 +11110,7 @@ s.createElement( "li", { className: "json-schema-2020-12-property" }, - s.createElement(w, { schema: r, getSystem: n }) + s.createElement(w, { schema: r, getSystem: n }), ), r.url && s.createElement( @@ -11125,7 +11128,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "url" + "url", ), s.createElement( "span", @@ -11136,14 +11139,14 @@ s.createElement( E, { target: "_blank", href: (0, l.Nm)(r.url) }, - r.url - ) - ) - ) - ) - ) - ) - ) + r.url, + ), + ), + ), + ), + ), + ), + ), ); }; }, @@ -11201,10 +11204,10 @@ name: t, schema: r, dependentRequired: s, - }) + }), ); - }) - ) + }), + ), ); }; }, @@ -11258,10 +11261,10 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "XML" - ) + "XML", + ), ), - s.createElement(v, { expanded: f, onClick: E }) + s.createElement(v, { expanded: f, onClick: E }), ) : s.createElement( "span", @@ -11269,7 +11272,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "XML" + "XML", ), !0 === r.attribute && s.createElement( @@ -11278,7 +11281,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "attribute" + "attribute", ), !0 === r.wrapped && s.createElement( @@ -11287,7 +11290,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "wrapped" + "wrapped", ), s.createElement( "strong", @@ -11295,7 +11298,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), s.createElement( "ul", @@ -11324,7 +11327,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "name" + "name", ), s.createElement( "span", @@ -11332,9 +11335,9 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - r.name - ) - ) + r.name, + ), + ), ), r.namespace && s.createElement( @@ -11349,7 +11352,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "namespace" + "namespace", ), s.createElement( "span", @@ -11357,9 +11360,9 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - r.namespace - ) - ) + r.namespace, + ), + ), ), r.prefix && s.createElement( @@ -11374,7 +11377,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "prefix" + "prefix", ), s.createElement( "span", @@ -11382,13 +11385,13 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - r.prefix - ) - ) - ) - ) - ) - ) + r.prefix, + ), + ), + ), + ), + ), + ), ); }; }, @@ -11443,7 +11446,7 @@ r.createElement(i, { schema: t, getSystem: n }), r.createElement(a, { schema: t, getSystem: n }), r.createElement(c, { schema: t, getSystem: n }), - r.createElement(l, { schema: t, getSystem: n }) + r.createElement(l, { schema: t, getSystem: n }), ); }); }, @@ -11474,7 +11477,7 @@ ? (0, o.mn)(n, e, { selectedServer: t }) : r ? `https://spdx.org/licenses/${r}.html` - : void 0 + : void 0, ); }, 9305: (e, t, n) => { @@ -11543,7 +11546,7 @@ (s = l()((i = n.entrySeq())).call(i, (e) => { let [n] = e; return u()(t).call(t, n); - })) + })), ).call(s, (e) => { let [t, n] = e; return { @@ -11555,14 +11558,14 @@ }); return h()(e).call(e, a); }, - (0, m.List)() + (0, m.List)(), ) - .groupBy((e) => e.path)) + .groupBy((e) => e.path)), ) .call(n, (e) => e.toArray()) .toObject() : {}; - } + }, ), S = () => (e) => e.specSelectors.info().get("license", b), _ = () => (e) => e.specSelectors.license().get("name", "License"), @@ -11573,7 +11576,7 @@ (e, t) => t.specSelectors.selectLicenseUrlField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), k = () => (e) => e.specSelectors.license().get("identifier"), A = () => (e) => e.specSelectors.info().get("contact", b), @@ -11587,7 +11590,7 @@ (e, t) => t.specSelectors.selectContactUrlField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), T = () => (e) => e.specSelectors.info().get("title"), R = () => (e) => e.specSelectors.info().get("summary"), @@ -11599,7 +11602,7 @@ (e, t) => t.specSelectors.selectInfoTermsOfServiceField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), L = () => (e) => e.specSelectors.externalDocs().get("description"), B = () => (e) => e.specSelectors.externalDocs().get("url"), @@ -11609,7 +11612,7 @@ (e, t) => t.specSelectors.selectExternalDocsUrlField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), q = () => (e) => e.specSelectors.specJson().get("jsonSchemaDialect"), U = () => "https://spec.openapis.org/oas/3.1/dialect/base", @@ -11628,11 +11631,11 @@ const s = t.get(r); return (e[r] = (null == s ? void 0 : s.toJS()) || o), e; }, - {} + {}, ) : e.toJS() : {}; - } + }, ); }, 32884: (e, t, n) => { @@ -11653,7 +11656,7 @@ return r || e(...s); }, s = (0, r.createOnlyOAS31SelectorWrapper)( - () => (e, t) => t.oas31Selectors.selectLicenseUrl() + () => (e, t) => t.oas31Selectors.selectLicenseUrl(), ); }, 77423: (e, t, n) => { @@ -11796,7 +11799,7 @@ upperFirst: a.upperFirst, isExpandable: (0, s.makeIsExpandable)( a.jsonSchema202012.isExpandable, - t + t, ), getProperties: s.getProperties, }, @@ -11948,8 +11951,8 @@ r.createElement( "small", { className: "version-stamp" }, - r.createElement("pre", { className: "version" }, "OAS 3.1") - ) + r.createElement("pre", { className: "version" }, "OAS 3.1"), + ), ); }); }, @@ -12122,17 +12125,17 @@ ? t.push( ` "${e}": {\n "name": "${r.name}"${ r.type ? `,\n "type": "${r.type}"` : "" - }\n }` + }\n }`, ) : t.push( ` "${e}": ${l()(r, null, 2).replace( /(\r\n|\r|\n)/g, - "\n " - )}` + "\n ", + )}`, ); } return `{\n${t.join(",\n")}\n}`; - })(e) + })(e), ) : ("string" != typeof t && (t = l()(t)), a(t)); } @@ -12219,10 +12222,10 @@ [S, _] = (0, p.useState)( null === (t = s.getSnippetGenerators()) || void 0 === t ? void 0 - : t.keySeq().first() + : t.keySeq().first(), ), [j, O] = (0, p.useState)( - null == s ? void 0 : s.getDefaultExpanded() + null == s ? void 0 : s.getDefaultExpanded(), ); (0, p.useEffect)(() => {}, []), (0, p.useEffect)(() => { @@ -12238,11 +12241,11 @@ }); return ( l()(t).call(t, (e) => - e.addEventListener("mousewheel", I, { passive: !1 }) + e.addEventListener("mousewheel", I, { passive: !1 }), ), () => { l()(t).call(t, (e) => - e.removeEventListener("mousewheel", I) + e.removeEventListener("mousewheel", I), ); } ); @@ -12269,7 +12272,7 @@ className: "curl microlight", style: (0, y.C2)(f()(h, "syntaxHighlight.theme")), }, - C + C, ) : p.createElement("textarea", { readOnly: !0, @@ -12293,7 +12296,7 @@ p.createElement( "h4", { onClick: () => P(), style: { cursor: "pointer" } }, - "Snippets" + "Snippets", ), p.createElement( "button", @@ -12312,8 +12315,8 @@ className: "arrow", width: "10", height: "10", - }) - ) + }), + ), ), j && p.createElement( @@ -12345,10 +12348,10 @@ p.createElement( "h4", { style: t === S ? { color: "white" } : {} }, - n.get("title") - ) + n.get("title"), + ), ); - }) + }), ), p.createElement( "div", @@ -12356,11 +12359,11 @@ p.createElement( g.CopyToClipboard, { text: C }, - p.createElement("button", null) - ) + p.createElement("button", null), + ), ), - p.createElement("div", null, T) - ) + p.createElement("div", null, T), + ), ); }; }, @@ -12396,7 +12399,7 @@ (n = l()((r = h(e))).call(r, (e, t) => { const n = ((e) => s[`requestSnippetGenerator_${e}`])(t); return "function" != typeof n ? null : e.set("fn", n); - })) + })), ).call(n, (e) => e); }, d = (0, c.P1)(p, (e) => e.get("activeLanguage")), @@ -12450,8 +12453,8 @@ null, "Could not render ", "t" === t ? "this component" : t, - ", see the console." - ) + ", see the console.", + ), ); }; }, @@ -12472,7 +12475,7 @@ return s.createElement( i, { targetName: a, getComponent: n, fn: r }, - s.createElement(t, o()({}, this.props, this.context)) + s.createElement(t, o()({}, this.props, this.context)), ); } } @@ -12527,7 +12530,7 @@ o()((r = Array(u.length))).call(r, (e, t) => { let { fn: n } = t; return n.withErrorBoundary(e); - }) + }), ); return { fn: { @@ -12559,7 +12562,7 @@ c, (e, t) => t.when.test(r) ? [...e, ...t.shouldStringifyTypes] : e, - u + u, ); return l()(f, (e) => e === h) ? i()(p, null, 2) : p; }; @@ -12708,7 +12711,7 @@ (0, C.XV)( e, "$$ref", - (e) => "string" == typeof e && o()(e).call(e, "#") > -1 + (e) => "string" == typeof e && o()(e).call(e, "#") > -1, ), R = ["maxProperties", "minProperties"], M = ["minItems", "maxItems"], @@ -12732,11 +12735,11 @@ ...M, ...D, ...F, - ]) + ]), ).call(n, (n) => ((n) => { void 0 === t[n] && void 0 !== e[n] && (t[n] = e[n]); - })(n) + })(n), ), void 0 !== e.required && l()(e.required)) && ((void 0 !== t.required && t.required.length) || @@ -12857,7 +12860,7 @@ (t = d()(t).call( t, 0, - null === (i = e) || void 0 === i ? void 0 : i.maxItems + null === (i = e) || void 0 === i ? void 0 : i.maxItems, )); if ( null !== @@ -12910,7 +12913,7 @@ r ? i()((n = e.required)).call( n, - (e) => (t += void 0 === F[e] ? 0 : 1) + (e) => (t += void 0 === F[e] ? 0 : 1), ) : i()((o = e.required)).call(o, (e) => { var n; @@ -12962,12 +12965,12 @@ if ( Object.prototype.hasOwnProperty.call( e, - "discriminator" + "discriminator", ) && e.discriminator && Object.prototype.hasOwnProperty.call( e.discriminator, - "mapping" + "mapping", ) && e.discriminator.mapping && Object.prototype.hasOwnProperty.call(e, "$$ref") && @@ -13079,12 +13082,12 @@ (S.xml.name = S.xml.name || m.name); if (l()(S.anyOf)) n = w()((H = S.anyOf)).call(H, (e) => - B(L(S, e, t), t, void 0, r) + B(L(S, e, t), t, void 0, r), ); else if (l()(S.oneOf)) { var G; n = w()((G = S.oneOf)).call(G, (e) => - B(L(S, e, t), t, void 0, r) + B(L(S, e, t), t, void 0, r), ); } else { if (!(!r || (r && m.wrapped))) return B(S, t, void 0, r); @@ -13316,7 +13319,7 @@ } = n; ge || (console.warn( - "specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!" + "specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!", ), (ge = !0)); const { @@ -13350,7 +13353,7 @@ (e.source = "resolver"), l()(e, "message", { enumerable: !0, value: e.message }), e - ) + ), ); a.newThrownErrBatch(e); } @@ -13365,17 +13368,17 @@ let { path: n, system: r } = t; return e.has(r) || e.set(r, []), e.get(r).push(n), e; }, - new (h())() + new (h())(), ); (ve = []), d()(e).call(e, async (e, t) => { if (!t) return void console.error( - "debResolveSubtrees: don't have a system to operate on, aborting." + "debResolveSubtrees: don't have a system to operate on, aborting.", ); if (!t.fn.resolveSubtree) return void console.error( - "Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing." + "Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.", ); const { errActions: n, @@ -13414,7 +13417,7 @@ "resolver" !== e.get("source") || !g()((n = e.get("fullPath"))).call( n, - (e, n) => e === t[n] || void 0 === t[n] + (e, n) => e === t[n] || void 0 === t[n], ) ); }), @@ -13433,7 +13436,7 @@ value: e.message, }), e - ) + ), ); n.newThrownErrBatch(e); } @@ -13446,8 +13449,8 @@ i()( (_ = w()((j = x()(S))).call( j, - (e) => "openIdConnect" === e.type - )) + (e) => "openIdConnect" === e.type, + )), ).call(_, async (e) => { const t = { url: e.openIdConnectUrl, @@ -13462,7 +13465,7 @@ } catch (e) { console.error(e); } - }) + }), )); return ( q()(c, t, S), @@ -13475,7 +13478,7 @@ p.specResolvedSubtree([]) || (0, I.Map)() ).toJS(), specWithCurrentSubtrees: p.specJS(), - }) + }), ); h.updateResolvedSubtree([], t.resultMap); } catch (e) { @@ -13558,14 +13561,14 @@ d()( (g = w()((y = p.get("parameters"))).call( y, - (e) => e && !0 === e.get("allowEmptyValue") - )) + (e) => e && !0 === e.get("allowEmptyValue"), + )), ).call(g, (t) => { if ( s.parameterInclusionSettingFor( [c, u], t.get("name"), - t.get("in") + t.get("in"), ) ) { e.parameters = e.parameters || {}; @@ -13596,13 +13599,13 @@ if (s && s.toJS) e.requestBody = w()( (v = i()(s).call(s, (e) => - I.Map.isMap(e) ? e.get("value") : e - )) + I.Map.isMap(e) ? e.get("value") : e, + )), ) .call( v, (e, t) => - (o()(e) ? 0 !== e.length : !(0, J.O2)(e)) || a.get(t) + (o()(e) ? 0 !== e.length : !(0, J.O2)(e)) || a.get(t), ) .toJS(); else e.requestBody = s; @@ -13747,14 +13750,14 @@ if (!o || !s) return ( console.warn( - "Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey." + "Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey.", ), e ); const a = `${s}.${o}`; return e.setIn( ["meta", "paths", ...r, "parameter_inclusions", a], - i + i, ); }, [f.VALIDATE_PARAMS]: (e, t) => { @@ -13779,7 +13782,7 @@ e, n, o.get("name"), - o.get("in") + o.get("in"), ), l = (0, u.Ik)(o, s, { bypassRequiredCheck: a, @@ -13787,9 +13790,9 @@ }); return t.setIn([(0, u.V9)(o), "errors"], (0, c.fromJS)(l)); }, - t + t, ); - } + }, ); }, [f.CLEAR_VALIDATE_PARAMS]: (e, t) => { @@ -13799,7 +13802,7 @@ return e.updateIn( ["meta", "paths", ...n, "parameters"], (0, c.fromJS)([]), - (e) => i()(e).call(e, (e) => e.set("errors", (0, c.fromJS)([]))) + (e) => i()(e).call(e, (e) => e.set("errors", (0, c.fromJS)([]))), ); }, [f.SET_RESPONSE]: (e, t) => { @@ -13815,7 +13818,7 @@ message: r.err.message, statusCode: r.err.statusCode, }, - r.err.response + r.err.response, ) : r), (n.headers = n.headers || {}); @@ -13990,8 +13993,8 @@ (0, j.OrderedMap)().mergeWith( D, e.get("json"), - e.get("resolvedSubtrees") - ) + e.get("resolvedSubtrees"), + ), ), L = (e) => I(e), B = (0, S.P1)(L, () => !1), @@ -14002,7 +14005,7 @@ var t; return o()((t = /v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e))).call( t, - 1 + 1, ); }), V = (0, S.P1)(F, (e) => e.get("paths")), @@ -14029,7 +14032,7 @@ method: r, operation: e, id: `${r}-${n}`, - }) + }), )); }); }), @@ -14064,12 +14067,12 @@ e.get("produces") || e.update("produces", (e) => (0, j.Set)(e).merge(n)), e - ) + ), ); } return (0, j.Map)(); - }) - ) + }), + ), ), re = (0, S.P1)(L, (e) => { const t = e.get("tags", (0, j.List)()); @@ -14083,7 +14086,7 @@ return d()((n = h()(r).call(r, j.Map.isMap))).call( n, (e) => e.get("name") === t, - (0, j.Map)() + (0, j.Map)(), ); }, se = (0, S.P1)(ne, re, (e, t) => @@ -14096,15 +14099,15 @@ : g()(n).call( n, (e, n) => e.update(n, (0, j.List)(), (e) => e.push(t)), - e + e, ); }, g()(t).call( t, (e, t) => e.set(t.get("name"), (0, j.List)()), - (0, j.OrderedMap)() - ) - ) + (0, j.OrderedMap)(), + ), + ), ), ie = (e) => (t) => { var n; @@ -14116,8 +14119,8 @@ (e, t) => { let n = "function" == typeof o ? o : _.wh.tagsSorter[o]; return n ? n(e, t) : null; - } - )) + }, + )), ).call(n, (t, n) => { let r = "function" == typeof s ? s : _.wh.operationsSorter[s], o = r ? v()(t).call(t, r) : t; @@ -14134,16 +14137,16 @@ de = (e, t, n) => { const r = F(e).getIn( ["paths", ...t, "parameters"], - (0, j.OrderedMap)() + (0, j.OrderedMap)(), ), o = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, j.OrderedMap)() + (0, j.OrderedMap)(), ), s = u()(r).call(r, (e) => { const t = o.get(`${n.get("in")}.${n.get("name")}`), r = o.get( - `${n.get("in")}.${n.get("name")}.hash-${n.hashCode()}` + `${n.get("in")}.${n.get("name")}.hash-${n.hashCode()}`, ); return (0, j.OrderedMap)().merge(e, t, r); }); @@ -14151,25 +14154,25 @@ s, (e) => e.get("in") === n.get("in") && e.get("name") === n.get("name"), - (0, j.OrderedMap)() + (0, j.OrderedMap)(), ); }, me = (e, t, n, r) => { const o = `${r}.${n}`; return e.getIn( ["meta", "paths", ...t, "parameter_inclusions", o], - !1 + !1, ); }, ge = (e, t, n, r) => { const o = F(e).getIn( ["paths", ...t, "parameters"], - (0, j.OrderedMap)() + (0, j.OrderedMap)(), ), s = d()(o).call( o, (e) => e.get("in") === r && e.get("name") === n, - (0, j.OrderedMap)() + (0, j.OrderedMap)(), ); return de(e, t, s); }, @@ -14178,7 +14181,7 @@ const o = F(e).getIn(["paths", t, n], (0, j.OrderedMap)()), s = e.getIn(["meta", "paths", t, n], (0, j.OrderedMap)()), i = u()((r = o.get("parameters", (0, j.List)()))).call(r, (r) => - de(e, [t, n], r) + de(e, [t, n], r), ); return (0, j.OrderedMap)().merge(o, s).set("parameters", i); }; @@ -14186,12 +14189,12 @@ t = t || []; let o = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, j.fromJS)([]) + (0, j.fromJS)([]), ); return ( d()(o).call( o, - (e) => j.Map.isMap(e) && e.get("name") === n && e.get("in") === r + (e) => j.Map.isMap(e) && e.get("name") === n && e.get("in") === r, ) || (0, j.Map)() ); } @@ -14211,7 +14214,7 @@ : t.get("value"); return e.set((0, _.V9)(t, { allowHashes: !1 }), r); }, - (0, j.fromJS)({}) + (0, j.fromJS)({}), ); } function Ee(e) { @@ -14292,7 +14295,7 @@ t = t || []; let n = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, j.fromJS)([]) + (0, j.fromJS)([]), ); const r = []; return ( @@ -14309,7 +14312,7 @@ let r = { requestBody: !1, requestContentType: {} }, o = e.getIn( ["resolvedSubtrees", "paths", ...t, "requestBody"], - (0, j.fromJS)([]) + (0, j.fromJS)([]), ); return ( o.size < 1 || @@ -14329,7 +14332,7 @@ if ((n || r) && n === r) return !0; let o = e.getIn( ["resolvedSubtrees", "paths", ...t, "requestBody", "content"], - (0, j.fromJS)([]) + (0, j.fromJS)([]), ); if (o.size < 2 || !n || !r) return !1; let s = o.getIn([n, "schema", "properties"], (0, j.fromJS)([])), @@ -14633,7 +14636,7 @@ a = e.call( this, - S(t, { name: n, index: r, operation: o, tree: s }) + S(t, { name: n, index: r, operation: o, tree: s }), ) || this; return ( (a.name = n), @@ -14739,7 +14742,7 @@ "TEST_OPERATION_FAILED", s, t, - e + e, ); return (i.newDocument = e), i; } @@ -14752,7 +14755,7 @@ "OPERATION_OP_INVALID", s, t, - e + e, ); return i; } @@ -14772,7 +14775,7 @@ ("prototype" == h && c > 0 && "constructor" == a[c - 1]))) ) throw new TypeError( - "JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README" + "JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README", ); if ( (n && @@ -14792,7 +14795,7 @@ "OPERATION_PATH_ILLEGAL_ARRAY_INDEX", s, t, - e + e, ); b(h) && (h = ~~h); } @@ -14803,7 +14806,7 @@ "OPERATION_VALUE_OUT_OF_BOUNDS", s, t, - e + e, ); if (!1 === (i = A[t.op].call(t, l, h, e)).test) throw new j( @@ -14811,7 +14814,7 @@ "TEST_OPERATION_FAILED", s, t, - e + e, ); return i; } @@ -14822,7 +14825,7 @@ "TEST_OPERATION_FAILED", s, t, - e + e, ); return i; } @@ -14832,7 +14835,7 @@ "OPERATION_PATH_UNRESOLVABLE", s, t, - e + e, ); } } @@ -14844,7 +14847,7 @@ ) throw new j( "Patch sequence must be an array", - "SEQUENCE_NOT_AN_ARRAY" + "SEQUENCE_NOT_AN_ARRAY", ); r || (e = v(e)); for (var s = new Array(t.length), i = 0, a = t.length; i < a; i++) @@ -14859,7 +14862,7 @@ "TEST_OPERATION_FAILED", n, t, - e + e, ); return r.newDocument; } @@ -14870,7 +14873,7 @@ "OPERATION_NOT_AN_OBJECT", t, e, - n + n, ); if (!k[e.op]) throw new j( @@ -14878,7 +14881,7 @@ "OPERATION_OP_INVALID", t, e, - n + n, ); if ("string" != typeof e.path) throw new j( @@ -14886,7 +14889,7 @@ "OPERATION_PATH_INVALID", t, e, - n + n, ); if (0 !== e.path.indexOf("/") && e.path.length > 0) throw new j( @@ -14894,7 +14897,7 @@ "OPERATION_PATH_INVALID", t, e, - n + n, ); if (("move" === e.op || "copy" === e.op) && "string" != typeof e.from) throw new j( @@ -14902,7 +14905,7 @@ "OPERATION_FROM_REQUIRED", t, e, - n + n, ); if ( ("add" === e.op || "replace" === e.op || "test" === e.op) && @@ -14913,7 +14916,7 @@ "OPERATION_VALUE_REQUIRED", t, e, - n + n, ); if ( ("add" === e.op || "replace" === e.op || "test" === e.op) && @@ -14924,7 +14927,7 @@ "OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED", t, e, - n + n, ); if (n) if ("add" == e.op) { @@ -14936,7 +14939,7 @@ "OPERATION_PATH_CANNOT_ADD", t, e, - n + n, ); } else if ( "replace" === e.op || @@ -14949,7 +14952,7 @@ "OPERATION_PATH_UNRESOLVABLE", t, e, - n + n, ); } else if ("move" === e.op || "copy" === e.op) { var i = R([{ op: "_get", path: e.from, value: void 0 }], n); @@ -14959,7 +14962,7 @@ "OPERATION_FROM_UNRESOLVABLE", t, e, - n + n, ); } } @@ -14968,7 +14971,7 @@ if (!Array.isArray(e)) throw new j( "Patch sequence must be an array", - "SEQUENCE_NOT_AN_ARRAY" + "SEQUENCE_NOT_AN_ARRAY", ); if (t) N(v(t), v(e), n || !0); else { @@ -15171,8 +15174,8 @@ e.push({ op: "add", path: `/${K(n)}`, value: t.value[n] }), e ), - [] - ) + [], + ), ); } else if ("replace" === t.op && "" === t.path) { let { value: r } = t; @@ -15482,7 +15485,7 @@ (e) => ( (c = `${c}/${De(e)}`), o[c] && o[c].some((e) => Le(e, i) || Le(i, e)) - ) + ), ); if (u) return !0; return void (o[a] = (o[a] || []).concat(i)); @@ -15574,7 +15577,7 @@ if (!we.test(e)) { if (!t) throw new Ee( - `Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'` + `Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`, ); return ce.resolve(t, e); } @@ -15619,7 +15622,7 @@ if (void 0 === r) throw new Ee( `Could not resolve pointer: ${e} does not exist in document`, - { pointer: e } + { pointer: e }, ); return r; } @@ -15634,7 +15637,7 @@ function Me(e) { if ("string" != typeof e) return e; return new URLSearchParams( - `=${e.replace(/~1/g, "/").replace(/~0/g, "~")}` + `=${e.replace(/~1/g, "/").replace(/~0/g, "~")}`, ).get(""); } function De(e) { @@ -15682,7 +15685,7 @@ if (i) return null; i = !0; const e = new TypeError( - "Elements in allOf must be objects" + "Elements in allOf must be objects", ); return (e.fullPath = n), l.push(e); } @@ -15841,7 +15844,7 @@ }), allowMetaPatches: !1, }, - e + e, ), (this.get = this._get.bind(this)), (this.getContext = this._getContext.bind(this)), @@ -15933,7 +15936,7 @@ } nextPlugin() { return this.wrappedPlugins.find( - (e) => this.getMutationsForPlugin(e).length > 0 + (e) => this.getMutationsForPlugin(e).length > 0, ); } nextPromisedPatch() { @@ -15969,7 +15972,7 @@ return void this.debug( "updatePatches", "Got a non-object patch", - e + e, ); if ( (this.showDebug && this.allPatches.push(e), @@ -16071,13 +16074,13 @@ return Promise.resolve({ spec: e.state, errors: e.errors.concat( - new Error("We've reached a hard limit of 100 plugin runs") + new Error("We've reached a hard limit of 100 plugin runs"), ), }); if (t !== this.currentPlugin && this.promisedPatches.length) { const e = this.promisedPatches.map((e) => e.value); return Promise.all(e.map((e) => e.then(We, We))).then(() => - this.dispatch() + this.dispatch(), ); } return (function () { @@ -16152,7 +16155,7 @@ (e.name && e.name === n.name) || (e.$ref && e.$ref === n.$ref) || (e.$$ref && e.$$ref === n.$$ref) || - e === n + e === n, ) || i[e].push(n); } } else i[e] = t[e]; @@ -16205,7 +16208,7 @@ const n = new TextEncoder(); return Array.from(n.encode(e)) .map((e) => - `0${e.toString(16).toUpperCase()}`.slice(-2) + `0${e.toString(16).toUpperCase()}`.slice(-2), ) .map((e) => `%${e}`) .join(""); @@ -16228,7 +16231,7 @@ .reduce( (e, n) => !e || o ? `${e || ""};${t}=${n}` : `${e},${n}`, - "" + "", ); if ("form" === r) { const e = o ? `&${t}=` : ","; @@ -16262,7 +16265,7 @@ if ("matrix" === r && o) return a.reduce( (e, t) => `${e ? `${e};` : ";"}${t}=${i(n[t])}`, - "" + "", ); if ("matrix" === r) return a.reduce((e, r) => { @@ -16319,7 +16322,7 @@ } catch (e) { if (!r) throw e; const t = new Error( - r.statusText || `response status is ${r.status}` + r.statusText || `response status is ${r.status}`, ); throw ( ((t.status = r.status), @@ -16330,7 +16333,7 @@ } if (!r.ok) { const e = new Error( - r.statusText || `response status is ${r.status}` + r.statusText || `response status is ${r.status}`, ); throw ( ((e.status = r.status), @@ -16343,7 +16346,7 @@ } const ut = function () { return /(json|xml|yaml|text)\b/.test( - arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "" + arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", ); }; function pt(e, t) { @@ -16417,7 +16420,7 @@ : "", arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] - : {} + : {}, ), (this.data = e); } @@ -16446,7 +16449,7 @@ if (i) { if ( [typeof i.style, typeof i.explode, typeof i.allowReserved].some( - (e) => "undefined" !== e + (e) => "undefined" !== e, ) ) { const { style: t, explode: r, allowReserved: o } = i; @@ -16760,7 +16763,7 @@ if ("function" == typeof r[e[o]]) return r[e[o]].apply( r, - Array.prototype.slice.call(arguments, 0, -1) + Array.prototype.slice.call(arguments, 0, -1), ); o += 1; } @@ -16773,7 +16776,7 @@ ) return t.apply( null, - Array.prototype.slice.call(arguments, 0, -1) + Array.prototype.slice.call(arguments, 0, -1), )(r); } return n.apply(this, arguments); @@ -16825,7 +16828,7 @@ n += 1; } return !0; - }) + }), ); function Gt(e, t) { switch (e) { @@ -16875,7 +16878,7 @@ }; default: throw new Error( - "First argument to _arity must be a non-negative integer no greater than ten" + "First argument to _arity must be a non-negative integer no greater than ten", ); } } @@ -16986,7 +16989,7 @@ return !Qt(s, t, e); }, Xt(t), - o + o, ); } function hn(e, t, n, r) { @@ -17221,14 +17224,14 @@ return e(t[r]) && (n[r] = t[r]), n; }, {}, - cn(t) + cn(t), ) : (function (e, t) { for (var n = 0, r = t.length, o = []; n < r; ) e(t[n]) && (o[o.length] = t[n]), (n += 1); return o; })(e, t); - }) + }), ); const jn = $t(function (e, t) { return _n(bn(e), t); @@ -17259,8 +17262,8 @@ e, jn(function (e) { return /^\d+$/.test(e); - }, cn(e)) - ) + }, cn(e)), + ), ) .join(", ") + "]" @@ -17348,13 +17351,13 @@ return (n[r] = e(t[r])), n; }, {}, - cn(t) + cn(t), ); default: return mn(e, t); } - } - ) + }, + ), ), Nn = Number.isInteger || @@ -17488,7 +17491,7 @@ } function zn(e, t, n, r) { return e["@@transducer/result"]( - n[r](qn(e["@@transducer/step"], e), t) + n[r](qn(e["@@transducer/step"], e), t), ); } const Vn = Bn($n, zn, Un); @@ -17569,7 +17572,7 @@ })(e, Pn(n, t)); }, [], - e + e, ); }); const tr = $t(function (e, t) { @@ -17624,7 +17627,7 @@ return wn( er, Pn(n, arguments[0]), - Array.prototype.slice.call(arguments, 1) + Array.prototype.slice.call(arguments, 1), ); }); }); @@ -17646,7 +17649,7 @@ const hr = cr( Bt(function (e) { return !e; - }) + }), ); function fr(e, t) { return function () { @@ -17666,7 +17669,7 @@ const mr = Dn( dr("slice", function (e, t, n) { return Array.prototype.slice.call(n, e, t); - }) + }), ); const gr = Bt(dr("tail", mr(1, 1 / 0))); function yr() { @@ -17682,7 +17685,7 @@ r, mn(function (e) { return e.apply(r, n); - }, t) + }, t), ); }); }); @@ -17697,7 +17700,7 @@ (e.multiline ? "m" : "") + (e.sticky ? "y" : "") + (e.unicode ? "u" : "") + - (e.dotAll ? "s" : "") + (e.dotAll ? "s" : ""), ); } function Er(e, t, n) { @@ -17832,7 +17835,7 @@ return i && i["@@transducer/reduced"] ? zt(r) : ((r[s] = i), r); }); return Vn(o, {}, r); - }) + }), ); const Or = jr; const kr = Bt(function (e) { @@ -17933,7 +17936,7 @@ const Rr = $t( Ut(["take"], Tr, function (e, t) { return mr(0, e < 0 ? 1 / 0 : e, t); - }) + }), ); function Mr(e, t) { for (var n = t.length - 1; n >= 0 && e(t[n]); ) n -= 1; @@ -17996,7 +17999,7 @@ Ut(["dropWhile"], $r, function (e, t) { for (var n = 0, r = t.length; n < r && e(t[n]); ) n += 1; return mr(n, 1 / 0, t); - }) + }), ); const Ur = $t(function (e, t) { return e || t; @@ -18062,8 +18065,8 @@ "groupBy", Or(function (e, t) { return e.push(t), e; - }, []) - ) + }, []), + ), ); const Hr = $t(function (e, t) { if (0 === e.length || or(t)) return !1; @@ -18113,7 +18116,7 @@ if (null != n && ir(n[t])) return n[t].apply(n, Array.prototype.slice.call(arguments, 0, e)); throw new TypeError( - kn(n) + ' does not have a method named "' + t + '"' + kn(n) + ' does not have a method named "' + t + '"', ); }); }); @@ -18125,9 +18128,12 @@ const co = $t(function (e, t) { return function (n) { return function (r) { - return Pn(function (e) { - return t(e, r); - }, n(e(r))); + return Pn( + function (e) { + return t(e, r); + }, + n(e(r)), + ); }; }; }); @@ -18149,7 +18155,7 @@ return (n[r] = e(t[r], r, t)), n; }, {}, - cn(t) + cn(t), ); }); const fo = Dn(function (e, t, n) { @@ -18166,7 +18172,7 @@ return En(r) && En(o) ? e(t, r, o) : t(n, r, o); }, n, - r + r, ); }); const go = $t(function (e, t) { @@ -18175,7 +18181,7 @@ return n; }, e, - t + t, ); }); const yo = $t(function (e, t) { @@ -18242,7 +18248,7 @@ ) throw new TypeError( "‘test’ requires a value of type RegExp as its first argument; received " + - kn(e) + kn(e), ); var n; return wr(e).test(t); @@ -18274,7 +18280,7 @@ for (var n, r = 0, o = t.length, s = []; r < o; ) Qt(e, (n = t[r]), s) || (s[s.length] = n), (r += 1); return s; - }) + }), ); const $o = Dn(function (e, t, n) { return e(n) ? t(n) : n; @@ -18299,12 +18305,13 @@ } get warnings() { return this.children.filter( - (e) => "annotation" === e.element && e.classes.contains("warning") + (e) => + "annotation" === e.element && e.classes.contains("warning"), ); } get errors() { return this.children.filter( - (e) => "annotation" === e.element && e.classes.contains("error") + (e) => "annotation" === e.element && e.classes.contains("error"), ); } get isEmpty() { @@ -18373,7 +18380,7 @@ var r = n.call(e, t || "default"); if ("object" !== Zo(r)) return r; throw new TypeError( - "@@toPrimitive must return a primitive value." + "@@toPrimitive must return a primitive value.", ); } return ("string" === t ? String : Number)(e); @@ -18399,7 +18406,7 @@ const rs = hr(ns); const os = Yt( 1, - ns(Array.isArray) ? Array.isArray : yr(un, Qr("Array")) + ns(Array.isArray) ? Array.isArray : yr(un, Qr("Array")), ); const ss = ur(os, io); var is = Yt(3, function (e, t, n) { @@ -18449,27 +18456,27 @@ ms = ds( ({ hasBasicElementProps: e, primitiveEq: t }) => (n) => - n instanceof Nt.W_ || (e(n) && t(void 0, n)) + n instanceof Nt.W_ || (e(n) && t(void 0, n)), ), gs = ds( ({ hasBasicElementProps: e, primitiveEq: t }) => (n) => - n instanceof Nt.RP || (e(n) && t("string", n)) + n instanceof Nt.RP || (e(n) && t("string", n)), ), ys = ds( ({ hasBasicElementProps: e, primitiveEq: t }) => (n) => - n instanceof Nt.VL || (e(n) && t("number", n)) + n instanceof Nt.VL || (e(n) && t("number", n)), ), vs = ds( ({ hasBasicElementProps: e, primitiveEq: t }) => (n) => - n instanceof Nt.zr || (e(n) && t("null", n)) + n instanceof Nt.zr || (e(n) && t("null", n)), ), bs = ds( ({ hasBasicElementProps: e, primitiveEq: t }) => (n) => - n instanceof Nt.hh || (e(n) && t("boolean", n)) + n instanceof Nt.hh || (e(n) && t("boolean", n)), ), ws = ds( ({ hasBasicElementProps: e, primitiveEq: t, hasMethod: n }) => @@ -18479,7 +18486,7 @@ t("object", r) && n("keys", r) && n("values", r) && - n("items", r)) + n("items", r)), ), Es = ds( ({ hasBasicElementProps: e, primitiveEq: t, hasMethod: n }) => @@ -18490,43 +18497,44 @@ n("push", r) && n("unshift", r) && n("map", r) && - n("reduce", r)) + n("reduce", r)), ), xs = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Nt.c6 || (e(r) && t("member", r) && n(void 0, r)) + r instanceof Nt.c6 || (e(r) && t("member", r) && n(void 0, r)), ), Ss = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Nt.EA || (e(r) && t("link", r) && n(void 0, r)) + r instanceof Nt.EA || (e(r) && t("link", r) && n(void 0, r)), ), _s = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Nt.tK || (e(r) && t("ref", r) && n(void 0, r)) + r instanceof Nt.tK || (e(r) && t("ref", r) && n(void 0, r)), ), js = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Tt || (e(r) && t("annotation", r) && n("array", r)) + r instanceof Tt || + (e(r) && t("annotation", r) && n("array", r)), ), Os = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Mt || (e(r) && t("comment", r) && n("string", r)) + r instanceof Mt || (e(r) && t("comment", r) && n("string", r)), ), ks = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Vo || - (e(r) && t("parseResult", r) && n("array", r)) + (e(r) && t("parseResult", r) && n("array", r)), ), As = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Jo || (e(r) && t("sourceMap", r) && n("array", r)) + r instanceof Jo || (e(r) && t("sourceMap", r) && n("array", r)), ), Cs = (e) => fs("object", e) || @@ -18545,7 +18553,7 @@ null === (n = t.get) || void 0 === n ? void 0 - : n.call(t, "sourceMap") + : n.call(t, "sourceMap"), ); }, Ns = (e, t) => { @@ -18624,13 +18632,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : Js(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -18727,7 +18735,7 @@ nodeTypeGetter: l = ni, nodePredicate: c = ri, detectCycles: u = !0, - } = {} + } = {}, ) => { const p = n || {}; let h, @@ -18755,7 +18763,7 @@ ? E.slice() : Object.create( Object.getPrototypeOf(E), - Object.getOwnPropertyDescriptors(E) + Object.getOwnPropertyDescriptors(E), ); let e = 0; for (let t = 0; t < y.length; t += 1) { @@ -18831,7 +18839,7 @@ nodeTypeGetter: l = ni, nodePredicate: c = ri, detectCycles: u = !0, - } = {} + } = {}, ) => { const p = n || {}; let h, @@ -18859,7 +18867,7 @@ ? E.slice() : Object.create( Object.getPrototypeOf(E), - Object.getOwnPropertyDescriptors(E) + Object.getOwnPropertyDescriptors(E), ); let e = 0; for (let t = 0; t < y.length; t += 1) { @@ -18948,7 +18956,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -19021,20 +19029,20 @@ return si( e, t, - ci({ keyMap: r, nodeTypeGetter: ui, nodePredicate: pi }, o) + ci({ keyMap: r, nodeTypeGetter: ui, nodePredicate: pi }, o), ); }; di[Symbol.for("nodejs.util.promisify.custom")] = async ( e, t, - n = {} + n = {}, ) => { let { keyMap: r = hi } = n, o = Ys(n, ai); return si[Symbol.for("nodejs.util.promisify.custom")]( e, t, - ci({ keyMap: r, nodeTypeGetter: ui, nodePredicate: pi }, o) + ci({ keyMap: r, nodeTypeGetter: ui, nodePredicate: pi }, o), ); }; const mi = (e, t, n = {}) => { @@ -19074,7 +19082,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -19129,7 +19137,7 @@ const r = n.get(e); ws(r) && (r.content = r.map((o, s, i) => - i === e ? (n.delete(e), n.set(t, r), t) : i + i === e ? (n.delete(e), n.set(t, r), t) : i, )); })(n, r, t) : Es(s) @@ -19137,7 +19145,7 @@ const r = n.get(e); Es(r) && (r.content = r.map((o) => - o === e ? (n.delete(e), n.set(t, r), t) : o + o === e ? (n.delete(e), n.set(t, r), t) : o, )); })(n, r, t) : xs(s) && @@ -19180,7 +19188,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -19190,7 +19198,7 @@ "string" == typeof (null == e ? void 0 : e.type) ? e.type : ui(e), Ai = Oi( { EphemeralObject: ["content"], EphemeralArray: ["content"] }, - hi + hi, ), Ci = (e, t, n = {}) => { let { keyMap: r = Ai } = n, @@ -19207,8 +19215,8 @@ deleteNodeSymbol: Symbol.for("delete-node"), skipVisitingNodeSymbol: Symbol.for("skip-visiting-node"), }, - o - ) + o, + ), ); }; Ci[Symbol.for("nodejs.util.promisify.custom")] = async (e, t = {}) => { @@ -19226,8 +19234,8 @@ deleteNodeSymbol: Symbol.for("delete-node"), skipVisitingNodeSymbol: Symbol.for("skip-visiting-node"), }, - r - ) + r, + ), ); }; const Pi = class { @@ -19259,7 +19267,7 @@ toObject() { return Object.assign( this.reference, - Object.fromEntries(this.content) + Object.fromEntries(this.content), ); } }, @@ -19310,7 +19318,7 @@ var Fi = Yt(1, Di); var Li = ur( ns(Number.isFinite) ? Yt(1, qn(Number.isFinite, Number)) : Fi, - br(fn, [Math.floor, to]) + br(fn, [Math.floor, to]), ); var Bi = Yt(1, Li); const $i = ns(Number.isInteger) @@ -19328,7 +19336,7 @@ "function" == typeof Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : (this.stack = new Error( - `Invalid $ref pointer "${e}". Pointers must begin with "/"` + `Invalid $ref pointer "${e}". Pointers must begin with "/"`, ).stack); } } @@ -20634,13 +20642,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : nl(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -20652,7 +20660,7 @@ MediaElement: ["content"], LinkDescriptionElement: ["content"], }, - hi + hi, ); function sl(e, t) { var n = Object.keys(e); @@ -20679,7 +20687,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -20697,7 +20705,7 @@ retrieveFixedFields(e) { return yr( po(["visitors", ...e, "fixedFields"]), - cn + cn, )(this.specObj); }, retrieveVisitor(e) { @@ -20715,7 +20723,7 @@ return ( Uo(this.fallbackVisitorPrototype) && (this.fallbackVisitorPrototype = Object.getPrototypeOf( - this.retrieveVisitorInstance(["value"]) + this.retrieveVisitorInstance(["value"]), )), this.fallbackVisitorPrototype === o ? t.clone() @@ -20746,7 +20754,7 @@ ) { const n = this.toRefractedElement( [...t, "fixedFields", r.toValue()], - e + e, ), s = new Nt.c6(r.clone(), n); this.copyMetaAndAttributes(o, s), @@ -21027,7 +21035,7 @@ e.forEach((e) => { const t = this.toRefractedElement( ["document", "objects", "LinkDescription"], - e + e, ); this.element.push(t); }), @@ -21093,7 +21101,7 @@ })(e) || (function () { throw new TypeError( - "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." + "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.", ); })() ); @@ -21107,10 +21115,10 @@ Io( pr(function (e, t) { return e.length > t.length; - }) + }), ), Yr, - Rn("length") + Rn("length"), ), oc = kr(function (e, t, n) { var r = n.apply(void 0, tc(e)); @@ -21130,14 +21138,14 @@ return Kn(oc(n), void 0, e); }); }, - qo + qo, ), ic = Xs(al, { props: { alternator: [] }, methods: { enter(e) { const t = this.alternator.map(({ predicate: e, specPath: t }) => - no(e, Gn(t), qo) + no(e, Gn(t), qo), ), n = sc(t)(e); return (this.element = this.toRefractedElement(n, e)), ti; @@ -21248,24 +21256,24 @@ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Va || - (e(r) && t("JSONSchemaDraft4", r) && n("object", r)) + (e(r) && t("JSONSchemaDraft4", r) && n("object", r)), ), uc = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Ja || - (e(r) && t("JSONReference", r) && n("object", r)) + (e(r) && t("JSONReference", r) && n("object", r)), ), pc = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Ha || (e(r) && t("media", r) && n("object", r)) + r instanceof Ha || (e(r) && t("media", r) && n("object", r)), ), hc = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Za || - (e(r) && t("linkDescription", r) && n("object", r)) + (e(r) && t("linkDescription", r) && n("object", r)), ), fc = { namespace: (e) => { @@ -21304,7 +21312,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -21341,7 +21349,7 @@ ], plugins: n = [], specificationObj: r = lc, - } = {} + } = {}, ) => { const o = (0, Nt.Qc)(e), s = Ya(r), @@ -21369,18 +21377,18 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : yc(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } return e; - })({ specPath: e }, n) + })({ specPath: e }, n), ); (Va.refract = bc([ "visitors", @@ -21694,13 +21702,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : Mc(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -21736,7 +21744,7 @@ ServerVariableElement: ["content"], TagElement: ["content"], }, - hi + hi, ); function Lc(e, t) { var n = Object.keys(e); @@ -21763,7 +21771,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -21796,7 +21804,7 @@ retrieveFixedFields(e) { return yr( po(["visitors", ...e, "fixedFields"]), - cn + cn, )(this.specObj); }, retrieveVisitor(e) { @@ -21814,7 +21822,7 @@ return ( Uo(this.fallbackVisitorPrototype) && (this.fallbackVisitorPrototype = Object.getPrototypeOf( - this.retrieveVisitorInstance(["value"]) + this.retrieveVisitorInstance(["value"]), )), this.fallbackVisitorPrototype === o ? t.clone() @@ -21865,7 +21873,7 @@ ) { const n = this.toRefractedElement( [...t, "fixedFields", r.toValue()], - e + e, ), s = new Nt.c6(r.clone(), n); this.copyMetaAndAttributes(o, s), @@ -21877,7 +21885,7 @@ ) { const e = this.toRefractedElement( ["document", "extension"], - o + o, ); this.element.content.push(e); } else @@ -22054,7 +22062,7 @@ ) { const e = this.toRefractedElement( ["document", "extension"], - n + n, ); this.element.content.push(e); } else if ( @@ -22181,7 +22189,7 @@ methods: { enter(e) { const t = this.alternator.map(({ predicate: e, specPath: t }) => - no(e, Gn(t), qo) + no(e, Gn(t), qo), ), n = sc(t)(e); return (this.element = this.toRefractedElement(n, e)), ti; @@ -22191,49 +22199,49 @@ Bu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Zi || (e(r) && t("callback", r) && n("object", r)) + r instanceof Zi || (e(r) && t("callback", r) && n("object", r)), ), $u = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Xi || - (e(r) && t("components", r) && n("object", r)) + (e(r) && t("components", r) && n("object", r)), ), qu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof ea || (e(r) && t("contact", r) && n("object", r)) + r instanceof ea || (e(r) && t("contact", r) && n("object", r)), ), Uu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof ia || (e(r) && t("example", r) && n("object", r)) + r instanceof ia || (e(r) && t("example", r) && n("object", r)), ), zu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof la || - (e(r) && t("externalDocumentation", r) && n("object", r)) + (e(r) && t("externalDocumentation", r) && n("object", r)), ), Vu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof ua || (e(r) && t("header", r) && n("object", r)) + r instanceof ua || (e(r) && t("header", r) && n("object", r)), ), Wu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof ha || (e(r) && t("info", r) && n("object", r)) + r instanceof ha || (e(r) && t("info", r) && n("object", r)), ), Ju = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof da || (e(r) && t("license", r) && n("object", r)) + r instanceof da || (e(r) && t("license", r) && n("object", r)), ), Ku = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof ga || (e(r) && t("link", r) && n("object", r)) + r instanceof ga || (e(r) && t("link", r) && n("object", r)), ), Hu = (e) => { if (!Ku(e)) return !1; @@ -22244,33 +22252,35 @@ Gu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof _a || (e(r) && t("openapi", r) && n("string", r)) + r instanceof _a || (e(r) && t("openapi", r) && n("string", r)), ), Zu = ds( ({ - hasBasicElementProps: e, - isElementType: t, - primitiveEq: n, - hasClass: r, - }) => + hasBasicElementProps: e, + isElementType: t, + primitiveEq: n, + hasClass: r, + }) => (o) => o instanceof Oa || - (e(o) && t("openApi3_0", o) && n("object", o) && r("api", o)) + (e(o) && t("openApi3_0", o) && n("object", o) && r("api", o)), ), Yu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Aa || (e(r) && t("operation", r) && n("object", r)) + r instanceof Aa || + (e(r) && t("operation", r) && n("object", r)), ), Xu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Pa || (e(r) && t("parameter", r) && n("object", r)) + r instanceof Pa || + (e(r) && t("parameter", r) && n("object", r)), ), Qu = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Ia || (e(r) && t("pathItem", r) && n("object", r)) + r instanceof Ia || (e(r) && t("pathItem", r) && n("object", r)), ), ep = (e) => { if (!Qu(e)) return !1; @@ -22281,12 +22291,13 @@ tp = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Ra || (e(r) && t("paths", r) && n("object", r)) + r instanceof Ra || (e(r) && t("paths", r) && n("object", r)), ), np = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Da || (e(r) && t("reference", r) && n("object", r)) + r instanceof Da || + (e(r) && t("reference", r) && n("object", r)), ), rp = (e) => { if (!np(e)) return !1; @@ -22298,45 +22309,47 @@ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof La || - (e(r) && t("requestBody", r) && n("object", r)) + (e(r) && t("requestBody", r) && n("object", r)), ), sp = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof $a || (e(r) && t("response", r) && n("object", r)) + r instanceof $a || (e(r) && t("response", r) && n("object", r)), ), ip = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Ua || (e(r) && t("responses", r) && n("object", r)) + r instanceof Ua || + (e(r) && t("responses", r) && n("object", r)), ), ap = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof wc || (e(r) && t("schema", r) && n("object", r)) + r instanceof wc || (e(r) && t("schema", r) && n("object", r)), ), lp = (e) => bs(e) && e.classes.includes("boolean-json-schema"), cp = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof xc || - (e(r) && t("securityRequirement", r) && n("object", r)) + (e(r) && t("securityRequirement", r) && n("object", r)), ), up = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Oc || (e(r) && t("server", r) && n("object", r)) + r instanceof Oc || (e(r) && t("server", r) && n("object", r)), ), pp = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Ac || - (e(r) && t("serverVariable", r) && n("object", r)) + (e(r) && t("serverVariable", r) && n("object", r)), ), hp = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof va || (e(r) && t("mediaType", r) && n("object", r)) + r instanceof va || + (e(r) && t("mediaType", r) && n("object", r)), ), fp = Xs(Lu, Yc, { props: { @@ -22355,7 +22368,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "schema" + "schema", ), t ); @@ -22438,7 +22451,7 @@ if (ws(e)) { const t = this.toRefractedElement( ["document", "objects", "SecurityRequirement"], - e + e, ); this.element.push(t); } else this.element.push(e.clone()); @@ -22546,7 +22559,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "schema" + "schema", ), t ); @@ -22586,7 +22599,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "schema" + "schema", ), t ); @@ -22719,7 +22732,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "schema" + "schema", ), t ); @@ -22780,7 +22793,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "schema" + "schema", ), t ); @@ -22789,12 +22802,12 @@ }), Nh = Object.fromEntries( Object.entries( - lc.visitors.document.objects.JSONSchema.fixedFields + lc.visitors.document.objects.JSONSchema.fixedFields, ).map(([e, t]) => t === lc.visitors.JSONSchemaOrJSONReferenceVisitor ? [e, Ph] - : [e, t] - ) + : [e, t], + ), ), Ih = Xs(Zc, Yc, { props: { @@ -23444,7 +23457,7 @@ ? ["document", "objects", "Reference"] : ["document", "objects", "Response"], fieldPatternPredicate: Mo( - new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Ao(100, 600).join("|")})$`) + new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Ao(100, 600).join("|")})$`), ), canSupportSpecificationExtensions: !0, }, @@ -23489,12 +23502,12 @@ np(this.element) ? this.element.setMetaProperty( "referenced-element", - "response" + "response", ) : sp(this.element) && this.element.setMetaProperty( "http-status-code", - "default" + "default", ), t ); @@ -23584,7 +23597,7 @@ np(this.element) && this.element.setMetaProperty( "referenced-element", - "requestBody" + "requestBody", ), t ); @@ -23828,7 +23841,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -23861,7 +23874,7 @@ }, example: kh, deprecated: Ah, - } + }, ), }, dm = { @@ -24197,7 +24210,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -24233,7 +24246,7 @@ "$visitor", ], plugins: n = [], - } = {} + } = {}, ) => { const r = (0, Nt.Qc)(e), o = Ya(dm), @@ -24261,18 +24274,18 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : bm(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } return e; - })({ specPath: e }, n) + })({ specPath: e }, n), ); (Zi.refract = Em([ "visitors", @@ -24536,7 +24549,7 @@ Qo( Nm, "default", - new Nm("https://spec.openapis.org/oas/3.1/dialect/base") + new Nm("https://spec.openapis.org/oas/3.1/dialect/base"), ); const Im = Nm; const Tm = class extends da { @@ -25310,55 +25323,55 @@ Dg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof xm || (e(r) && t("callback", r) && n("object", r)) + r instanceof xm || (e(r) && t("callback", r) && n("object", r)), ), Fg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Sm || - (e(r) && t("components", r) && n("object", r)) + (e(r) && t("components", r) && n("object", r)), ), Lg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof _m || (e(r) && t("contact", r) && n("object", r)) + r instanceof _m || (e(r) && t("contact", r) && n("object", r)), ), Bg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof km || (e(r) && t("example", r) && n("object", r)) + r instanceof km || (e(r) && t("example", r) && n("object", r)), ), $g = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Am || - (e(r) && t("externalDocumentation", r) && n("object", r)) + (e(r) && t("externalDocumentation", r) && n("object", r)), ), qg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Cm || (e(r) && t("header", r) && n("object", r)) + r instanceof Cm || (e(r) && t("header", r) && n("object", r)), ), Ug = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Pm || (e(r) && t("info", r) && n("object", r)) + r instanceof Pm || (e(r) && t("info", r) && n("object", r)), ), zg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Im || - (e(r) && t("jsonSchemaDialect", r) && n("string", r)) + (e(r) && t("jsonSchemaDialect", r) && n("string", r)), ), Vg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Tm || (e(r) && t("license", r) && n("object", r)) + r instanceof Tm || (e(r) && t("license", r) && n("object", r)), ), Wg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Rm || (e(r) && t("link", r) && n("object", r)) + r instanceof Rm || (e(r) && t("link", r) && n("object", r)), ), Jg = (e) => { if (!Wg(e)) return !1; @@ -25369,33 +25382,35 @@ Kg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Lm || (e(r) && t("openapi", r) && n("string", r)) + r instanceof Lm || (e(r) && t("openapi", r) && n("string", r)), ), Hg = ds( ({ - hasBasicElementProps: e, - isElementType: t, - primitiveEq: n, - hasClass: r, - }) => + hasBasicElementProps: e, + isElementType: t, + primitiveEq: n, + hasClass: r, + }) => (o) => o instanceof $m || - (e(o) && t("openApi3_1", o) && n("object", o) && r("api", o)) + (e(o) && t("openApi3_1", o) && n("object", o) && r("api", o)), ), Gg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof qm || (e(r) && t("operation", r) && n("object", r)) + r instanceof qm || + (e(r) && t("operation", r) && n("object", r)), ), Zg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Um || (e(r) && t("parameter", r) && n("object", r)) + r instanceof Um || + (e(r) && t("parameter", r) && n("object", r)), ), Yg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof zm || (e(r) && t("pathItem", r) && n("object", r)) + r instanceof zm || (e(r) && t("pathItem", r) && n("object", r)), ), Xg = (e) => { if (!Yg(e)) return !1; @@ -25406,12 +25421,13 @@ Qg = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Vm || (e(r) && t("paths", r) && n("object", r)) + r instanceof Vm || (e(r) && t("paths", r) && n("object", r)), ), ey = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Jm || (e(r) && t("reference", r) && n("object", r)) + r instanceof Jm || + (e(r) && t("reference", r) && n("object", r)), ), ty = (e) => { if (!ey(e)) return !1; @@ -25423,45 +25439,47 @@ ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Km || - (e(r) && t("requestBody", r) && n("object", r)) + (e(r) && t("requestBody", r) && n("object", r)), ), ry = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Hm || (e(r) && t("response", r) && n("object", r)) + r instanceof Hm || (e(r) && t("response", r) && n("object", r)), ), oy = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Gm || (e(r) && t("responses", r) && n("object", r)) + r instanceof Gm || + (e(r) && t("responses", r) && n("object", r)), ), sy = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Ym || (e(r) && t("schema", r) && n("object", r)) + r instanceof Ym || (e(r) && t("schema", r) && n("object", r)), ), iy = (e) => bs(e) && e.classes.includes("boolean-json-schema"), ay = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof Xm || - (e(r) && t("securityRequirement", r) && n("object", r)) + (e(r) && t("securityRequirement", r) && n("object", r)), ), ly = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof eg || (e(r) && t("server", r) && n("object", r)) + r instanceof eg || (e(r) && t("server", r) && n("object", r)), ), cy = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => r instanceof tg || - (e(r) && t("serverVariable", r) && n("object", r)) + (e(r) && t("serverVariable", r) && n("object", r)), ), uy = ds( ({ hasBasicElementProps: e, isElementType: t, primitiveEq: n }) => (r) => - r instanceof Mm || (e(r) && t("mediaType", r) && n("object", r)) + r instanceof Mm || + (e(r) && t("mediaType", r) && n("object", r)), ), py = Xs({ props: { parent: null }, @@ -25488,7 +25506,7 @@ ? this.openApiSemanticElement.jsonSchemaDialect.toValue() : null !== this.openApiGenericElement && gs( - this.openApiGenericElement.get("jsonSchemaDialect") + this.openApiGenericElement.get("jsonSchemaDialect"), ) ? this.openApiGenericElement .get("jsonSchemaDialect") @@ -25509,7 +25527,7 @@ : n.toValue(), null === (r = this.parent.$schema) || void 0 === r ? void 0 - : r.toValue() + : r.toValue(), ); this.element.setMetaProperty("inherited$schema", e); } @@ -25540,7 +25558,7 @@ (this.element.classes.push("reference-element"), this.element.setMetaProperty( "referenced-element", - "schema" + "schema", )), r ); @@ -25601,7 +25619,7 @@ if (ws(e)) { const t = this.toRefractedElement( ["document", "objects", "Schema"], - e + e, ); this.element.push(t); } else { @@ -25627,7 +25645,7 @@ if (ws(e)) { const t = this.toRefractedElement( ["document", "objects", "Schema"], - e + e, ); this.element.push(t); } else { @@ -25653,7 +25671,7 @@ if (ws(e)) { const t = this.toRefractedElement( ["document", "objects", "Schema"], - e + e, ); this.element.push(t); } else { @@ -25686,7 +25704,7 @@ if (ws(e)) { const t = this.toRefractedElement( ["document", "objects", "Schema"], - e + e, ); this.element.push(t); } else { @@ -26702,13 +26720,13 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : Vv(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -26744,7 +26762,7 @@ ServerVariableElement: ["content"], TagElement: ["content"], }, - hi + hi, ), Kv = { namespace: (e) => { @@ -26811,7 +26829,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -26828,7 +26846,7 @@ isArrayElement: Es, isObjectElement: ws, includesClasses: Is, - } + }, ), namespace: e, }; @@ -26856,7 +26874,7 @@ "$visitor", ], plugins: n = [], - } = {} + } = {}, ) => { const r = (0, Nt.Qc)(e), o = Ya(zv), @@ -26884,18 +26902,18 @@ : Object.getOwnPropertyDescriptors ? Object.defineProperties( e, - Object.getOwnPropertyDescriptors(n) + Object.getOwnPropertyDescriptors(n), ) : Yv(Object(n)).forEach(function (t) { Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } return e; - })({ specPath: e }, n) + })({ specPath: e }, n), ); (xm.refract = Qv([ "visitors", @@ -27157,7 +27175,7 @@ const nb = new tb( "application/vnd.oai.openapi;version=3.1.0", "application/vnd.oai.openapi+json;version=3.1.0", - "application/vnd.oai.openapi+yaml;version=3.1.0" + "application/vnd.oai.openapi+yaml;version=3.1.0", ); var rb = n(34155), ob = kr(function (e, t) { @@ -27175,7 +27193,7 @@ !(function (e, t, n) { if (null == n || null == e || null == t) throw TypeError( - "Input values must not be `null` or `undefined`" + "Input values must not be `null` or `undefined`", ); })(e, t, n), cb(n, "str"), @@ -27189,7 +27207,7 @@ ) ) throw TypeError( - "`searchValue` must be a string or an regexp" + "`searchValue` must be a string or an regexp", ); })(e); var r = new RegExp(ab(e) ? e : lb(e), "g"); @@ -27452,7 +27470,7 @@ const t = new e.constructor( e.content, e.meta.clone(), - e.attributes + e.attributes, ); t.classes.push("result"), (n = new Vo([t])), (r = !0); } @@ -27577,7 +27595,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -27613,8 +27631,8 @@ return !t.allowEmpty && n.isEmpty ? Promise.reject( new Fb( - `Error while parsing file "${e.uri}". File is empty.` - ) + `Error while parsing file "${e.uri}". File is empty.`, + ), ) : n; } catch (t) { @@ -27713,7 +27731,7 @@ ...n, t.$id.toValue(), ]); - })(r, e) === r + })(r, e) === r, ); if (Uo(s)) throw new nw(`Evaluation failed on URI: "${e}"`); let i, a; @@ -27747,7 +27765,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -27787,7 +27805,7 @@ async toReference(e) { if (this.reference.depth >= this.options.resolve.maxDepth) throw new Gb( - `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"` + `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`, ); const t = this.toBaseURI(e), { refSet: n } = this.reference; @@ -27801,10 +27819,10 @@ parse: mw( mw({}, this.options.parse), {}, - { mediaType: "text/plain" } + { mediaType: "text/plain" }, ), - } - ) + }, + ), ), o = jb({ uri: t, value: r, depth: this.reference.depth + 1 }); return n.add(o), o; @@ -27841,7 +27859,7 @@ ) { if (gs(e.operationRef) && gs(e.operationId)) throw new Error( - "LinkElement operationRef and operationId are mutually exclusive." + "LinkElement operationRef and operationId are mutually exclusive.", ); if (Jg(e)) { var t; @@ -27862,7 +27880,7 @@ return; if (e.hasKey("value") && gs(e.externalValue)) throw new Error( - "ExampleElement value and externalValue fields are mutually exclusive." + "ExampleElement value and externalValue fields are mutually exclusive.", ); const n = null === (t = e.externalValue) || void 0 === t @@ -27900,7 +27918,7 @@ const n = await this.toReference(e.$ref.toValue()); this.indirections.push(e); const r = Hi( - null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue() + null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue(), ); let o = Ki(r, n.value.result); if (Cs(o)) { @@ -27918,7 +27936,7 @@ this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); const s = yw({ reference: n, @@ -27935,20 +27953,20 @@ const n = await this.toReference(e.$ref.toValue()); this.indirections.push(e); const r = Hi( - null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue() + null === (t = e.$ref) || void 0 === t ? void 0 : t.toValue(), ); let o = Ki(r, n.value.result); if ( (Cs(o) && (o = zm.refract(o)), this.indirections.includes(o)) ) throw new Error( - "Recursive Path Item Object reference detected" + "Recursive Path Item Object reference detected", ); if ( this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); const s = yw({ reference: n, @@ -27996,7 +28014,7 @@ this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); const c = yw({ reference: t, @@ -28034,7 +28052,7 @@ : Hg( null === (t = e.parseResult) || void 0 === t ? void 0 - : t.result + : t.result, ); }, async resolve(e, t) { @@ -28087,7 +28105,8 @@ if (void 0 === e.operationId) return; const n = String(Ri(e.operationId)), r = o.find( - (e) => Ri(e.meta.get("originalOperationId")) === n + (e) => + Ri(e.meta.get("originalOperationId")) === n, ); void 0 !== r && ((e.operationId = @@ -28192,7 +28211,7 @@ void 0 === n.security && void 0 !== t && (n.security = new Pd( - null === (a = t) || void 0 === a ? void 0 : a.content + null === (a = t) || void 0 === a ? void 0 : a.content, )); }, }, @@ -28450,8 +28469,8 @@ f()( f()({}, n), {}, - { headers: new Headers(n.headers) } - ) + { headers: new Headers(n.headers) }, + ), )), n.headers.delete("Content-Type"); } @@ -28461,8 +28480,8 @@ redirects: i, follow: a, }, - this.swaggerHTTPClientConfig - ) + this.swaggerHTTPClientConfig, + ), ) ).text.arrayBuffer(); } catch (t) { @@ -28498,7 +28517,7 @@ async parse(e) { if (this.sourceMap) throw new Fb( - "json-swagger-client parser plugin doesn't support sourceMaps option" + "json-swagger-client parser plugin doesn't support sourceMaps option", ); const t = new Vo(), n = e.toString(); @@ -28537,7 +28556,7 @@ async parse(e) { if (this.sourceMap) throw new Fb( - "yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option" + "yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option", ); const t = new Vo(), n = e.toString(); @@ -28558,7 +28577,7 @@ fileExtensions: [".json"], mediaTypes: new tb( ...nb.filterByFormat("generic"), - ...nb.filterByFormat("json") + ...nb.filterByFormat("json"), ), detectionRegExp: /"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))"/, @@ -28583,7 +28602,7 @@ async parse(e) { if (this.sourceMap) throw new Fb( - "openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option" + "openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option", ); const t = new Vo(), n = e.toString(); @@ -28604,7 +28623,7 @@ fileExtensions: [".yaml", ".yml"], mediaTypes: new tb( ...nb.filterByFormat("generic"), - ...nb.filterByFormat("yaml") + ...nb.filterByFormat("yaml"), ), detectionRegExp: /(?^(["']?)openapi\2\s*:\s*(["']?)(?3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?"openapi"\s*:\s*"(?3\.1\.(?:[1-9]\d*|0))")/m, @@ -28629,7 +28648,7 @@ async parse(e) { if (this.sourceMap) throw new Fb( - "openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option" + "openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option", ); const t = new Vo(), n = e.toString(); @@ -28678,7 +28697,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -28717,7 +28736,7 @@ async toReference(e) { if (this.reference.depth >= this.options.resolve.maxDepth) throw new Gb( - `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"` + `Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`, ); const t = this.toBaseURI(e), { refSet: n } = this.reference; @@ -28731,10 +28750,10 @@ parse: qw( qw({}, this.options.parse), {}, - { mediaType: "text/plain" } + { mediaType: "text/plain" }, ), - } - ) + }, + ), ), o = jb({ uri: t, value: r, depth: this.reference.depth + 1 }); return n.add(o), o; @@ -28745,12 +28764,16 @@ if (u.some((t) => t.has(e))) return !1; if (!this.options.resolve.external && ty(e)) return !1; const h = await this.toReference( - null === (s = e.$ref) || void 0 === s ? void 0 : s.toValue() + null === (s = e.$ref) || void 0 === s + ? void 0 + : s.toValue(), ), { uri: f } = h, d = Eb( f, - null === (i = e.$ref) || void 0 === i ? void 0 : i.toValue() + null === (i = e.$ref) || void 0 === i + ? void 0 + : i.toValue(), ); this.indirections.push(e); const m = Hi(d); @@ -28770,7 +28793,7 @@ this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); p.add(e); const y = zw({ @@ -28815,12 +28838,16 @@ if (l.some((t) => t.has(e))) return !1; if (!this.options.resolve.external && Xg(e)) return; const u = await this.toReference( - null === (s = e.$ref) || void 0 === s ? void 0 : s.toValue() + null === (s = e.$ref) || void 0 === s + ? void 0 + : s.toValue(), ), { uri: p } = u, h = Eb( p, - null === (i = e.$ref) || void 0 === i ? void 0 : i.toValue() + null === (i = e.$ref) || void 0 === i + ? void 0 + : i.toValue(), ); this.indirections.push(e); const f = Hi(h); @@ -28829,13 +28856,13 @@ (Cs(d) && (d = zm.refract(d)), this.indirections.includes(d)) ) throw new Error( - "Recursive Path Item Object reference detected" + "Recursive Path Item Object reference detected", ); if ( this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); c.add(e); const m = zw({ @@ -28851,7 +28878,7 @@ const g = new zm( [...d.content], d.meta.clone(), - d.attributes.clone() + d.attributes.clone(), ); return ( e.forEach((e, t, n) => { @@ -28873,7 +28900,7 @@ if (!this.options.resolve.external && Jg(e)) return; if (gs(e.operationRef) && gs(e.operationId)) throw new Error( - "LinkElement operationRef and operationId fields are mutually exclusive." + "LinkElement operationRef and operationId fields are mutually exclusive.", ); let t; if (gs(e.operationRef)) { @@ -28881,19 +28908,19 @@ const s = Hi( null === (n = e.operationRef) || void 0 === n ? void 0 - : n.toValue() + : n.toValue(), ), i = await this.toReference( null === (r = e.operationRef) || void 0 === r ? void 0 - : r.toValue() + : r.toValue(), ); (t = Ki(s, i.value.result)), Cs(t) && (t = qm.refract(t)), (t = new qm( [...t.content], t.meta.clone(), - t.attributes.clone() + t.attributes.clone(), )), t.setMetaProperty("ref-origin", i.uri), null === (o = e.operationRef) || @@ -28909,12 +28936,12 @@ if ( ((t = rw( (e) => Gg(e) && e.operationId.equals(n), - r.value.result + r.value.result, )), Uo(t)) ) throw new Error( - `OperationElement(operationId=${n}) not found.` + `OperationElement(operationId=${n}) not found.`, ); null === (i = e.operationId) || void 0 === i || @@ -28928,17 +28955,17 @@ return; if (e.hasKey("value") && gs(e.externalValue)) throw new Error( - "ExampleElement value and externalValue fields are mutually exclusive." + "ExampleElement value and externalValue fields are mutually exclusive.", ); const n = await this.toReference( null === (t = e.externalValue) || void 0 === t ? void 0 - : t.toValue() + : t.toValue(), ), r = new n.value.result.constructor( n.value.result.content, n.value.result.meta.clone(), - n.value.result.attributes.clone() + n.value.result.attributes.clone(), ); r.setMetaProperty("ref-origin", n.uri), (e.value = r); }, @@ -28984,7 +29011,7 @@ this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); a.add(e); const y = zw({ @@ -29016,7 +29043,7 @@ const b = new Ym( [...g.content], g.meta.clone(), - g.attributes.clone() + g.attributes.clone(), ); return ( e.forEach((e, t, n) => { @@ -29049,7 +29076,7 @@ : Hg( null === (t = e.parseResult) || void 0 === t ? void 0 - : t.result + : t.result, ); }, async dereference(e, t) { @@ -29138,7 +29165,7 @@ this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); if (!this.useCircularStructures) { if (t.some((e) => e.has(c))) { @@ -29146,7 +29173,7 @@ const t = new Jm( { $ref: a }, e.meta.clone(), - e.attributes.clone() + e.attributes.clone(), ); return t.get("$ref").classes.push("cycle"), t; } @@ -29197,7 +29224,7 @@ fullPath: this.basePath ?? [...Hw([...o, n, e]), "$ref"], }); return void this.options.dereference.dereferenceOpts?.errors?.push?.( - s + s, ); } }, @@ -29223,7 +29250,7 @@ this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); if (!this.useCircularStructures) { if (t.some((e) => e.has(c))) { @@ -29231,7 +29258,7 @@ const t = new zm( { $ref: a }, e.meta.clone(), - e.attributes.clone() + e.attributes.clone(), ); return t.get("$ref").classes.push("cycle"), t; } @@ -29255,7 +29282,7 @@ const p = new zm( [...c.content], c.meta.clone(), - c.attributes.clone() + c.attributes.clone(), ); if ( (e.forEach((e, t, n) => { @@ -29281,7 +29308,7 @@ fullPath: this.basePath ?? [...Hw([...o, n, e]), "$ref"], }); return void this.options.dereference.dereferenceOpts?.errors?.push?.( - s + s, ); } }, @@ -29297,7 +29324,7 @@ l = bb(a), c = Nb({ uri: l }), u = !this.options.resolve.resolvers.some((e) => - e.canRead(c) + e.canRead(c), ), p = !u, h = p && i !== l; @@ -29326,13 +29353,13 @@ } if (this.indirections.includes(f)) throw new Error( - "Recursive Schema Object reference detected" + "Recursive Schema Object reference detected", ); if ( this.indirections.length > this.options.dereference.maxDepth ) throw new Zb( - `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"` + `Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`, ); if (!this.useCircularStructures) { if (t.some((e) => e.has(f))) { @@ -29341,7 +29368,7 @@ n = new Ym( { $ref: t }, e.meta.clone(), - e.attributes.clone() + e.attributes.clone(), ); return n.get("$ref").classes.push("cycle"), n; } @@ -29377,7 +29404,7 @@ const m = new Ym( [...f.content], f.meta.clone(), - f.attributes.clone() + f.attributes.clone(), ); if ( (e.forEach((e, t, n) => { @@ -29406,10 +29433,10 @@ "$ref", ], }, - r + r, ); return void this.options.dereference.dereferenceOpts?.errors?.push?.( - s + s, ); } }, @@ -29422,7 +29449,7 @@ t, n, r, - o + o, ); } catch (t) { const r = Gw(t), @@ -29435,7 +29462,7 @@ ], }); return void this.options.dereference.dereferenceOpts?.errors?.push?.( - s + s, ); } }, @@ -29474,7 +29501,7 @@ const t = new Error(e, { cause: e }); (t.fullPath = Hw([...o, n])), this.options.dereference.dereferenceOpts?.errors?.push?.( - t + t, ); } }, @@ -29502,7 +29529,7 @@ const r = new Error(t, { cause: t }); (r.fullPath = [...Hw([...o, n, e]), "properties"]), this.options.dereference.dereferenceOpts?.errors?.push?.( - r + r, ); } }); @@ -29535,7 +29562,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -29627,7 +29654,7 @@ return ( (t.fullPath = [...Hw([...o, n, e]), "allOf"]), void this.options.dereference.dereferenceOpts?.errors?.push?.( - t + t, ) ); } @@ -29635,16 +29662,16 @@ return new Ym( e.content.filter((e) => "allOf" !== e.key.toValue()), e.meta.clone(), - e.attributes.clone() + e.attributes.clone(), ); if (!e.allOf.content.every(sy)) { const t = new TypeError( - "Elements in allOf must be objects" + "Elements in allOf must be objects", ); return ( (t.fullPath = [...Hw([...o, n, e]), "allOf"]), void this.options.dereference.dereferenceOpts?.errors?.push?.( - t + t, ) ); } @@ -29812,7 +29839,7 @@ dereferenceOpts: { errors: O }, }, }), - v + v, ), A = c ? k : Iw(k); return { spec: Ri(A), errors: O }; @@ -30271,8 +30298,8 @@ securities: l, http: u, }, - c - ) + c, + ), ); return ( p.body && @@ -30343,7 +30370,7 @@ if (!o || "object" != typeof o) return !1; const s = o.operationId; return [(0, He.Z)(o, n, r), $E(n, r), s].some( - (e) => e && e === t + (e) => e && e === t, ); }) : null; @@ -30452,7 +30479,7 @@ ? (r = e && e.name && m[`${e.in}.${e.name}`]) : VE(e.name, _).length > 1 && console.warn( - `Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.` + `Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`, ), null !== r) ) { @@ -30471,7 +30498,7 @@ r = JSON.parse(r); } catch (e) { throw new Error( - "Could not parse object parameter value string as JSON" + "Could not parse object parameter value string as JSON", ); } n && n({ req: v, parameter: e, value: r, operation: w, spec: t }); @@ -30528,8 +30555,8 @@ f()( f()({}, p), {}, - { spec: h, allowMetaPatches: !0, skipNormalization: !0 } - ) + { spec: h, allowMetaPatches: !0, skipNormalization: !0 }, + ), ); return ( !r && @@ -30689,7 +30716,7 @@ t, n, r, - { areStatesEqual: o, areOwnPropsEqual: s, areStatePropsEqual: i } + { areStatesEqual: o, areOwnPropsEqual: s, areStatePropsEqual: i }, ) { let a, l, @@ -30777,7 +30804,7 @@ throw new Error( `Invalid value of type ${typeof e} for ${t} argument when connecting component ${ r.wrappedComponentName - }.` + }.`, ); }; } @@ -30907,7 +30934,7 @@ areMergedPropsEqual: l = M, forwardRef: c = !1, context: u = y, - } = {} + } = {}, ) { const p = u, h = (function (e) { @@ -30927,7 +30954,7 @@ "function" == typeof o && (n[r] = (...e) => t(o(...e))); } return n; - })(e, t) + })(e, t), ) : e ? "function" == typeof e @@ -30941,7 +30968,7 @@ ? (function (e) { return function ( t, - { displayName: n, areMergedPropsEqual: r } + { displayName: n, areMergedPropsEqual: r }, ) { let o, s = !1; @@ -30986,7 +31013,7 @@ (0, S.isContextConsumer)(a.createElement(n.Consumer, null)) ? n : p, - [n, p] + [n, p], ), l = a.useContext(i), c = @@ -31007,7 +31034,7 @@ s = (0, w.Z)(t, _); return j(n(e, s), r(e, s), o(e, s), e, s); })(h.dispatch, r), - [h] + [h], ), [g, y] = a.useMemo(() => { if (!m) return L; @@ -31017,7 +31044,7 @@ }, [h, c, l]), v = a.useMemo( () => (c ? l : (0, b.Z)({}, l, { subscription: g })), - [c, l, g] + [c, l, g], ), E = a.useRef(), x = a.useRef(s), @@ -31032,14 +31059,14 @@ A.current = !1; } ), - [] + [], ); const P = a.useMemo( () => () => O.current && s === x.current ? O.current : d(h.getState(), s), - [h, s] + [h, s], ), N = a.useMemo( () => (e) => @@ -31081,7 +31108,7 @@ ); })(m, h, g, d, x, E, k, A, O, y, e) : () => {}, - [g] + [g], ); var R, M, $; let q; @@ -31100,11 +31127,11 @@ }); const U = a.useMemo( () => a.createElement(e, (0, b.Z)({}, q, { ref: o })), - [o, e, q] + [o, e, q], ); return a.useMemo( () => (m ? a.createElement(i.Provider, { value: v }, U) : U), - [i, U, v] + [i, U, v], ); } const g = a.memo(u); @@ -31114,7 +31141,7 @@ const t = a.forwardRef(function (e, t) { return a.createElement( g, - (0, b.Z)({}, e, { reactReduxForwardedRef: t }) + (0, b.Z)({}, e, { reactReduxForwardedRef: t }), ); }); return (t.displayName = n), (t.WrappedComponent = e), x()(t, e); @@ -31173,7 +31200,7 @@ render() { return a.createElement( t, - o()({}, e(), this.props, this.context) + o()({}, e(), this.props, this.context), ); } } @@ -31186,7 +31213,7 @@ return a.createElement( U, { store: t }, - a.createElement(n, o()({}, this.props, this.context)) + a.createElement(n, o()({}, this.props, this.context)), ); } } @@ -31204,7 +31231,7 @@ : o.mapStateToProps) || ((e) => ({ state: e })); return i(n, s); }), - G(e) + G(e), )(t), X = (e, t, n, r) => { for (const o in t) { @@ -31243,7 +31270,8 @@ : {}; if ("string" != typeof r) throw new TypeError( - "Need a string, to fetch a component. Was given a " + typeof r + "Need a string, to fetch a component. Was given a " + + typeof r, ); const i = n(r); return i @@ -31299,7 +31327,7 @@ })(e) || (function () { throw new TypeError( - "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." + "Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.", ); })() ); @@ -31332,7 +31360,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -31549,7 +31577,7 @@ })( e.filter(function (e) { return "token" !== e; - }) + }), ).reduce(function (e, t) { return d(d({}, e), n[t]); }, t); @@ -31603,7 +31631,7 @@ w.concat( a.className.filter(function (e) { return !b.includes(e); - }) + }), ); f = d( d({}, a), @@ -31611,7 +31639,7 @@ { className: y(E) || void 0, style: g(a.className, Object.assign({}, a.style, o), n), - } + }, ); } else f = d(d({}, a), {}, { className: y(a.className) }); var x = m(t.children); @@ -31667,7 +31695,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -31698,14 +31726,14 @@ className: "react-syntax-highlighter-line-number", style: "function" == typeof r ? r(o) : r, }, - "".concat(o, "\n") + "".concat(o, "\n"), ); }); })({ lines: t.replace(/\n$/, "").split("\n"), style: i, startingLineNumber: a, - }) + }), ); } function j(e, t) { @@ -31835,9 +31863,9 @@ k({ children: [a], className: e.properties.className, - }) + }), ), - i + i, ); p.push(l); } else if (o === n.length - 1) { @@ -31912,7 +31940,7 @@ className: t ? "language-".concat(t) : void 0, style: x( x({}, o['code[class*="language-"]']), - o['code[class*="language-'.concat(t, '"]')] + o['code[class*="language-'.concat(t, '"]')], ), } : l, @@ -31980,7 +32008,7 @@ ((c.style = x( x({}, c.style), {}, - A ? { whiteSpace: "pre-wrap" } : { whiteSpace: "pre" } + A ? { whiteSpace: "pre-wrap" } : { whiteSpace: "pre" }, )), !z) ) @@ -32022,8 +32050,8 @@ $, c, !g && W, - D({ rows: Y, stylesheet: o, useInlineStyles: h }) - ) + D({ rows: Y, stylesheet: o, useInlineStyles: h }), + ), ); }); M.registerLanguage = R.registerLanguage; @@ -32392,7 +32420,7 @@ i()(Q).call(Q, e) ? X[e] : (console.warn( - `Request style '${e}' is not available, returning default instead` + `Request style '${e}' is not available, returning default instead`, ), Y); }, @@ -32548,7 +32576,7 @@ return g()((n = d()(e))).call( n, (n, r) => ((n[r] = t(e[r], r)), n), - {} + {}, ); } function de(e, t) { @@ -32559,13 +32587,13 @@ let o = t(e[r], r); return o && "object" == typeof o && v()(n, o), n; }, - {} + {}, ); } function me(e) { return (t) => { let { dispatch: n, getState: r } = t; - return (t) => (n) => "function" == typeof n ? n(e()) : t(n); + return (t) => (n) => ("function" == typeof n ? n(e()) : t(n)); }; } function ge(e) { @@ -32708,7 +32736,7 @@ if ( (u()(t).call(t, (n, r) => { h()(t).call(t, (e) => - ue(e.equals) ? e.equals(n) : e === n + ue(e.equals) ? e.equals(n) : e === n, ).size > 1 && (e = e.add(r)); }), 0 !== e.size) @@ -32768,7 +32796,7 @@ if ( ((e = e.toString().toLowerCase()), !/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test( - e + e, )) ) return "Value must be a Guid"; @@ -32862,7 +32890,7 @@ void 0 !== r && "" !== r && t.push( - [n, "=", encodeURIComponent(r).replace(/%20/g, "+")].join("") + [n, "=", encodeURIComponent(r).replace(/%20/g, "+")].join(""), ); } return t.join("&"); @@ -32885,7 +32913,7 @@ const t = O()(e).call( e, (e, t) => - A()(t).call(t, "2") && d()(e.get("content") || {}).length > 0 + A()(t).call(t, "2") && d()(e.get("content") || {}).length > 0, ), n = e.get("default") || R().OrderedMap(), r = (n.get("content") || R().OrderedMap()).keySeq().toJS().length @@ -32901,7 +32929,7 @@ Ie = (e) => h()(e).call(e, (e, t) => /^x-/.test(t)), Te = (e) => h()(e).call(e, (e, t) => - /^pattern|maxLength|minLength|maximum|minimum/.test(t) + /^pattern|maxLength|minLength|maximum|minimum/.test(t), ); function Re(e, t) { var n; @@ -32938,7 +32966,7 @@ arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; if (!R().Map.isMap(e)) throw new Error( - "paramToIdentifier: received a non-Im.Map parameter as input" + "paramToIdentifier: received a non-Im.Map parameter as input", ); const r = e.get("name"), o = e.get("in"); @@ -32960,7 +32988,7 @@ const r = Fe(e, { returnAll: !0 }); return h()((n = i()(r).call(r, (e) => t[e]))).call( n, - (e) => void 0 !== e + (e) => void 0 !== e, )[0]; } function Be() { @@ -33077,7 +33105,7 @@ "minItems", "uniqueItems", "enum", - "multipleOf" + "multipleOf", ); function u(e) { let { isOAS3: t } = @@ -33178,7 +33206,7 @@ c = new o( (function (e, t, n) { return (3 * (t + n)) / 4 - n; - })(0, i, l) + })(0, i, l), ), u = 0, p = l > 0 ? i - 4 : i; @@ -33251,7 +33279,7 @@ n[((s = o) >> 18) & 63] + n[(s >> 12) & 63] + n[(s >> 6) & 63] + - n[63 & s] + n[63 & s], ); return i.join(""); } @@ -33275,7 +33303,7 @@ function a(e) { if (e > i) throw new RangeError( - 'The value "' + e + '" is invalid for option "size"' + 'The value "' + e + '" is invalid for option "size"', ); const t = new Uint8Array(e); return Object.setPrototypeOf(t, l.prototype), t; @@ -33284,7 +33312,7 @@ if ("number" == typeof e) { if ("string" == typeof t) throw new TypeError( - 'The "string" argument must be of type string. Received type number' + 'The "string" argument must be of type string. Received type number', ); return p(e); } @@ -33313,7 +33341,7 @@ if (null == e) throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + - typeof e + typeof e, ); if (G(e, ArrayBuffer) || (e && G(e.buffer, ArrayBuffer))) return f(e, t, n); @@ -33324,7 +33352,7 @@ return f(e, t, n); if ("number" == typeof e) throw new TypeError( - 'The "value" argument must not be of type number. Received type number' + 'The "value" argument must not be of type number. Received type number', ); const r = e.valueOf && e.valueOf(); if (null != r && r !== e) return l.from(r, t, n); @@ -33347,7 +33375,7 @@ return l.from(e[Symbol.toPrimitive]("string"), t, n); throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + - typeof e + typeof e, ); } function u(e) { @@ -33355,7 +33383,7 @@ throw new TypeError('"size" argument must be of type number'); if (e < 0) throw new RangeError( - 'The value "' + e + '" is invalid for option "size"' + 'The value "' + e + '" is invalid for option "size"', ); } function p(e) { @@ -33389,7 +33417,7 @@ throw new RangeError( "Attempt to allocate Buffer larger than maximum size: 0x" + i.toString(16) + - " bytes" + " bytes", ); return 0 | e; } @@ -33399,7 +33427,7 @@ if ("string" != typeof e) throw new TypeError( 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + - typeof e + typeof e, ); const n = e.length, r = arguments.length > 2 && !0 === arguments[2]; @@ -33554,7 +33582,7 @@ })(t), e, n, - r + r, ); } function S(e, t, n, r) { @@ -33575,7 +33603,7 @@ })(t, e.length - n), e, n, - r + r, ); } function j(e, t, n) { @@ -33666,7 +33694,7 @@ "undefined" == typeof console || "function" != typeof console.error || 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." + "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.", ), Object.defineProperty(l.prototype, "parent", { enumerable: !0, @@ -33716,7 +33744,7 @@ !l.isBuffer(e) || !l.isBuffer(t)) ) throw new TypeError( - 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' + 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array', ); if (e === t) return 0; let n = e.length, @@ -33749,7 +33777,7 @@ (l.concat = function (e, t) { if (!Array.isArray(e)) throw new TypeError( - '"list" argument must be an Array of Buffers' + '"list" argument must be an Array of Buffers', ); if (0 === e.length) return l.alloc(0); let n; @@ -33766,7 +33794,7 @@ else { if (!l.isBuffer(t)) throw new TypeError( - '"list" argument must be an Array of Buffers' + '"list" argument must be an Array of Buffers', ); t.copy(r, o); } @@ -33835,7 +33863,7 @@ ) throw new TypeError( 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + - typeof e + typeof e, ); if ( (void 0 === t && (t = 0), @@ -33877,7 +33905,7 @@ else { if (!isFinite(t)) throw new Error( - "Buffer.write(string, encoding, offset[, length]) is no longer supported" + "Buffer.write(string, encoding, offset[, length]) is no longer supported", ); (t >>>= 0), isFinite(n) @@ -34174,7 +34202,7 @@ return ( (BigInt(r) << BigInt(32)) + BigInt( - t + 256 * this[++e] + 65536 * this[++e] + this[++e] * 2 ** 24 + t + 256 * this[++e] + 65536 * this[++e] + this[++e] * 2 ** 24, ) ); })), @@ -34188,7 +34216,7 @@ return ( (BigInt(r) << BigInt(32)) + BigInt( - this[++e] * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + n + this[++e] * 2 ** 24 + 65536 * this[++e] + 256 * this[++e] + n, ) ); })), @@ -34385,7 +34413,7 @@ e, t, -BigInt("0x8000000000000000"), - BigInt("0x7fffffffffffffff") + BigInt("0x7fffffffffffffff"), ); })), (l.prototype.writeBigInt64BE = X(function (e, t = 0) { @@ -34394,7 +34422,7 @@ e, t, -BigInt("0x8000000000000000"), - BigInt("0x7fffffffffffffff") + BigInt("0x7fffffffffffffff"), ); })), (l.prototype.writeFloatLE = function (e, t, n) { @@ -34471,7 +34499,7 @@ i = s.length; if (0 === i) throw new TypeError( - 'The value "' + e + '" is invalid for argument "value"' + 'The value "' + e + '" is invalid for argument "value"', ); for (o = 0; o < n - t; ++o) this[o + t] = s[o % i]; } @@ -34549,7 +34577,7 @@ throw new B.ERR_OUT_OF_RANGE( n || "offset", `>= ${n ? 1 : 0} and <= ${t}`, - e + e, ); } $( @@ -34559,14 +34587,14 @@ ? `${e} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds"; }, - RangeError + RangeError, ), $( "ERR_INVALID_ARG_TYPE", function (e, t) { return `The "${e}" argument must be of type number. Received type ${typeof t}`; }, - TypeError + TypeError, ), $( "ERR_OUT_OF_RANGE", @@ -34586,7 +34614,7 @@ r ); }, - RangeError + RangeError, ); const W = /[^+/0-9A-Za-z-_]/g; function J(e, t) { @@ -34631,7 +34659,7 @@ (n >> 18) | 240, ((n >> 12) & 63) | 128, ((n >> 6) & 63) | 128, - (63 & n) | 128 + (63 & n) | 128, ); } } @@ -34644,7 +34672,7 @@ return ""; for (; e.length % 4 != 0; ) e += "="; return e; - })(e) + })(e), ); } function H(e, t, n, r) { @@ -34950,7 +34978,7 @@ })( "message" in t ? t.message - : "Copy to clipboard: #{key}, Enter" + : "Copy to clipboard: #{key}, Enter", )), window.prompt(s, e); } @@ -35896,7 +35924,7 @@ function () { return 1; }, - 1 + 1, ); }) ); @@ -36104,7 +36132,7 @@ s( (function () { return arguments; - })() + })(), ); e.exports = r ? s @@ -36251,7 +36279,7 @@ add: function (e) { return v(this, (e = 0 === e ? 0 : e), e); }, - } + }, ), f && o(h, "size", { @@ -36289,13 +36317,13 @@ : "values" == t ? n.value : [n.key, n.value], - !1 + !1, ) : ((e.target = void 0), p(void 0, !0)); }, n ? "entries" : "values", !n, - !0 + !0, ), h(t); }, @@ -36404,7 +36432,7 @@ add: function (e) { return y(this, e, !0); }, - } + }, ), p ); @@ -36474,7 +36502,7 @@ var s = o[e](0 === n ? 0 : n, r); return t ? this : s; }); - } + }, ), w || f(j, "size", { @@ -37194,7 +37222,7 @@ }), r( { target: "Object", stat: !0, forced: !0 }, - { getOwnPropertyNames: u.f } + { getOwnPropertyNames: u.f }, )); }, fastKey: function (e, t) { @@ -37788,8 +37816,8 @@ f(this, "b", { value: 3, enumerable: !1 }); }, }), - { b: 2 } - ) + { b: 2 }, + ), ).b ) return !0; @@ -38213,7 +38241,7 @@ r = function (e) { e( function () {}, - function () {} + function () {}, ); }; if ( @@ -38576,7 +38604,7 @@ function (e) { return r(n, this); }, - { arity: 1 } + { arity: 1 }, ); }; }, @@ -39010,7 +39038,7 @@ else c(f + 1), u(h, f++, s); return (h.length = f), h; }, - } + }, ); }, 48851: (e, t, n) => { @@ -39023,7 +39051,7 @@ every: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ); }, 80290: (e, t, n) => { @@ -39042,7 +39070,7 @@ filter: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ); }, 44929: (e, t, n) => { @@ -39062,7 +39090,7 @@ findIndex: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ), s(i); }, @@ -39083,7 +39111,7 @@ find: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ), s(i); }, @@ -39093,7 +39121,7 @@ o = n(56837); r( { target: "Array", proto: !0, forced: [].forEach != o }, - { forEach: o } + { forEach: o }, ); }, 53242: (e, t, n) => { @@ -39107,7 +39135,7 @@ Array.from(e); }), }, - { from: o } + { from: o }, ); }, 97690: (e, t, n) => { @@ -39128,7 +39156,7 @@ includes: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ), i("includes"); }, @@ -39147,7 +39175,7 @@ var t = arguments.length > 1 ? arguments[1] : void 0; return l ? a(this, e, t) || 0 : s(this, e, t); }, - } + }, ); }, 92737: (e, t, n) => { @@ -39182,7 +39210,7 @@ ? ((e.target = void 0), c(void 0, !0)) : c("keys" == n ? r : "values" == n ? t[r] : [r, t[r]], !1); }, - "values" + "values", ); var m = (s.Arguments = s.Array); if ( @@ -39197,7 +39225,7 @@ o = n(67145); r( { target: "Array", proto: !0, forced: o !== [].lastIndexOf }, - { lastIndexOf: o } + { lastIndexOf: o }, ); }, 68787: (e, t, n) => { @@ -39210,7 +39238,7 @@ map: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ); }, 48528: (e, t, n) => { @@ -39246,7 +39274,7 @@ for (var l = 0; l < r; l++) (t[n] = arguments[l]), n++; return i(t, n), n; }, - } + }, ); }, 81876: (e, t, n) => { @@ -39266,7 +39294,7 @@ var t = arguments.length; return o(this, e, t, t > 1 ? arguments[1] : void 0); }, - } + }, ); }, 60186: (e, t, n) => { @@ -39314,7 +39342,7 @@ v in h && u(r, p, h[v]); return (r.length = p), r; }, - } + }, ); }, 36026: (e, t, n) => { @@ -39327,7 +39355,7 @@ some: function (e) { return o(this, e, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ); }, 4115: (e, t, n) => { @@ -39423,7 +39451,7 @@ ? 1 : -1; }; - })(e) + })(e), ), n = a(o), r = 0; @@ -39434,7 +39462,7 @@ for (; r < u; ) l(t, r++); return t; }, - } + }, ); }, 98611: (e, t, n) => { @@ -39490,7 +39518,7 @@ for (g = 0; g < n; g++) b[g + E] = arguments[g + 2]; return l(b, w - r + n), f; }, - } + }, ); }, 95160: (e, t, n) => { @@ -39504,7 +39532,7 @@ now: function () { return i(new s()); }, - } + }, ); }, 18084: () => {}, @@ -39513,7 +39541,7 @@ o = n(98308); r( { target: "Function", proto: !0, forced: Function.bind !== o }, - { bind: o } + { bind: o }, ); }, 32619: (e, t, n) => { @@ -39581,7 +39609,7 @@ o = s(_ ? O : m, null, r); return j && "string" == typeof o ? b(o, E, k) : o; }, - } + }, ); }, 69120: (e, t, n) => { @@ -39597,7 +39625,7 @@ return e(this, arguments.length ? arguments[0] : void 0); }; }, - n(85616) + n(85616), ); }, 37501: (e, t, n) => { @@ -39607,7 +39635,7 @@ 54973: (e, t, n) => { n(76887)( { target: "Number", stat: !0, nonConfigurable: !0, nonWritable: !0 }, - { EPSILON: Math.pow(2, -52) } + { EPSILON: Math.pow(2, -52) }, ); }, 30800: (e, t, n) => { @@ -39618,7 +39646,7 @@ o = n(24420); r( { target: "Object", stat: !0, arity: 2, forced: Object.assign !== o }, - { assign: o } + { assign: o }, ); }, 74979: (e, t, n) => { @@ -39632,7 +39660,7 @@ forced: Object.defineProperties !== s, sham: !o, }, - { defineProperties: s } + { defineProperties: s }, ); }, 86450: (e, t, n) => { @@ -39646,7 +39674,7 @@ forced: Object.defineProperty !== s, sham: !o, }, - { defineProperty: s } + { defineProperty: s }, ); }, 94366: (e, t, n) => { @@ -39658,7 +39686,7 @@ entries: function (e) { return o(e); }, - } + }, ); }, 28387: (e, t, n) => { @@ -39676,12 +39704,12 @@ function (e, n) { s(t, e, n); }, - { AS_ENTRIES: !0 } + { AS_ENTRIES: !0 }, ), t ); }, - } + }, ); }, 46924: (e, t, n) => { @@ -39705,7 +39733,7 @@ getOwnPropertyDescriptor: function (e, t) { return i(s(e), t); }, - } + }, ); }, 88482: (e, t, n) => { @@ -39727,7 +39755,7 @@ void 0 !== (n = o(r, (t = c[p++]))) && l(u, t, n); return u; }, - } + }, ); }, 37144: (e, t, n) => { @@ -39751,7 +39779,7 @@ var t = i.f; return t ? t(a(e)) : []; }, - } + }, ); }, 21724: (e, t, n) => { @@ -39770,7 +39798,7 @@ keys: function (e) { return s(o(e)); }, - } + }, ); }, 55967: () => {}, @@ -39783,7 +39811,7 @@ values: function (e) { return o(e); }, - } + }, ); }, 4560: (e, t, n) => { @@ -39823,14 +39851,14 @@ ((l = !0), (i[s] = { status: "rejected", reason: e }), --c || r(i)); - } + }, ); }), --c || r(i); }); return u.error && c(u.value), n.promise; }, - } + }, ); }, 16890: (e, t, n) => { @@ -39866,7 +39894,7 @@ }); return u.error && c(u.value), n.promise; }, - } + }, ); }, 91302: (e, t, n) => { @@ -39907,14 +39935,14 @@ c || f || ((c = !0), (i[s] = e), --l || h(new n(i, p))); - } + }, ); }), --l || h(new n(i, p)); }); return f.error && h(f.value), r.promise; }, - } + }, ); }, 83376: (e, t, n) => { @@ -39934,7 +39962,7 @@ catch: function (e) { return this.then(void 0, e); }, - } + }, ), !o && l(i)) ) { @@ -40159,7 +40187,7 @@ u(s, n, e, t); }).then(e, t); }, - { unsafe: !0 } + { unsafe: !0 }, ); try { delete M.constructor; @@ -40212,10 +40240,10 @@ throw n; }); } - : e + : e, ); }, - } + }, ), !o && l(s)) ) { @@ -40249,7 +40277,7 @@ }); return c.error && r(c.value), n.promise; }, - } + }, ); }, 64069: (e, t, n) => { @@ -40264,7 +40292,7 @@ var t = s.f(this); return o(t.reject, void 0, e), t.promise; }, - } + }, ); }, 14482: (e, t, n) => { @@ -40283,7 +40311,7 @@ resolve: function (e) { return l(u && this === c ? i : this, e); }, - } + }, ); }, 1502: () => {}, @@ -40296,7 +40324,7 @@ return e(this, arguments.length ? arguments[0] : void 0); }; }, - n(85616) + n(85616), ); }, 69008: (e, t, n) => { @@ -40318,10 +40346,10 @@ return !!~c( a(i(this)), a(s(e)), - arguments.length > 1 ? arguments[1] : void 0 + arguments.length > 1 ? arguments[1] : void 0, ); }, - } + }, ); }, 77971: (e, t, n) => { @@ -40348,7 +40376,7 @@ return o >= n.length ? a(void 0, !0) : ((e = r(n, o)), (t.index += e.length), a(e, !1)); - } + }, ); }, 74679: (e, t, n) => { @@ -40372,7 +40400,7 @@ p < r && c(o, a(arguments[p])); } }, - } + }, ); }, 60986: (e, t, n) => { @@ -40410,12 +40438,12 @@ var t = l(u(this)); c(e); var n = a( - m(arguments.length > 1 ? arguments[1] : void 0, t.length) + m(arguments.length > 1 ? arguments[1] : void 0, t.length), ), r = l(e); return f ? f(t, r, n) : d(t, n, n + r.length) === r; }, - } + }, ); }, 57398: (e, t, n) => { @@ -40428,7 +40456,7 @@ trim: function () { return o(this); }, - } + }, ); }, 8555: (e, t, n) => { @@ -40502,7 +40530,7 @@ get: function () { return Y(this, "a", { value: 7 }).a; }, - }) + }), ).a ); }) @@ -40606,7 +40634,7 @@ "toString", function () { return V(this).tag; - } + }, ), k(J, "withoutSetter", function (e) { return ie(I(e), e); @@ -40630,7 +40658,7 @@ a || k(W, "propertyIsEnumerable", ce, { unsafe: !0 }))), r( { global: !0, constructor: !0, wrap: !0, forced: !c, sham: !c }, - { Symbol: J } + { Symbol: J }, ), B(b(re), function (e) { M(e); @@ -40644,7 +40672,7 @@ useSimple: function () { oe = !1; }, - } + }, ), r( { target: "Object", stat: !0, forced: !c, sham: !l }, @@ -40655,11 +40683,11 @@ defineProperty: ae, defineProperties: le, getOwnPropertyDescriptor: ue, - } + }, ), r( { target: "Object", stat: !0, forced: !c }, - { getOwnPropertyNames: pe } + { getOwnPropertyNames: pe }, ), D(), F(J, q), @@ -40684,7 +40712,7 @@ var n = o("Symbol")(t); return (c[t] = n), (u[n] = t), n; }, - } + }, ); }, 21732: (e, t, n) => { @@ -40714,7 +40742,7 @@ if (!s(e)) throw TypeError(i(e) + " is not a symbol"); if (o(c, e)) return c[e]; }, - } + }, ); }, 45915: (e, t, n) => { @@ -40858,7 +40886,7 @@ return e(this, arguments.length ? arguments[0] : void 0); }; }, - n(8850) + n(8850), ); }, 1773: (e, t, n) => { @@ -40880,25 +40908,25 @@ 97618: (e, t, n) => { n(76887)( { target: "Symbol", stat: !0 }, - { isRegisteredSymbol: n(32087) } + { isRegisteredSymbol: n(32087) }, ); }, 22731: (e, t, n) => { n(76887)( { target: "Symbol", stat: !0, name: "isRegisteredSymbol" }, - { isRegistered: n(32087) } + { isRegistered: n(32087) }, ); }, 6989: (e, t, n) => { n(76887)( { target: "Symbol", stat: !0, forced: !0 }, - { isWellKnownSymbol: n(96559) } + { isWellKnownSymbol: n(96559) }, ); }, 85605: (e, t, n) => { n(76887)( { target: "Symbol", stat: !0, name: "isWellKnownSymbol", forced: !0 }, - { isWellKnown: n(96559) } + { isWellKnown: n(96559) }, ); }, 65799: (e, t, n) => { @@ -40939,7 +40967,7 @@ s = n(37620)(o.setInterval, !0); r( { global: !0, bind: !0, forced: o.setInterval !== s }, - { setInterval: s } + { setInterval: s }, ); }, 17749: (e, t, n) => { @@ -40948,7 +40976,7 @@ s = n(37620)(o.setTimeout, !0); r( { global: !0, bind: !0, forced: o.setTimeout !== s }, - { setTimeout: s } + { setTimeout: s }, ); }, 71249: (e, t, n) => { @@ -41074,7 +41102,7 @@ n ); }, - !0 + !0, ), pe = function (e) { (this.entries = []), @@ -41087,7 +41115,7 @@ ? "?" === K(e, 0) ? ee(e, 1) : e - : x(e) + : x(e), )); }; pe.prototype = { @@ -41140,7 +41168,7 @@ m(this, fe); var e = T( this, - new pe(arguments.length > 0 ? arguments[0] : void 0) + new pe(arguments.length > 0 ? arguments[0] : void 0), ); a || (this.size = e.entries.length); }, @@ -41246,7 +41274,7 @@ return new ue(this, "entries"); }, }, - { enumerable: !0 } + { enumerable: !0 }, ), c(fe, P, fe.entries, { name: "entries" }), c( @@ -41255,7 +41283,7 @@ function () { return R(this).serialize(); }, - { enumerable: !0 } + { enumerable: !0 }, ), a && u(fe, "size", { @@ -41268,7 +41296,7 @@ h(he, N), r( { global: !0, constructor: !0, forced: !l }, - { URLSearchParams: he } + { URLSearchParams: he }, ), !l && g($)) ) { @@ -41285,7 +41313,7 @@ me( t, "content-type", - "application/x-www-form-urlencoded;charset=UTF-8" + "application/x-www-form-urlencoded;charset=UTF-8", ), S(e, { body: _(0, x(n)), headers: _(0, t) }) ); @@ -41300,7 +41328,7 @@ fetch: function (e) { return L(e, arguments.length > 1 ? ge(arguments[1]) : {}); }, - } + }, ), g(B)) ) { @@ -41314,7 +41342,7 @@ (ye.prototype = q), r( { global: !0, constructor: !0, dontCallGetSet: !0, forced: !0 }, - { Request: ye } + { Request: ye }, ); } } @@ -41356,7 +41384,7 @@ return !1; } }, - } + }, ); }, 47250: (e, t, n) => { @@ -42232,7 +42260,7 @@ function () { return j(this).serialize(); }, - { enumerable: !0 } + { enumerable: !0 }, ), u( Be, @@ -42240,7 +42268,7 @@ function () { return j(this).serialize(); }, - { enumerable: !0 } + { enumerable: !0 }, ), A) ) { @@ -42655,7 +42683,7 @@ ("string" == typeof e ? this.headers.set( "content-type", - "text/plain;charset=UTF-8" + "text/plain;charset=UTF-8", ) : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) @@ -42663,7 +42691,7 @@ URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set( "content-type", - "application/x-www-form-urlencoded;charset=UTF-8" + "application/x-www-form-urlencoded;charset=UTF-8", )); }), o && @@ -42708,7 +42736,7 @@ ) n[r] = String.fromCharCode(t[r]); return n.join(""); - })(this._bodyArrayBuffer) + })(this._bodyArrayBuffer), ); if (this._bodyFormData) throw new Error("could not read FormData body as text"); @@ -42805,7 +42833,7 @@ ("GET" === this.method || "HEAD" === this.method) && o) ) throw new TypeError( - "Body not allowed for GET or HEAD requests" + "Body not allowed for GET or HEAD requests", ); this._initBody(o); } @@ -43099,7 +43127,7 @@ return Object.propertyIsEnumerable.call(e, t); }) : []; - })(e) + })(e), ); } function i(e, t) { @@ -43883,11 +43911,11 @@ $ = i(/^data-[\-\w.\u00B7-\uFFFF]/), q = i(/^aria-[\-\w]+$/), U = i( - /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i + /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i, ), z = i(/^(?:\w+script|data):/i), V = i( - /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g + /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g, ), W = i(/^html$/i); var J = Object.freeze({ @@ -43918,7 +43946,7 @@ } catch (e) { return ( console.warn( - "TrustedTypes policy " + o + " could not be created." + "TrustedTypes policy " + o + " could not be created.", ), null ); @@ -44010,7 +44038,7 @@ enumerable: !0, value: !1, }, - }) + }), ), be = null, we = null, @@ -44186,14 +44214,14 @@ ) { if ("function" != typeof e.TRUSTED_TYPES_POLICY.createHTML) throw w( - 'TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.' + 'TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.', ); if ( "function" != typeof e.TRUSTED_TYPES_POLICY.createScriptURL ) throw w( - 'TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.' + 'TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.', ); (X = e.TRUSTED_TYPES_POLICY), (Q = X.createHTML("")); } else @@ -44293,7 +44321,7 @@ n && o.insertBefore( i.createTextNode(n), - o.childNodes[0] || null + o.childNodes[0] || null, ), Ke === Je ? re.call(t, Oe ? "html" : "body")[0] @@ -44308,7 +44336,7 @@ e, x.SHOW_ELEMENT | x.SHOW_COMMENT | x.SHOW_TEXT, null, - !1 + !1, ); }, mt = function (e) { @@ -44541,7 +44569,7 @@ const t = et(e.nodeName); if (!de[t] || be[t]) throw w( - "root node is forbidden and cannot be sanitized in-place" + "root node is forbidden and cannot be sanitized in-place", ); } } else if (e instanceof c) @@ -44634,7 +44662,7 @@ add(e) { return new t( Math.min(this.low, e.low), - Math.max(this.high, e.high) + Math.max(this.high, e.high), ); } subtract(e) { @@ -44779,7 +44807,7 @@ : Object.getOwnPropertySymbols ? function (e) { return Object.getOwnPropertyNames(e).concat( - Object.getOwnPropertySymbols(e) + Object.getOwnPropertySymbols(e), ); } : function (e) { @@ -44820,7 +44848,7 @@ if ("function" != typeof e) throw new TypeError( 'The "listener" argument must be of type Function. Received type ' + - typeof e + typeof e, ); } function l(e) { @@ -44855,7 +44883,7 @@ i.length + " " + String(t) + - " listeners added. Use emitter.setMaxListeners() to increase limit" + " listeners added. Use emitter.setMaxListeners() to increase limit", ); (u.name = "MaxListenersExceededWarning"), (u.emitter = e), @@ -44924,7 +44952,7 @@ if ("function" != typeof e.addEventListener) throw new TypeError( 'The "emitter" argument must be of type EventEmitter. Received type ' + - typeof e + typeof e, ); e.addEventListener(t, function o(s) { r.once && e.removeEventListener(t, o), n(s); @@ -44941,7 +44969,7 @@ throw new RangeError( 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + - "." + ".", ); i = e; }, @@ -44957,7 +44985,7 @@ throw new RangeError( 'The value of "n" is out of range. It must be a non-negative number. Received ' + e + - "." + ".", ); return (this._maxListeners = e), this; }), @@ -44975,7 +45003,7 @@ var i; if ((t.length > 0 && (i = t[0]), i instanceof Error)) throw i; var a = new Error( - "Unhandled error." + (i ? " (" + i.message + ")" : "") + "Unhandled error." + (i ? " (" + i.message + ")" : ""), ); throw ((a.context = i), a); } @@ -45191,7 +45219,7 @@ var r = this; if ("function" != typeof r || "[object Function]" !== n.call(r)) throw new TypeError( - "Function.prototype.bind called on incompatible " + r + "Function.prototype.bind called on incompatible " + r, ); for ( var o, @@ -45208,7 +45236,7 @@ "binder", "return function (" + a.join(",") + - "){ return binder.apply(this,arguments); }" + "){ return binder.apply(this,arguments); }", )(function () { if (this instanceof o) { var n = r.apply(this, s.concat(t.call(arguments))); @@ -45465,7 +45493,7 @@ throw new i( "intrinsic " + e + - " exists, but is not available. Please file an issue!" + " exists, but is not available. Please file an issue!", ); return { alias: n, name: r, value: s }; } @@ -45478,7 +45506,7 @@ throw new i('"allowMissing" argument must be a boolean'); if (null === O(/^%?[^%]*%?$/, e)) throw new o( - "`%` may not be present anywhere but at the beginning and end of the intrinsic name" + "`%` may not be present anywhere but at the beginning and end of the intrinsic name", ); var n = (function (e) { var t = j(e, 0, 1), @@ -45516,7 +45544,7 @@ m !== y ) throw new o( - "property names with quotes must have matching quotes" + "property names with quotes must have matching quotes", ); if ( (("constructor" !== d && f) || (u = !0), @@ -45529,7 +45557,7 @@ throw new i( "base intrinsic for " + e + - " exists, but the property is not available." + " exists, but the property is not available.", ); return; } @@ -45795,7 +45823,7 @@ x = function (e, t, n = {}) { const r = i( { className: "comment", begin: e, end: t, contains: [] }, - n + n, ); return ( r.contains.push(E), @@ -45865,7 +45893,7 @@ 0 !== e.index && t.ignoreMatch(); }, }, - e + e, ) ); }, @@ -45974,7 +46002,7 @@ function n(t, n) { return new RegExp( p(t), - "m" + (e.case_insensitive ? "i" : "") + (n ? "g" : "") + "m" + (e.case_insensitive ? "i" : "") + (n ? "g" : ""), ); } class r { @@ -46022,7 +46050,7 @@ .map((e) => `(${e})`) .join(t); })(e), - !0 + !0, )), (this.lastIndex = 0); } @@ -46085,7 +46113,7 @@ e.contains && e.contains.includes("self")) ) throw new Error( - "ERR: contains `self` is not supported at the top-level of a language. See documentation." + "ERR: contains `self` is not supported at the top-level of a language. See documentation.", ); return ( (e.classNameAliases = i(e.classNameAliases || {})), @@ -46105,7 +46133,7 @@ r.lexemes && l) ) throw new Error( - "ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) " + "ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ", ); return ( (l = l || r.lexemes || /\w+/), @@ -46136,7 +46164,7 @@ if (Object.isFrozen(e)) return i(e); return e; })("self" === e ? r : e); - }) + }), )), r.contains.forEach(function (e) { t(e, a); @@ -46146,7 +46174,7 @@ const t = new o(); return ( e.contains.forEach((e) => - t.addRule(e.begin, { rule: e, type: "begin" }) + t.addRule(e.begin, { rule: e, type: "begin" }), ), e.terminatorEnd && t.addRule(e.terminatorEnd, { type: "end" }), @@ -46178,7 +46206,7 @@ if (!this.autoDetect && !e.getLanguage(this.language)) return ( console.warn( - `The language "${this.language}" you specified could not be found.` + `The language "${this.language}" you specified could not be found.`, ), (this.unknownLanguage = !0), s(this.code) @@ -46191,7 +46219,7 @@ : ((t = e.highlight( this.language, this.code, - this.ignoreIllegals + this.ignoreIllegals, )), (this.detectedLanguage = this.language)), t.value @@ -46345,11 +46373,11 @@ (r = void 0)) : (Q( "10.7.0", - "highlight(lang, code, ...args) has been deprecated." + "highlight(lang, code, ...args) has been deprecated.", ), Q( "10.7.0", - "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277" + "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277", ), (s = e), (o = t)); @@ -46449,7 +46477,7 @@ n.endSameAsBegin && (n.endRe = new RegExp( t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&"), - "m" + "m", )), n.skip ? (A += t) @@ -46505,7 +46533,7 @@ s + '" for mode "' + (j.className || "") + - '"' + '"', ); throw ((e.mode = j), e); } @@ -46516,7 +46544,7 @@ if ("illegal" === o.type && "" === s) return 1; if (N > 1e5 && N > 3 * o.index) { throw new Error( - "potential infinite loop, way more iterations than matches" + "potential infinite loop, way more iterations than matches", ); } return (A += s), s.length; @@ -46640,7 +46668,7 @@ "after:highlightElement": ({ result: e }) => { p.tabReplace && (e.value = e.value.replace(y, (e) => - e.replace(/\t/g, p.tabReplace) + e.replace(/\t/g, p.tabReplace), )); }, }; @@ -46688,7 +46716,7 @@ (w.called = !0), Q( "10.6.0", - "initHighlighting() is deprecated. Use highlightAll() instead." + "initHighlighting() is deprecated. Use highlightAll() instead.", ); document.querySelectorAll("pre code").forEach(b); }; @@ -46723,7 +46751,7 @@ function () { E && x(); }, - !1 + !1, ), Object.assign(e, { highlight: f, @@ -46734,7 +46762,7 @@ Q("10.2.0", "fixMarkup will be removed entirely in v11.0"), Q( "10.2.0", - "Please see https://github.com/highlightjs/highlight.js/issues/2534" + "Please see https://github.com/highlightjs/highlight.js/issues/2534", ), (t = e), p.tabReplace || p.useBR @@ -46745,7 +46773,7 @@ : e : p.tabReplace ? e.replace(/\t/g, p.tabReplace) - : e + : e, ) : t ); @@ -46756,7 +46784,7 @@ return ( Q( "10.7.0", - "highlightBlock will be removed entirely in v12.0" + "highlightBlock will be removed entirely in v12.0", ), Q("10.7.0", "Please use highlightElement now."), b(e) @@ -46767,7 +46795,7 @@ (Q("10.3.0", "'useBR' will be removed entirely in v11.0"), Q( "10.3.0", - "Please see https://github.com/highlightjs/highlight.js/issues/2559" + "Please see https://github.com/highlightjs/highlight.js/issues/2559", )), (p = te(p, e)); }, @@ -46775,7 +46803,7 @@ initHighlightingOnLoad: function () { Q( "10.6.0", - "initHighlightingOnLoad() is deprecated. Use highlightAll() instead." + "initHighlightingOnLoad() is deprecated. Use highlightAll() instead.", ), (E = !0); }, @@ -46788,8 +46816,8 @@ (Y( "Language definition for '{}' could not be registered.".replace( "{}", - n - ) + n, + ), ), !i) ) @@ -46814,15 +46842,15 @@ Q("10.4.0", "requireLanguage will be removed entirely in v11."), Q( "10.4.0", - "Please see https://github.com/highlightjs/highlight.js/pull/2844" + "Please see https://github.com/highlightjs/highlight.js/pull/2844", ); const t = S(e); if (t) return t; throw new Error( "The '{}' language is required, but not loaded.".replace( "{}", - e - ) + e, + ), ); }, autoDetection: j, @@ -46833,14 +46861,14 @@ !e["before:highlightElement"] && (e["before:highlightElement"] = (t) => { e["before:highlightBlock"]( - Object.assign({ block: t.el }, t) + Object.assign({ block: t.el }, t), ); }), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (t) => { e["after:highlightBlock"]( - Object.assign({ block: t.el }, t) + Object.assign({ block: t.el }, t), ); }); })(e), @@ -47155,7 +47183,7 @@ "SyntaxError", "TypeError", "URIError", - ] + ], ); function s(e) { return i("(?=", e, ")"); @@ -47327,8 +47355,11 @@ begin: i( /[{,\n]\s*/, s( - i(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/, a + "\\s*:") - ) + i( + /(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/, + a + "\\s*:", + ), + ), ), relevance: 0, contains: [ @@ -47552,7 +47583,7 @@ { begin: "(".concat( "Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where", - ")+(-)[\\w\\d]+" + ")+(-)[\\w\\d]+", ), }, ], @@ -47607,7 +47638,7 @@ className: "operator", begin: "(".concat( "-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor", - ")\\b" + ")\\b", ), }, { className: "literal", begin: /(-)[\w\d]+/, relevance: 0 }, @@ -47624,7 +47655,7 @@ className: "keyword", begin: "(".concat( t.keyword.toString().replace(/\s/g, "|"), - ")\\b" + ")\\b", ), endsParent: !0, relevance: 0, @@ -47676,7 +47707,7 @@ className: "built_in", relevance: 0, }, - { className: "type", begin: /[\.\w\d]+/, relevance: 0 } + { className: "type", begin: /[\.\w\d]+/, relevance: 0 }, ), }; return ( @@ -48356,7 +48387,7 @@ if (!t) throw new TypeError( "Expected Array or iterable object of [k, v] entries, or keyed object: " + - e + e, ); return t; } @@ -48364,7 +48395,7 @@ var t = ue(e); if (!t) throw new TypeError( - "Expected Array or iterable object of values: " + e + "Expected Array or iterable object of values: " + e, ); return t; } @@ -48373,7 +48404,7 @@ if (!t) throw new TypeError( "Expected Array or iterable object of values, or keyed object: " + - e + e, ); return t; } @@ -48419,7 +48450,7 @@ n, G(t).map(function (n, r) { return de(e, n, r, t); - }) + }), ) : ge(t) ? e.call( @@ -48427,7 +48458,7 @@ n, H(t).map(function (n, r) { return de(e, n, r, t); - }) + }), ) : t; } @@ -48704,7 +48735,7 @@ : new Ee( this.get(e, this._end), this.get(t, this._end), - this._step + this._step, )); }), (Ee.prototype.indexOf = function (e) { @@ -48825,7 +48856,7 @@ else { if (void 0 !== Ie && !1 === Ie(e)) throw new Error( - "Non-extensible objects are not allowed as keys." + "Non-extensible objects are not allowed as keys.", ); if (Te) Object.defineProperty(e, Le, { @@ -48842,14 +48873,14 @@ (e.propertyIsEnumerable = function () { return this.constructor.prototype.propertyIsEnumerable.apply( this, - arguments + arguments, ); }), (e.propertyIsEnumerable[Le] = t); else { if (void 0 === e.nodeType) throw new Error( - "Unable to set a non-enumerable property on object." + "Unable to set a non-enumerable property on object.", ); e[Le] = t; } @@ -48886,7 +48917,7 @@ function ze(e) { we( e !== 1 / 0, - "Cannot perform this action with an infinite size." + "Cannot perform this action with an infinite size.", ); } function Ve(e) { @@ -49119,7 +49150,7 @@ (1 << i) | (1 << a), i === a ? [lt(e, t, n + g, r, o)] - : ((s = new Qe(t, r, o)), i < a ? [e, s] : [s, e]) + : ((s = new Qe(t, r, o)), i < a ? [e, s] : [s, e]), ); } function ct(e, t, n, r) { @@ -49549,7 +49580,7 @@ this._root, this._tail, e, - this.__hash + this.__hash, ) : ((this.__ownerID = e), this); }), @@ -50312,7 +50343,7 @@ } : function (e, t) { s[t] = e[1]; - } + }, ), r ? H(s) : l(e) ? G(s) : Z(s) ); @@ -50378,8 +50409,8 @@ null, n.map(function (e) { return e.value; - }) - ) + }), + ), ) ); }); @@ -50533,7 +50564,7 @@ function (o) { return e(o, t ? --n : n++, r); }), - t + t, ); }), (Kt.prototype.__iterator = function (e, t) { @@ -50636,7 +50667,7 @@ (Sn.prototype.set = function (e, t) { if (!this.has(e)) throw new Error( - 'Cannot set unknown key "' + e + '" on ' + On(this) + 'Cannot set unknown key "' + e + '" on ' + On(this), ); if ( this._map && @@ -51299,7 +51330,7 @@ return ye(n, e); }, void 0, - t + t, ); }, getIn: function (e, t) { @@ -51417,7 +51448,7 @@ .map(function (o, s) { return e.call(t, [s, o], r++, n); }) - .fromEntrySeq() + .fromEntrySeq(), ); }, mapKeys: function (e, t) { @@ -51429,7 +51460,7 @@ .map(function (r, o) { return e.call(t, r, o, n); }) - .flip() + .flip(), ); }, }); @@ -51480,9 +51511,9 @@ } : function (e) { r = (r + Ae(e)) | 0; - } + }, ), - r + r, ); } function ar(e, t) { @@ -51492,7 +51523,7 @@ (t = Oe((t << 13) | (t >>> -13), 5)), (t = Oe( (t = ((t + 3864292196) | 0) ^ e) ^ (t >>> 16), - 2246822507 + 2246822507, )), (t = ke((t = Oe(t ^ (t >>> 13), 3266489909)) ^ (t >>> 16))) ); @@ -51540,7 +51571,7 @@ var r = this.slice(0, e); return mn( this, - 1 === n ? r : r.concat(j(arguments, 2), this.slice(e + t)) + 1 === n ? r : r.concat(j(arguments, 2), this.slice(e + t)), ); }, findLastIndex: function (e, t) { @@ -51563,7 +51594,7 @@ return n === e; }, void 0, - t + t, ); }, has: function (e) { @@ -51763,7 +51794,7 @@ (function (e) { var n = t - (e - l); return p ? m(n, s - (e - c)) : n; - })(e) + })(e), ); } function E(e) { @@ -52431,9 +52462,9 @@ .replace(/[\\^$.*+?()[\]{}|]/g, "\\$&") .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - "$1.*?" + "$1.*?", ) + - "$" + "$", ); e.exports = function (e) { return !(!s(e) || o(e)) && (r(e) ? h : a).test(i(e)); @@ -52577,7 +52608,7 @@ void 0 === f && (f = s), o(t, l, f); } }, - l + l, ); }; }, @@ -53016,7 +53047,7 @@ return function t() { return (this && this !== o && this instanceof t ? i : e).apply( s ? n : this, - arguments + arguments, ); }; }; @@ -53815,7 +53846,7 @@ }, 62689: (e) => { var t = RegExp( - "[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]" + "[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]", ); e.exports = function (e) { return t.test(e); @@ -54529,7 +54560,7 @@ a, E, ].join("|"), - "g" + "g", ); e.exports = function (e) { return e.match(x) || []; @@ -54622,7 +54653,7 @@ void 0, void 0, void 0, - (t = n ? void 0 : t) + (t = n ? void 0 : t), ); return (s.placeholder = o.placeholder), s; } @@ -54664,7 +54695,7 @@ (function (e) { var n = t - (e - f); return g ? a(n, u - (e - d)) : n; - })(e) + })(e), ); } function E(e) { @@ -54984,7 +55015,7 @@ return function (t) { return e({}, t); }; - })(t) + })(t), )) : r.mutate.set[s] && (i = l(t, L))), _(T, function (e) { @@ -55615,7 +55646,7 @@ l = r( (function () { return arguments; - })() + })(), ) ? r : function (e) { @@ -56434,7 +56465,7 @@ } filter(e, t) { return new s( - this.elements.filter((n) => e.bind(t)(n.value, n.key, n)) + this.elements.filter((n) => e.bind(t)(n.value, n.key, n)), ); } reject(e, t) { @@ -56694,7 +56725,7 @@ "fantasy-land/chain"(e) { return this.map((t) => e(t), this).reduce( (e, t) => e.concat(t), - this.empty() + this.empty(), ); } "fantasy-land/filter"(e) { @@ -56798,7 +56829,7 @@ toRef(e) { if ("" === this.id.toValue()) throw Error( - "Cannot create reference to an element that does not contain an ID" + "Cannot create reference to an element that does not contain an ID", ); const t = new this.RefElement(this.id.toValue()); return e && (t.path = e), t; @@ -56806,7 +56837,7 @@ findRecursive(...e) { if (arguments.length > 1 && !this.isFrozen) throw new Error( - "Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`" + "Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`", ); const t = e.pop(); let n = new s(); @@ -56885,7 +56916,7 @@ if ("object" != typeof e) throw new Error("Cannot set content to given value"); this._content = Object.keys(e).map( - (t) => new this.MemberElement(t, e[t]) + (t) => new this.MemberElement(t, e[t]), ); } } @@ -57048,7 +57079,7 @@ (e, t) => ( (e[t.key.toValue()] = t.value ? t.value.toValue() : void 0), e ), - {} + {}, ); } get(e) { @@ -57063,7 +57094,7 @@ let t = null; return ( (this.content = this.content.filter( - (n) => n.key.toValue() !== e || ((t = n), !1) + (n) => n.key.toValue() !== e || ((t = n), !1), )), t ); @@ -57143,7 +57174,7 @@ serialise(e) { if (!(e instanceof this.namespace.elements.Element)) throw new TypeError( - `Given element \`${e}\` is not an Element instance` + `Given element \`${e}\` is not an Element instance`, ); let t; e._attributes && @@ -57222,7 +57253,7 @@ r.content.attributes.remove("typeAttributes"), t.set( "default", - new this.namespace.elements.Array([r.content]) + new this.namespace.elements.Array([r.content]), )), o.forEach((e) => { e.content && @@ -57233,7 +57264,7 @@ (o = o.map((e) => e instanceof this.namespace.elements.Array ? [e] - : new this.namespace.elements.Array([e.content]) + : new this.namespace.elements.Array([e.content]), )), o.length && t.set("samples", o), t.length > 0) @@ -57267,7 +57298,7 @@ if (null === e) return new this.namespace.elements.Null(); if (Array.isArray(e)) return new this.namespace.elements.Array( - e.map(this.deserialise, this) + e.map(this.deserialise, this), ); const t = this.namespace.getElementClass(e.element), n = new t(); @@ -57333,7 +57364,7 @@ if (e.element) return this.deserialise(e); if (e.key) { const t = new this.namespace.KeyValuePair( - this.deserialise(e.key) + this.deserialise(e.key), ); return e.value && (t.value = this.deserialise(e.value)), t; } @@ -57364,7 +57395,7 @@ "object" === t.element || "enum" === t.element ? t.children.map((e) => this.serialise(e)) - : t.toValue() + : t.toValue(), ) : "object" === t.element ? (t.content || []).map(this.serialise, this) @@ -57400,7 +57431,7 @@ serialise(e) { if (!(e instanceof this.namespace.elements.Element)) throw new TypeError( - `Given element \`${e}\` is not an Element instance` + `Given element \`${e}\` is not an Element instance`, ); const t = { element: e.element }; e._meta && @@ -57415,7 +57446,7 @@ deserialise(e) { if (!e.element) throw new Error( - "Given value is not an object containing an element name" + "Given value is not an object containing an element name", ); const t = new (this.namespace.getElementClass(e.element))(); t.element !== e.element && (t.element = e.element), @@ -57443,7 +57474,7 @@ if (e.element) return this.deserialise(e); if (e.key) { const t = new this.namespace.KeyValuePair( - this.deserialise(e.key) + this.deserialise(e.key), ); return e.value && (t.value = this.deserialise(e.value)), t; } @@ -57510,7 +57541,7 @@ a = (function (e) { if (null == e) throw new TypeError( - "Object.assign cannot be called with null or undefined" + "Object.assign cannot be called with null or undefined", ); return Object(e); })(e), @@ -57655,7 +57686,7 @@ "double" !== a.quoteStyle ) throw new TypeError( - 'option "quoteStyle" must be "single" or "double"' + 'option "quoteStyle" must be "single" or "double"', ); if ( V(a, "maxStringLength") && @@ -57664,12 +57695,12 @@ : null !== a.maxStringLength) ) throw new TypeError( - 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`' + 'option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`', ); var l = !V(a, "customInspect") || a.customInspect; if ("boolean" != typeof l && "symbol" !== l) throw new TypeError( - "option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`" + "option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`", ); if ( V(a, "indent") && @@ -57678,14 +57709,14 @@ !(parseInt(a.indent, 10) === a.indent && a.indent > 0) ) throw new TypeError( - 'option "indent" must be "\\t", an integer > 0, or `null`' + 'option "indent" must be "\\t", an integer > 0, or `null`', ); if ( V(a, "numericSeparator") && "boolean" != typeof a.numericSeparator ) throw new TypeError( - 'option "numericSeparator", if provided, must be `true` or `false`' + 'option "numericSeparator", if provided, must be `true` or `false`', ); var m = a.numericSeparator; if (void 0 === t) return "undefined"; @@ -58001,7 +58032,7 @@ return L( b.call(b.call(e, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, H), "single", - t + t, ); } function H(e) { @@ -58178,7 +58209,7 @@ function e(e, t, n, o, s, i) { if (i !== r) { var a = new Error( - "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types" + "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types", ); throw ((a.name = "Invariant Violation"), a); } @@ -58357,7 +58388,7 @@ "iso-8859-1" !== e.charset ) throw new TypeError( - "The charset option must be either utf-8, iso-8859-1, or undefined" + "The charset option must be either utf-8, iso-8859-1, or undefined", ); var t = void 0 === e.charset ? i.charset : e.charset; return { @@ -58446,13 +58477,13 @@ y.slice(0, b), i.decoder, d, - "key" + "key", )), (g = r.maybeMap( l(y.slice(b + 1), t), function (e) { return t.decoder(e, i.decoder, d, "value"); - } + }, ))), g && t.interpretNumericEntities && @@ -58628,7 +58659,7 @@ "iso-8859-1" !== e.charset ) throw new TypeError( - "The charset option must be either utf-8, iso-8859-1, or undefined" + "The charset option must be either utf-8, iso-8859-1, or undefined", ); var n = s.default; if (void 0 !== e.format) { @@ -58699,7 +58730,7 @@ "boolean" != typeof t.commaRoundTrip ) throw new TypeError( - "`commaRoundTrip` must be a boolean, or absent" + "`commaRoundTrip` must be a boolean, or absent", ); var m = "comma" === f && t && t.commaRoundTrip; n || (n = Object.keys(o)), c.sort && n.sort(c.sort); @@ -58724,8 +58755,8 @@ c.formatter, c.encodeValuesOnly, c.charset, - y - ) + y, + ), ); } var w = h.join(c.delimiter), @@ -58747,7 +58778,7 @@ i = (function () { for (var e = [], t = 0; t < 256; ++t) e.push( - "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase() + "%" + ((t < 16 ? "0" : "") + t.toString(16)).toUpperCase(), ); return e; })(), @@ -59016,7 +59047,7 @@ for ( o = this.randInt( e.min, - e.max === 1 / 0 ? e.min + this.max : e.max + e.max === 1 / 0 ? e.min + this.max : e.max, ), r = "", i = 0; @@ -59118,7 +59149,7 @@ }) : (e.exports = function () { throw new Error( - "Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11" + "Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11", ); }); }, @@ -59175,7 +59206,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -59232,7 +59263,7 @@ try { return ( Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function () {}) + Reflect.construct(Boolean, [], function () {}), ), !0 ); @@ -59251,7 +59282,7 @@ if (t && ("object" === r(t) || "function" == typeof t)) return t; if (void 0 !== t) throw new TypeError( - "Derived constructors may only return object or undefined" + "Derived constructors may only return object or undefined", ); return d(e); })(this, n); @@ -59260,7 +59291,7 @@ function d(e) { if (void 0 === e) throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" + "this hasn't been initialised - super() hasn't been called", ); return e; } @@ -59291,7 +59322,7 @@ !(function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( - "Super expression must either be null or a function" + "Super expression must either be null or a function", ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 }, @@ -59328,7 +59359,7 @@ c.props && "function" == typeof c.props.onClick && c.props.onClick(t); - } + }, ), e ); @@ -59345,7 +59376,7 @@ r = o.default.Children.only(t); return o.default.cloneElement( r, - c(c({}, n), {}, { onClick: this.onClick }) + c(c({}, n), {}, { onClick: this.onClick }), ); }, }, @@ -59451,7 +59482,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -59484,7 +59515,7 @@ try { return ( Boolean.prototype.valueOf.call( - Reflect.construct(Boolean, [], function () {}) + Reflect.construct(Boolean, [], function () {}), ), !0 ); @@ -59503,7 +59534,7 @@ if (t && ("object" === r(t) || "function" == typeof t)) return t; if (void 0 !== t) throw new TypeError( - "Derived constructors may only return object or undefined" + "Derived constructors may only return object or undefined", ); return d(e); })(this, n); @@ -59512,7 +59543,7 @@ function d(e) { if (void 0 === e) throw new ReferenceError( - "this hasn't been initialised - super() hasn't been called" + "this hasn't been initialised - super() hasn't been called", ); return e; } @@ -59543,7 +59574,7 @@ !(function (e, t) { if ("function" != typeof t && null !== t) throw new TypeError( - "Super expression must either be null or a function" + "Super expression must either be null or a function", ); (e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 }, @@ -59574,8 +59605,8 @@ u( u({}, e), {}, - { target: u(u({}, e.target), {}, { value: "" }) } - ) + { target: u(u({}, e.target), {}, { value: "" }) }, + ), ); }); }), @@ -59625,8 +59656,8 @@ u( u({}, e), {}, - { target: u(u({}, e.target), {}, { value: r }) } - ) + { target: u(u({}, e.target), {}, { value: r }) }, + ), ); } }), @@ -59698,12 +59729,12 @@ u({}, f), {}, { onChange: this.onChange, value: d }, - e + e, ), - t + t, ), - m - ) + m, + ), ); }, }, @@ -59801,7 +59832,7 @@ ["contentEditable", "draggable", "spellCheck", "value"].forEach( function (e) { y[e] = new g(e, 2, !1, e.toLowerCase(), null, !1, !1); - } + }, ), [ "autoReverse", @@ -59919,7 +59950,7 @@ e, "http://www.w3.org/XML/1998/namespace", !1, - !1 + !1, ); }), ["tabIndex", "crossOrigin"].forEach(function (e) { @@ -59932,7 +59963,7 @@ "xlink:href", "http://www.w3.org/1999/xlink", !0, - !1 + !1, )), ["src", "href", "action", "formAction"].forEach(function (e) { y[e] = new g(e, 1, !1, e.toLowerCase(), null, !0, !0); @@ -60497,7 +60528,7 @@ source: !0, track: !0, wbr: !0, - } + }, ); function Se(e, t) { if (t) { @@ -60769,7 +60800,7 @@ pt = [], ht = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split( - " " + " ", ); function ft(e, t, n, r, o) { return { @@ -60859,7 +60890,7 @@ e.domEventName, e.eventSystemFlags, t[0], - e.nativeEvent + e.nativeEvent, ); if (null !== n) { e.blockedOn = n; @@ -61337,7 +61368,7 @@ yn = an(o({}, mn, { dataTransfer: 0 })), vn = an(o({}, fn, { relatedTarget: 0 })), bn = an( - o({}, pn, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }) + o({}, pn, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), ), wn = o({}, pn, { clipboardData: function (e) { @@ -61465,7 +61496,7 @@ twist: 0, pointerType: 0, isPrimary: 0, - }) + }), ), Nn = an( o({}, fn, { @@ -61477,10 +61508,10 @@ ctrlKey: 0, shiftKey: 0, getModifierState: kn, - }) + }), ), In = an( - o({}, pn, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }) + o({}, pn, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), ), Tn = o({}, mn, { deltaX: function (e) { @@ -61741,21 +61772,21 @@ } Rt( "cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split( - " " + " ", ), - 0 + 0, ), Rt( "drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split( - " " + " ", ), - 1 + 1, ), Rt(Tt, 2); for ( var Sr = "change selectionchange textInput compositionstart compositionend compositionupdate".split( - " " + " ", ), _r = 0; _r < Sr.length; @@ -61769,14 +61800,14 @@ c( "onChange", "change click focusin focusout input keydown keyup selectionchange".split( - " " - ) + " ", + ), ), c( "onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split( - " " - ) + " ", + ), ), c("onBeforeInput", [ "compositionend", @@ -61787,27 +61818,27 @@ c( "onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split( - " " - ) + " ", + ), ), c( "onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split( - " " - ) + " ", + ), ), c( "onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split( - " " - ) + " ", + ), ); var jr = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split( - " " + " ", ), Or = new Set( - "cancel close invalid load scroll toggle".split(" ").concat(jr) + "cancel close invalid load scroll toggle".split(" ").concat(jr), ); function kr(e, t, n) { var r = e.type || "unknown-event"; @@ -62923,8 +62954,8 @@ 31, "[object Object]" === Object.prototype.toString.call(t) ? "object with keys {" + Object.keys(t).join(", ") + "}" - : t - ) + : t, + ), ); } function js(e) { @@ -62978,7 +63009,7 @@ : (((r = Kl(n.type, n.key, n.props, null, e.mode, r)).ref = Ss( e, t, - n + n, )), (r.return = e), r); @@ -63006,7 +63037,7 @@ ((n = Kl(t.type, t.key, t.props, null, e.mode, n)).ref = Ss( e, null, - t + t, )), (n.return = e), n @@ -63057,7 +63088,7 @@ t, (e = e.get(null === r.key ? n : r.key) || null), r, - o + o, ); } if (xs(r) || U(r)) @@ -63198,7 +63229,7 @@ s.props, null, e.mode, - l + l, )).ref = Ss(e, r, s)), (l.return = e), (e = l)); @@ -63268,7 +63299,7 @@ default: t = fe( (t = (e = 8 === e ? t.parentNode : t).namespaceURI || null), - (e = e.tagName) + (e = e.tagName), ); } co(Cs), uo(Cs, t); @@ -63627,7 +63658,7 @@ } } }, - [n, t, r] + [n, t, r], ), l.useEffect( function () { @@ -63645,7 +63676,7 @@ } }); }, - [t, r] + [t, r], ), (cr(d, n) && cr(m, t) && cr(h, r)) || (((e = { @@ -63888,7 +63919,7 @@ Ys.transition = t; } }, - [e] + [e], ), n ); @@ -63930,7 +63961,7 @@ n("r:" + (Gr++).toString(36)); }, void 0, - null + null, )), t ); @@ -63968,7 +63999,7 @@ Ys.transition = t; } }, - [e] + [e], ), n ); @@ -64012,7 +64043,7 @@ Ys.transition = t; } }, - [e] + [e], ), n ); @@ -64305,7 +64336,7 @@ { mode: "visible", children: e }, t.mode, n, - null + null, )).return = t), (t.child = n))) : (e.memoizedState, @@ -65100,7 +65131,7 @@ r = e.memoizedState; (t = (e = t.stateNode).getSnapshotBeforeUpdate( t.elementType === t.type ? n : Yo(t.type, n), - r + r, )), (e.__reactInternalSnapshotBeforeUpdate = t); } @@ -65157,7 +65188,7 @@ e.componentDidUpdate( r, t.memoizedState, - e.__reactInternalSnapshotBeforeUpdate + e.__reactInternalSnapshotBeforeUpdate, ))), void (null !== (t = n.updateQueue) && ds(n, t, e)) ); @@ -65622,7 +65653,7 @@ return 0; } })(e)), - ll + ll, )), e ); @@ -66017,7 +66048,7 @@ } while (null !== h); l = Error( (K(a.type) || "A React component") + - " suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display." + " suspended while rendering, but no fallback UI was specified.\n\nAdd a component higher in the tree to provide a loading indicator or placeholder to display.", ); } 5 !== La && (La = 2), (l = ca(l, a)), (h = i); @@ -66662,7 +66693,7 @@ 4, null !== e.children ? e.children : [], e.key, - t + t, )).lanes = n), (t.stateNode = { containerInfo: e.containerInfo, @@ -67203,7 +67234,9 @@ for (n = e; n.parentNode; ) n = n.parentNode; for ( n = n.querySelectorAll( - "input[name=" + JSON.stringify("" + t) + '][type="radio"]' + "input[name=" + + JSON.stringify("" + t) + + '][type="radio"]', ), t = 0; t < n.length; @@ -67349,7 +67382,7 @@ t, 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] - : null + : null, ); }), (t.unstable_renderSubtreeIntoContainer = function (e, t, n, r) { @@ -67382,7 +67415,7 @@ i = function () { invariant( !1, - "ImmutablePropTypes type checking code is stripped in production." + "ImmutablePropTypes type checking code is stripped in production.", ); }; i.isRequired = i; @@ -67420,7 +67453,7 @@ a + "` was not specified in `" + o + - "`." + "`.", ) : void 0 ); @@ -67449,7 +67482,7 @@ o + "`, expected `" + n + - "`." + "`.", ); } return null; @@ -67810,7 +67843,7 @@ (!i.key || (l && l.key === i.key) ? "" : ("" + i.key).replace(j, "$&/") + "/") + - e + e, )), t.push(i)), 1 @@ -67840,8 +67873,8 @@ 31, "[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" - : t - ) + : t, + ), )) ); return l; @@ -67870,7 +67903,7 @@ }, function (t) { 0 === e._status && ((e._status = 2), (e._result = t)); - } + }, ); } if (1 === e._status) return e._result; @@ -67897,7 +67930,7 @@ function () { t.apply(this, arguments); }, - n + n, ); }, count: function (e) { @@ -68042,7 +68075,7 @@ this, (function (e, t, r) { return "string" == typeof n ? n : n(e, t, r); - })(t, r, o) + })(t, r, o), ) || this ); } @@ -68079,7 +68112,7 @@ function (e, t) { return 'The value "' + t + '" is invalid for option "' + e + '"'; }, - TypeError + TypeError, ), n( "ERR_INVALID_ARG_TYPE", @@ -68115,7 +68148,7 @@ } return (a += ". Received type ".concat(typeof n)); }, - TypeError + TypeError, ), n("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"), n("ERR_METHOD_NOT_IMPLEMENTED", function (e) { @@ -68131,18 +68164,18 @@ n( "ERR_STREAM_NULL_VALUES", "May not write null values to stream", - TypeError + TypeError, ), n( "ERR_UNKNOWN_ENCODING", function (e) { return "Unknown encoding: " + e; }, - TypeError + TypeError, ), n( "ERR_STREAM_UNSHIFT_AFTER_END_EVENT", - "stream.unshift() after end event" + "stream.unshift() after end event", ), (e.exports.q = t); }, @@ -68947,7 +68980,7 @@ this._transform( t.writechunk, t.writeencoding, - t.afterTransform + t.afterTransform, )); }), (u.prototype._destroy = function (e, t) { @@ -69195,7 +69228,7 @@ return this.getBuffer(); }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", - "DEP0003" + "DEP0003", ), }); } catch (e) {} @@ -69390,7 +69423,7 @@ var r = n.call(e, t || "default"); if ("object" != typeof r) return r; throw new TypeError( - "@@toPrimitive must return a primitive value." + "@@toPrimitive must return a primitive value.", ); } return ("string" === t ? String : Number)(e); @@ -69457,7 +69490,7 @@ t[u] ? n(d(void 0, !0)) : t[h](n, r); }, r); }; - })(r, this) + })(r, this), ); else { var s = this[f].read(); @@ -69470,7 +69503,7 @@ Symbol.asyncIterator, function () { return this; - } + }, ), s(r, "return", function () { var e = this; @@ -69481,7 +69514,7 @@ }); }), r), - y + y, ); e.exports = function (e) { var t, @@ -69501,7 +69534,7 @@ }, writable: !0, }), - t) + t), ); return ( (n[p] = null), @@ -69551,7 +69584,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -69587,7 +69620,7 @@ var r = n.call(e, t || "default"); if ("object" != typeof r) return r; throw new TypeError( - "@@toPrimitive must return a primitive value." + "@@toPrimitive must return a primitive value.", ); } return ("string" === t ? String : Number)(e); @@ -69760,7 +69793,7 @@ value: function (e, t) { return c( this, - o(o({}, t), {}, { depth: 0, customInspect: !1 }) + o(o({}, t), {}, { depth: 0, customInspect: !1 }), ); }, }, @@ -70136,7 +70169,7 @@ t + '" returned undefined when handling "' + n.type + - '" action. To ignore an action, you must explicitly return the previous state.' + '" action. To ignore an action, you must explicitly return the previous state.', ); }), (e.exports = t.default); @@ -70170,7 +70203,7 @@ Object.defineProperty( e, t, - Object.getOwnPropertyDescriptor(n, t) + Object.getOwnPropertyDescriptor(n, t), ); }); } @@ -70417,7 +70450,7 @@ (n = "x" === t[1].toLowerCase() ? parseInt(t.slice(2), 16) - : parseInt(t.slice(1), 10)) + : parseInt(t.slice(1), 10)), ) ? p(n) : e; @@ -71340,22 +71373,22 @@ ? ((g[u.token].content = z( g[u.token].content, u.pos, - e.options.quotes[2] + e.options.quotes[2], )), (n.content = z( n.content, o.index, - e.options.quotes[3] + e.options.quotes[3], ))) : ((g[u.token].content = z( g[u.token].content, u.pos, - e.options.quotes[0] + e.options.quotes[0], )), (n.content = z( n.content, o.index, - e.options.quotes[1] + e.options.quotes[1], ))), (y.length = f); continue e; @@ -72164,7 +72197,7 @@ 124 === c[a].charCodeAt(0) ? 1 : 0, 124 === c[a].charCodeAt(c[a].length - 1) ? c[a].length - 1 - : c[a].length + : c[a].length, ) .trim()), e.tokens.push({ @@ -72631,21 +72664,21 @@ } var ge = me(/(?:unquoted|single_quoted|double_quoted)/)( "unquoted", - /[^"'=<>`\x00-\x20]+/ + /[^"'=<>`\x00-\x20]+/, )("single_quoted", /'[^']*'/)("double_quoted", /"[^"]*"/)(), ye = me(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)( "attr_name", - /[a-zA-Z_:][a-zA-Z0-9:._-]*/ + /[a-zA-Z_:][a-zA-Z0-9:._-]*/, )("attr_value", ge)(), ve = me(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute", ye)(), be = me( - /^(?:open_tag|close_tag|comment|processing|declaration|cdata)/ + /^(?:open_tag|close_tag|comment|processing|declaration|cdata)/, )("open_tag", ve)("close_tag", /<\/[A-Za-z][A-Za-z0-9]*\s*>/)( "comment", - /|/ + /|/, )("processing", /<[?].*?[?]>/)("declaration", /]*>/)( "cdata", - // + //, )(); var we = /^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i, Ee = /^&([a-z][a-z0-9]{1,31});/i; @@ -73340,7 +73373,7 @@ -1 === (t = m(t)).indexOf(":") || -1 === ["vbscript", "javascript", "file", "data"].indexOf( - t.split(":")[0] + t.split(":")[0], ) ); } @@ -73505,7 +73538,7 @@ t && null != t.linkify && console.warn( - "linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n" + "linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n", ), (this.inline = new Se()), (this.block = new te()), @@ -73701,7 +73734,7 @@ throw new Error( "createSelector expects an output function after the inputs, but received: [" + typeof l + - "]" + "]", ); var c = a.memoizeOptions, u = void 0 === c ? n : c, @@ -73723,7 +73756,7 @@ throw new Error( "createSelector expects all input-selectors to be functions, but received the following types: [" + n + - "]" + "]", ); } return t; @@ -73734,7 +73767,7 @@ function () { return i++, l.apply(null, arguments); }, - ].concat(p) + ].concat(p), ), d = e(function () { for (var e = [], t = h.length, n = 0; n < t; n++) @@ -73841,7 +73874,7 @@ r.error( e, `Invalid group, character '${n}' after '?' at column ` + - (a - 1) + (a - 1), ), (g.remember = !1)), u.push(g), @@ -73996,7 +74029,7 @@ : s[l], u = String.fromCharCode(c); return /[[\]{}^$.|?*+()]/.test(u) && (u = "\\" + u), u; - } + }, )); }), (t.tokenizeClass = (e, n) => { @@ -74029,7 +74062,7 @@ }), (t.error = (e, t) => { throw new SyntaxError( - "Invalid regular expression: /" + e + "/: " + t + "Invalid regular expression: /" + e + "/: " + t, ); }); }, @@ -74129,11 +74162,11 @@ var d = window.cancelAnimationFrame; "function" != typeof window.requestAnimationFrame && console.error( - "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills" + "This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills", ), "function" != typeof d && console.error( - "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills" + "This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills", ); } var m = !1, @@ -74148,7 +74181,7 @@ (t.unstable_forceFrameRate = function (e) { 0 > e || 125 < e ? console.error( - "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported" + "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported", ) : (v = 0 < e ? Math.floor(1e3 / e) : 5); }); @@ -75244,7 +75277,7 @@ return Object.getOwnPropertyNames(e).concat( Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e) - : [] + : [], ); } function x(e, t) { @@ -75256,7 +75289,7 @@ Object.defineProperty( e, n[r], - Object.getOwnPropertyDescriptor(t, n[r]) + Object.getOwnPropertyDescriptor(t, n[r]), ); return e; }); @@ -75276,7 +75309,7 @@ for (var o, s, i = E(r), a = 0; a < i.length; ) (o = i[a++]), (s = Object.getOwnPropertyDescriptor(r, o)).hasOwnProperty( - "value" + "value", ) ? s.value !== t && (n[o] = e(O(n[o]) || Array.isArray(r[o]) ? n[o] : {}, r[o])) @@ -75354,7 +75387,7 @@ (n[w] = function () { return r.apply(this, arguments); }), - e + e, ), n ); @@ -75369,7 +75402,7 @@ return ( ((o = {})[e] = s.apply( t, - Array.prototype.concat.apply([{}], arguments) + Array.prototype.concat.apply([{}], arguments), )), (((n = this) && n[w]) || r).call(n, o) ); @@ -75411,7 +75444,7 @@ (o[u] = j((n = E[u]) || r) ? k({}, r, n) : t), (n = E[p]), (o[p] = j( - (r = E.name && { name: { value: E.name } }) || n + (r = E.name && { name: { value: E.name } }) || n, ) ? S({}, n, r) : t), @@ -75419,7 +75452,7 @@ (o[h] = j((n = E[h]) || r) ? S({}, r, n) : t), (r = E[g]), (o[f] = j((n = E[f]) || r) ? k({}, r, n) : t), - o) + o), ); if ( ((e = P.apply(C || s, _)), @@ -75703,7 +75736,7 @@ this.lastChar, this.lastTotal - this.lastNeed, 0, - this.lastNeed + this.lastNeed, ), this.lastChar.toString(this.encoding, 0, this.lastTotal) ); @@ -75735,7 +75768,7 @@ if (n) { let n = `${t.toLowerCase()}_${e}`.replace( /[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g, - "_" + "_", ); return ( (n = n || `${e.substring(1)}_${t}`), @@ -76208,11 +76241,11 @@ (~(f = E.auth.indexOf(":")) ? ((E.username = E.auth.slice(0, f)), (E.username = encodeURIComponent( - decodeURIComponent(E.username) + decodeURIComponent(E.username), )), (E.password = E.auth.slice(f + 1)), (E.password = encodeURIComponent( - decodeURIComponent(E.password) + decodeURIComponent(E.password), ))) : (E.username = encodeURIComponent(decodeURIComponent(E.auth))), (E.auth = E.password @@ -76268,11 +76301,11 @@ ~a ? ((s.username = t.slice(0, a)), (s.username = encodeURIComponent( - decodeURIComponent(s.username) + decodeURIComponent(s.username), )), (s.password = t.slice(a + 1)), (s.password = encodeURIComponent( - decodeURIComponent(s.password) + decodeURIComponent(s.password), ))) : (s.username = encodeURIComponent(decodeURIComponent(t))); } @@ -76582,7 +76615,7 @@ (o.prototype.parse = function (e, t, n) { if ("string" != typeof e) throw new TypeError( - "Parameter 'url' must be a string, not " + typeof e + "Parameter 'url' must be a string, not " + typeof e, ); var o = e.indexOf("?"), i = -1 !== o && o < e.indexOf("#") ? "?" : "#", @@ -76668,7 +76701,7 @@ A && ((this.hostname = this.hostname.substr( 1, - this.hostname.length - 2 + this.hostname.length - 2, )), "/" !== v[0] && (v = "/" + v)); } @@ -76988,7 +77021,7 @@ (o.getSnapshot = t), c(o) && u({ inst: o }); }, - [e, n, t] + [e, n, t], ), i( function () { @@ -76999,7 +77032,7 @@ }) ); }, - [e] + [e], ), l(n), n @@ -77063,7 +77096,7 @@ }, ]; }, - [t, n, r, o] + [t, n, r, o], ); var f = i(e, p[0], p[1]); return ( @@ -77071,7 +77104,7 @@ function () { (h.hasValue = !0), (h.value = f); }, - [f] + [f], ), u(f), f @@ -77229,7 +77262,7 @@ u.push( (function (e, t) { return e + '="' + o(t) + '"'; - })(t, e[t]) + })(t, e[t]), ); }); } @@ -77241,8 +77274,8 @@ p.push( ("/g, - "]]]]>" - ) + "]]>" + "]]]]>", + ) + "]]>", ), l.forEach && ((c = !1), @@ -77284,7 +77317,7 @@ !1, (r > 1 ? t.indents : "") + (t.name ? "" : "") + - (t.indent && !n ? "\n" : "") + (t.indent && !n ? "\n" : ""), ), n && n(); } @@ -77305,7 +77338,7 @@ (t.name ? "<" + t.name : "") + (t.attributes.length ? " " + t.attributes.join(" ") : "") + (r ? (t.name ? ">" : "") : t.name ? "/>" : "") + - (t.indent && r > 1 ? "\n" : "") + (t.indent && r > 1 ? "\n" : ""), ), !r) ) @@ -77384,7 +77417,7 @@ i(e, n, this._elem.icount + (n ? 1 : 0)), function () { t.append(!0); - } + }, ); }, close: function (e) { @@ -77433,7 +77466,7 @@ setTimeout(function () { var n = Math.min( 1, - (new Date().getTime() - u) / o + (new Date().getTime() - u) / o, ), r = Math.max( 0, @@ -77442,14 +77475,14 @@ c * (n < 0.5 ? 2 * n * n - : n * (4 - 2 * n) - 1) - ) + : n * (4 - 2 * n) - 1), + ), ); t.toY(r), n < 1 && t.getHeight() + r < t.body.scrollHeight ? e() : (setTimeout(i, 99), a && a()); - }, 9) + }, 9), ); })(); } @@ -77475,10 +77508,10 @@ 0, t.getTopOf(e) - t.getHeight() / 2 + - (r || e.getBoundingClientRect().height / 2) + (r || e.getBoundingClientRect().height / 2), ), n, - o + o, ); }; return { @@ -77532,7 +77565,7 @@ getHeight: function () { return Math.min( e.clientHeight, - window.innerHeight || n.clientHeight + window.innerHeight || n.clientHeight, ); }, getTopOf: function (e) { @@ -77540,7 +77573,7 @@ }, }, r, - o + o, ); }), "addEventListener" in window && @@ -77564,14 +77597,14 @@ "zenscrollY" in e.state && o.toY(e.state.zenscrollY); }, - !1 + !1, )), window.location.hash && setTimeout(function () { var e = o.setup().edgeOffset; if (e) { var t = document.getElementById( - window.location.href.split("#")[1] + window.location.href.split("#")[1], ); if (t) { var n = Math.max(0, o.getTopOf(t) - e), @@ -77581,7 +77614,7 @@ } }, 9); }, - !1 + !1, ); var a = new RegExp("(^|\\s)noZensmooth(\\s|$)"); window.addEventListener( @@ -77632,7 +77665,7 @@ } } }, - !1 + !1, ); } return o; @@ -78277,7 +78310,7 @@ (e.exports = function (e, t, n) { if (!t.has(e)) throw new TypeError( - "attempted to " + n + " private field on non-instance" + "attempted to " + n + " private field on non-instance", ); return t.get(e); }), @@ -78502,7 +78535,7 @@ var o = n.call(e, t || "default"); if ("object" !== r(o)) return o; throw new TypeError( - "@@toPrimitive must return a primitive value." + "@@toPrimitive must return a primitive value.", ); } return ("string" === t ? String : Number)(e); @@ -78657,7 +78690,7 @@ s[a - u], i[a - u], e.position - (s[a] - s[a - u]), - d + d, )), (h = o.repeat(" ", t.indent) + @@ -78684,7 +78717,7 @@ s[a + u], i[a + u], e.position - (s[a] - s[a + u]), - d + d, )), (h += o.repeat(" ", t.indent) + @@ -78717,7 +78750,7 @@ t + '" is met in definition of "' + e + - '" YAML type.' + '" YAML type.', ); }), (this.options = t), @@ -78758,7 +78791,7 @@ this.kind + '" is specified for "' + e + - '" YAML type.' + '" YAML type.', ); }; function d(e, t) { @@ -78791,7 +78824,7 @@ (!Array.isArray(e.implicit) && !Array.isArray(e.explicit)) ) throw new a( - "Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })" + "Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })", ); e.implicit && (t = t.concat(e.implicit)), e.explicit && (n = n.concat(e.explicit)); @@ -78799,21 +78832,21 @@ t.forEach(function (e) { if (!(e instanceof f)) throw new a( - "Specified list of YAML types (or a single Type object) contains a non-Type object." + "Specified list of YAML types (or a single Type object) contains a non-Type object.", ); if (e.loadKind && "scalar" !== e.loadKind) throw new a( - "There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported." + "There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.", ); if (e.multi) throw new a( - "There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit." + "There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.", ); }), n.forEach(function (e) { if (!(e instanceof f)) throw new a( - "Specified list of YAML types (or a single Type object) contains a non-Type object." + "Specified list of YAML types (or a single Type object) contains a non-Type object.", ); }); var r = Object.create(m.prototype); @@ -79047,7 +79080,7 @@ }, }), O = new RegExp( - "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" + "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$", ); var k = /^[-+]?[0-9]+e/; var A = new f("tag:yaml.org,2002:float", { @@ -79114,7 +79147,7 @@ P = C, N = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), I = new RegExp( - "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$" + "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$", ); var T = new f("tag:yaml.org,2002:timestamp", { kind: "scalar", @@ -79405,7 +79438,7 @@ ? String.fromCharCode(e) : String.fromCharCode( 55296 + ((e - 65536) >> 10), - 56320 + ((e - 65536) & 1023) + 56320 + ((e - 65536) & 1023), ); } for ( @@ -79474,19 +79507,19 @@ ne.test(r) || ye( e, - "ill-formed tag handle (first argument) of the TAG directive" + "ill-formed tag handle (first argument) of the TAG directive", ), W.call(e.tagMap, r) && ye( e, 'there is a previously declared suffix for "' + r + - '" tag handle' + '" tag handle', ), re.test(o) || ye( e, - "ill-formed tag prefix (second argument) of the TAG directive" + "ill-formed tag prefix (second argument) of the TAG directive", ); try { o = decodeURIComponent(o); @@ -79516,7 +79549,7 @@ o.isObject(n) || ye( e, - "cannot merge mappings; the provided source object is unacceptable" + "cannot merge mappings; the provided source object is unacceptable", ), a = 0, l = (s = Object.keys(n)).length; @@ -79738,7 +79771,7 @@ e.position === t && ye( e, - "name of an anchor node must contain at least one character" + "name of an anchor node must contain at least one character", ), (e.anchor = e.input.slice(t, e.position)), !0 @@ -79822,7 +79855,7 @@ ((e.position = e.firstTabInLine), ye( e, - "tab characters must not be used in indentation" + "tab characters must not be used in indentation", )), (r = e.input.charCodeAt(e.position + 1)), (s = e.line), @@ -79842,7 +79875,7 @@ ae((c = e.input.charCodeAt(++e.position))) || ye( e, - "a whitespace character is expected after the key-value separator within a block mapping" + "a whitespace character is expected after the key-value separator within a block mapping", ), y && (xe(e, h, f, d, m, null, i, a, l), @@ -79856,14 +79889,14 @@ if (!v) return (e.tag = u), (e.anchor = p), !0; ye( e, - "can not read an implicit mapping pair; a colon is missed" + "can not read an implicit mapping pair; a colon is missed", ); } } else { if (!v) return (e.tag = u), (e.anchor = p), !0; ye( e, - "can not read a block mapping entry; a multiline key may not be an implicit key" + "can not read a block mapping entry; a multiline key may not be an implicit key", ); } } else @@ -79878,7 +79911,7 @@ ? ((y = !1), (o = !0)) : ye( e, - "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line" + "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line", ), (e.position += 1), (c = r); @@ -79987,7 +80020,7 @@ } ye( e, - "unexpected end of the stream within a flow collection" + "unexpected end of the stream within a flow collection", ); })(e, f) ? (y = !0) @@ -80029,12 +80062,12 @@ 0 === s ? ye( e, - "bad explicit indentation width of a block scalar; it cannot be less than one" + "bad explicit indentation width of a block scalar; it cannot be less than one", ) : u ? ye( e, - "repeat of an indentation width identifier" + "repeat of an indentation width identifier", ) : ((p = t + s - 1), (u = !0)); } @@ -80121,12 +80154,12 @@ : e.position === e.lineStart && je(e) ? ye( e, - "unexpected end of the document within a single quoted scalar" + "unexpected end of the document within a single quoted scalar", ) : (e.position++, (o = e.position)); ye( e, - "unexpected end of the stream within a single quoted scalar" + "unexpected end of the stream within a single quoted scalar", ); })(e, f) || (function (e, t) { @@ -80163,7 +80196,7 @@ ) { for (o = i, s = 0; o > 0; o--) (i = ce( - (a = e.input.charCodeAt(++e.position)) + (a = e.input.charCodeAt(++e.position)), )) >= 0 ? (s = (s << 4) + i) : ye(e, "expected hexadecimal character"); @@ -80178,13 +80211,13 @@ : e.position === e.lineStart && je(e) ? ye( e, - "unexpected end of the document within a double quoted scalar" + "unexpected end of the document within a double quoted scalar", ) : (e.position++, (r = e.position)); } ye( e, - "unexpected end of the stream within a double quoted scalar" + "unexpected end of the stream within a double quoted scalar", ); })(e, f) ? (y = !0) @@ -80203,7 +80236,7 @@ e.position === t && ye( e, - "name of an alias node must contain at least one character" + "name of an alias node must contain at least one character", ), (n = e.input.slice(t, e.position)), W.call(e.anchorMap, n) || @@ -80317,7 +80350,7 @@ e, 'unacceptable node kind for ! tag; it should be "scalar", not "' + e.kind + - '"' + '"', ), c = 0, u = e.implicitTypes.length; @@ -80356,14 +80389,14 @@ h.kind + '", not "' + e.kind + - '"' + '"', ), h.resolve(e.result, e.tag) ? ((e.result = h.construct(e.result, e.tag)), null !== e.anchor && (e.anchorMap[e.anchor] = e.result)) : ye( e, - "cannot resolve a node with !<" + e.tag + "> explicit tag" + "cannot resolve a node with !<" + e.tag + "> explicit tag", ); } return ( @@ -80400,7 +80433,7 @@ (n = e.input.slice(t, e.position)).length < 1 && ye( e, - "directive name must not be less than one character in length" + "directive name must not be less than one character in length", ); 0 !== o; @@ -80476,7 +80509,7 @@ if (0 !== n.length) { if (1 === n.length) return n[0]; throw new a( - "expected a single document in the stream, but found more" + "expected a single document in the stream, but found more", ); } }, @@ -80552,7 +80585,7 @@ else { if (!(e <= 4294967295)) throw new a( - "code point within a string may not be greater than 0xFFFFFFFF" + "code point within a string may not be greater than 0xFFFFFFFF", ); (n = "U"), (r = 8); } @@ -80762,7 +80795,7 @@ }, e.quotingType, e.forceQuotes && !r, - o + o, ) ) { case xt: @@ -80798,8 +80831,8 @@ } return s; })(t, i), - s - ) + s, + ), ) ); case Ot: @@ -80909,7 +80942,7 @@ l.tag + '> tag resolver accepts not "' + c + - '" style' + '" style', ); r = l.represent[c](t, c); } @@ -81039,7 +81072,7 @@ null !== e.tag && "?" !== e.tag && ((l = encodeURI( - "!" === e.tag[0] ? e.tag.slice(1) : e.tag + "!" === e.tag[0] ? e.tag.slice(1) : e.tag, ).replace(/!/g, "%21")), (l = "!" === e.tag[0] @@ -81077,7 +81110,7 @@ e + " is removed in js-yaml 4. Use yaml." + t + - " instead, which is now safe by default." + " instead, which is now safe by default.", ); }; } @@ -81256,7 +81289,7 @@ boundSystem: {}, toolbox: {}, }, - t + t, ), (this.getSystem = m()((e = this._getSystem)).call(e, this)), (this.store = @@ -81293,7 +81326,7 @@ this.getWrappedAndBoundSelectors(n, this.getSystem), this.getStateThunks(n), this.getFn(), - this.getConfigs() + this.getConfigs(), )), e && this.rebuildReducer(); } @@ -81312,7 +81345,7 @@ Im: N(), React: A, }, - this.system.rootInjects || {} + this.system.rootInjects || {}, ); } _getConfigs() { @@ -81351,10 +81384,10 @@ })(e[n])), t ), - {} + {}, ); return c()(n).length ? (0, I.U)(n) : B; - })((0, L.Ay)(e, (e) => e.reducers))) + })((0, L.Ay)(e, (e) => e.reducers))), ); } getType(e) { @@ -81372,7 +81405,7 @@ return (0, L.Ay)(e, (e) => (0, L.Q2)(e, (e, t) => { if ((0, L.LQ)(e)) return { [t]: e }; - }) + }), ); } getWrappedAndBoundActions(e) { @@ -81393,11 +81426,11 @@ }; if (!(0, L.LQ)(r)) throw new TypeError( - "wrapActions needs to return a function that returns a new function (ie the wrapped action)" + "wrapActions needs to return a function that returns a new function (ie the wrapped action)", ); return V(r); }, - e || Function.prototype + e || Function.prototype, )) : e; }) @@ -81429,11 +81462,11 @@ }; if (!(0, L.LQ)(s)) throw new TypeError( - "wrapSelector needs to return a function that returns a new function (ie the wrapped action)" + "wrapSelector needs to return a function that returns a new function (ie the wrapped action)", ); return s; }, - t || Function.prototype + t || Function.prototype, )) : t; }) @@ -81445,7 +81478,7 @@ return S()((t = c()(this.system.statePlugins))).call( t, (t, n) => ((t[n] = e.get(n)), t), - {} + {}, ); } getStateThunks(e) { @@ -81453,7 +81486,7 @@ return S()((t = c()(this.system.statePlugins))).call( t, (t, n) => ((t[n] = () => e().get(n)), t), - {} + {}, ); } getFn() { @@ -81482,7 +81515,7 @@ s[i] = arguments[i]; let a = V(n).apply(null, [e().getIn(o), ...s]); return "function" == typeof a && (a = V(a)(t())), a; - } + }, ); }); } @@ -81577,7 +81610,7 @@ ) t.statePlugins[e].wrapActions[n] = k()((r = i[n])).call( r, - t.statePlugins[e].wrapActions[n] + t.statePlugins[e].wrapActions[n], ); } if ((0, L.Kn)(a)) @@ -81594,7 +81627,7 @@ ) t.statePlugins[e].wrapSelectors[n] = k()((o = a[n])).call( o, - t.statePlugins[e].wrapSelectors[n] + t.statePlugins[e].wrapSelectors[n], ); } } @@ -81663,7 +81696,7 @@ }), ce()(this, "onResetClick", (e) => { const t = this.props.oas3Selectors.selectDefaultRequestBodyValue( - ...e + ...e, ); this.props.oas3Actions.setRequestBodyValue({ value: t, @@ -81903,8 +81936,8 @@ className: "close-modal", onClick: this.close, }, - A.createElement(c, null) - ) + A.createElement(c, null), + ), ), A.createElement( "div", @@ -81919,12 +81952,12 @@ authSelectors: t, authActions: n, specSelectors: s, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ); } } @@ -81949,9 +81982,9 @@ onClick: n, }, A.createElement("span", null, "Authorize"), - e ? A.createElement(s, null) : A.createElement(i, null) + e ? A.createElement(s, null) : A.createElement(i, null), ), - t && A.createElement(o, null) + t && A.createElement(o, null), ); } } @@ -82000,7 +82033,7 @@ }, e ? A.createElement(n, { className: "locked" }) - : A.createElement(r, { className: "unlocked" }) + : A.createElement(r, { className: "unlocked" }), ); } } @@ -82064,7 +82097,7 @@ onAuthChange: this.onAuthChange, authorized: c, errSelectors: o, - }) + }), ) .toArray(), A.createElement( @@ -82077,7 +82110,7 @@ className: "btn modal-btn auth", onClick: this.logoutClick, }, - "Logout" + "Logout", ) : A.createElement( l, @@ -82085,7 +82118,7 @@ type: "submit", className: "btn modal-btn auth authorize", }, - "Authorize" + "Authorize", ), A.createElement( l, @@ -82093,9 +82126,9 @@ className: "btn modal-btn auth btn-done", onClick: this.close, }, - "Close" - ) - ) + "Close", + ), + ), ), h && h.size ? A.createElement( @@ -82107,25 +82140,25 @@ A.createElement( "p", null, - "Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes." + "Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes.", ), A.createElement( "p", null, - "API requires the following scopes. Select which ones you want to grant to Swagger UI." - ) + "API requires the following scopes. Select which ones you want to grant to Swagger UI.", + ), ), j()((e = a()(t).call(t, (e) => "oauth2" === e.get("type")))) .call(e, (e, t) => A.createElement( "div", { key: t }, - A.createElement(i, { authorized: c, schema: e, name: t }) - ) + A.createElement(i, { authorized: c, schema: e, name: t }), + ), ) - .toArray() + .toArray(), ) - : null + : null, ); } } @@ -82171,7 +82204,7 @@ "div", { key: t }, "Unknown security definition type ", - c + c, ); } return A.createElement("div", { key: `${t}-jump` }, l); @@ -82187,7 +82220,7 @@ "div", { className: "errors" }, A.createElement("b", null, r, " ", t), - A.createElement("span", null, n) + A.createElement("span", null, n), ); } } @@ -82232,13 +82265,13 @@ null, A.createElement("code", null, s || n.get("name")), " (apiKey)", - A.createElement(h, { path: ["securityDefinitions", s] }) + A.createElement(h, { path: ["securityDefinitions", s] }), ), f && A.createElement("h6", null, "Authorized"), A.createElement( l, null, - A.createElement(p, { source: n.get("description") }) + A.createElement(p, { source: n.get("description") }), ), A.createElement( l, @@ -82247,8 +82280,8 @@ "p", null, "Name: ", - A.createElement("code", null, n.get("name")) - ) + A.createElement("code", null, n.get("name")), + ), ), A.createElement( l, @@ -82257,8 +82290,8 @@ "p", null, "In: ", - A.createElement("code", null, n.get("in")) - ) + A.createElement("code", null, n.get("in")), + ), ), A.createElement( l, @@ -82273,12 +82306,12 @@ type: "text", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), j()((t = d.valueSeq())).call(t, (e, t) => - A.createElement(u, { error: e, key: t }) - ) + A.createElement(u, { error: e, key: t }), + ), ); } } @@ -82322,13 +82355,13 @@ "h4", null, "Basic authorization", - A.createElement(p, { path: ["securityDefinitions", o] }) + A.createElement(p, { path: ["securityDefinitions", o] }), ), f && A.createElement("h6", null, "Authorized"), A.createElement( l, null, - A.createElement(h, { source: n.get("description") }) + A.createElement(h, { source: n.get("description") }), ), A.createElement( l, @@ -82345,8 +82378,8 @@ name: "username", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), A.createElement( l, @@ -82362,12 +82395,12 @@ name: "password", type: "password", onChange: this.onChange, - }) - ) + }), + ), ), j()((t = d.valueSeq())).call(t, (e, t) => - A.createElement(u, { error: e, key: t }) - ) + A.createElement(u, { error: e, key: t }), + ), ); } } @@ -82386,13 +82419,13 @@ A.createElement( "div", { className: "example__section-header" }, - "Example Description" + "Example Description", ), A.createElement( "p", null, - A.createElement(s, { source: t.get("description") }) - ) + A.createElement(s, { source: t.get("description") }), + ), ) : null, n && t.has("value") @@ -82402,14 +82435,14 @@ A.createElement( "div", { className: "example__section-header" }, - "Example Value" + "Example Value", ), A.createElement(i, { getConfigs: o, value: (0, L.Pz)(t.get("value")), - }) + }), ) - : null + : null, ) : null; } @@ -82473,7 +82506,7 @@ ? A.createElement( "span", { className: "examples-select__section-label" }, - "Examples: " + "Examples: ", ) : null, A.createElement( @@ -82487,7 +82520,7 @@ ? A.createElement( "option", { value: "__MODIFIED__VALUE__" }, - "[Modified value]" + "[Modified value]", ) : null, j()(e) @@ -82495,11 +82528,11 @@ A.createElement( "option", { key: t, value: t }, - e.get("summary") || t - ) + e.get("summary") || t, + ), ) - .valueSeq() - ) + .valueSeq(), + ), ); } } @@ -82510,7 +82543,7 @@ t[n] = arguments[n]; return console.log( "DEBUG: ExamplesSelect was not given an onSelect callback", - ...t + ...t, ); }, currentExampleKey: null, @@ -82607,7 +82640,7 @@ l = this._getValueForExample(e.currentKey, e), c = a()(n).call( n, - (e) => e.get("value") === t || (0, L.Pz)(e.get("value")) === t + (e) => e.get("value") === t || (0, L.Pz)(e.get("value")) === t, ); if (c.size) { let t; @@ -82657,7 +82690,7 @@ t[n] = arguments[n]; return console.log( "ExamplesSelectValueRetainer: no `onSelect` function was provided", - ...t + ...t, ); }, updateValue: function () { @@ -82665,7 +82698,7 @@ t[n] = arguments[n]; return console.log( "ExamplesSelectValueRetainer: no `updateValue` function was provided", - ...t + ...t, ); }, }); @@ -82766,7 +82799,7 @@ h.push( j()((y = [e, g[e]])) .call(y, encodeURIComponent) - .join("=") + .join("="), ); } const v = a.get("authorizationUrl"); @@ -82774,7 +82807,7 @@ b = i ? Fe()((0, L.Nm)(v), i, !0).toString() : (0, L.Nm)(v); let w, x = [b, h.join("&")].join( - -1 === pe()(v).call(v, "?") ? "?" : "&" + -1 === pe()(v).call(v, "?") ? "?" : "&", ); (w = "implicit" === p @@ -82832,8 +82865,8 @@ Te()( (t = this.props.schema.get("allowedScopes") || - this.props.schema.get("scopes")) - ).call(t) + this.props.schema.get("scopes")), + ).call(t), ), }) : this.setState({ scopes: [] }); @@ -82920,7 +82953,7 @@ " (OAuth2, ", O, ") ", - A.createElement(d, { path: ["securityDefinitions", i] }) + A.createElement(d, { path: ["securityDefinitions", i] }), ), this.state.appName ? A.createElement( @@ -82928,7 +82961,7 @@ null, "Application: ", this.state.appName, - " " + " ", ) : null, I && A.createElement(m, { source: n.get("description") }), @@ -82938,27 +82971,27 @@ "p", null, "OpenID Connect URL: ", - A.createElement("code", null, v) + A.createElement("code", null, v), ), (_ === b || _ === E) && A.createElement( "p", null, "Authorization URL: ", - A.createElement("code", null, n.get("authorizationUrl")) + A.createElement("code", null, n.get("authorizationUrl")), ), (_ === w || _ === E || _ === x) && A.createElement( "p", null, "Token URL:", - A.createElement("code", null, " ", n.get("tokenUrl")) + A.createElement("code", null, " ", n.get("tokenUrl")), ), A.createElement( "p", { className: "flow" }, "Flow: ", - A.createElement("code", null, O) + A.createElement("code", null, O), ), _ !== w ? null @@ -82971,7 +83004,7 @@ A.createElement( "label", { htmlFor: "oauth_username" }, - "username:" + "username:", ), C ? A.createElement( @@ -82979,7 +83012,7 @@ null, " ", this.state.username, - " " + " ", ) : A.createElement( p, @@ -82990,8 +83023,8 @@ "data-name": "username", onChange: this.onInputChange, autoFocus: !0, - }) - ) + }), + ), ), A.createElement( u, @@ -82999,7 +83032,7 @@ A.createElement( "label", { htmlFor: "oauth_password" }, - "password:" + "password:", ), C ? A.createElement("code", null, " ****** ") @@ -83011,8 +83044,8 @@ type: "password", "data-name": "password", onChange: this.onInputChange, - }) - ) + }), + ), ), A.createElement( u, @@ -83020,7 +83053,7 @@ A.createElement( "label", { htmlFor: "password_type" }, - "Client credentials location:" + "Client credentials location:", ), C ? A.createElement( @@ -83028,7 +83061,7 @@ null, " ", this.state.passwordType, - " " + " ", ) : A.createElement( p, @@ -83043,16 +83076,16 @@ A.createElement( "option", { value: "basic" }, - "Authorization header" + "Authorization header", ), A.createElement( "option", { value: "request-body" }, - "Request body" - ) - ) - ) - ) + "Request body", + ), + ), + ), + ), ), (_ === x || _ === b || _ === E || _ === w) && (!C || (C && this.state.clientId)) && @@ -83072,8 +83105,8 @@ initialValue: this.state.clientId, "data-name": "clientId", onChange: this.onInputChange, - }) - ) + }), + ), ), (_ === x || _ === E || _ === w) && A.createElement( @@ -83082,7 +83115,7 @@ A.createElement( "label", { htmlFor: "client_secret" }, - "client_secret:" + "client_secret:", ), C ? A.createElement("code", null, " ****** ") @@ -83095,8 +83128,8 @@ type: "password", "data-name": "clientSecret", onChange: this.onInputChange, - }) - ) + }), + ), ), !C && k && k.size ? A.createElement( @@ -83109,13 +83142,13 @@ A.createElement( "a", { onClick: this.selectScopes, "data-all": !0 }, - "select all" + "select all", ), A.createElement( "a", { onClick: this.selectScopes }, - "select none" - ) + "select none", + ), ), j()(k) .call(k, (e, t) => { @@ -83145,18 +83178,18 @@ A.createElement( "p", { className: "description" }, - e - ) - ) - ) - ) + e, + ), + ), + ), + ), ); }) - .toArray() + .toArray(), ) : null, j()((t = P.valueSeq())).call(t, (e, t) => - A.createElement(f, { error: e, key: t }) + A.createElement(f, { error: e, key: t }), ), A.createElement( "div", @@ -83169,7 +83202,7 @@ className: "btn modal-btn auth authorize", onClick: this.logout, }, - "Logout" + "Logout", ) : A.createElement( h, @@ -83177,14 +83210,14 @@ className: "btn modal-btn auth authorize", onClick: this.authorize, }, - "Authorize" + "Authorize", )), A.createElement( h, { className: "btn modal-btn auth btn-done", onClick: this.close }, - "Close" - ) - ) + "Close", + ), + ), ); } } @@ -83203,7 +83236,7 @@ className: "btn btn-clear opblock-control__btn", onClick: this.onClick, }, - "Clear" + "Clear", ); } } @@ -83213,7 +83246,7 @@ "div", null, A.createElement("h5", null, "Response headers"), - A.createElement("pre", { className: "microlight" }, t) + A.createElement("pre", { className: "microlight" }, t), ); }, qe = (e) => { @@ -83222,7 +83255,7 @@ "div", null, A.createElement("h5", null, "Request duration"), - A.createElement("pre", { className: "microlight" }, t, " ms") + A.createElement("pre", { className: "microlight" }, t, " ms"), ); }; class Ue extends A.Component { @@ -83265,7 +83298,7 @@ e, ": ", t, - " " + " ", ); }), S = 0 !== x.length, @@ -83287,8 +83320,8 @@ "div", { className: "request-url" }, A.createElement("h4", null, "Request URL"), - A.createElement("pre", { className: "microlight" }, h) - ) + A.createElement("pre", { className: "microlight" }, h), + ), ), A.createElement("h4", null, "Server response"), A.createElement( @@ -83303,14 +83336,14 @@ A.createElement( "td", { className: "col_header response-col_status" }, - "Code" + "Code", ), A.createElement( "td", { className: "col_header response-col_description" }, - "Details" - ) - ) + "Details", + ), + ), ), A.createElement( "tbody", @@ -83326,9 +83359,9 @@ ? A.createElement( "div", { className: "response-undocumented" }, - A.createElement("i", null, " Undocumented ") + A.createElement("i", null, " Undocumented "), ) - : null + : null, ), A.createElement( "td", @@ -83351,11 +83384,11 @@ }) : null, S ? A.createElement($e, { headers: x }) : null, - r && y ? A.createElement(qe, { duration: y }) : null - ) - ) - ) - ) + r && y ? A.createElement(qe, { duration: y }) : null, + ), + ), + ), + ), ); } } @@ -83408,8 +83441,8 @@ tag: t, }); }) - .toArray() - ) + .toArray(), + ), ); }); } @@ -83426,9 +83459,9 @@ ? A.createElement( "h3", null, - " No operations defined in spec! " + " No operations defined in spec! ", ) - : null + : null, ); } } @@ -83492,7 +83525,7 @@ ? A.createElement( "small", null, - A.createElement(f, { source: b }) + A.createElement(f, { source: b }), ) : A.createElement("small", null), v @@ -83509,9 +83542,9 @@ onClick: (e) => e.stopPropagation(), target: "_blank", }, - w || v - ) - ) + w || v, + ), + ), ) : null, A.createElement( @@ -83524,10 +83557,10 @@ }, S ? A.createElement(g, { className: "arrow" }) - : A.createElement(y, { className: "arrow" }) - ) + : A.createElement(y, { className: "arrow" }), + ), ), - A.createElement(h, { isOpened: S }, n) + A.createElement(h, { isOpened: S }, n), ); } } @@ -83632,7 +83665,7 @@ A.createElement( "h4", { className: "opblock-title_normal" }, - " Warning: Deprecated" + " Warning: Deprecated", ), I && A.createElement( @@ -83641,8 +83674,8 @@ A.createElement( "div", { className: "opblock-description" }, - A.createElement(H, { source: I }) - ) + A.createElement(H, { source: I }), + ), ), M ? A.createElement( @@ -83651,7 +83684,7 @@ A.createElement( "h4", { className: "opblock-title_normal" }, - "Find more details" + "Find more details", ), A.createElement( "div", @@ -83660,7 +83693,7 @@ A.createElement( "span", { className: "opblock-external-docs__description" }, - A.createElement(H, { source: T.description }) + A.createElement(H, { source: T.description }), ), A.createElement( Q, @@ -83669,9 +83702,9 @@ className: "opblock-external-docs__link", href: (0, L.Nm)(M), }, - M - ) - ) + M, + ), + ), ) : null, D && D.size @@ -83719,7 +83752,7 @@ method: x, specActions: h, currentScheme: $, - }) + }), ) : null, !P || !k || ne.length <= 0 @@ -83732,9 +83765,9 @@ "ul", null, j()(ne).call(ne, (e, t) => - A.createElement("li", { key: t }, " ", e, " ") - ) - ) + A.createElement("li", { key: t }, " ", e, " "), + ), + ), ), A.createElement( "div", @@ -83754,13 +83787,13 @@ : null, P && t && k ? A.createElement(J, { specActions: h, path: E, method: x }) - : null + : null, ), N ? A.createElement( "div", { className: "loading-container" }, - A.createElement("div", { className: "loading" }) + A.createElement("div", { className: "loading" }), ) : null, F @@ -83785,9 +83818,9 @@ : null, ee && U.size ? A.createElement(Y, { extensions: U, getComponent: u }) - : null - ) - ) + : null, + ), + ), ); } } @@ -83855,16 +83888,16 @@ ? A.createElement( "div", { className: "opblock-summary-description" }, - Ge()(g || a) + Ge()(g || a), ) : null, m && (d || f) ? A.createElement( "span", { className: "opblock-summary-operation-id" }, - d || f + d || f, ) - : null + : null, ), A.createElement(x, { textToCopy: `${i.get(1)}` }), k @@ -83887,9 +83920,9 @@ }, e ? A.createElement(S, { className: "arrow" }) - : A.createElement(_, { className: "arrow" }) + : A.createElement(_, { className: "arrow" }), ), - A.createElement(E, { path: i }) + A.createElement(E, { path: i }), ); } } @@ -83904,7 +83937,7 @@ return A.createElement( "span", { className: "opblock-summary-method" }, - e.toUpperCase() + e.toUpperCase(), ); } } @@ -83939,7 +83972,7 @@ isShown: r, path: (0, L.oJ)(`${s}/${i}`), text: l, - }) + }), ); } } @@ -83953,7 +83986,7 @@ A.createElement( "div", { className: "opblock-section-header" }, - A.createElement("h4", null, "Extensions") + A.createElement("h4", null, "Extensions"), ), A.createElement( "div", @@ -83968,8 +84001,8 @@ "tr", null, A.createElement("td", { className: "col_header" }, "Field"), - A.createElement("td", { className: "col_header" }, "Value") - ) + A.createElement("td", { className: "col_header" }, "Value"), + ), ), A.createElement( "tbody", @@ -83981,10 +84014,10 @@ xKey: t, xVal: n, }); - }) - ) - ) - ) + }), + ), + ), + ), ); }, nt = (e) => { @@ -83994,7 +84027,7 @@ "tr", null, A.createElement("td", null, t), - A.createElement("td", null, p()(r)) + A.createElement("td", null, p()(r)), ); }; var rt = n(86), @@ -84028,11 +84061,11 @@ var e; const t = a()((e = Ne()(p.current.childNodes))).call( e, - (e) => !!e.nodeType && e.classList.contains("microlight") + (e) => !!e.nodeType && e.classList.contains("microlight"), ); return ( ot()(t).call(t, (e) => - e.addEventListener("mousewheel", h, { passive: !1 }) + e.addEventListener("mousewheel", h, { passive: !1 }), ), () => { ot()(t).call(t, (e) => e.removeEventListener("mousewheel", h)); @@ -84056,8 +84089,8 @@ A.createElement( dt.CopyToClipboard, { text: t }, - A.createElement("button", null) - ) + A.createElement("button", null), + ), ), o ? A.createElement( @@ -84068,7 +84101,7 @@ ft()(t, n); }, }, - "Download" + "Download", ) : null, u @@ -84079,9 +84112,9 @@ className: it()(r, "microlight"), style: (0, at.C2)(ct()(c, "syntaxHighlight.theme", "agate")), }, - t + t, ) - : A.createElement("pre", { className: it()(r, "microlight") }, t) + : A.createElement("pre", { className: it()(r, "microlight") }, t), ); }; mt.defaultProps = { fileName: "response.txt" }; @@ -84092,8 +84125,8 @@ ce()(this, "onChangeProducesWrapper", (e) => this.props.specActions.changeProducesValue( [this.props.path, this.props.method], - e - ) + e, + ), ), ce()(this, "onResponseContentTypeChange", (e) => { let { controlsAcceptHeader: t, value: n } = e; @@ -84156,8 +84189,8 @@ contentTypes: v, controlId: E, onChange: this.onChangeProducesWrapper, - }) - ) + }), + ), ), A.createElement( "div", @@ -84175,7 +84208,7 @@ method: this.props.method, displayRequestDuration: l, }), - A.createElement("h4", null, "Responses") + A.createElement("h4", null, "Responses"), ) : null, A.createElement( @@ -84195,21 +84228,21 @@ A.createElement( "td", { className: "col_header response-col_status" }, - "Code" + "Code", ), A.createElement( "td", { className: "col_header response-col_description" }, - "Description" + "Description", ), s.isOAS3() ? A.createElement( "td", { className: "col col_header response-col_links" }, - "Links" + "Links", ) - : null - ) + : null, + ), ), A.createElement( "tbody", @@ -84237,16 +84270,16 @@ u, p, "responses", - t + t, ), oas3Actions: f, getComponent: r, }); }) - .toArray() - ) - ) - ) + .toArray(), + ), + ), + ), ); } } @@ -84369,7 +84402,7 @@ getConfigs: n, language: r, value: (0, L.Pz)(e), - }) + }), ) ); } @@ -84385,7 +84418,7 @@ A.createElement( "div", { className: "response-col_description__inner" }, - A.createElement(k, { source: s.get("description") }) + A.createElement(k, { source: s.get("description") }), ), v && b.size ? j()((e = b.entrySeq())).call(e, (e) => { @@ -84411,7 +84444,7 @@ A.createElement( "small", { className: "response-control-media-type__title" }, - "Media type" + "Media type", ), A.createElement(N, { value: this.state.responseContentType, @@ -84430,9 +84463,9 @@ }, "Controls ", A.createElement("code", null, "Accept"), - " header." + " header.", ) - : null + : null, ), B ? A.createElement( @@ -84441,7 +84474,7 @@ A.createElement( "small", { className: "response-control-examples__title" }, - "Examples" + "Examples", ), A.createElement(I, { examples: B, @@ -84454,9 +84487,9 @@ contextName: o, }), showLabels: !1, - }) + }), ) - : null + : null, ) : null, W || R @@ -84478,7 +84511,7 @@ omitValue: !0, }) : null, - w ? A.createElement(S, { headers: w, getComponent: c }) : null + w ? A.createElement(S, { headers: w, getComponent: c }) : null, ), y ? A.createElement( @@ -84494,9 +84527,9 @@ getComponent: c, }); }) - : A.createElement("i", null, "No links") + : A.createElement("i", null, "No links"), ) - : null + : null, ); } } @@ -84511,7 +84544,7 @@ { className: "response__extension" }, t, ": ", - String(n) + String(n), ); }; var St = n(63460), @@ -84589,8 +84622,8 @@ href: a, onClick: () => F.Z.navigator.msSaveOrOpenBlob(i, l), }, - "Download file" - ) + "Download file", + ), ) : A.createElement( "div", @@ -84598,14 +84631,14 @@ A.createElement( "a", { href: a, download: l }, - "Download file" - ) + "Download file", + ), ); } else h = A.createElement( "pre", { className: "microlight" }, - "Download headers detected but your browser does not support downloading binary via XHR (Blob)." + "Download headers detected but your browser does not support downloading binary via XHR (Blob).", ); else if (/json/i.test(t)) { let t = null; @@ -84661,8 +84694,8 @@ A.createElement( "audio", { controls: !0, key: n }, - A.createElement("source", { src: n, type: t }) - ) + A.createElement("source", { src: n, type: t }), + ), ) : "string" == typeof e ? A.createElement(l, { @@ -84680,7 +84713,7 @@ A.createElement( "p", { className: "i" }, - "Unrecognized response type; displaying content as text." + "Unrecognized response type; displaying content as text.", ), A.createElement(l, { downloadable: !0, @@ -84688,12 +84721,12 @@ value: a, getConfigs: o, canCopy: !0, - }) + }), ) : A.createElement( "p", { className: "i" }, - "Unrecognized response type; unable to display." + "Unrecognized response type; unable to display.", ) : null); return h @@ -84701,7 +84734,7 @@ "div", null, A.createElement("h5", null, "Response body"), - h + h, ) : null; } @@ -84730,7 +84763,7 @@ ? this.setState({ parametersVisible: !0, callbackVisible: !1 }) : "callbacks" === e ? this.setState({ callbackVisible: !0, parametersVisible: !1 }) - : void 0 + : void 0, ), ce()(this, "onChangeMediaType", (e) => { let { value: t, pathMethod: n } = e, @@ -84782,9 +84815,9 @@ const n = t.get("in"); return e[n] ?? (e[n] = []), e[n].push(t), e; }, - {} - ) - )) + {}, + ), + )), ).call(e, (e, t) => k()(e).call(e, t), []); return A.createElement( "div", @@ -84807,8 +84840,8 @@ A.createElement( "h4", { className: "opblock-title" }, - A.createElement("span", null, "Parameters") - ) + A.createElement("span", null, "Parameters"), + ), ), m.get("callbacks") ? A.createElement( @@ -84822,10 +84855,10 @@ A.createElement( "h4", { className: "opblock-title" }, - A.createElement("span", null, "Callbacks") - ) + A.createElement("span", null, "Callbacks"), + ), ) - : null + : null, ) : A.createElement( "div", @@ -84833,8 +84866,8 @@ A.createElement( "h4", { className: "opblock-title" }, - "Parameters" - ) + "Parameters", + ), ), o ? A.createElement(y, { @@ -84845,7 +84878,7 @@ onTryoutClick: t, onResetClick: () => n(h), }) - : null + : null, ), this.state.parametersVisible ? A.createElement( @@ -84867,7 +84900,7 @@ A.createElement( "th", { className: "col_header parameters-col_name" }, - "Name" + "Name", ), A.createElement( "th", @@ -84875,9 +84908,9 @@ className: "col_header parameters-col_description", }, - "Description" - ) - ) + "Description", + ), + ), ), A.createElement( "tbody", @@ -84899,16 +84932,16 @@ oas3Selectors: d, pathMethod: h, isExecute: x, - }) - ) - ) - ) + }), + ), + ), + ), ) : A.createElement( "div", { className: "opblock-description-wrapper" }, - A.createElement("p", null, "No parameters") - ) + A.createElement("p", null, "No parameters"), + ), ) : null, this.state.callbackVisible @@ -84920,7 +84953,7 @@ A.createElement(w, { callbacks: (0, P.Map)(m.get("callbacks")), specPath: b()(i).call(i, 0, -1).push("callbacks"), - }) + }), ) : null, _ && @@ -84939,7 +84972,7 @@ O.get("required") && "required" }`, }, - "Request body" + "Request body", ), A.createElement( "label", @@ -84952,8 +84985,8 @@ }, className: "body-param-content-type", ariaLabel: "Request content type", - }) - ) + }), + ), ), A.createElement( "div", @@ -84969,7 +85002,7 @@ requestBody: O, requestBodyValue: d.requestBodyValue(...h), requestBodyInclusionSetting: d.requestBodyInclusionSetting( - ...h + ...h, ), requestBodyErrors: d.requestBodyErrors(...h), isExecute: x, @@ -84977,7 +85010,7 @@ activeExamplesKey: d.activeExamplesMember( ...h, "requestBody", - "requestBody" + "requestBody", ), updateActiveExamplesKey: (e) => { this.props.oas3Actions.setActiveExamplesMember({ @@ -85006,9 +85039,9 @@ }); }, contentType: d.requestContentType(...h), - }) - ) - ) + }), + ), + ), ); } } @@ -85027,7 +85060,7 @@ { className: "parameter__extension" }, t, ": ", - String(n) + String(n), ); }, Rt = { onChange: () => {}, isIncludedOptions: {} }; @@ -85060,8 +85093,8 @@ checked: !t && e, onChange: this.onCheckboxChange, }), - "Send empty value" - ) + "Send empty value", + ), ); } } @@ -85123,7 +85156,7 @@ const e = r.activeExamplesMember( ...t, "parameters", - this.getParamKey() + this.getParamKey(), ); n = void 0 !== s.getIn(["examples", e, "value"]) @@ -85255,7 +85288,7 @@ className: U ? "parameter__name required" : "parameter__name", }, n.get("name"), - U ? A.createElement("span", null, " *") : null + U ? A.createElement("span", null, " *") : null, ), A.createElement( "div", @@ -85268,20 +85301,20 @@ { className: "prop-format" }, "($", M, - ")" - ) + ")", + ), ), A.createElement( "div", { className: "parameter__deprecated" }, - f && n.get("deprecated") ? "deprecated" : null + f && n.get("deprecated") ? "deprecated" : null, ), A.createElement( "div", { className: "parameter__in" }, "(", n.get("in"), - ")" + ")", ), m && V.size ? j()((e = V.entrySeq())).call(e, (e) => { @@ -85302,7 +85335,7 @@ xVal: n, }); }) - : null + : null, ), A.createElement( "td", @@ -85337,7 +85370,7 @@ A.createElement( "div", null, - "Error: your browser does not support FormData" + "Error: your browser does not support FormData", ), f && n.get("examples") ? A.createElement( @@ -85352,10 +85385,10 @@ currentKey: h.activeExamplesMember( ...u, "parameters", - this.getParamKey() + this.getParamKey(), ), currentUserInputValue: z, - }) + }), ) : null, b @@ -85389,7 +85422,7 @@ isIncluded: c.parameterInclusionSettingFor( u, n.get("name"), - n.get("in") + n.get("in"), ), isDisabled: !(0, L.O2)(z), }) @@ -85401,14 +85434,14 @@ h.activeExamplesMember( ...u, "parameters", - this.getParamKey() + this.getParamKey(), ), ]), getComponent: o, getConfigs: s, }) - : null - ) + : null, + ), ) ); } @@ -85502,8 +85535,8 @@ ce()(this, "onChangeProducesWrapper", (e) => this.props.specActions.changeProducesValue( [this.props.path, this.props.method], - e - ) + e, + ), ); } render() { @@ -85515,7 +85548,7 @@ onClick: this.onClick, disabled: e, }, - "Execute" + "Execute", ); } } @@ -85532,7 +85565,7 @@ A.createElement( "h4", { className: "headers__title" }, - "Headers:" + "Headers:", ), A.createElement( "table", @@ -85547,10 +85580,10 @@ A.createElement( "th", { className: "header-col" }, - "Description" + "Description", ), - A.createElement("th", { className: "header-col" }, "Type") - ) + A.createElement("th", { className: "header-col" }, "Type"), + ), ), A.createElement( "tbody", @@ -85571,7 +85604,7 @@ A.createElement( "td", { className: "header-col" }, - s ? A.createElement(o, { source: s }) : null + s ? A.createElement(o, { source: s }) : null, ), A.createElement( "td", @@ -85584,13 +85617,13 @@ propVal: a, propClass: "header-example", }) - : null - ) + : null, + ), ); }) - .toArray() - ) - ) + .toArray(), + ), + ), ) : null; } @@ -85609,7 +85642,7 @@ let l = t.allErrors(), c = a()(l).call( l, - (e) => "thrown" === e.get("type") || "error" === e.get("level") + (e) => "thrown" === e.get("type") || "error" === e.get("level"), ); if (!c || c.count() < 1) return null; let u = n.isShown(["errorPane"], !0), @@ -85627,8 +85660,8 @@ className: "btn errors__clear-btn", onClick: () => r.show(["errorPane"], !u), }, - u ? "Hide" : "Show" - ) + u ? "Hide" : "Show", + ), ), A.createElement( s, @@ -85647,9 +85680,9 @@ : "spec" === n ? A.createElement(Vt, { key: t, error: e, jumpToLine: i }) : void 0; - }) - ) - ) + }), + ), + ), ); } } @@ -85672,12 +85705,12 @@ : "", t.get("path") ? A.createElement("small", null, " at ", t.get("path")) - : null + : null, ), A.createElement( "span", { className: "message thrown" }, - t.get("message") + t.get("message"), ), A.createElement( "div", @@ -85687,12 +85720,12 @@ "a", { onClick: m()(n).call(n, null, r) }, "Jump to line ", - r + r, ) - : null - ) + : null, + ), ) - : null + : null, ); }, Vt = (e) => { @@ -85718,12 +85751,12 @@ null, Wt(t.get("source")) + " " + t.get("level"), " ", - r + r, ), A.createElement( "span", { className: "message" }, - t.get("message") + t.get("message"), ), A.createElement( "div", @@ -85733,12 +85766,12 @@ "a", { onClick: m()(n).call(n, null, t.get("line")) }, "Jump to line ", - t.get("line") + t.get("line"), ) - : null - ) + : null, + ), ) - : null + : null, ) ); }; @@ -85753,7 +85786,7 @@ constructor() { super(...arguments), ce()(this, "onChangeWrapper", (e) => - this.props.onChange(e.target.value) + this.props.onChange(e.target.value), ); } componentDidMount() { @@ -85792,10 +85825,10 @@ }, j()(r) .call(r, (e) => - A.createElement("option", { key: e, value: e }, e) + A.createElement("option", { key: e, value: e }, e), ) - .toArray() - ) + .toArray(), + ), ) : null; } @@ -85815,7 +85848,7 @@ return Zt()( (e = a()(n) .call(n, (e) => !!e) - .join(" ")) + .join(" ")), ).call(e); } class Xt extends A.Component { @@ -85825,7 +85858,7 @@ let r = "swagger-container" + (t ? "-full" : ""); return A.createElement( "section", - Ht()({}, n, { className: Yt(n.className, r) }) + Ht()({}, n, { className: Yt(n.className, r) }), ); } } @@ -85871,7 +85904,7 @@ "div", Ht()({}, this.props, { className: Yt(this.props.className, "wrapper"), - }) + }), ); } } @@ -85881,7 +85914,7 @@ "button", Ht()({}, this.props, { className: Yt(this.props.className, "button"), - }) + }), ); } } @@ -85901,7 +85934,7 @@ ? (t = j()( (s = a()(o).call(o, function (e) { return e.selected; - })) + })), ).call(s, function (e) { return e.value; })) @@ -85943,9 +85976,9 @@ return A.createElement( "option", { key: t, value: String(e) }, - String(e) + String(e), ); - }) + }), ); } } @@ -85957,7 +85990,7 @@ Ht()({}, this.props, { rel: "noopener noreferrer", className: Yt(this.props.className, "link"), - }) + }), ); } } @@ -86021,7 +86054,7 @@ }, " ", a ? "-" : "+", - r + r, ), A.createElement( s, @@ -86044,13 +86077,13 @@ onClick: n.show, }); }) - .toArray() - ) + .toArray(), + ), ); }) .toArray(), o.size < 1 && - A.createElement("h3", null, " No operations defined in spec! ") + A.createElement("h3", null, " No operations defined in spec! "), ); } } @@ -86083,10 +86116,10 @@ A.createElement( "small", { className: `bold-label-${t}` }, - t.toUpperCase() + t.toUpperCase(), ), - A.createElement("span", { className: "bold-label" }, e) - ) + A.createElement("span", { className: "bold-label" }, e), + ), ); } } @@ -86099,7 +86132,7 @@ const { value: e, defaultValue: t, initialValue: n, ...r } = this.props; return A.createElement( "input", - Ht()({}, r, { ref: (e) => (this.inputRef = e) }) + Ht()({}, r, { ref: (e) => (this.inputRef = e) }), ); } } @@ -86112,7 +86145,7 @@ "[ Base URL: ", e, t, - " ]" + " ]", ); } } @@ -86123,7 +86156,7 @@ return A.createElement( n, { target: "_blank", href: (0, L.Nm)(e) }, - A.createElement("span", { className: "url" }, " ", e) + A.createElement("span", { className: "url" }, " ", e), ); } } @@ -86165,15 +86198,15 @@ "h2", { className: "title" }, u, - l && A.createElement(b, { version: l }) + l && A.createElement(b, { version: l }), ), n || r ? A.createElement(E, { host: n, basePath: r }) : null, - t && A.createElement(w, { getComponent: o, url: t }) + t && A.createElement(w, { getComponent: o, url: t }), ), A.createElement( "div", { className: "description" }, - A.createElement(y, { source: c }) + A.createElement(y, { source: c }), ), p && A.createElement( @@ -86182,8 +86215,8 @@ A.createElement( v, { target: "_blank", href: (0, L.Nm)(p) }, - "Terms of service" - ) + "Terms of service", + ), ), (null == h ? void 0 : h.size) > 0 && A.createElement(S, { @@ -86207,9 +86240,9 @@ target: "_blank", href: (0, L.Nm)(m), }, - g || m + g || m, ) - : null + : null, ); } } @@ -86241,7 +86274,7 @@ getComponent: t, selectedServer: l, }) - : null + : null, ); } } @@ -86268,15 +86301,15 @@ a, { href: (0, L.Nm)(s), target: "_blank" }, o, - " - Website" - ) + " - Website", + ), ), i && A.createElement( a, { href: (0, L.Nm)(`mailto:${i}`) }, - s ? `Send email to ${o}` : `Contact ${o}` - ) + s ? `Send email to ${o}` : `Contact ${o}`, + ), ); } } @@ -86299,9 +86332,9 @@ ? A.createElement( "div", { className: "info__license__url" }, - A.createElement(i, { target: "_blank", href: (0, L.Nm)(s) }, o) + A.createElement(i, { target: "_blank", href: (0, L.Nm)(s) }, o), ) - : A.createElement("span", null, o) + : A.createElement("span", null, o), ); } } @@ -86324,8 +86357,8 @@ A.createElement( dt.CopyToClipboard, { text: this.props.textToCopy }, - A.createElement(t, null) - ) + A.createElement(t, null), + ), ); } } @@ -86376,9 +86409,9 @@ onChange: this.onFilterChange, value: !0 === i || "true" === i ? "" : i, disabled: o, - }) - ) - ) + }), + ), + ), ) ); } @@ -86420,7 +86453,7 @@ this.onChange(r, { isXml: n, isEditBox: this.state.isEditBox }); }), ce()(this, "toggleIsEditBox", () => - this.setState((e) => ({ isEditBox: !e.isEditBox })) + this.setState((e) => ({ isEditBox: !e.isEditBox })), ), (this.state = { isEditBox: !1, value: "" }); } @@ -86446,7 +86479,7 @@ u = i("contentType"); let p = (r ? r.parameterWithMetaByIdentity(o, t) : t).get( "errors", - (0, P.List)() + (0, P.List)(), ), h = r.contentTypeValues(o).get("requestContentType"), f = @@ -86492,8 +86525,8 @@ : "btn edit body-param__example-edit", onClick: this.toggleIsEditBox, }, - m ? "Cancel" : "Edit" - ) + m ? "Cancel" : "Edit", + ), ) : null, A.createElement( @@ -86506,9 +86539,9 @@ onChange: e, className: "body-param-content-type", ariaLabel: "Parameter content type", - }) - ) - ) + }), + ), + ), ) ); } @@ -86533,7 +86566,7 @@ className: "curl microlight", style: (0, at.C2)(ct()(r, "syntaxHighlight.theme")), }, - n + n, ) : A.createElement("textarea", { readOnly: !0, @@ -86550,10 +86583,10 @@ A.createElement( dt.CopyToClipboard, { text: n }, - A.createElement("button", null) - ) + A.createElement("button", null), + ), ), - A.createElement("div", null, o) + A.createElement("div", null, o), ); } } @@ -86590,10 +86623,10 @@ { onChange: this.onChange, value: n }, j()((e = t.valueSeq())) .call(e, (e) => - A.createElement("option", { value: e, key: e }, e) + A.createElement("option", { value: e, key: e }, e), ) - .toArray() - ) + .toArray(), + ), ); } } @@ -86626,7 +86659,7 @@ N().is(t, this.props.specPath) && this.toggleCollapsed(), this.props.layoutActions.readyToScroll( this.props.specPath, - e.parentElement + e.parentElement, ); } }); @@ -86664,9 +86697,9 @@ "model-toggle" + (this.state.expanded ? "" : " collapsed"), }), !this.state.expanded && - A.createElement("span", null, this.state.collapsedContent) + A.createElement("span", null, this.state.collapsedContent), ), - this.state.expanded && this.props.children + this.state.expanded && this.props.children, ); } } @@ -86749,8 +86782,8 @@ onClick: this.activeTab, role: "tab", }, - o ? "Edit Value" : "Example Value" - ) + o ? "Edit Value" : "Example Value", + ), ), n && A.createElement( @@ -86772,9 +86805,9 @@ onClick: this.activeTab, role: "tab", }, - g ? "Schema" : "Model" - ) - ) + g ? "Schema" : "Model", + ), + ), ), "example" === this.state.activeTab && A.createElement( @@ -86791,7 +86824,7 @@ A.createElement(p, { value: "(no example available)", getConfigs: s, - }) + }), ), "model" === this.state.activeTab && A.createElement( @@ -86813,8 +86846,8 @@ specPath: i, includeReadOnly: a, includeWriteOnly: l, - }) - ) + }), + ), ); } } @@ -86844,8 +86877,8 @@ depth: 1, onToggle: this.onToggle, expandDepth: this.props.expandDepth || 0, - }) - ) + }), + ), ) ); } @@ -86857,7 +86890,7 @@ ce()(this, "getSchemaBasePath", () => this.props.specSelectors.isOAS3() ? ["components", "schemas"] - : ["definitions"] + : ["definitions"], ), ce()(this, "getCollapsedContent", () => " "), ce()(this, "handleToggle", (e, t) => { @@ -86873,7 +86906,7 @@ e && this.props.layoutActions.readyToScroll( this.getSchemaBasePath(), - e + e, ); }), ce()(this, "onLoadModel", (e) => { @@ -86881,7 +86914,7 @@ const t = e.getAttribute("data-name"); this.props.layoutActions.readyToScroll( [...this.getSchemaBasePath(), t], - e + e, ); } }); @@ -86924,8 +86957,8 @@ onClick: () => o.show(c, !u), }, A.createElement("span", null, p ? "Schemas" : "Models"), - u ? A.createElement(g, null) : A.createElement(y, null) - ) + u ? A.createElement(g, null) : A.createElement(y, null), + ), ), A.createElement( f, @@ -86966,8 +86999,8 @@ A.createElement( "span", { className: "model model-title" }, - v - ) + v, + ), ); return A.createElement( "div", @@ -86981,7 +87014,7 @@ A.createElement( "span", { className: "models-jump-to-path" }, - A.createElement(m, { specPath: u }) + A.createElement(m, { specPath: u }), ), A.createElement( d, @@ -86998,12 +87031,12 @@ hideSelfOnExpand: !0, expanded: l > 0 && b, }, - w - ) + w, + ), ); }) - .toArray() - ) + .toArray(), + ), ); } } @@ -87016,7 +87049,7 @@ { className: "prop-enum" }, "Enum:", A.createElement("br", null), - A.createElement(r, { collapsedContent: o }, "[ ", t.join(", "), " ]") + A.createElement(r, { collapsedContent: o }, "[ ", t.join(", "), " ]"), ); }; class $n extends A.Component { @@ -87054,7 +87087,7 @@ return ( -1 !== pe()( - (n = ["maxProperties", "minProperties", "nullable", "example"]) + (n = ["maxProperties", "minProperties", "nullable", "example"]), ).call(n, t) ); }), @@ -87071,7 +87104,7 @@ A.createElement( "span", { className: "model-jump-to-path" }, - A.createElement(D, { specPath: m }) + A.createElement(D, { specPath: m }), ), V = A.createElement( "span", @@ -87079,7 +87112,7 @@ A.createElement("span", null, "{"), "...", A.createElement("span", null, "}"), - l ? A.createElement(z, null) : "" + l ? A.createElement(z, null) : "", ), W = y.isOAS3() ? o.get("anyOf") : null, J = y.isOAS3() ? o.get("oneOf") : null, @@ -87094,9 +87127,9 @@ A.createElement( "span", { className: "model-hint" }, - o.get("$$ref") + o.get("$$ref"), ), - A.createElement("span", { className: "model-title__text" }, C) + A.createElement("span", { className: "model-title__text" }, C), ); return A.createElement( "span", @@ -87129,8 +87162,8 @@ A.createElement( "td", null, - A.createElement(F, { source: _ }) - ) + A.createElement(F, { source: _ }), + ), ) : null, R && @@ -87144,16 +87177,16 @@ A.createElement( U, { target: "_blank", href: (0, L.Nm)(R) }, - M || R - ) - ) + M || R, + ), + ), ), T ? A.createElement( "tr", { className: "property" }, A.createElement("td", null, "deprecated:"), - A.createElement("td", null, "true") + A.createElement("td", null, "true"), ) : null, O && O.size @@ -87164,7 +87197,7 @@ (!t.get("readOnly") || w) && (!t.get("writeOnly") || E) ); - })) + })), ) .call(e, (e) => { let [t, n] = e, @@ -87185,8 +87218,8 @@ A.createElement( "span", { className: "star" }, - "*" - ) + "*", + ), ), A.createElement( "td", @@ -87200,9 +87233,9 @@ getConfigs: u, schema: n, depth: h + 1, - }) - ) - ) + }), + ), + ), ) ); }) @@ -87212,7 +87245,7 @@ ? A.createElement( "tr", null, - A.createElement("td", null, " ") + A.createElement("td", null, " "), ) : null, S @@ -87225,7 +87258,7 @@ "tr", { key: t, className: "extension" }, A.createElement("td", null, t), - A.createElement("td", null, p()(r)) + A.createElement("td", null, p()(r)), ); }) .toArray() @@ -87247,9 +87280,9 @@ getConfigs: u, schema: k, depth: h + 1, - }) - ) - ) + }), + ), + ), ) : null, W @@ -87273,11 +87306,11 @@ getConfigs: u, schema: e, depth: h + 1, - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ) : null, J @@ -87301,11 +87334,11 @@ getConfigs: u, schema: e, depth: h + 1, - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ) : null, K @@ -87328,16 +87361,16 @@ getConfigs: u, schema: K, depth: h + 1, - }) - ) - ) - ) + }), + ), + ), + ), ) - : null - ) - ) + : null, + ), + ), ), - A.createElement("span", { className: "brace-close" }, "}") + A.createElement("span", { className: "brace-close" }, "}"), ), I.size ? j()((r = I.entrySeq())).call(r, (e) => { @@ -87349,7 +87382,7 @@ propClass: "property", }); }) - : null + : null, ); } } @@ -87374,7 +87407,7 @@ return ( -1 === pe()( - (n = ["type", "items", "description", "$$ref", "externalDocs"]) + (n = ["type", "items", "description", "$$ref", "externalDocs"]), ).call(n, t) ); }), @@ -87390,7 +87423,7 @@ A.createElement( "span", { className: "model-title" }, - A.createElement("span", { className: "model-title__text" }, h) + A.createElement("span", { className: "model-title__text" }, h), ); return A.createElement( "span", @@ -87422,8 +87455,8 @@ A.createElement( w, { target: "_blank", href: (0, L.Nm)(d) }, - m || d - ) + m || d, + ), ), A.createElement( "span", @@ -87437,11 +87470,11 @@ schema: p, required: !1, depth: o + 1, - }) - ) + }), + ), ), - "]" - ) + "]", + ), ); } } @@ -87480,7 +87513,7 @@ "description", "$$ref", "externalDocs", - ]) + ]), ).call(n, t) ); }) @@ -87497,7 +87530,7 @@ A.createElement( "span", { className: "model-title" }, - A.createElement("span", { className: "model-title__text" }, g) + A.createElement("span", { className: "model-title__text" }, g), ); return A.createElement( "span", @@ -87523,7 +87556,7 @@ { className: "prop-format" }, "($", f, - ")" + ")", ), b.size ? j()((e = b.entrySeq())).call(e, (e) => { @@ -87555,8 +87588,8 @@ A.createElement( k, { target: "_blank", href: (0, L.Nm)(w) }, - E || w - ) + E || w, + ), ), d && d.size ? A.createElement( @@ -87574,15 +87607,15 @@ "   ", t, ": ", - String(n) + String(n), ); }) - .toArray() + .toArray(), ) : null, - m && A.createElement(S, { value: m, getComponent: o }) - ) - ) + m && A.createElement(S, { value: m, getComponent: o }), + ), + ), ); } } @@ -87594,7 +87627,7 @@ A.createElement("br", null), t, ": ", - String(n) + String(n), ); }; class Wn extends A.Component { @@ -87615,19 +87648,19 @@ ? A.createElement( "button", { className: "btn try-out__btn cancel", onClick: t }, - "Cancel" + "Cancel", ) : A.createElement( "button", { className: "btn try-out__btn", onClick: e }, - "Try it out " + "Try it out ", ), i && A.createElement( "button", { className: "btn try-out__btn reset", onClick: n }, - "Reset" - ) + "Reset", + ), ); } } @@ -87661,7 +87694,7 @@ A.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), A.createElement( "p", @@ -87669,7 +87702,7 @@ A.createElement("code", null, "swagger"), " and ", A.createElement("code", null, "openapi"), - " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields." + " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.", ), A.createElement( "p", @@ -87680,10 +87713,10 @@ A.createElement("code", null, "openapi: 3.0.n"), " (for example, ", A.createElement("code", null, "openapi: 3.0.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ) : t || n ? A.createElement("div", null, this.props.children) @@ -87703,12 +87736,12 @@ A.createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), A.createElement( "p", null, - "The provided definition does not specify a valid version field." + "The provided definition does not specify a valid version field.", ), A.createElement( "p", @@ -87719,10 +87752,10 @@ A.createElement("code", null, "openapi: 3.0.n"), " (for example, ", A.createElement("code", null, "openapi: 3.0.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ); } } @@ -87732,7 +87765,7 @@ return A.createElement( "small", null, - A.createElement("pre", { className: "version" }, " ", t, " ") + A.createElement("pre", { className: "version" }, " ", t, " "), ); }, Hn = (e) => { @@ -87744,7 +87777,7 @@ onClick: t ? (e) => e.preventDefault() : null, href: t ? `#/${n}` : null, }, - A.createElement("span", null, r) + A.createElement("span", null, r), ); }, Gn = () => @@ -87766,56 +87799,56 @@ { viewBox: "0 0 20 20", id: "unlocked" }, A.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 20 20", id: "locked" }, A.createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 20 20", id: "close" }, A.createElement("path", { d: "M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow" }, A.createElement("path", { d: "M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow-down" }, A.createElement("path", { d: "M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow-up" }, A.createElement("path", { d: "M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 24 24", id: "jump-to" }, A.createElement("path", { d: "M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z", - }) + }), ), A.createElement( "symbol", { viewBox: "0 0 24 24", id: "expand" }, A.createElement("path", { d: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z", - }) + }), ), A.createElement( "symbol", @@ -87827,11 +87860,11 @@ fill: "#ffffff", fillRule: "evenodd", d: "M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z", - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ); var Zn = n(4599); class Yn extends A.Component { @@ -87868,8 +87901,8 @@ A.createElement( "div", { className: "loading-container" }, - A.createElement("div", { className: "loading" }) - ) + A.createElement("div", { className: "loading" }), + ), )), "failed" === w && (E = A.createElement( @@ -87881,10 +87914,10 @@ A.createElement( "h4", { className: "title" }, - "Failed to load API definition." + "Failed to load API definition.", ), - A.createElement(p, null) - ) + A.createElement(p, null), + ), )), "failedConfig" === w) ) { @@ -87899,10 +87932,10 @@ A.createElement( "h4", { className: "title" }, - "Failed to load remote configuration." + "Failed to load remote configuration.", ), - A.createElement("p", null, n) - ) + A.createElement("p", null, n), + ), ); } if ( @@ -87914,7 +87947,7 @@ return A.createElement( "div", { className: "swagger-ui" }, - A.createElement("div", { className: "loading-container" }, E) + A.createElement("div", { className: "loading-container" }, E), ); const x = t.servers(), S = t.schemes(), @@ -87932,7 +87965,7 @@ A.createElement( c, { className: "information-container" }, - A.createElement(u, { mobile: 12 }, A.createElement(o, null)) + A.createElement(u, { mobile: 12 }, A.createElement(o, null)), ), _ || j || O ? A.createElement( @@ -87943,8 +87976,8 @@ { className: "schemes wrapper", mobile: 12 }, _ ? A.createElement(h, null) : null, j ? A.createElement(f, null) : null, - O ? A.createElement(d, null) : null - ) + O ? A.createElement(d, null) : null, + ), ) : null, A.createElement(m, null), @@ -87954,8 +87987,8 @@ A.createElement( u, { mobile: 12, desktop: 12 }, - A.createElement(i, null) - ) + A.createElement(i, null), + ), ), v && A.createElement( @@ -87964,8 +87997,8 @@ A.createElement( u, { mobile: 12, desktop: 12 }, - A.createElement(l, null) - ) + A.createElement(l, null), + ), ), A.createElement( c, @@ -87973,10 +88006,10 @@ A.createElement( u, { mobile: 12, desktop: 12 }, - A.createElement(a, null) - ) - ) - ) + A.createElement(a, null), + ), + ), + ), ); } } @@ -88023,7 +88056,7 @@ onChange: r, schema: e, disabled: i, - }) + }), ) ); } @@ -88117,10 +88150,10 @@ value: t.push( e.getSampleSchema(this.state.schema.get("items"), !1, { includeWriteOnly: !0, - }) + }), ), }), - this.onChange + this.onChange, ); }), ce()(this, "onEnumChange", (e) => { @@ -88147,7 +88180,7 @@ const l = a()(o).call(o, (e) => "string" == typeof e), c = j()((e = a()(o).call(o, (e) => void 0 !== e.needRemove))).call( e, - (e) => e.error + (e) => e.error, ), u = this.state.value, p = !!(u && u.count && u.count() > 0), @@ -88188,7 +88221,7 @@ const l = (0, P.fromJS)([ ...j()((r = a()(o).call(o, (e) => e.index === n))).call( r, - (e) => e.error + (e) => e.error, ), ]); return A.createElement( @@ -88219,7 +88252,7 @@ schema: m, getComponent: t, fn: s, - }) + }), ), i ? null @@ -88232,8 +88265,8 @@ title: c.length ? c : "", onClick: () => this.removeItem(n), }, - " - " - ) + " - ", + ), ); }) : null, @@ -88250,8 +88283,8 @@ }, "Add ", f ? `${f} ` : "", - "item" - ) + "item", + ), ); } } @@ -88382,7 +88415,7 @@ value: (0, L.Pz)(t), disabled: r, onChange: this.handleOnChange, - }) + }), ) ); } @@ -88535,7 +88568,7 @@ window.location.host }${window.location.pathname.substring( 0, - s()((t = window.location.pathname)).call(t, "/") + s()((t = window.location.pathname)).call(t, "/"), )}/oauth2-redirect.html`, persistAuthorization: !1, configs: {}, @@ -88599,7 +88632,7 @@ spec: { spec: "", url: i.url }, requestSnippets: i.requestSnippets, }, - i.initialState + i.initialState, ), }; if (i.initialState) @@ -88642,7 +88675,7 @@ null === n.dom_id || null === n.domNode || console.error( - "Skipped rendering: no `dom_id` or `domNode` was specified" + "Skipped rendering: no `dom_id` or `domNode` was specified", ); return d; }, @@ -88655,7 +88688,7 @@ requestInterceptor: i.requestInterceptor, responseInterceptor: i.responseInterceptor, }, - m + m, ), d) : m(); diff --git a/docs/swagger/swagger-ui-standalone-preset.js b/docs/swagger/swagger-ui-standalone-preset.js index c28c73eb69..0d50b9a374 100644 --- a/docs/swagger/swagger-ui-standalone-preset.js +++ b/docs/swagger/swagger-ui-standalone-preset.js @@ -38,7 +38,7 @@ c = new i( (function (t, e, r) { return (3 * (e + r)) / 4 - r; - })(0, u, a) + })(0, u, a), ), f = 0, l = a > 0 ? u - 4 : u; @@ -82,7 +82,7 @@ : 2 === i && ((e = (t[n - 2] << 8) + t[n - 1]), o.push( - r[e >> 10] + r[(e >> 4) & 63] + r[(e << 2) & 63] + "=" + r[e >> 10] + r[(e >> 4) & 63] + r[(e << 2) & 63] + "=", )); return o.join(""); }); @@ -114,7 +114,7 @@ r[((o = i) >> 18) & 63] + r[(o >> 12) & 63] + r[(o >> 6) & 63] + - r[63 & o] + r[63 & o], ); return u.join(""); } @@ -138,7 +138,7 @@ function s(t) { if (t > u) throw new RangeError( - 'The value "' + t + '" is invalid for option "size"' + 'The value "' + t + '" is invalid for option "size"', ); const e = new Uint8Array(t); return Object.setPrototypeOf(e, a.prototype), e; @@ -147,7 +147,7 @@ if ("number" == typeof t) { if ("string" == typeof e) throw new TypeError( - 'The "string" argument must be of type string. Received type number' + 'The "string" argument must be of type string. Received type number', ); return l(t); } @@ -176,7 +176,7 @@ if (null == t) throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + - typeof t + typeof t, ); if ($(t, ArrayBuffer) || (t && $(t.buffer, ArrayBuffer))) return p(t, e, r); @@ -187,7 +187,7 @@ return p(t, e, r); if ("number" == typeof t) throw new TypeError( - 'The "value" argument must not be of type number. Received type number' + 'The "value" argument must not be of type number. Received type number', ); const n = t.valueOf && t.valueOf(); if (null != n && n !== t) return a.from(n, e, r); @@ -211,7 +211,7 @@ return a.from(t[Symbol.toPrimitive]("string"), e, r); throw new TypeError( "The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + - typeof t + typeof t, ); } function f(t) { @@ -219,7 +219,7 @@ throw new TypeError('"size" argument must be of type number'); if (t < 0) throw new RangeError( - 'The value "' + t + '" is invalid for option "size"' + 'The value "' + t + '" is invalid for option "size"', ); } function l(t) { @@ -253,7 +253,7 @@ throw new RangeError( "Attempt to allocate Buffer larger than maximum size: 0x" + u.toString(16) + - " bytes" + " bytes", ); return 0 | t; } @@ -263,7 +263,7 @@ if ("string" != typeof t) throw new TypeError( 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + - typeof t + typeof t, ); const r = t.length, n = arguments.length > 2 && !0 === arguments[2]; @@ -422,7 +422,7 @@ })(e), t, r, - n + n, ); } function N(t, e, r, n) { @@ -443,7 +443,7 @@ })(e, t.length - r), t, r, - n + n, ); } function m(t, e, r) { @@ -534,7 +534,7 @@ "undefined" == typeof console || "function" != typeof console.error || 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." + "This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.", ), Object.defineProperty(a.prototype, "parent", { enumerable: !0, @@ -584,7 +584,7 @@ !a.isBuffer(t) || !a.isBuffer(e)) ) throw new TypeError( - 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' + 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array', ); if (t === e) return 0; let r = t.length, @@ -617,7 +617,7 @@ (a.concat = function (t, e) { if (!Array.isArray(t)) throw new TypeError( - '"list" argument must be an Array of Buffers' + '"list" argument must be an Array of Buffers', ); if (0 === t.length) return a.alloc(0); let r; @@ -634,7 +634,7 @@ else { if (!a.isBuffer(e)) throw new TypeError( - '"list" argument must be an Array of Buffers' + '"list" argument must be an Array of Buffers', ); e.copy(n, i); } @@ -648,7 +648,7 @@ const t = this.length; if (t % 2 != 0) throw new RangeError( - "Buffer size must be a multiple of 16-bits" + "Buffer size must be a multiple of 16-bits", ); for (let e = 0; e < t; e += 2) d(this, e, e + 1); return this; @@ -657,7 +657,7 @@ const t = this.length; if (t % 4 != 0) throw new RangeError( - "Buffer size must be a multiple of 32-bits" + "Buffer size must be a multiple of 32-bits", ); for (let e = 0; e < t; e += 4) d(this, e, e + 3), d(this, e + 1, e + 2); @@ -667,7 +667,7 @@ const t = this.length; if (t % 8 != 0) throw new RangeError( - "Buffer size must be a multiple of 64-bits" + "Buffer size must be a multiple of 64-bits", ); for (let e = 0; e < t; e += 8) d(this, e, e + 7), @@ -709,7 +709,7 @@ ) throw new TypeError( 'The "target" argument must be one of type Buffer or Uint8Array. Received type ' + - typeof t + typeof t, ); if ( (void 0 === e && (e = 0), @@ -751,7 +751,7 @@ else { if (!isFinite(e)) throw new Error( - "Buffer.write(string, encoding, offset[, length]) is no longer supported" + "Buffer.write(string, encoding, offset[, length]) is no longer supported", ); (e >>>= 0), isFinite(r) @@ -830,7 +830,7 @@ function E(t, e, r, n, i, o) { if (!a.isBuffer(t)) throw new TypeError( - '"buffer" argument must be a Buffer instance' + '"buffer" argument must be a Buffer instance', ); if (e > i || e < o) throw new RangeError('"value" argument is out of bounds'); @@ -1055,7 +1055,7 @@ return ( (BigInt(n) << BigInt(32)) + BigInt( - e + 256 * this[++t] + 65536 * this[++t] + this[++t] * 2 ** 24 + e + 256 * this[++t] + 65536 * this[++t] + this[++t] * 2 ** 24, ) ); })), @@ -1069,7 +1069,7 @@ return ( (BigInt(n) << BigInt(32)) + BigInt( - this[++t] * 2 ** 24 + 65536 * this[++t] + 256 * this[++t] + r + this[++t] * 2 ** 24 + 65536 * this[++t] + 256 * this[++t] + r, ) ); })), @@ -1274,7 +1274,7 @@ t, e, -BigInt("0x8000000000000000"), - BigInt("0x7fffffffffffffff") + BigInt("0x7fffffffffffffff"), ); })), (a.prototype.writeBigInt64BE = H(function (t, e = 0) { @@ -1283,7 +1283,7 @@ t, e, -BigInt("0x8000000000000000"), - BigInt("0x7fffffffffffffff") + BigInt("0x7fffffffffffffff"), ); })), (a.prototype.writeFloatLE = function (t, e, r) { @@ -1361,7 +1361,7 @@ u = o.length; if (0 === u) throw new TypeError( - 'The value "' + t + '" is invalid for argument "value"' + 'The value "' + t + '" is invalid for argument "value"', ); for (i = 0; i < r - e; ++i) this[i + e] = o[i % u]; } @@ -1440,7 +1440,7 @@ throw new B.ERR_OUT_OF_RANGE( r || "offset", `>= ${r ? 1 : 0} and <= ${e}`, - t + t, ); } Q( @@ -1450,14 +1450,14 @@ ? `${t} is outside of buffer bounds` : "Attempt to access memory outside buffer bounds"; }, - RangeError + RangeError, ), Q( "ERR_INVALID_ARG_TYPE", function (t, e) { return `The "${t}" argument must be of type number. Received type ${typeof e}`; }, - TypeError + TypeError, ), Q( "ERR_OUT_OF_RANGE", @@ -1477,7 +1477,7 @@ n ); }, - RangeError + RangeError, ); const W = /[^+/0-9A-Za-z-_]/g; function q(t, e) { @@ -1522,7 +1522,7 @@ (r >> 18) | 240, ((r >> 12) & 63) | 128, ((r >> 6) & 63) | 128, - (63 & r) | 128 + (63 & r) | 128, ); } } @@ -1537,7 +1537,7 @@ return ""; for (; t.length % 4 != 0; ) t += "="; return t; - })(t) + })(t), ); } function Z(t, e, r, n) { @@ -2117,7 +2117,7 @@ function () { return 1; }, - 1 + 1, ); }) ); @@ -2253,7 +2253,7 @@ o( (function () { return arguments; - })() + })(), ); t.exports = n ? o @@ -3203,8 +3203,8 @@ p(this, "b", { value: 3, enumerable: !1 }); }, }), - { b: 2 } - ) + { b: 2 }, + ), ).b ) return !0; @@ -3673,7 +3673,7 @@ function (t) { return n(r, this); }, - { arity: 1 } + { arity: 1 }, ); }; }, @@ -3939,7 +3939,7 @@ else c(p + 1), f(h, p++, o); return (h.length = p), h; }, - } + }, ); }, 290: (t, e, r) => { @@ -3958,7 +3958,7 @@ filter: function (t) { return i(this, t, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ); }, 833: (t, e, r) => { @@ -3979,10 +3979,10 @@ return i( this, t, - arguments.length > 1 ? arguments[1] : void 0 + arguments.length > 1 ? arguments[1] : void 0, ); }, - } + }, ), o(u); }, @@ -3992,7 +3992,7 @@ i = r(6837); n( { target: "Array", proto: !0, forced: [].forEach != i }, - { forEach: i } + { forEach: i }, ); }, 7690: (t, e, r) => { @@ -4013,7 +4013,7 @@ includes: function (t) { return i(this, t, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ), u("includes"); }, @@ -4032,7 +4032,7 @@ var e = arguments.length > 1 ? arguments[1] : void 0; return a ? s(this, t, e) || 0 : o(this, t, e); }, - } + }, ); }, 2988: (t, e, r) => { @@ -4067,7 +4067,7 @@ ? ((t.target = void 0), c(void 0, !0)) : c("keys" == r ? n : "values" == r ? e[n] : [n, e[n]], !1); }, - "values" + "values", ); var M = (o.Arguments = o.Array); if ( @@ -4090,7 +4090,7 @@ map: function (t) { return i(this, t, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ); }, 1876: (t, e, r) => { @@ -4110,7 +4110,7 @@ var e = arguments.length; return i(this, t, e, e > 1 ? arguments[1] : void 0); }, - } + }, ); }, 186: (t, e, r) => { @@ -4158,7 +4158,7 @@ g in h && f(n, l, h[g]); return (n.length = l), n; }, - } + }, ); }, 6026: (t, e, r) => { @@ -4171,7 +4171,7 @@ some: function (t) { return i(this, t, arguments.length > 1 ? arguments[1] : void 0); }, - } + }, ); }, 4115: (t, e, r) => { @@ -4267,7 +4267,7 @@ ? 1 : -1; }; - })(t) + })(t), ), r = s(i), n = 0; @@ -4278,7 +4278,7 @@ for (; n < f; ) a(e, n++); return e; }, - } + }, ); }, 8084: () => {}, @@ -4287,7 +4287,7 @@ i = r(8308); n( { target: "Function", proto: !0, forced: Function.bind !== i }, - { bind: i } + { bind: i }, ); }, 2619: (t, e, r) => { @@ -4355,7 +4355,7 @@ i = o(x ? D : M, null, n); return m && "string" == typeof i ? v(i, _, I) : i; }, - } + }, ); }, 9120: (t, e, r) => { @@ -4373,7 +4373,7 @@ arity: 2, forced: Object.assign !== i, }, - { assign: i } + { assign: i }, ); }, 6450: (t, e, r) => { @@ -4387,7 +4387,7 @@ forced: Object.defineProperty !== o, sham: !i, }, - { defineProperty: o } + { defineProperty: o }, ); }, 7144: (t, e, r) => { @@ -4411,7 +4411,7 @@ var e = u.f; return e ? e(s(t)) : []; }, - } + }, ); }, 1724: (t, e, r) => { @@ -4430,7 +4430,7 @@ keys: function (t) { return o(i(t)); }, - } + }, ); }, 5967: () => {}, @@ -4451,10 +4451,10 @@ return !!~c( s(u(this)), s(o(t)), - arguments.length > 1 ? arguments[1] : void 0 + arguments.length > 1 ? arguments[1] : void 0, ); }, - } + }, ); }, 7971: (t, e, r) => { @@ -4481,7 +4481,7 @@ return i >= r.length ? s(void 0, !0) : ((t = n(r, i)), (e.index += t.length), s(t, !1)); - } + }, ); }, 4761: (t, e, r) => { @@ -4516,12 +4516,12 @@ var e = a(f(this)); c(t); var r = s( - M(arguments.length > 1 ? arguments[1] : void 0, e.length) + M(arguments.length > 1 ? arguments[1] : void 0, e.length), ), n = a(t); return p ? p(e, n, r) : y(e, r, r + n.length) === n; }, - } + }, ); }, 6371: (t, e, r) => { @@ -4534,7 +4534,7 @@ trim: function () { return i(this); }, - } + }, ); }, 8555: (t, e, r) => { @@ -4608,7 +4608,7 @@ get: function () { return V(this, "a", { value: 7 }).a; }, - }) + }), ).a ); }) @@ -4720,7 +4720,7 @@ "toString", function () { return G(this).tag; - } + }, ), I(q, "withoutSetter", function (t) { return ut(T(t), t); @@ -4744,7 +4744,7 @@ s || I(W, "propertyIsEnumerable", ct, { unsafe: !0 }))), n( { global: !0, constructor: !0, wrap: !0, forced: !c, sham: !c }, - { Symbol: q } + { Symbol: q }, ), B(v(nt), function (t) { O(t); @@ -4758,7 +4758,7 @@ useSimple: function () { it = !1; }, - } + }, ), n( { target: "Object", stat: !0, forced: !c, sham: !a }, @@ -4769,11 +4769,11 @@ defineProperty: st, defineProperties: at, getOwnPropertyDescriptor: ft, - } + }, ), n( { target: "Object", stat: !0, forced: !c }, - { getOwnPropertyNames: lt } + { getOwnPropertyNames: lt }, ), k(), U(q, R), @@ -4798,7 +4798,7 @@ var r = i("Symbol")(e); return (c[e] = r), (f[r] = e), r; }, - } + }, ); }, 1732: (t, e, r) => { @@ -4828,7 +4828,7 @@ if (!o(t)) throw TypeError(u(t) + " is not a symbol"); if (i(c, t)) return c[t]; }, - } + }, ); }, 5915: (t, e, r) => { @@ -4879,19 +4879,19 @@ 7618: (t, e, r) => { r(6887)( { target: "Symbol", stat: !0 }, - { isRegisteredSymbol: r(2087) } + { isRegisteredSymbol: r(2087) }, ); }, 2731: (t, e, r) => { r(6887)( { target: "Symbol", stat: !0, name: "isRegisteredSymbol" }, - { isRegistered: r(2087) } + { isRegistered: r(2087) }, ); }, 6989: (t, e, r) => { r(6887)( { target: "Symbol", stat: !0, forced: !0 }, - { isWellKnownSymbol: r(6559) } + { isWellKnownSymbol: r(6559) }, ); }, 5605: (t, e, r) => { @@ -4902,7 +4902,7 @@ name: "isWellKnownSymbol", forced: !0, }, - { isWellKnown: r(6559) } + { isWellKnown: r(6559) }, ); }, 5799: (t, e, r) => { @@ -5442,7 +5442,7 @@ if (!e) throw new TypeError( "Expected Array or iterable object of [k, v] entries, or keyed object: " + - t + t, ); return e; } @@ -5450,7 +5450,7 @@ var e = ft(t); if (!e) throw new TypeError( - "Expected Array or iterable object of values: " + t + "Expected Array or iterable object of values: " + t, ); return e; } @@ -5459,7 +5459,7 @@ if (!e) throw new TypeError( "Expected Array or iterable object of values, or keyed object: " + - t + t, ); return e; } @@ -5505,7 +5505,7 @@ r, $(e).map(function (r, n) { return yt(t, r, n, e); - }) + }), ) : wt(e) ? t.call( @@ -5513,7 +5513,7 @@ r, Z(e).map(function (r, n) { return yt(t, r, n, e); - }) + }), ) : e; } @@ -5801,7 +5801,7 @@ : new _t( this.get(t, this._end), this.get(e, this._end), - this._step + this._step, )); }), (_t.prototype.indexOf = function (t) { @@ -5922,7 +5922,7 @@ else { if (void 0 !== Tt && !1 === Tt(t)) throw new Error( - "Non-extensible objects are not allowed as keys." + "Non-extensible objects are not allowed as keys.", ); if (Et) Object.defineProperty(t, Yt, { @@ -5939,14 +5939,14 @@ (t.propertyIsEnumerable = function () { return this.constructor.prototype.propertyIsEnumerable.apply( this, - arguments + arguments, ); }), (t.propertyIsEnumerable[Yt] = e); else { if (void 0 === t.nodeType) throw new Error( - "Unable to set a non-enumerable property on object." + "Unable to set a non-enumerable property on object.", ); t[Yt] = e; } @@ -5983,7 +5983,7 @@ function Pt(t) { Lt( t !== 1 / 0, - "Cannot perform this action with an infinite size." + "Cannot perform this action with an infinite size.", ); } function Gt(t) { @@ -6216,7 +6216,7 @@ (1 << u) | (1 << s), u === s ? [ae(t, e, r + w, n, i)] - : ((o = new Kt(e, n, i)), u < s ? [t, o] : [o, t]) + : ((o = new Kt(e, n, i)), u < s ? [t, o] : [o, t]), ); } function ce(t, e, r, n) { @@ -6658,7 +6658,7 @@ this._root, this._tail, t, - this.__hash + this.__hash, ) : ((this.__ownerID = t), this); }), @@ -7423,7 +7423,7 @@ } : function (t, e) { o[e] = t[1]; - } + }, ), n ? Z(o) : a(t) ? $(o) : X(o) ); @@ -7489,8 +7489,8 @@ null, r.map(function (t) { return t.value; - }) - ) + }), + ), ) ); }); @@ -7649,7 +7649,7 @@ function (i) { return t(i, e ? --r : r++, n); }), - e + e, ); }), (Je.prototype.__iterator = function (t, e) { @@ -7752,7 +7752,7 @@ (jr.prototype.set = function (t, e) { if (!this.has(t)) throw new Error( - 'Cannot set unknown key "' + t + '" on ' + mr(this) + 'Cannot set unknown key "' + t + '" on ' + mr(this), ); if ( this._map && @@ -8417,7 +8417,7 @@ return dt(r, t); }, void 0, - e + e, ); }, getIn: function (t, e) { @@ -8535,7 +8535,7 @@ .map(function (i, o) { return t.call(e, [o, i], n++, r); }) - .fromEntrySeq() + .fromEntrySeq(), ); }, mapKeys: function (t, e) { @@ -8547,7 +8547,7 @@ .map(function (n, i) { return t.call(e, n, i, r); }) - .flip() + .flip(), ); }, }); @@ -8598,9 +8598,9 @@ } : function (t) { n = (n + St(t)) | 0; - } + }, ), - n + n, ); } function sn(t, e) { @@ -8610,7 +8610,7 @@ (e = Dt((e << 13) | (e >>> -13), 5)), (e = Dt( (e = ((e + 3864292196) | 0) ^ t) ^ (e >>> 16), - 2246822507 + 2246822507, )), (e = It((e = Dt(e ^ (e >>> 13), 3266489909)) ^ (e >>> 16))) ); @@ -8658,7 +8658,7 @@ var n = this.slice(0, t); return yr( this, - 1 === r ? n : n.concat(m(arguments, 2), this.slice(t + e)) + 1 === r ? n : n.concat(m(arguments, 2), this.slice(t + e)), ); }, findLastIndex: function (t, e) { @@ -8681,7 +8681,7 @@ return r === t; }, void 0, - e + e, ); }, has: function (t) { @@ -9185,9 +9185,9 @@ .replace(/[\\^$.*+?()[\]{}|]/g, "\\$&") .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - "$1.*?" + "$1.*?", ) + - "$" + "$", ); t.exports = function (t) { return !(!o(t) || i(t)) && (n(t) ? h : s).test(u(t)); @@ -9956,7 +9956,7 @@ }, 2689: (t) => { var e = RegExp( - "[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]" + "[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]", ); t.exports = function (t) { return e.test(t); @@ -10425,7 +10425,7 @@ s, _, ].join("|"), - "g" + "g", ); t.exports = function (t) { return t.match(j) || []; @@ -10503,7 +10503,7 @@ a = n( (function () { return arguments; - })() + })(), ) ? n : function (t) { @@ -10760,7 +10760,7 @@ s = (function (t) { if (null == t) throw new TypeError( - "Object.assign cannot be called with null or undefined" + "Object.assign cannot be called with null or undefined", ); return Object(t); })(t), @@ -10922,7 +10922,7 @@ }) : (t.exports = function () { throw new Error( - "Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11" + "Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11", ); }); }, @@ -11096,7 +11096,7 @@ (!u.key || (a && a.key === u.key) ? "" : ("" + u.key).replace(m, "$&/") + "/") + - t + t, )), e.push(u)), 1 @@ -11126,8 +11126,8 @@ 31, "[object Object]" === e ? "object with keys {" + Object.keys(t).join(", ") + "}" - : e - ) + : e, + ), )) ); return a; @@ -11156,7 +11156,7 @@ }, function (e) { 0 === t._status && ((t._status = 2), (t._result = e)); - } + }, ); } if (1 === t._status) return t._result; @@ -11183,7 +11183,7 @@ function () { e.apply(this, arguments); }, - r + r, ); }, count: function (t) { @@ -11413,7 +11413,7 @@ var e = n[t]; if (!e) throw new Error( - t + " is not supported (we accept pull requests)" + t + " is not supported (we accept pull requests)", ); return new e(); }); @@ -12135,7 +12135,7 @@ var o = r.call(t, e || "default"); if ("object" !== i(o)) return o; throw new TypeError( - "@@toPrimitive must return a primitive value." + "@@toPrimitive must return a primitive value.", ); } return ("string" === e ? String : Number)(t); @@ -12250,8 +12250,8 @@ o.createElement( r, null, - o.createElement(n, null, o.createElement(s, null)) - ) + o.createElement(n, null, o.createElement(s, null)), + ), ); } } @@ -12318,7 +12318,7 @@ "minItems", "uniqueItems", "enum", - "multipleOf" + "multipleOf", ); r(2282), r(9072), r(8764).Buffer; const L = () => { @@ -12375,10 +12375,10 @@ (t) => encodeURIComponent(t) + "=" + - encodeURIComponent(n[t]) + encodeURIComponent(n[t]), ) .join("&")) - }` + }`, ); }), a()(this, "setSelectedUrl", (t) => { @@ -12441,7 +12441,7 @@ let t = []; f()(c).call(c, (e, r) => { t.push( - o.createElement("option", { key: r, value: e.url }, e.name) + o.createElement("option", { key: r, value: e.url }, e.name), ); }), l.push( @@ -12457,9 +12457,9 @@ onChange: this.onUrlSelect, value: c[this.state.selectedIndex].url, }, - t - ) - ) + t, + ), + ), ); } else (p = this.downloadUrl), @@ -12470,7 +12470,7 @@ onChange: this.onUrlChange, value: this.state.url, disabled: s, - }) + }), ), l.push( o.createElement( @@ -12479,8 +12479,8 @@ className: "download-url-button", onClick: this.downloadUrl, }, - "Explore" - ) + "Explore", + ), ); return o.createElement( "div", @@ -12495,10 +12495,12 @@ o.createElement( "form", { className: "download-url-wrapper", onSubmit: p }, - h()(l).call(l, (t, e) => (0, o.cloneElement)(t, { key: e })) - ) - ) - ) + h()(l).call(l, (t, e) => + (0, o.cloneElement)(t, { key: e }), + ), + ), + ), + ), ); } } @@ -12604,7 +12606,7 @@ i[u - s], o[u - s], t.position - (i[u] - i[u - s]), - l + l, )), (c = x.repeat(" ", e.indent) + @@ -12631,7 +12633,7 @@ i[u + s], o[u + s], t.position - (i[u] - i[u + s]), - l + l, )), (c += x.repeat(" ", e.indent) + @@ -12664,7 +12666,7 @@ e + '" is met in definition of "' + t + - '" YAML type.' + '" YAML type.', ); }), (this.options = e), @@ -12705,7 +12707,7 @@ this.kind + '" is specified for "' + t + - '" YAML type.' + '" YAML type.', ); }; function z(t, e) { @@ -12738,7 +12740,7 @@ (!Array.isArray(t.implicit) && !Array.isArray(t.explicit)) ) throw new I( - "Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })" + "Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })", ); t.implicit && (e = e.concat(t.implicit)), t.explicit && (r = r.concat(t.explicit)); @@ -12746,21 +12748,21 @@ e.forEach(function (t) { if (!(t instanceof E)) throw new I( - "Specified list of YAML types (or a single Type object) contains a non-Type object." + "Specified list of YAML types (or a single Type object) contains a non-Type object.", ); if (t.loadKind && "scalar" !== t.loadKind) throw new I( - "There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported." + "There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.", ); if (t.multi) throw new I( - "There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit." + "There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.", ); }), r.forEach(function (t) { if (!(t instanceof E)) throw new I( - "Specified list of YAML types (or a single Type object) contains a non-Type object." + "Specified list of YAML types (or a single Type object) contains a non-Type object.", ); }); var n = Object.create(O.prototype); @@ -12994,7 +12996,7 @@ }, }), q = new RegExp( - "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$" + "^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$", ); var J = /^[-+]?[0-9]+e/; var Z = new E("tag:yaml.org,2002:float", { @@ -13061,7 +13063,7 @@ X = $, V = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), H = new RegExp( - "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$" + "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$", ); var K = new E("tag:yaml.org,2002:timestamp", { kind: "scalar", @@ -13352,7 +13354,7 @@ ? String.fromCharCode(t) : String.fromCharCode( 55296 + ((t - 65536) >> 10), - 56320 + ((t - 65536) & 1023) + 56320 + ((t - 65536) & 1023), ); } for ( @@ -13421,19 +13423,19 @@ jt.test(n) || Ut( t, - "ill-formed tag handle (first argument) of the TAG directive" + "ill-formed tag handle (first argument) of the TAG directive", ), lt.call(t.tagMap, n) && Ut( t, 'there is a previously declared suffix for "' + n + - '" tag handle' + '" tag handle', ), Nt.test(i) || Ut( t, - "ill-formed tag prefix (second argument) of the TAG directive" + "ill-formed tag prefix (second argument) of the TAG directive", ); try { i = decodeURIComponent(i); @@ -13463,7 +13465,7 @@ x.isObject(r) || Ut( t, - "cannot merge mappings; the provided source object is unacceptable" + "cannot merge mappings; the provided source object is unacceptable", ), u = 0, s = (i = Object.keys(r)).length; @@ -13685,7 +13687,7 @@ t.position === e && Ut( t, - "name of an anchor node must contain at least one character" + "name of an anchor node must contain at least one character", ), (t.anchor = t.input.slice(e, t.position)), !0 @@ -13769,7 +13771,7 @@ ((t.position = t.firstTabInLine), Ut( t, - "tab characters must not be used in indentation" + "tab characters must not be used in indentation", )), (n = t.input.charCodeAt(t.position + 1)), (o = t.line), @@ -13789,7 +13791,7 @@ It((c = t.input.charCodeAt(++t.position))) || Ut( t, - "a whitespace character is expected after the key-value separator within a block mapping" + "a whitespace character is expected after the key-value separator within a block mapping", ), d && (Ft(t, h, p, y, M, null, u, s, a), @@ -13803,14 +13805,14 @@ if (!g) return (t.tag = f), (t.anchor = l), !0; Ut( t, - "can not read an implicit mapping pair; a colon is missed" + "can not read an implicit mapping pair; a colon is missed", ); } } else { if (!g) return (t.tag = f), (t.anchor = l), !0; Ut( t, - "can not read a block mapping entry; a multiline key may not be an implicit key" + "can not read a block mapping entry; a multiline key may not be an implicit key", ); } } else @@ -13825,7 +13827,7 @@ ? ((d = !1), (i = !0)) : Ut( t, - "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line" + "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line", ), (t.position += 1), (c = n); @@ -13934,7 +13936,7 @@ } Ut( t, - "unexpected end of the stream within a flow collection" + "unexpected end of the stream within a flow collection", ); })(t, h) ? (w = !0) @@ -13976,12 +13978,12 @@ 0 === i ? Ut( t, - "bad explicit indentation width of a block scalar; it cannot be less than one" + "bad explicit indentation width of a block scalar; it cannot be less than one", ) : c ? Ut( t, - "repeat of an indentation width identifier" + "repeat of an indentation width identifier", ) : ((f = e + i - 1), (c = !0)); } @@ -14068,12 +14070,12 @@ : t.position === t.lineStart && Wt(t) ? Ut( t, - "unexpected end of the document within a single quoted scalar" + "unexpected end of the document within a single quoted scalar", ) : (t.position++, (i = t.position)); Ut( t, - "unexpected end of the stream within a single quoted scalar" + "unexpected end of the stream within a single quoted scalar", ); })(t, h) || (function (t, e) { @@ -14110,7 +14112,7 @@ ) { for (i = u, o = 0; i > 0; i--) (u = bt( - (s = t.input.charCodeAt(++t.position)) + (s = t.input.charCodeAt(++t.position)), )) >= 0 ? (o = (o << 4) + u) : Ut(t, "expected hexadecimal character"); @@ -14125,13 +14127,13 @@ : t.position === t.lineStart && Wt(t) ? Ut( t, - "unexpected end of the document within a double quoted scalar" + "unexpected end of the document within a double quoted scalar", ) : (t.position++, (n = t.position)); } Ut( t, - "unexpected end of the stream within a double quoted scalar" + "unexpected end of the stream within a double quoted scalar", ); })(t, h) ? (w = !0) @@ -14150,7 +14152,7 @@ t.position === e && Ut( t, - "name of an alias node must contain at least one character" + "name of an alias node must contain at least one character", ), (r = t.input.slice(e, t.position)), lt.call(t.anchorMap, r) || @@ -14264,7 +14266,7 @@ t, 'unacceptable node kind for ! tag; it should be "scalar", not "' + t.kind + - '"' + '"', ), a = 0, c = t.implicitTypes.length; @@ -14303,14 +14305,14 @@ l.kind + '", not "' + t.kind + - '"' + '"', ), l.resolve(t.result, t.tag) ? ((t.result = l.construct(t.result, t.tag)), null !== t.anchor && (t.anchorMap[t.anchor] = t.result)) : Ut( t, - "cannot resolve a node with !<" + t.tag + "> explicit tag" + "cannot resolve a node with !<" + t.tag + "> explicit tag", ); } return ( @@ -14347,7 +14349,7 @@ (r = t.input.slice(e, t.position)).length < 1 && Ut( t, - "directive name must not be less than one character in length" + "directive name must not be less than one character in length", ); 0 !== i; @@ -14423,7 +14425,7 @@ if (0 !== r.length) { if (1 === r.length) return r[0]; throw new I( - "expected a single document in the stream, but found more" + "expected a single document in the stream, but found more", ); } }, @@ -14499,7 +14501,7 @@ else { if (!(t <= 4294967295)) throw new I( - "code point within a string may not be greater than 0xFFFFFFFF" + "code point within a string may not be greater than 0xFFFFFFFF", ); (r = "U"), (n = 8); } @@ -14709,7 +14711,7 @@ }, t.quotingType, t.forceQuotes && !n, - i + i, ) ) { case Fe: @@ -14745,8 +14747,8 @@ } return o; })(e, u), - o - ) + o, + ), ) ); case qe: @@ -14856,7 +14858,7 @@ s.tag + '> tag resolver accepts not "' + a + - '" style' + '" style', ); n = s.represent[a](e, a); } @@ -14986,7 +14988,7 @@ null !== t.tag && "?" !== t.tag && ((s = encodeURI( - "!" === t.tag[0] ? t.tag.slice(1) : t.tag + "!" === t.tag[0] ? t.tag.slice(1) : t.tag, ).replace(/!/g, "%21")), (s = "!" === t.tag[0] @@ -15024,7 +15026,7 @@ t + " is removed in js-yaml 4. Use yaml." + e + - " instead, which is now safe by default." + " instead, which is now safe by default.", ); }; } @@ -15115,7 +15117,7 @@ Mr = { getLocalConfig: () => or( - '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n' + '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n', ), }; var wr = r(2320), @@ -15134,7 +15136,7 @@ return o.createElement( i, { targetName: u, getComponent: r, fn: n }, - o.createElement(e, _r()({}, this.props, this.context)) + o.createElement(e, _r()({}, this.props, this.context)), ); } } @@ -15158,8 +15160,8 @@ null, "Could not render ", "t" === e ? "this component" : e, - ", see the console." - ) + ", see the console.", + ), ); }; class mr extends o.Component { @@ -15234,7 +15236,7 @@ dr()((n = Array(o.length))).call(n, (t, e) => { let { fn: r } = e; return r.withErrorBoundary(t); - }) + }), ); return { fn: { componentDidCatch: jr, withErrorBoundary: Nr(i) }, @@ -15254,6 +15256,6 @@ })(), (n = n.default) ); - })() + })(), ); //# sourceMappingURL=swagger-ui-standalone-preset.js.map diff --git a/docs/swagger/swagger-ui.css b/docs/swagger/swagger-ui.css index 2d779604b9..a91a78a4c0 100644 --- a/docs/swagger/swagger-ui.css +++ b/docs/swagger/swagger-ui.css @@ -2411,8 +2411,19 @@ } } .swagger-ui .sans-serif { - font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica, - helvetica neue, ubuntu, roboto, noto, segoe ui, arial, sans-serif; + font-family: + -apple-system, + BlinkMacSystemFont, + avenir next, + avenir, + helvetica, + helvetica neue, + ubuntu, + roboto, + noto, + segoe ui, + arial, + sans-serif; } .swagger-ui .serif { font-family: georgia, serif; @@ -2428,13 +2439,22 @@ font-family: Consolas, monaco, monospace; } .swagger-ui .courier { - font-family: Courier Next, courier, monospace; + font-family: + Courier Next, + courier, + monospace; } .swagger-ui .helvetica { - font-family: helvetica neue, helvetica, sans-serif; + font-family: + helvetica neue, + helvetica, + sans-serif; } .swagger-ui .avenir { - font-family: avenir next, avenir, sans-serif; + font-family: + avenir next, + avenir, + sans-serif; } .swagger-ui .athelas { font-family: athelas, georgia, serif; @@ -2446,10 +2466,14 @@ font-family: times, serif; } .swagger-ui .bodoni { - font-family: Bodoni MT, serif; + font-family: + Bodoni MT, + serif; } .swagger-ui .calisto { - font-family: Calisto MT, serif; + font-family: + Calisto MT, + serif; } .swagger-ui .garamond { font-family: garamond, serif; @@ -7756,7 +7780,9 @@ transform: translate(-50%, -50%); } .swagger-ui .loading-container .loading:before { - animation: rotation 1s linear infinite, opacity 0.5s; + animation: + rotation 1s linear infinite, + opacity 0.5s; backface-visibility: hidden; border: 2px solid rgba(85, 85, 85, 0.1); border-radius: 100%; diff --git a/docs/swagger/swagger-ui.js b/docs/swagger/swagger-ui.js index 9d90e1b090..24197177c8 100644 --- a/docs/swagger/swagger-ui.js +++ b/docs/swagger/swagger-ui.js @@ -44,7 +44,7 @@ ? S(e.replace(/^.*#\/definitions\//, "")) : -1 !== c()(e).call(e, "#/components/schemas/") ? S(e.replace(/^.*#\/components\/schemas\//, "")) - : void 0 + : void 0, ), o()(this, "getRefSchema", (e) => { let { specSelectors: t } = this.props; @@ -81,13 +81,13 @@ m().createElement( "span", { className: "model-title__text" }, - u || l + u || l, ), m().createElement("img", { src: n(2517), height: "20px", width: "20px", - }) + }), ); const S = s.isOAS3() && a.get("deprecated"); switch ( @@ -107,7 +107,7 @@ isRef: c, includeReadOnly: p, includeWriteOnly: d, - }) + }), ); case "array": return m().createElement( @@ -120,7 +120,7 @@ required: o, includeReadOnly: p, includeWriteOnly: d, - }) + }), ); default: return m().createElement( @@ -132,7 +132,7 @@ name: l, deprecated: S, required: o, - }) + }), ); } } @@ -208,14 +208,14 @@ target: "_blank", rel: "noopener noreferrer", href: `${n}/debug?url=${encodeURIComponent( - this.state.url + this.state.url, )}`, }, c().createElement(h, { src: `${n}?url=${encodeURIComponent(this.state.url)}`, alt: "Online validator badge", - }) - ) + }), + ), ) : null; } @@ -308,7 +308,7 @@ t && !d.hasWarnedAboutDeprecation && (console.warn( - "useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0." + "useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0.", ), (d.hasWarnedAboutDeprecation = !0)), c().sanitize(e, { @@ -465,7 +465,7 @@ break; default: console.warn( - `Warning: invalid passwordType ${c} was passed, not including client id and secret` + `Warning: invalid passwordType ${c} was passed, not including client id and secret`, ); } return n.authorizeRequest({ @@ -583,7 +583,7 @@ "Content-Type": "application/x-www-form-urlencoded", "X-Requested-With": "XMLHttpRequest", }, - g + g, ); s.fetch({ url: E, @@ -732,12 +732,12 @@ (this.rootInjects.preauthorizeApiKey = r()(g).call( g, null, - e + e, )), (this.rootInjects.preauthorizeBasic = r()(h).call( h, null, - e + e, )); }, components: { @@ -900,7 +900,7 @@ var n; let { specSelectors: s } = e; console.warn( - "WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version." + "WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.", ); let a = s.securityDefinitions(), o = (0, f.List)(); @@ -960,7 +960,7 @@ }, x = (0, g.createSelector)( y, - (e) => e.get("authorized") || (0, f.Map)() + (e) => e.get("authorized") || (0, f.Map)(), ), C = (e, t) => (e) => { var n; @@ -972,7 +972,7 @@ return ( -1 === u()( - (t = m()((n = h()(e))).call(n, (e) => !!r.get(e))) + (t = m()((n = h()(e))).call(n, (e) => !!r.get(e))), ).call(t, !1) ); }).length @@ -1022,12 +1022,12 @@ s && a && (document.cookie = `${e.get( - "name" + "name", )}=${t}; SameSite=None; Secure`); } catch (e) { console.error( "Error persisting cookie based apiKey in document.cookie.", - e + e, ); } }, @@ -1049,7 +1049,7 @@ } catch (e) { console.error( "Error deleting cookie based apiKey from document.cookie.", - e + e, ); } e(n); @@ -1099,7 +1099,7 @@ const c = { getLocalConfig: () => (0, s.parseYamlConfig)( - '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n' + '---\nurl: "https://petstore.swagger.io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n', ), }; function i() { @@ -1242,8 +1242,10 @@ 2 === n.length ? (0, p.setHash)( (0, h.oJ)( - `/${encodeURIComponent(o)}/${encodeURIComponent(l)}` - ) + `/${encodeURIComponent(o)}/${encodeURIComponent( + l, + )}`, + ), ) : 1 === n.length && (0, p.setHash)((0, h.oJ)(`/${encodeURIComponent(o)}`)); @@ -1267,21 +1269,21 @@ const e = s.isShownKeyFromUrlHashArray([p]); u()(p).call(p, "_") > -1 && (console.warn( - "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead." + "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.", ), n.show( c()(e).call(e, (e) => e.replace(/_/g, " ")), - !0 + !0, )), n.show(e, !0); } (u()(p).call(p, "_") > -1 || u()(m).call(m, "_") > -1) && (console.warn( - "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead." + "Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead.", ), n.show( c()(l).call(l, (e) => e.replace(/_/g, " ")), - !0 + !0, )), n.show(l, !0), n.scrollTo(l); @@ -1378,7 +1380,7 @@ return o().createElement( "span", { ref: this.onLoad }, - o().createElement(e, this.props) + o().createElement(e, this.props), ); } }; @@ -1407,7 +1409,7 @@ return o().createElement( "span", { ref: this.onLoad }, - o().createElement(e, this.props) + o().createElement(e, this.props), ); } }; @@ -1448,10 +1450,10 @@ s.newThrownErr( r()( new Error( - (t.message || t.statusText) + " " + e + (t.message || t.statusText) + " " + e, ), - { source: "fetch" } - ) + { source: "fetch" }, + ), ), void ( !t.status && @@ -1469,18 +1471,18 @@ ) { const e = r()( new Error( - `Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.` + `Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.`, ), - { source: "fetch" } + { source: "fetch" }, ); return void s.newThrownErr(e); } if (t.origin !== d.Z.location.origin) { const e = r()( new Error( - `Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${d.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.` + `Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${d.Z.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`, ), - { source: "fetch" } + { source: "fetch" }, ); s.newThrownErr(e); } @@ -1532,7 +1534,7 @@ selectors: { loadingStatus: (0, p.createSelector)( (e) => e || (0, m.Map)(), - (e) => e.get("loadingStatus") || null + (e) => e.get("loadingStatus") || null, ), }, }, @@ -1624,11 +1626,11 @@ return console.error("Transformer error:", t), e; } }, - e + e, ); return o()((t = r()(s).call(s, (e) => !!e))).call( t, - (e) => (!e.get("line") && e.get("path"), e) + (e) => (!e.get("line") && e.get("path"), e), ); } }, @@ -1667,9 +1669,9 @@ : s[n + 1] ? e + t + " " : e + t, - "should be a" + "should be a", ); - })(t) + })(t), ); } return e; @@ -1723,7 +1725,7 @@ s = r()(f, n, { type: "thrown" }); return e .update("errors", (e) => - (e || (0, h.List)()).push((0, h.fromJS)(s)) + (e || (0, h.List)()).push((0, h.fromJS)(s)), ) .update("errors", (e) => (0, g.default)(e)); }, @@ -1731,14 +1733,14 @@ let { payload: n } = t; return ( (n = o()(n).call(n, (e) => - (0, h.fromJS)(r()(f, e, { type: "thrown" })) + (0, h.fromJS)(r()(f, e, { type: "thrown" })), )), e .update("errors", (e) => { var t; return c()((t = e || (0, h.List)())).call( t, - (0, h.fromJS)(n) + (0, h.fromJS)(n), ); }) .update("errors", (e) => (0, g.default)(e)) @@ -1753,7 +1755,7 @@ .update("errors", (e) => (e || (0, h.List)()) .push((0, h.fromJS)(s)) - .sortBy((e) => e.get("line")) + .sortBy((e) => e.get("line")), ) .update("errors", (e) => (0, g.default)(e)) ); @@ -1762,14 +1764,14 @@ let { payload: n } = t; return ( (n = o()(n).call(n, (e) => - (0, h.fromJS)(r()(f, e, { type: "spec" })) + (0, h.fromJS)(r()(f, e, { type: "spec" })), )), e .update("errors", (e) => { var t; return c()((t = e || (0, h.List)())).call( t, - (0, h.fromJS)(n) + (0, h.fromJS)(n), ); }) .update("errors", (e) => (0, g.default)(e)) @@ -1782,7 +1784,7 @@ (s = s.set("type", "auth")), e .update("errors", (e) => - (e || (0, h.List)()).push((0, h.fromJS)(s)) + (e || (0, h.List)()).push((0, h.fromJS)(s)), ) .update("errors", (e) => (0, g.default)(e)) ); @@ -1818,7 +1820,7 @@ r = n(6814); const a = (0, r.createSelector)( (e) => e, - (e) => e.get("errors", (0, s.List)()) + (e) => e.get("errors", (0, s.List)()), ), o = (0, r.createSelector)(a, (e) => e.last()); }, @@ -1863,11 +1865,11 @@ "aria-hidden": "true", focusable: "false", }, - a + a, ), o().createElement("path", { d: "M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z", - }) + }), ); }; l.defaultProps = { className: null, width: 20, height: 20 }; @@ -1895,11 +1897,11 @@ "aria-hidden": "true", focusable: "false", }, - a + a, ), o().createElement("path", { d: "M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z", - }) + }), ); }; l.defaultProps = { className: null, width: 20, height: 20 }; @@ -1927,11 +1929,11 @@ "aria-hidden": "true", focusable: "false", }, - a + a, ), o().createElement("path", { d: "M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z", - }) + }), ); }; l.defaultProps = { className: null, width: 20, height: 20 }; @@ -1959,11 +1961,11 @@ "aria-hidden": "true", focusable: "false", }, - a + a, ), o().createElement("path", { d: "M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z", - }) + }), ); }; l.defaultProps = { className: null, width: 20, height: 20 }; @@ -1991,7 +1993,7 @@ "aria-hidden": "true", focusable: "false", }, - a + a, ), o().createElement( "g", @@ -2000,8 +2002,8 @@ fill: "#ffffff", fillRule: "evenodd", d: "M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z", - }) - ) + }), + ), ); }; l.defaultProps = { className: null, width: 15, height: 16 }; @@ -2029,11 +2031,11 @@ "aria-hidden": "true", focusable: "false", }, - a + a, ), o().createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z", - }) + }), ); }; l.defaultProps = { className: null, width: 20, height: 20 }; @@ -2061,11 +2063,11 @@ "aria-hidden": "true", focusable: "false", }, - a + a, ), o().createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z", - }) + }), ); }; l.defaultProps = { className: null, width: 20, height: 20 }; @@ -2108,7 +2110,7 @@ (e) => { a(e, !t); }, - [t, a] + [t, a], ); return r().createElement( "button", @@ -2120,7 +2122,7 @@ r().createElement( "div", { className: "json-schema-2020-12-accordion__children" }, - n + n, ), r().createElement( "span", @@ -2130,8 +2132,8 @@ "json-schema-2020-12-accordion__icon--collapsed": !t, }), }, - r().createElement(c, null) - ) + r().createElement(c, null), + ), ); }; c.defaultProps = { expanded: !1 }; @@ -2149,7 +2151,7 @@ (e) => { n(e, !t); }, - [t, n] + [t, n], ); return r().createElement( "button", @@ -2158,7 +2160,7 @@ className: "json-schema-2020-12-expand-deep-button", onClick: a, }, - t ? "Collapse all" : "Expand all" + t ? "Collapse all" : "Expand all", ); }; }, @@ -2236,13 +2238,13 @@ (e, t) => { f(t), !t && v(!1), p(e, t, !1); }, - [p] + [p], ), de = (0, a.useCallback)( (e, t) => { f(t), v(t), p(e, t, !0); }, - [p] + [p], ); return o().createElement( u.JSONSchemaLevelContext.Provider, @@ -2273,9 +2275,9 @@ o().createElement( _, { expanded: g, onChange: me }, - o().createElement(ae, { title: s, schema: n }) + o().createElement(ae, { title: s, schema: n }), ), - o().createElement(pe, { expanded: g, onClick: de }) + o().createElement(pe, { expanded: g, onClick: de }), ) : o().createElement(ae, { title: s, schema: n }), o().createElement(ce, { schema: n }), @@ -2287,8 +2289,8 @@ o().createElement(ne, { key: `${e.scope}-${e.value}`, constraint: e, - }) - ) + }), + ), ), o().createElement( "div", @@ -2324,7 +2326,7 @@ o().createElement(z, { schema: n }), o().createElement(X, { schema: n }), o().createElement(B, { schema: n }), - o().createElement(re, { schema: n }) + o().createElement(re, { schema: n }), ), o().createElement(ee, { schema: n }), o().createElement(te, { schema: n }), @@ -2341,12 +2343,12 @@ o().createElement(P, { schema: n }), !C && x && o().createElement(R, { schema: n }), o().createElement(q, { schema: n }), - o().createElement(T, { schema: n }) - ) - ) - ) - ) - ) + o().createElement(T, { schema: n }), + ), + ), + ), + ), + ), ); }); p.defaultProps = { @@ -2372,7 +2374,7 @@ }, r().createElement("path", { d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z", - }) + }), ); }, 4922: (e, t, n) => { @@ -2396,7 +2398,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$anchor" + "$anchor", ), r().createElement( "span", @@ -2404,8 +2406,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$anchor - ) + t.$anchor, + ), ) : null; }; @@ -2431,7 +2433,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$comment" + "$comment", ), r().createElement( "span", @@ -2439,8 +2441,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$comment - ) + t.$comment, + ), ) : null; }; @@ -2496,8 +2498,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$defs" - ) + "$defs", + ), ), u().createElement(v, { expanded: l, onClick: w }), u().createElement( @@ -2506,7 +2508,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), u().createElement( "ul", @@ -2516,7 +2518,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !l, - } + }, ), }, l && @@ -2531,12 +2533,12 @@ key: t, className: "json-schema-2020-12-property", }, - u().createElement(S, { name: t, schema: n }) + u().createElement(S, { name: t, schema: n }), ); - }) - ) - ) - ) + }), + ), + ), + ), ); }; }, @@ -2561,7 +2563,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$dynamicAnchor" + "$dynamicAnchor", ), r().createElement( "span", @@ -2569,8 +2571,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$dynamicAnchor - ) + t.$dynamicAnchor, + ), ) : null; }; @@ -2596,7 +2598,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$dynamicRef" + "$dynamicRef", ), r().createElement( "span", @@ -2604,8 +2606,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$dynamicRef - ) + t.$dynamicRef, + ), ) : null; }; @@ -2631,7 +2633,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$id" + "$id", ), r().createElement( "span", @@ -2639,8 +2641,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$id - ) + t.$id, + ), ) : null; }; @@ -2666,7 +2668,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$ref" + "$ref", ), r().createElement( "span", @@ -2674,8 +2676,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$ref - ) + t.$ref, + ), ) : null; }; @@ -2701,7 +2703,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$schema" + "$schema", ), r().createElement( "span", @@ -2709,8 +2711,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t.$schema - ) + t.$schema, + ), ) : null; }; @@ -2754,8 +2756,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "$vocabulary" - ) + "$vocabulary", + ), ), c().createElement( "strong", @@ -2763,7 +2765,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), c().createElement( "ul", @@ -2780,7 +2782,7 @@ { "json-schema-2020-12-$vocabulary-uri--disabled": !n, - } + }, ), }, c().createElement( @@ -2789,11 +2791,11 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - t - ) + t, + ), ); - }) - ) + }), + ), ) : null; }; @@ -2816,7 +2818,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Additional properties" + "Additional properties", ); return r().createElement( "div", @@ -2835,8 +2837,8 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "allowed" - ) + "allowed", + ), ) : !1 === s ? r().createElement( @@ -2849,10 +2851,10 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "forbidden" - ) + "forbidden", + ), ) - : r().createElement(o, { name: l, schema: s }) + : r().createElement(o, { name: l, schema: s }), ); }; }, @@ -2905,8 +2907,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "All of" - ) + "All of", + ), ), c().createElement(y, { expanded: i, onClick: w }), c().createElement(S, { schema: { allOf: n } }), @@ -2918,7 +2920,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !i, - } + }, ), }, i && @@ -2935,12 +2937,12 @@ c().createElement(v, { name: `#${t} ${s.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -2994,8 +2996,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Any of" - ) + "Any of", + ), ), c().createElement(y, { expanded: i, onClick: w }), c().createElement(S, { schema: { anyOf: n } }), @@ -3007,7 +3009,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !i, - } + }, ), }, i && @@ -3024,12 +3026,12 @@ c().createElement(v, { name: `#${t} ${s.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -3056,7 +3058,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Const" + "Const", ), r().createElement( "span", @@ -3064,8 +3066,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - n.stringify(t.const) - ) + n.stringify(t.const), + ), ) : null; }; @@ -3083,7 +3085,7 @@ { className: `json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`, }, - t.value + t.value, ); }, o = r().memo(a); @@ -3105,7 +3107,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Contains" + "Contains", ); return r().createElement( "div", @@ -3113,7 +3115,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--contains", }, - r().createElement(s, { name: o, schema: t.contains }) + r().createElement(s, { name: o, schema: t.contains }), ); }; }, @@ -3134,7 +3136,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Content schema" + "Content schema", ); return r().createElement( "div", @@ -3142,7 +3144,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema", }, - r().createElement(s, { name: o, schema: t.contentSchema }) + r().createElement(s, { name: o, schema: t.contentSchema }), ); }; }, @@ -3168,7 +3170,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Default" + "Default", ), r().createElement( "span", @@ -3176,8 +3178,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - n.stringify(t.default) - ) + n.stringify(t.default), + ), ) : null; }; @@ -3206,7 +3208,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Required when defined" + "Required when defined", ), o().createElement( "ul", @@ -3221,11 +3223,11 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning", }, - e - ) - ) - ) - ) + e, + ), + ), + ), + ), ); }; }, @@ -3280,8 +3282,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Dependent schemas" - ) + "Dependent schemas", + ), ), u().createElement(v, { expanded: l, onClick: w }), u().createElement( @@ -3290,7 +3292,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), u().createElement( "ul", @@ -3300,7 +3302,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !l, - } + }, ), }, l && @@ -3315,12 +3317,12 @@ key: t, className: "json-schema-2020-12-property", }, - u().createElement(S, { name: t, schema: n }) + u().createElement(S, { name: t, schema: n }), ); - }) - ) - ) - ) + }), + ), + ), + ), ); }; }, @@ -3340,7 +3342,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--warning", }, - "deprecated" + "deprecated", ); }; }, @@ -3365,8 +3367,8 @@ className: "json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary", }, - t.description - ) + t.description, + ), ) : null; }; @@ -3388,7 +3390,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Else" + "Else", ); return r().createElement( "div", @@ -3396,7 +3398,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--if", }, - r().createElement(s, { name: o, schema: t.else }) + r().createElement(s, { name: o, schema: t.else }), ); }; }, @@ -3427,7 +3429,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Allowed values" + "Allowed values", ), c().createElement( "ul", @@ -3443,11 +3445,11 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - t - ) + t, + ), ); - }) - ) + }), + ), ) : null; }; @@ -3469,7 +3471,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "If" + "If", ); return r().createElement( "div", @@ -3477,7 +3479,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--if", }, - r().createElement(s, { name: o, schema: t.if }) + r().createElement(s, { name: o, schema: t.if }), ); }; }, @@ -3498,7 +3500,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Items" + "Items", ); return r().createElement( "div", @@ -3506,7 +3508,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--items", }, - r().createElement(s, { name: o, schema: t.items }) + r().createElement(s, { name: o, schema: t.items }), ); }; }, @@ -3527,7 +3529,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Not" + "Not", ); return r().createElement( "div", @@ -3535,7 +3537,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--not", }, - r().createElement(s, { name: o, schema: t.not }) + r().createElement(s, { name: o, schema: t.not }), ); }; }, @@ -3588,8 +3590,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "One of" - ) + "One of", + ), ), c().createElement(y, { expanded: i, onClick: w }), c().createElement(S, { schema: { oneOf: n } }), @@ -3601,7 +3603,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !i, - } + }, ), }, i && @@ -3618,12 +3620,12 @@ c().createElement(v, { name: `#${t} ${s.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -3661,10 +3663,10 @@ return u().createElement( "li", { key: t, className: "json-schema-2020-12-property" }, - u().createElement(a, { name: t, schema: n }) + u().createElement(a, { name: t, schema: n }), ); - }) - ) + }), + ), ); }; }, @@ -3717,8 +3719,8 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Prefix items" - ) + "Prefix items", + ), ), c().createElement(y, { expanded: i, onClick: w }), c().createElement(S, { schema: { prefixItems: n } }), @@ -3730,7 +3732,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !i, - } + }, ), }, i && @@ -3747,12 +3749,12 @@ c().createElement(v, { name: `#${t} ${s.getTitle(e)}`, schema: e, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ) : null; }; @@ -3809,10 +3811,10 @@ name: t, schema: r, dependentRequired: o, - }) + }), ); - }) - ) + }), + ), ); }; }, @@ -3833,7 +3835,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Property names" + "Property names", ); return n.hasKeyword(t, "propertyNames") ? r().createElement( @@ -3842,7 +3844,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames", }, - r().createElement(o, { name: l, schema: s }) + r().createElement(o, { name: l, schema: s }), ) : null; }; @@ -3863,7 +3865,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "read-only" + "read-only", ); }; }, @@ -3884,7 +3886,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Then" + "Then", ); return r().createElement( "div", @@ -3892,7 +3894,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--then", }, - r().createElement(s, { name: o, schema: t.then }) + r().createElement(s, { name: o, schema: t.then }), ); }; }, @@ -3909,7 +3911,7 @@ ? r().createElement( "div", { className: "json-schema-2020-12__title" }, - t || s.getTitle(n) + t || s.getTitle(n), ) : null; }; @@ -3932,7 +3934,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - `${s}${o}` + `${s}${o}`, ); }; o.defaultProps = { isCircular: !1 }; @@ -3956,7 +3958,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Unevaluated items" + "Unevaluated items", ); return r().createElement( "div", @@ -3964,7 +3966,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems", }, - r().createElement(o, { name: l, schema: s }) + r().createElement(o, { name: l, schema: s }), ); }; }, @@ -3986,7 +3988,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary", }, - "Unevaluated properties" + "Unevaluated properties", ); return r().createElement( "div", @@ -3994,7 +3996,7 @@ className: "json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties", }, - r().createElement(o, { name: l, schema: s }) + r().createElement(o, { name: l, schema: s }), ); }; }, @@ -4014,7 +4016,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "write-only" + "write-only", ); }; }, @@ -4131,7 +4133,7 @@ "number", "integer", "string", - ]) + ]), ).call(t, a) ? a : (() => { @@ -4295,7 +4297,7 @@ const r = T( "characters", null == e ? void 0 : e.minLength, - null == e ? void 0 : e.maxLength + null == e ? void 0 : e.maxLength, ); null !== r && t.push({ scope: "string", value: r }), null != e && @@ -4319,19 +4321,19 @@ const a = T( null != e && e.hasUniqueItems ? "unique items" : "items", null == e ? void 0 : e.minItems, - null == e ? void 0 : e.maxItems + null == e ? void 0 : e.maxItems, ); null !== a && t.push({ scope: "array", value: a }); const o = T( "contained items", null == e ? void 0 : e.minContains, - null == e ? void 0 : e.maxContains + null == e ? void 0 : e.maxContains, ); null !== o && t.push({ scope: "array", value: o }); const l = T( "properties", null == e ? void 0 : e.minProperties, - null == e ? void 0 : e.maxProperties + null == e ? void 0 : e.maxProperties, ); return null !== l && t.push({ scope: "object", value: l }), t; }, @@ -4345,8 +4347,8 @@ let [s, r] = n; return c()(r) && m()(r).call(r, e) ? (t.add(s), t) : t; }, - new (_())() - ) + new (_())(), + ), ) : []; }; @@ -4474,7 +4476,7 @@ r().createElement( W.JSONSchemaContext.Provider, { value: n }, - r().createElement(e, t) + r().createElement(e, t), ); return ( (s.contexts = { JSONSchemaContext: W.JSONSchemaContext }), @@ -4735,7 +4737,7 @@ !(function (e, t) { if (t.has(e)) throw new TypeError( - "Cannot initialize the same private elements twice on an object" + "Cannot initialize the same private elements twice on an object", ); })(e, t), t.set(e, n); @@ -4783,7 +4785,7 @@ !(function (e, t) { if (t.has(e)) throw new TypeError( - "Cannot initialize the same private elements twice on an object" + "Cannot initialize the same private elements twice on an object", ); })(e, t), t.set(e, n); @@ -4921,7 +4923,7 @@ ) s.required = h()((l = s.required || [])).call( l, - (e) => e !== a + (e) => e !== a, ); else s.properties[a] = y(o, r, n); } @@ -5477,7 +5479,7 @@ p = !l && r()(e.anyOf) && e.anyOf.length > 0; if (!l && (i || p)) { const t = (0, k.typeCast)( - i ? (0, I.pick)(e.oneOf) : (0, I.pick)(e.anyOf) + i ? (0, I.pick)(e.oneOf) : (0, I.pick)(e.anyOf), ); !(e = (0, P.default)(e, t, n)).xml && t.xml && (e.xml = t.xml), (0, A.hasExample)(e) && (0, A.hasExample)(t) && (l = !0); @@ -5532,7 +5534,7 @@ a ? c()((n = e.required)).call( n, - (e) => (t += void 0 === $[e] ? 0 : 1) + (e) => (t += void 0 === $[e] ? 0 : 1), ) : c()((s = e.required)).call(s, (e) => { var n; @@ -5588,7 +5590,7 @@ j()( null === (r = e.discriminator) || void 0 === r ? void 0 - : r.mapping + : r.mapping, ) && e.discriminator.propertyName === t && "string" == typeof e.$$ref @@ -5675,15 +5677,15 @@ ) t.push( ...f()((Z = E.anyOf)).call(Z, (e) => - R((0, P.default)(e, E, n), n, void 0, a) - ) + R((0, P.default)(e, E, n), n, void 0, a), + ), ); else if (r()(E.oneOf)) { var X; t.push( ...f()((X = E.oneOf)).call(X, (e) => - R((0, P.default)(e, E, n), n, void 0, a) - ) + R((0, P.default)(e, E, n), n, void 0, a), + ), ); } else { if (!(!a || (a && g.wrapped))) return R(E, n, void 0, a); @@ -5698,15 +5700,15 @@ ) t.push( ...f()((G = S.anyOf)).call(G, (e) => - R((0, P.default)(e, S, n), n, void 0, a) - ) + R((0, P.default)(e, S, n), n, void 0, a), + ), ); else if (r()(S.oneOf)) { var Y; t.push( ...f()((Y = S.oneOf)).call(Y, (e) => - R((0, P.default)(e, S, n), n, void 0, a) - ) + R((0, P.default)(e, S, n), n, void 0, a), + ), ); } else { if (!(!a || (a && g.wrapped))) return R(S, n, void 0, a); @@ -6094,7 +6096,7 @@ for (; a.length < s; ) a += a[e++ % a.length]; } return a; - })(J, e) + })(J, e), ); }; }, @@ -6207,7 +6209,7 @@ }, u = (0, s.createSelector)( (e) => e, - (e) => !c(e, "editor") + (e) => !c(e, "editor"), ); }, 8989: (e, t, n) => { @@ -6418,7 +6420,7 @@ s = s.push( new u.Map({ [t]: o()(l).call(l, (e) => void 0 !== e), - }) + }), ); }), ("http" !== a && "apiKey" !== a) || @@ -6437,7 +6439,7 @@ c()((a = e.get("scopes_supported"))).call( a, (e, t) => e.set(t, ""), - new u.Map() + new u.Map(), ), i = (0, u.fromJS)({ flow: r, @@ -6450,14 +6452,14 @@ s = s.push( new u.Map({ [t]: o()(i).call(i, (e) => void 0 !== e), - }) + }), ); }); } }), s) : s; - } + }, )), (e, t) => function () { @@ -6522,10 +6524,10 @@ path: t.path, specPath: t.specPath, allowTryItOut: !1, - }) - ) + }), + ), ); - }) + }), ); }; }, @@ -6579,7 +6581,7 @@ let g = this.getValue(), f = c()((e = s.allErrors())).call( e, - (e) => e.get("authId") === r + (e) => e.get("authId") === r, ); if ("basic" === h) { var y; @@ -6592,13 +6594,13 @@ null, m().createElement("code", null, r || t.get("name")), "  (http, Basic)", - m().createElement(d, { path: ["securityDefinitions", r] }) + m().createElement(d, { path: ["securityDefinitions", r] }), ), e && m().createElement("h6", null, "Authorized"), m().createElement( o, null, - m().createElement(p, { source: t.get("description") }) + m().createElement(p, { source: t.get("description") }), ), m().createElement( o, @@ -6616,8 +6618,8 @@ "aria-label": "auth-basic-username", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), m().createElement( o, @@ -6634,12 +6636,12 @@ type: "password", "aria-label": "auth-basic-password", onChange: this.onChange, - }) - ) + }), + ), ), u()((y = f.valueSeq())).call(y, (e, t) => - m().createElement(i, { error: e, key: t }) - ) + m().createElement(i, { error: e, key: t }), + ), ); } var v; @@ -6652,13 +6654,15 @@ null, m().createElement("code", null, r || t.get("name")), "  (http, Bearer)", - m().createElement(d, { path: ["securityDefinitions", r] }) + m().createElement(d, { + path: ["securityDefinitions", r], + }), ), g && m().createElement("h6", null, "Authorized"), m().createElement( o, null, - m().createElement(p, { source: t.get("description") }) + m().createElement(p, { source: t.get("description") }), ), m().createElement( o, @@ -6674,12 +6678,12 @@ "aria-label": "auth-bearer-value", onChange: this.onChange, autoFocus: !0, - }) - ) - ), + }), + ), + ), u()((v = f.valueSeq())).call(v, (e, t) => - m().createElement(i, { error: e, key: t }) - ) + m().createElement(i, { error: e, key: t }), + ), ) : m().createElement( "div", @@ -6689,8 +6693,8 @@ null, m().createElement("b", null, r), " HTTP authentication: unsupported scheme ", - `'${h}'` - ) + `'${h}'`, + ), ); } } @@ -6743,9 +6747,9 @@ c().createElement( "b", null, - c().createElement("code", null, t) + c().createElement("code", null, t), ), - i ? c().createElement(s, { source: i }) : null + i ? c().createElement(s, { source: i }) : null, ), c().createElement( "pre", @@ -6761,12 +6765,12 @@ if ("string" != typeof t) return ""; return o()((n = t.split("\n"))) .call(n, (t, n) => - n > 0 ? Array(e + 1).join(" ") + t : t + n > 0 ? Array(e + 1).join(" ") + t : t, ) .join("\n"); })(0, r()(l, null, 2)) || "{}", - c().createElement("br", null) - ) + c().createElement("br", null), + ), ); } } @@ -6808,7 +6812,7 @@ const { path: n, method: s } = this.props; return this.props.getServerVariable( { namespace: `${n}:${s}`, server: e }, - t + t, ); }), r()(this, "getEffectiveServerValue", (e) => { @@ -6841,9 +6845,9 @@ o().createElement( "h4", { className: "opblock-title" }, - "Servers" - ) - ) + "Servers", + ), + ), ), o().createElement( "div", @@ -6853,7 +6857,7 @@ { className: "message" }, "These ", a, - "-level options override the global server options." + "-level options override the global server options.", ), o().createElement(s, { servers: r, @@ -6862,8 +6866,8 @@ setServerVariableValue: this.setServerVariableValue, getServerVariable: this.getServerVariable, getEffectiveServerValue: this.getEffectiveServerValue, - }) - ) + }), + ), ); } } @@ -6918,7 +6922,7 @@ title: t.size ? t.join(", ") : "", value: n, onChange: this.onDomChange, - }) + }), ); } } @@ -7028,7 +7032,7 @@ null, "Example values are not available for ", m().createElement("code", null, S), - " media types." + " media types.", ); } if ( @@ -7060,7 +7064,7 @@ if (f.get("readOnly")) return; let y = M ? (0, h.po)(f) : null; const S = c()( - (o = L.get("required", (0, d.List)())) + (o = L.get("required", (0, d.List)())), ).call(o, g), w = f.get("type"), j = f.get("format"), @@ -7112,7 +7116,7 @@ g, S ? m().createElement("span", null, " *") - : null + : null, ), m().createElement( "div", @@ -7124,7 +7128,7 @@ { className: "prop-format" }, "($", j, - ")" + ")", ), M && y.size ? r()((p = y.entrySeq())).call(p, (e) => { @@ -7135,13 +7139,13 @@ xVal: s, }); }) - : null + : null, ), m().createElement( "div", { className: "parameter__deprecated" }, - f.get("deprecated") ? "deprecated" : null - ) + f.get("deprecated") ? "deprecated" : null, + ), ), m().createElement( "td", @@ -7173,14 +7177,14 @@ isDisabled: u()(_) ? 0 !== _.length : !(0, h.O2)(_), - }) + }), ) - : null - ) + : null, + ), ); - }) - ) - ) + }), + ), + ), ) ); } @@ -7217,7 +7221,7 @@ defaultValue: W, onChange: x, getComponent: i, - }) + }), ) : m().createElement(A, { getComponent: i, @@ -7241,7 +7245,7 @@ getComponent: i, getConfigs: p, }) - : null + : null, ) ); }; @@ -7269,7 +7273,7 @@ r().createElement( "span", { className: "servers-title" }, - "Servers" + "Servers", ), r().createElement(o, { servers: a, @@ -7278,7 +7282,7 @@ setServerVariableValue: n.setServerVariableValue, getServerVariable: t.serverVariableValue, getEffectiveServerValue: t.serverEffectiveValue, - }) + }), ) : null; } @@ -7322,7 +7326,7 @@ this.setServer( null === (e = t.first()) || void 0 === e ? void 0 - : e.get("url") + : e.get("url"), ); } UNSAFE_componentWillReceiveProps(e) { @@ -7340,7 +7344,7 @@ l = o()((r = this.props.servers)).call( r, - (e) => e.get("url") === this.props.currentServer + (e) => e.get("url") === this.props.currentServer, ) || (0, p.OrderedMap)(); if (!a) return this.setServer(t.first().get("url")); let i = l.get("variables") || (0, p.OrderedMap)(), @@ -7392,11 +7396,11 @@ "option", { value: e.get("url"), key: e.get("url") }, e.get("url"), - e.get("description") && ` - ${e.get("description")}` - ) + e.get("description") && ` - ${e.get("description")}`, + ), ) - .toArray() - ) + .toArray(), + ), ), i ? u().createElement( @@ -7406,7 +7410,7 @@ "div", { className: "computed-url" }, "Computed URL:", - u().createElement("code", null, a(s)) + u().createElement("code", null, a(s)), ), u().createElement("h4", null, "Server variables"), u().createElement( @@ -7441,9 +7445,9 @@ key: e, value: e, }, - e - ) - ) + e, + ), + ), ) : u().createElement("input", { type: "text", @@ -7451,14 +7455,14 @@ onChange: this.onServerVariableValueChange, "data-variable": n, - }) - ) + }), + ), ); - }) - ) - ) + }), + ), + ), ) - : null + : null, ); } } @@ -7633,7 +7637,7 @@ ) return e.setIn( ["requestData", n, s, "errors"], - (0, i.fromJS)(a) + (0, i.fromJS)(a), ); if (r.missingRequiredKeys && r.missingRequiredKeys.length > 0) { const { missingRequiredKeys: t } = r; @@ -7644,13 +7648,13 @@ c()(t).call( t, (e, t) => e.setIn([t, "errors"], (0, i.fromJS)(a)), - e - ) + e, + ), ); } return ( console.warn( - "unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR" + "unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR", ), e ); @@ -7663,7 +7667,7 @@ if (!i.Map.isMap(a)) return e.setIn( ["requestData", n, s, "errors"], - (0, i.fromJS)([]) + (0, i.fromJS)([]), ); const [...o] = r()(a).call(a); return o @@ -7674,8 +7678,8 @@ c()(o).call( o, (e, t) => e.setIn([t, "errors"], (0, i.fromJS)([])), - e - ) + e, + ), ) : e; }, @@ -7749,11 +7753,11 @@ return e.getIn(n) || ""; }), y = g( - (e, t, n) => e.getIn(["requestData", t, n, "bodyValue"]) || null + (e, t, n) => e.getIn(["requestData", t, n, "bodyValue"]) || null, ), v = g( (e, t, n) => - e.getIn(["requestData", t, n, "retainBodyValue"]) || !1 + e.getIn(["requestData", t, n, "retainBodyValue"]) || !1, ), S = (e, t, n) => (e) => { const { @@ -7768,7 +7772,7 @@ r.specResolvedSubtree(["paths", t, n, "requestBody"]), e, s.activeExamplesMember(t, n, "requestBody", "requestBody"), - a + a, ); } return null; @@ -7785,9 +7789,9 @@ (c = (0, h.Pz)( c .mapEntries((e) => - p.Map.isMap(e[1]) ? [e[0], e[1].get("value")] : e + p.Map.isMap(e[1]) ? [e[0], e[1].get("value")] : e, ) - .toJS() + .toJS(), )), p.List.isList(c) && (c = (0, h.Pz)(c)), l) @@ -7796,7 +7800,7 @@ i, l, s.activeExamplesMember(t, n, "requestBody", "requestBody"), - a + a, ); o = !!c && c !== e; } @@ -7804,22 +7808,22 @@ }), w = g( (e, t, n) => - e.getIn(["requestData", t, n, "bodyInclusion"]) || (0, p.Map)() + e.getIn(["requestData", t, n, "bodyInclusion"]) || (0, p.Map)(), ), x = g( - (e, t, n) => e.getIn(["requestData", t, n, "errors"]) || null + (e, t, n) => e.getIn(["requestData", t, n, "errors"]) || null, ), C = g( (e, t, n, s, r) => - e.getIn(["examples", t, n, s, r, "activeExample"]) || null + e.getIn(["examples", t, n, s, r, "activeExample"]) || null, ), j = g( (e, t, n) => - e.getIn(["requestData", t, n, "requestContentType"]) || null + e.getIn(["requestData", t, n, "requestContentType"]) || null, ), b = g( (e, t, n) => - e.getIn(["requestData", t, n, "responseContentType"]) || null + e.getIn(["requestData", t, n, "responseContentType"]) || null, ), _ = g((e, t, n) => { let s; @@ -7973,7 +7977,7 @@ }; } const E = S( - () => (e) => e.specSelectors.specJson().get("servers", g) + () => (e) => e.specSelectors.specJson().get("servers", g), ), w = S((e, t) => { let { callbacks: n, specPath: s } = t; @@ -7998,8 +8002,8 @@ (e) => { let [t] = e; return u()(a).call(a, t); - } - )) + }, + )), ).call(l, (e) => { let [t, r] = e; return { @@ -8012,12 +8016,12 @@ }); return m()(e).call(e, p); }, - (0, d.List)() + (0, d.List)(), ) : e, - (0, d.List)() + (0, d.List)(), ) - .groupBy((e) => e.callbackName)) + .groupBy((e) => e.callbackName)), ) .call(t, (e) => e.toArray()) .toObject() @@ -8063,13 +8067,13 @@ }), u = l( () => (e) => - e.getSystem().specSelectors.specJson().hasIn(["servers", 0]) + e.getSystem().specSelectors.specJson().hasIn(["servers", 0]), ), p = l( (0, s.createSelector)( r.specJsonWithResolvedSubtrees, - (e) => e.getIn(["components", "securitySchemes"]) || null - ) + (e) => e.getIn(["components", "securitySchemes"]) || null, + ), ), m = (e, t) => function (n) { @@ -8220,7 +8224,7 @@ (s = o().createElement( "span", { className: "model-deprecated-warning" }, - "Deprecated:" + "Deprecated:", ))), o().createElement( "div", @@ -8232,8 +8236,8 @@ getConfigs: e, depth: 1, expandDepth: this.props.expandDepth || 0, - }) - ) + }), + ), ) ); } @@ -8261,8 +8265,8 @@ r().createElement( "small", { className: "version-stamp" }, - r().createElement("pre", { className: "version" }, "OAS 3.0") - ) + r().createElement("pre", { className: "version" }, "OAS 3.0"), + ), ); }); }, @@ -8278,7 +8282,7 @@ if (t.jsonSchema202012) { const e = (0, a.makeIsExpandable)( t.jsonSchema202012.isExpandable, - n + n, ); r()(this.fn.jsonSchema202012, { isExpandable: e, @@ -8297,7 +8301,7 @@ memoizedCreateXMLExample: t.jsonSchema202012.memoizedCreateXMLExample, }, - n() + n(), ); r()(this.fn, e); } @@ -8326,15 +8330,15 @@ c, { href: (0, a.Nm)(o), target: "_blank" }, s, - " - Website" - ) + " - Website", + ), ), l && r().createElement( c, { href: (0, a.Nm)(`mailto:${l}`) }, - o ? `Send email to ${s}` : `Contact ${s}` - ) + o ? `Send email to ${s}` : `Contact ${s}`, + ), ); }; }, @@ -8376,16 +8380,16 @@ "h2", { className: "title" }, p, - s && r().createElement(S, { version: s }) + s && r().createElement(S, { version: s }), ), (c || l) && r().createElement(w, { host: c, basePath: l }), - o && r().createElement(E, { getComponent: t, url: o }) + o && r().createElement(E, { getComponent: t, url: o }), ), i && r().createElement("p", { className: "info__summary" }, i), r().createElement( "div", { className: "info__description description" }, - r().createElement(y, { source: u }) + r().createElement(y, { source: u }), ), m && r().createElement( @@ -8394,8 +8398,8 @@ r().createElement( v, { target: "_blank", href: (0, a.Nm)(m) }, - "Terms of service" - ) + "Terms of service", + ), ), g.size > 0 && r().createElement(C, null), f.size > 0 && r().createElement(x, null), @@ -8407,9 +8411,9 @@ target: "_blank", href: (0, a.Nm)(d), }, - h || d + h || d, ), - r().createElement(j, null) + r().createElement(j, null), ); }; }, @@ -8437,8 +8441,8 @@ r().createElement( l, { target: "_blank", href: (0, a.Nm)(s) }, - s - ) + s, + ), ), s && s !== o && @@ -8457,7 +8461,7 @@ r().createElement( "h4", { className: "center" }, - "Warning" + "Warning", ), r().createElement( "p", @@ -8465,21 +8469,21 @@ r().createElement( "strong", null, - "OpenAPI.jsonSchemaDialect" + "OpenAPI.jsonSchemaDialect", ), " field contains a value different from the default value of", " ", r().createElement( l, { target: "_blank", href: o }, - o + o, ), - ". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value." - ) - ) - ) - ) - ) + ". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value.", + ), + ), + ), + ), + ), ); }; }, @@ -8504,10 +8508,10 @@ r().createElement( l, { target: "_blank", href: (0, a.Nm)(o) }, - s - ) + s, + ), ) - : r().createElement("span", null, s) + : r().createElement("span", null, s), ); }; }, @@ -8538,7 +8542,7 @@ (e, t) => { r(i, t); }, - [i, r] + [i, r], ); return o().createElement(c, { name: i, @@ -8632,8 +8636,8 @@ u().createElement("span", null, "Schemas"), E ? u().createElement(C, null) - : u().createElement(j, null) - ) + : u().createElement(j, null), + ), ), u().createElement( w, @@ -8647,8 +8651,8 @@ name: t, onExpand: O(t), }); - }) - ) + }), + ), ); }; }, @@ -8686,7 +8690,7 @@ r().createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), r().createElement( "p", @@ -8694,7 +8698,7 @@ r().createElement("code", null, "swagger"), " and ", r().createElement("code", null, "openapi"), - " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields." + " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.", ), r().createElement( "p", @@ -8706,10 +8710,10 @@ " (for example,", " ", r().createElement("code", null, "openapi: 3.1.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ) : n || s || a ? r().createElement("div", null, l) @@ -8729,12 +8733,12 @@ r().createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), r().createElement( "p", null, - "The provided definition does not specify a valid version field." + "The provided definition does not specify a valid version field.", ), r().createElement( "p", @@ -8746,10 +8750,10 @@ " (for example,", " ", r().createElement("code", null, "openapi: 3.1.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ); }; }, @@ -8788,10 +8792,10 @@ path: e, specPath: t.specPath, allowTryItOut: !1, - }) - ) + }), + ), ); - }) + }), ); }; }, @@ -8873,7 +8877,10 @@ n.specSelectors.isOAS31() ? m().createElement( e, - r()({}, s, { originalComponent: t, getSystem: n.getSystem }) + r()({}, s, { + originalComponent: t, + getSystem: n.getSystem, + }), ) : m().createElement(t, s), v = (e, t) => { @@ -8893,7 +8900,7 @@ : void 0; }, ]; - }) + }), ); }; }, @@ -8972,7 +8979,7 @@ selectLicenseNameField: S.selectLicenseNameField, selectLicenseUrlField: S.selectLicenseUrlField, selectLicenseIdentifierField: A( - S.selectLicenseIdentifierField + S.selectLicenseIdentifierField, ), selectLicenseUrl: n(S.selectLicenseUrl), contact: S.contact, @@ -8986,7 +8993,7 @@ selectInfoTermsOfServiceField: S.selectInfoTermsOfServiceField, selectInfoTermsOfServiceUrl: n( - S.selectInfoTermsOfServiceUrl + S.selectInfoTermsOfServiceUrl, ), selectExternalDocsDescriptionField: S.selectExternalDocsDescriptionField, @@ -9035,8 +9042,8 @@ className: "json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary", }, - r().createElement(a, { source: t.description }) - ) + r().createElement(a, { source: t.description }), + ), ); }; }, @@ -9092,10 +9099,10 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Discriminator" - ) + "Discriminator", + ), ), - o().createElement(E, { expanded: g, onClick: C }) + o().createElement(E, { expanded: g, onClick: C }), ) : o().createElement( "span", @@ -9103,7 +9110,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Discriminator" + "Discriminator", ), s.propertyName && o().createElement( @@ -9112,7 +9119,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - s.propertyName + s.propertyName, ), o().createElement( "strong", @@ -9120,7 +9127,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), o().createElement( "ul", @@ -9130,17 +9137,17 @@ { "json-schema-2020-12-keyword__children--collapsed": !g, - } + }, ), }, g && o().createElement( "li", { className: "json-schema-2020-12-property" }, - o().createElement(i.default, { discriminator: s }) - ) - ) - ) + o().createElement(i.default, { discriminator: s }), + ), + ), + ), ); }; }, @@ -9176,7 +9183,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - t + t, ), u().createElement( "span", @@ -9184,8 +9191,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - n - ) + n, + ), ); }); }; @@ -9215,7 +9222,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "Example" + "Example", ), r().createElement( "span", @@ -9223,8 +9230,8 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--const", }, - o(t.example) - ) + o(t.example), + ), ) : null; }; @@ -9283,10 +9290,10 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "External documentation" - ) + "External documentation", + ), ), - o().createElement(E, { expanded: g, onClick: b }) + o().createElement(E, { expanded: g, onClick: b }), ) : o().createElement( "span", @@ -9294,7 +9301,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "External documentation" + "External documentation", ), o().createElement( "strong", @@ -9302,7 +9309,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), o().createElement( "ul", @@ -9312,7 +9319,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !g, - } + }, ), }, g && @@ -9323,7 +9330,7 @@ o().createElement( "li", { className: "json-schema-2020-12-property" }, - o().createElement(w, { schema: s, getSystem: n }) + o().createElement(w, { schema: s, getSystem: n }), ), s.url && o().createElement( @@ -9341,7 +9348,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "url" + "url", ), o().createElement( "span", @@ -9355,14 +9362,14 @@ target: "_blank", href: (0, i.Nm)(s.url), }, - s.url - ) - ) - ) - ) - ) - ) - ) + s.url, + ), + ), + ), + ), + ), + ), + ), ); }; }, @@ -9421,10 +9428,10 @@ name: t, schema: s, dependentRequired: a, - }) + }), ); - }) - ) + }), + ), ); }; }, @@ -9479,10 +9486,10 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "XML" - ) + "XML", + ), ), - o().createElement(S, { expanded: h, onClick: x }) + o().createElement(S, { expanded: h, onClick: x }), ) : o().createElement( "span", @@ -9490,7 +9497,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "XML" + "XML", ), !0 === s.attribute && o().createElement( @@ -9499,7 +9506,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "attribute" + "attribute", ), !0 === s.wrapped && o().createElement( @@ -9508,7 +9515,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--muted", }, - "wrapped" + "wrapped", ), o().createElement( "strong", @@ -9516,7 +9523,7 @@ className: "json-schema-2020-12__attribute json-schema-2020-12__attribute--primary", }, - "object" + "object", ), o().createElement( "ul", @@ -9526,7 +9533,7 @@ { "json-schema-2020-12-keyword__children--collapsed": !h, - } + }, ), }, h && @@ -9549,7 +9556,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "name" + "name", ), o().createElement( "span", @@ -9557,9 +9564,9 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - s.name - ) - ) + s.name, + ), + ), ), s.namespace && o().createElement( @@ -9574,7 +9581,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "namespace" + "namespace", ), o().createElement( "span", @@ -9582,9 +9589,9 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - s.namespace - ) - ) + s.namespace, + ), + ), ), s.prefix && o().createElement( @@ -9599,7 +9606,7 @@ className: "json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary", }, - "prefix" + "prefix", ), o().createElement( "span", @@ -9607,13 +9614,13 @@ className: "json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary", }, - s.prefix - ) - ) - ) - ) - ) - ) + s.prefix, + ), + ), + ), + ), + ), + ), ); }; }, @@ -9669,7 +9676,7 @@ r().createElement(o, { schema: t, getSystem: n }), r().createElement(l, { schema: t, getSystem: n }), r().createElement(i, { schema: t, getSystem: n }), - r().createElement(c, { schema: t, getSystem: n }) + r().createElement(c, { schema: t, getSystem: n }), ); }); }, @@ -9700,7 +9707,7 @@ ? (0, r.mn)(n, e, { selectedServer: t }) : s ? `https://spdx.org/licenses/${s}.html` - : void 0 + : void 0, ); }, 9305: (e, t, n) => { @@ -9751,7 +9758,7 @@ const S = (0, g.Map)(), E = (0, f.createSelector)( (e, t) => t.specSelectors.specJson(), - v.isOAS31 + v.isOAS31, ), w = () => (e) => e.specSelectors.specJson().get("webhooks", S), x = (0, f.createSelector)( @@ -9772,7 +9779,7 @@ (a = c()((o = n.entrySeq())).call(o, (e) => { let [n] = e; return u()(t).call(t, n); - })) + })), ).call(a, (e) => { let [t, n] = e; return { @@ -9784,14 +9791,14 @@ }); return m()(e).call(e, l); }, - (0, g.List)() + (0, g.List)(), ) - .groupBy((e) => e.path)) + .groupBy((e) => e.path)), ) .call(n, (e) => e.toArray()) .toObject() : {}; - } + }, ), C = () => (e) => e.specSelectors.info().get("license", S), j = () => (e) => e.specSelectors.license().get("name", "License"), @@ -9802,7 +9809,7 @@ (e, t) => t.specSelectors.selectLicenseUrlField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), N = () => (e) => e.specSelectors.license().get("identifier"), O = () => (e) => e.specSelectors.info().get("contact", S), @@ -9816,7 +9823,7 @@ (e, t) => t.specSelectors.selectContactUrlField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), q = () => (e) => e.specSelectors.info().get("title"), R = () => (e) => e.specSelectors.info().get("summary"), @@ -9828,7 +9835,7 @@ (e, t) => t.specSelectors.selectInfoTermsOfServiceField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), J = () => (e) => e.specSelectors.externalDocs().get("description"), $ = () => (e) => e.specSelectors.externalDocs().get("url"), @@ -9838,7 +9845,7 @@ (e, t) => t.specSelectors.selectExternalDocsUrlField(), (e, t, n) => { if (n) return (0, y.mn)(n, e, { selectedServer: t }); - } + }, ), K = () => (e) => e.specSelectors.specJson().get("jsonSchemaDialect"), @@ -9860,11 +9867,11 @@ (e[s] = (null == a ? void 0 : a.toJS()) || r), e ); }, - {} + {}, ) : e.toJS() : {}; - } + }, ); }, 2884: (e, t, n) => { @@ -9885,7 +9892,7 @@ return s || e(...a); }, a = (0, s.createOnlyOAS31SelectorWrapper)( - () => (e, t) => t.oas31Selectors.selectLicenseUrl() + () => (e, t) => t.oas31Selectors.selectLicenseUrl(), ); }, 7423: (e, t, n) => { @@ -10032,7 +10039,7 @@ upperFirst: l.upperFirst, isExpandable: (0, o.makeIsExpandable)( l.jsonSchema202012.isExpandable, - t + t, ), getProperties: o.getProperties, }, @@ -10187,8 +10194,8 @@ r().createElement( "small", { className: "version-stamp" }, - r().createElement("pre", { className: "version" }, "OAS 3.1") - ) + r().createElement("pre", { className: "version" }, "OAS 3.1"), + ), ); }); }, @@ -10366,17 +10373,17 @@ ? t.push( ` "${e}": {\n "name": "${s.name}"${ s.type ? `,\n "type": "${s.type}"` : "" - }\n }` + }\n }`, ) : t.push( ` "${e}": ${c()(s, null, 2).replace( /(\r\n|\r|\n)/g, - "\n " - )}` + "\n ", + )}`, ); } return `{\n${t.join(",\n")}\n}`; - })(e) + })(e), ) : ("string" != typeof t && (t = c()(t)), l(t)); } @@ -10464,10 +10471,10 @@ [j, b] = (0, p.useState)( null === (t = a.getSnippetGenerators()) || void 0 === t ? void 0 - : t.keySeq().first() + : t.keySeq().first(), ), [_, N] = (0, p.useState)( - null == a ? void 0 : a.getDefaultExpanded() + null == a ? void 0 : a.getDefaultExpanded(), ); (0, p.useEffect)(() => {}, []), (0, p.useEffect)(() => { @@ -10482,15 +10489,15 @@ ? void 0 : t.contains("curl-command")) ); - } + }, ); return ( c()(t).call(t, (e) => - e.addEventListener("mousewheel", q, { passive: !1 }) + e.addEventListener("mousewheel", q, { passive: !1 }), ), () => { c()(t).call(t, (e) => - e.removeEventListener("mousewheel", q) + e.removeEventListener("mousewheel", q), ); } ); @@ -10517,7 +10524,7 @@ className: "curl microlight", style: (0, v.C2)(h()(d, "syntaxHighlight.theme")), }, - A + A, ) : m().createElement("textarea", { readOnly: !0, @@ -10541,7 +10548,7 @@ m().createElement( "h4", { onClick: () => I(), style: { cursor: "pointer" } }, - "Snippets" + "Snippets", ), m().createElement( "button", @@ -10560,8 +10567,8 @@ className: "arrow", width: "10", height: "10", - }) - ) + }), + ), ), _ && m().createElement( @@ -10593,10 +10600,10 @@ m().createElement( "h4", { style: t === j ? { color: "white" } : {} }, - n.get("title") - ) + n.get("title"), + ), ); - }) + }), ), m().createElement( "div", @@ -10604,11 +10611,11 @@ m().createElement( y.CopyToClipboard, { text: A }, - m().createElement("button", null) - ) + m().createElement("button", null), + ), ), - m().createElement("div", null, R) - ) + m().createElement("div", null, R), + ), ); }; }, @@ -10644,7 +10651,7 @@ (n = c()((s = m(e))).call(s, (e, t) => { const n = ((e) => a[`requestSnippetGenerator_${e}`])(t); return "function" != typeof n ? null : e.set("fn", n); - })) + })), ).call(n, (e) => e); }, h = (0, i.createSelector)(p, (e) => e.get("activeLanguage")), @@ -10706,8 +10713,8 @@ null, "Could not render ", "t" === t ? "this component" : t, - ", see the console." - ) + ", see the console.", + ), ); }; }, @@ -10729,7 +10736,7 @@ return o().createElement( l, { targetName: c, getComponent: n, fn: s }, - o().createElement(t, r()({}, this.props, this.context)) + o().createElement(t, r()({}, this.props, this.context)), ); } } @@ -10786,7 +10793,7 @@ r()((s = Array(u.length))).call(s, (e, t) => { let { fn: n } = t; return n.withErrorBoundary(e); - }) + }), ); return { fn: { @@ -10818,7 +10825,7 @@ i, (e, t) => t.when.test(s) ? [...e, ...t.shouldStringifyTypes] : e, - u + u, ); return c()(d, (e) => e === m) ? o()(p, null, 2) : p; }; @@ -10891,7 +10898,7 @@ (u = o().dump( o().load(i), { lineWidth: -1 }, - { schema: a.JSON_SCHEMA } + { schema: a.JSON_SCHEMA }, )), "\n" === u[u.length - 1] && (u = r()(u).call(u, 0, u.length - 1)); @@ -10973,7 +10980,7 @@ (0, k.XV)( e, "$$ref", - (e) => "string" == typeof e && r()(e).call(e, "#") > -1 + (e) => "string" == typeof e && r()(e).call(e, "#") > -1, ), R = ["maxProperties", "minProperties"], T = ["minItems", "maxItems"], @@ -10997,11 +11004,11 @@ ...T, ...M, ...D, - ]) + ]), ).call(n, (n) => ((n) => { void 0 === t[n] && void 0 !== e[n] && (t[n] = e[n]); - })(n) + })(n), ), void 0 !== e.required && c()(e.required)) && ((void 0 !== t.required && t.required.length) || @@ -11107,7 +11114,7 @@ s && (D[_] = []); const L = (t) => m()(t).call(t, (t) => - Object.prototype.hasOwnProperty.call(e, t) + Object.prototype.hasOwnProperty.call(e, t), ); e && !y && @@ -11129,7 +11136,7 @@ (t = h()(t).call( t, 0, - null === (o = e) || void 0 === o ? void 0 : o.maxItems + null === (o = e) || void 0 === o ? void 0 : o.maxItems, )); if ( null !== @@ -11184,7 +11191,7 @@ s ? o()((n = e.required)).call( n, - (e) => (t += void 0 === D[e] ? 0 : 1) + (e) => (t += void 0 === D[e] ? 0 : 1), ) : o()((r = e.required)).call(r, (e) => { var n; @@ -11236,12 +11243,12 @@ if ( Object.prototype.hasOwnProperty.call( e, - "discriminator" + "discriminator", ) && e.discriminator && Object.prototype.hasOwnProperty.call( e.discriminator, - "mapping" + "mapping", ) && e.discriminator.mapping && Object.prototype.hasOwnProperty.call(e, "$$ref") && @@ -11353,12 +11360,12 @@ (C.xml.name = C.xml.name || g.name); if (c()(C.anyOf)) n = E()((H = C.anyOf)).call(H, (e) => - $(J(C, e, t), t, void 0, s) + $(J(C, e, t), t, void 0, s), ); else if (c()(C.oneOf)) { var Z; n = E()((Z = C.oneOf)).call(Z, (e) => - $(J(C, e, t), t, void 0, s) + $(J(C, e, t), t, void 0, s), ); } else { if (!(!s || (s && g.wrapped))) return $(C, t, void 0, s); @@ -11591,7 +11598,7 @@ } = n; ye || (console.warn( - "specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!" + "specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!", ), (ye = !0)); const { @@ -11625,7 +11632,7 @@ (e.source = "resolver"), c()(e, "message", { enumerable: !0, value: e.message }), e - ) + ), ); l.newThrownErrBatch(e); } @@ -11640,17 +11647,17 @@ let { path: n, system: s } = t; return e.has(s) || e.set(s, []), e.get(s).push(n), e; }, - new (m())() + new (m())(), ); (Se = []), h()(e).call(e, async (e, t) => { if (!t) return void console.error( - "debResolveSubtrees: don't have a system to operate on, aborting." + "debResolveSubtrees: don't have a system to operate on, aborting.", ); if (!t.fn.resolveSubtree) return void console.error( - "Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing." + "Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.", ); const { errActions: n, @@ -11689,7 +11696,7 @@ "resolver" !== e.get("source") || !f()((n = e.get("fullPath"))).call( n, - (e, n) => e === t[n] || void 0 === t[n] + (e, n) => e === t[n] || void 0 === t[n], ) ); }), @@ -11710,7 +11717,7 @@ value: e.message, }), e - ) + ), ); n.newThrownErrBatch(e); } @@ -11723,8 +11730,8 @@ o()( (j = E()((b = x()(C))).call( b, - (e) => "openIdConnect" === e.type - )) + (e) => "openIdConnect" === e.type, + )), ).call(j, async (e) => { const t = { url: e.openIdConnectUrl, @@ -11739,7 +11746,7 @@ } catch (e) { console.error(e); } - }) + }), )); return ( V()(i, t, C), @@ -11752,7 +11759,7 @@ p.specResolvedSubtree([]) || (0, q.Map)() ).toJS(), specWithCurrentSubtrees: p.specJS(), - }) + }), ); m.updateResolvedSubtree([], t.resultMap); } catch (e) { @@ -11844,14 +11851,14 @@ h()( (f = E()((y = p.get("parameters"))).call( y, - (e) => e && !0 === e.get("allowEmptyValue") - )) + (e) => e && !0 === e.get("allowEmptyValue"), + )), ).call(f, (t) => { if ( a.parameterInclusionSettingFor( [i, u], t.get("name"), - t.get("in") + t.get("in"), ) ) { e.parameters = e.parameters || {}; @@ -11883,13 +11890,13 @@ if (a && a.toJS) e.requestBody = E()( (v = o()(a).call(a, (e) => - q.Map.isMap(e) ? e.get("value") : e - )) + q.Map.isMap(e) ? e.get("value") : e, + )), ) .call( v, (e, t) => - (r()(e) ? 0 !== e.length : !(0, W.O2)(e)) || l.get(t) + (r()(e) ? 0 !== e.length : !(0, W.O2)(e)) || l.get(t), ) .toJS(); else e.requestBody = a; @@ -12034,14 +12041,14 @@ if (!r || !a) return ( console.warn( - "Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey." + "Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey.", ), e ); const l = `${a}.${r}`; return e.setIn( ["meta", "paths", ...s, "parameter_inclusions", l], - o + o, ); }, [d.VALIDATE_PARAMS]: (e, t) => { @@ -12066,7 +12073,7 @@ e, n, r.get("name"), - r.get("in") + r.get("in"), ), c = (0, u.Ik)(r, a, { bypassRequiredCheck: l, @@ -12074,12 +12081,12 @@ }); return t.setIn( [(0, u.V9)(r), "errors"], - (0, i.fromJS)(c) + (0, i.fromJS)(c), ); }, - t + t, ); - } + }, ); }, [d.CLEAR_VALIDATE_PARAMS]: (e, t) => { @@ -12089,7 +12096,8 @@ return e.updateIn( ["meta", "paths", ...n, "parameters"], (0, i.fromJS)([]), - (e) => o()(e).call(e, (e) => e.set("errors", (0, i.fromJS)([]))) + (e) => + o()(e).call(e, (e) => e.set("errors", (0, i.fromJS)([]))), ); }, [d.SET_RESPONSE]: (e, t) => { @@ -12105,7 +12113,7 @@ message: s.err.message, statusCode: s.err.statusCode, }, - s.err.response + s.err.response, ) : s), (n.headers = n.headers || {}); @@ -12267,12 +12275,12 @@ A = (0, C.createSelector)(N, (e) => e.get("spec") || ""), I = (0, C.createSelector)( N, - (e) => e.get("specSource") || "not-editor" + (e) => e.get("specSource") || "not-editor", ), P = (0, C.createSelector)(N, (e) => e.get("json", (0, b.Map)())), q = (0, C.createSelector)(P, (e) => e.toJS()), R = (0, C.createSelector)(N, (e) => - e.get("resolved", (0, b.Map)()) + e.get("resolved", (0, b.Map)()), ), T = (e, t) => e.getIn(["resolvedSubtrees", ...t], void 0), M = (e, t) => @@ -12285,8 +12293,8 @@ (0, b.OrderedMap)().mergeWith( M, e.get("json"), - e.get("resolvedSubtrees") - ) + e.get("resolvedSubtrees"), + ), ), J = (e) => P(e), $ = (0, C.createSelector)(J, () => !1), @@ -12297,7 +12305,7 @@ var t; return r()((t = /v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e))).call( t, - 1 + 1, ); }), F = (0, C.createSelector)(D, (e) => e.get("paths")), @@ -12324,7 +12332,7 @@ method: s, operation: e, id: `${s}-${n}`, - }) + }), )); }); }), @@ -12334,7 +12342,7 @@ W = (0, C.createSelector)(J, (e) => (0, b.Set)(e.get("consumes"))), H = (0, C.createSelector)(J, (e) => (0, b.Set)(e.get("produces"))), Z = (0, C.createSelector)(J, (e) => - e.get("security", (0, b.List)()) + e.get("security", (0, b.List)()), ), G = (0, C.createSelector)(J, (e) => e.get("securityDefinitions")), X = (e, t) => { @@ -12349,7 +12357,7 @@ Q = (0, C.createSelector)(J, (e) => e.get("basePath")), ee = (0, C.createSelector)(J, (e) => e.get("host")), te = (0, C.createSelector)(J, (e) => - e.get("schemes", (0, b.Map)()) + e.get("schemes", (0, b.Map)()), ), ne = (0, C.createSelector)(B, W, H, (e, t, n) => u()(e).call(e, (e) => @@ -12363,12 +12371,12 @@ e.get("produces") || e.update("produces", (e) => (0, b.Set)(e).merge(n)), e - ) + ), ); } return (0, b.Map)(); - }) - ) + }), + ), ), se = (0, C.createSelector)(J, (e) => { const t = e.get("tags", (0, b.List)()); @@ -12382,7 +12390,7 @@ return h()((n = m()(s).call(s, b.Map.isMap))).call( n, (e) => e.get("name") === t, - (0, b.Map)() + (0, b.Map)(), ); }, ae = (0, C.createSelector)(ne, se, (e, t) => @@ -12395,15 +12403,15 @@ : f()(n).call( n, (e, n) => e.update(n, (0, b.List)(), (e) => e.push(t)), - e + e, ); }, f()(t).call( t, (e, t) => e.set(t.get("name"), (0, b.List)()), - (0, b.OrderedMap)() - ) - ) + (0, b.OrderedMap)(), + ), + ), ), oe = (e) => (t) => { var n; @@ -12415,8 +12423,8 @@ (e, t) => { let n = "function" == typeof r ? r : j.wh.tagsSorter[r]; return n ? n(e, t) : null; - } - )) + }, + )), ).call(n, (t, n) => { let s = "function" == typeof a ? a : j.wh.operationsSorter[a], r = s ? v()(t).call(t, s) : t; @@ -12424,13 +12432,13 @@ }); }, le = (0, C.createSelector)(N, (e) => - e.get("responses", (0, b.Map)()) + e.get("responses", (0, b.Map)()), ), ce = (0, C.createSelector)(N, (e) => - e.get("requests", (0, b.Map)()) + e.get("requests", (0, b.Map)()), ), ie = (0, C.createSelector)(N, (e) => - e.get("mutatedRequests", (0, b.Map)()) + e.get("mutatedRequests", (0, b.Map)()), ), ue = (e, t, n) => le(e).getIn([t, n], null), pe = (e, t, n) => ce(e).getIn([t, n], null), @@ -12439,16 +12447,16 @@ he = (e, t, n) => { const s = D(e).getIn( ["paths", ...t, "parameters"], - (0, b.OrderedMap)() + (0, b.OrderedMap)(), ), r = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, b.OrderedMap)() + (0, b.OrderedMap)(), ), a = u()(s).call(s, (e) => { const t = r.get(`${n.get("in")}.${n.get("name")}`), s = r.get( - `${n.get("in")}.${n.get("name")}.hash-${n.hashCode()}` + `${n.get("in")}.${n.get("name")}.hash-${n.hashCode()}`, ); return (0, b.OrderedMap)().merge(e, t, s); }); @@ -12457,25 +12465,25 @@ (e) => e.get("in") === n.get("in") && e.get("name") === n.get("name"), - (0, b.OrderedMap)() + (0, b.OrderedMap)(), ); }, ge = (e, t, n, s) => { const r = `${s}.${n}`; return e.getIn( ["meta", "paths", ...t, "parameter_inclusions", r], - !1 + !1, ); }, fe = (e, t, n, s) => { const r = D(e).getIn( ["paths", ...t, "parameters"], - (0, b.OrderedMap)() + (0, b.OrderedMap)(), ), a = h()(r).call( r, (e) => e.get("in") === s && e.get("name") === n, - (0, b.OrderedMap)() + (0, b.OrderedMap)(), ); return he(e, t, a); }, @@ -12484,7 +12492,7 @@ const r = D(e).getIn(["paths", t, n], (0, b.OrderedMap)()), a = e.getIn(["meta", "paths", t, n], (0, b.OrderedMap)()), o = u()((s = r.get("parameters", (0, b.List)()))).call(s, (s) => - he(e, [t, n], s) + he(e, [t, n], s), ); return (0, b.OrderedMap)().merge(r, a).set("parameters", o); }; @@ -12492,13 +12500,13 @@ t = t || []; let r = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, b.fromJS)([]) + (0, b.fromJS)([]), ); return ( h()(r).call( r, (e) => - b.Map.isMap(e) && e.get("name") === n && e.get("in") === s + b.Map.isMap(e) && e.get("name") === n && e.get("in") === s, ) || (0, b.Map)() ); } @@ -12518,7 +12526,7 @@ : t.get("value"); return e.set((0, j.V9)(t, { allowHashes: !1 }), s); }, - (0, b.fromJS)({}) + (0, b.fromJS)({}), ); } function we(e) { @@ -12537,7 +12545,7 @@ if (b.List.isList(e)) return E()(e).call( e, - (e) => b.Map.isMap(e) && e.get("type") === t + (e) => b.Map.isMap(e) && e.get("type") === t, ); } function Ce(e, t) { @@ -12606,7 +12614,7 @@ t = t || []; let n = e.getIn( ["meta", "paths", ...t, "parameters"], - (0, b.fromJS)([]) + (0, b.fromJS)([]), ); const s = []; return ( @@ -12623,7 +12631,7 @@ let s = { requestBody: !1, requestContentType: {} }, r = e.getIn( ["resolvedSubtrees", "paths", ...t, "requestBody"], - (0, b.fromJS)([]) + (0, b.fromJS)([]), ); return ( r.size < 1 || @@ -12643,7 +12651,7 @@ if ((n || s) && n === s) return !0; let r = e.getIn( ["resolvedSubtrees", "paths", ...t, "requestBody", "content"], - (0, b.fromJS)([]) + (0, b.fromJS)([]), ); if (r.size < 2 || !n || !s) return !1; let a = r.getIn([n, "schema", "properties"], (0, b.fromJS)([])), @@ -12849,7 +12857,7 @@ render() { return c().createElement( t, - r()({}, e(), this.props, this.context) + r()({}, e(), this.props, this.context), ); } } @@ -12862,7 +12870,7 @@ return c().createElement( m.Provider, { store: t }, - c().createElement(n, r()({}, this.props, this.context)) + c().createElement(n, r()({}, this.props, this.context)), ); } } @@ -12880,7 +12888,7 @@ : r.mapStateToProps) || ((e) => ({ state: e })); return o(n, a); }), - y(e) + y(e), )(t), E = (e, t, n, s) => { for (const r in t) { @@ -12921,7 +12929,7 @@ if ("string" != typeof s) throw new TypeError( "Need a string, to fetch a component. Was given a " + - typeof s + typeof s, ); const o = n(s); return o @@ -12994,7 +13002,7 @@ o()(J).call(J, e) ? D[e] : (console.warn( - `Request style '${e}' is not available, returning default instead` + `Request style '${e}' is not available, returning default instead`, ), j()); }, @@ -13151,7 +13159,7 @@ return f()((n = h()(e))).call( n, (n, s) => ((n[s] = t(e[s], s)), n), - {} + {}, ); } function he(e, t) { @@ -13162,13 +13170,13 @@ let r = t(e[s], s); return r && "object" == typeof r && v()(n, r), n; }, - {} + {}, ); } function ge(e) { return (t) => { let { dispatch: n, getState: s } = t; - return (t) => (n) => "function" == typeof n ? n(e()) : t(n); + return (t) => (n) => ("function" == typeof n ? n(e()) : t(n)); }; } function fe(e) { @@ -13312,7 +13320,7 @@ if ( (u()(t).call(t, (n, s) => { m()(t).call(t, (e) => - ue(e.equals) ? e.equals(n) : e === n + ue(e.equals) ? e.equals(n) : e === n, ).size > 1 && (e = e.add(s)); }), 0 !== e.size) @@ -13372,7 +13380,7 @@ if ( ((e = e.toString().toLowerCase()), !/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test( - e + e, )) ) return "Value must be a Guid"; @@ -13470,8 +13478,8 @@ "" !== s && t.push( [n, "=", encodeURIComponent(s).replace(/%20/g, "+")].join( - "" - ) + "", + ), ); } return t.join("&"); @@ -13496,7 +13504,7 @@ const t = _()(e).call( e, (e, t) => - O()(t).call(t, "2") && h()(e.get("content") || {}).length > 0 + O()(t).call(t, "2") && h()(e.get("content") || {}).length > 0, ), n = e.get("default") || R().OrderedMap(), s = (n.get("content") || R().OrderedMap()).keySeq().toJS().length @@ -13512,7 +13520,7 @@ Pe = (e) => m()(e).call(e, (e, t) => /^x-/.test(t)), qe = (e) => m()(e).call(e, (e, t) => - /^pattern|maxLength|minLength|maximum|minimum/.test(t) + /^pattern|maxLength|minLength|maximum|minimum/.test(t), ); function Re(e, t) { var n; @@ -13552,7 +13560,7 @@ : {}; if (!R().Map.isMap(e)) throw new Error( - "paramToIdentifier: received a non-Im.Map parameter as input" + "paramToIdentifier: received a non-Im.Map parameter as input", ); const s = e.get("name"), r = e.get("in"); @@ -13574,7 +13582,7 @@ const s = De(e, { returnAll: !0 }); return m()((n = o()(s).call(s, (e) => t[e]))).call( n, - (e) => void 0 !== e + (e) => void 0 !== e, )[0]; } function $e() { @@ -13692,7 +13700,7 @@ "minItems", "uniqueItems", "enum", - "multipleOf" + "multipleOf", ); function u(e) { let { isOAS3: t } = @@ -14629,7 +14637,7 @@ boundSystem: {}, toolbox: {}, }, - t + t, ), (this.getSystem = g()((e = this._getSystem)).call(e, this)), (this.store = @@ -14643,7 +14651,7 @@ return (0, A.createStore)( e, t, - r((0, A.applyMiddleware)(...s)) + r((0, A.applyMiddleware)(...s)), ); })(n, s, r))), this.buildSystem(!1), @@ -14673,7 +14681,7 @@ this.getWrappedAndBoundSelectors(n, this.getSystem), this.getStateThunks(n), this.getFn(), - this.getConfigs() + this.getConfigs(), )), e && this.rebuildReducer(); } @@ -14692,7 +14700,7 @@ Im: P(), React: k(), }, - this.system.rootInjects || {} + this.system.rootInjects || {}, ); } _getConfigs() { @@ -14731,10 +14739,10 @@ })(e[n])), t ), - {} + {}, ); return i()(n).length ? (0, q.combineReducers)(n) : L; - })((0, $.Ay)(e, (e) => e.reducers))) + })((0, $.Ay)(e, (e) => e.reducers))), ); } getType(e) { @@ -14752,7 +14760,7 @@ return (0, $.Ay)(e, (e) => (0, $.Q2)(e, (e, t) => { if ((0, $.LQ)(e)) return { [t]: e }; - }) + }), ); } getWrappedAndBoundActions(e) { @@ -14774,11 +14782,11 @@ }; if (!(0, $.LQ)(s)) throw new TypeError( - "wrapActions needs to return a function that returns a new function (ie the wrapped action)" + "wrapActions needs to return a function that returns a new function (ie the wrapped action)", ); return z(s); }, - e || Function.prototype + e || Function.prototype, )) : e; }) @@ -14812,11 +14820,11 @@ }; if (!(0, $.LQ)(a)) throw new TypeError( - "wrapSelector needs to return a function that returns a new function (ie the wrapped action)" + "wrapSelector needs to return a function that returns a new function (ie the wrapped action)", ); return a; }, - t || Function.prototype + t || Function.prototype, )) : t; }) @@ -14828,7 +14836,7 @@ return C()((t = i()(this.system.statePlugins))).call( t, (t, n) => ((t[n] = e.get(n)), t), - {} + {}, ); } getStateThunks(e) { @@ -14836,7 +14844,7 @@ return C()((t = i()(this.system.statePlugins))).call( t, (t, n) => ((t[n] = () => e().get(n)), t), - {} + {}, ); } getFn() { @@ -14865,7 +14873,7 @@ a[o] = arguments[o]; let l = z(n).apply(null, [e().getIn(r), ...a]); return "function" == typeof l && (l = z(l)(t())), l; - } + }, ); }); } @@ -14967,7 +14975,7 @@ ) t.statePlugins[e].wrapActions[n] = N()((s = o[n])).call( s, - t.statePlugins[e].wrapActions[n] + t.statePlugins[e].wrapActions[n], ); } if ((0, $.Kn)(l)) @@ -14984,7 +14992,7 @@ ) t.statePlugins[e].wrapSelectors[n] = N()((r = l[n])).call( r, - t.statePlugins[e].wrapSelectors[n] + t.statePlugins[e].wrapSelectors[n], ); } } @@ -15248,7 +15256,7 @@ null, ' No layout defined for "', n, - '" ' + '" ', )) ); } @@ -15303,8 +15311,8 @@ className: "close-modal", onClick: this.close, }, - k().createElement(i, null) - ) + k().createElement(i, null), + ), ), k().createElement( "div", @@ -15319,12 +15327,12 @@ authSelectors: t, authActions: n, specSelectors: a, - }) - ) - ) - ) - ) - ) + }), + ), + ), + ), + ), + ), ); } } @@ -15351,9 +15359,9 @@ onClick: n, }, k().createElement("span", null, "Authorize"), - e ? k().createElement(a, null) : k().createElement(o, null) + e ? k().createElement(a, null) : k().createElement(o, null), ), - t && k().createElement(r, null) + t && k().createElement(r, null), ); } } @@ -15402,7 +15410,7 @@ }, e ? k().createElement(n, { className: "locked" }) - : k().createElement(s, { className: "unlocked" }) + : k().createElement(s, { className: "unlocked" }), ); } } @@ -15466,7 +15474,7 @@ onAuthChange: this.onAuthChange, authorized: i, errSelectors: r, - }) + }), ) .toArray(), k().createElement( @@ -15479,7 +15487,7 @@ className: "btn modal-btn auth", onClick: this.logoutClick, }, - "Logout" + "Logout", ) : k().createElement( c, @@ -15487,7 +15495,7 @@ type: "submit", className: "btn modal-btn auth authorize", }, - "Authorize" + "Authorize", ), k().createElement( c, @@ -15495,9 +15503,9 @@ className: "btn modal-btn auth btn-done", onClick: this.close, }, - "Close" - ) - ) + "Close", + ), + ), ), m && m.size ? k().createElement( @@ -15509,13 +15517,13 @@ k().createElement( "p", null, - "Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes." + "Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes.", ), k().createElement( "p", null, - "API requires the following scopes. Select which ones you want to grant to Swagger UI." - ) + "API requires the following scopes. Select which ones you want to grant to Swagger UI.", + ), ), b()((e = l()(t).call(t, (e) => "oauth2" === e.get("type")))) .call(e, (e, t) => @@ -15526,12 +15534,12 @@ authorized: i, schema: e, name: t, - }) - ) + }), + ), ) - .toArray() + .toArray(), ) - : null + : null, ); } } @@ -15577,7 +15585,7 @@ "div", { key: t }, "Unknown security definition type ", - i + i, ); } return k().createElement("div", { key: `${t}-jump` }, c); @@ -15593,7 +15601,7 @@ "div", { className: "errors" }, k().createElement("b", null, s, " ", t), - k().createElement("span", null, n) + k().createElement("span", null, n), ); } } @@ -15631,7 +15639,7 @@ let d = this.getValue(), h = l()((e = r.allErrors())).call( e, - (e) => e.get("authId") === a + (e) => e.get("authId") === a, ); return k().createElement( "div", @@ -15641,13 +15649,13 @@ null, k().createElement("code", null, a || n.get("name")), " (apiKey)", - k().createElement(m, { path: ["securityDefinitions", a] }) + k().createElement(m, { path: ["securityDefinitions", a] }), ), d && k().createElement("h6", null, "Authorized"), k().createElement( c, null, - k().createElement(p, { source: n.get("description") }) + k().createElement(p, { source: n.get("description") }), ), k().createElement( c, @@ -15656,8 +15664,8 @@ "p", null, "Name: ", - k().createElement("code", null, n.get("name")) - ) + k().createElement("code", null, n.get("name")), + ), ), k().createElement( c, @@ -15666,8 +15674,8 @@ "p", null, "In: ", - k().createElement("code", null, n.get("in")) - ) + k().createElement("code", null, n.get("in")), + ), ), k().createElement( c, @@ -15682,12 +15690,12 @@ type: "text", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), b()((t = h.valueSeq())).call(t, (e, t) => - k().createElement(u, { error: e, key: t }) - ) + k().createElement(u, { error: e, key: t }), + ), ); } } @@ -15729,7 +15737,7 @@ let d = this.getValue().username, h = l()((e = a.allErrors())).call( e, - (e) => e.get("authId") === r + (e) => e.get("authId") === r, ); return k().createElement( "div", @@ -15738,13 +15746,13 @@ "h4", null, "Basic authorization", - k().createElement(p, { path: ["securityDefinitions", r] }) + k().createElement(p, { path: ["securityDefinitions", r] }), ), d && k().createElement("h6", null, "Authorized"), k().createElement( c, null, - k().createElement(m, { source: n.get("description") }) + k().createElement(m, { source: n.get("description") }), ), k().createElement( c, @@ -15761,8 +15769,8 @@ name: "username", onChange: this.onChange, autoFocus: !0, - }) - ) + }), + ), ), k().createElement( c, @@ -15778,12 +15786,12 @@ name: "password", type: "password", onChange: this.onChange, - }) - ) + }), + ), ), b()((t = h.valueSeq())).call(t, (e, t) => - k().createElement(u, { error: e, key: t }) - ) + k().createElement(u, { error: e, key: t }), + ), ); } } @@ -15807,13 +15815,13 @@ k().createElement( "div", { className: "example__section-header" }, - "Example Description" + "Example Description", ), k().createElement( "p", null, - k().createElement(a, { source: t.get("description") }) - ) + k().createElement(a, { source: t.get("description") }), + ), ) : null, n && t.has("value") @@ -15823,14 +15831,14 @@ k().createElement( "div", { className: "example__section-header" }, - "Example Value" + "Example Value", ), k().createElement(o, { getConfigs: r, value: (0, $.Pz)(t.get("value")), - }) + }), ) - : null + : null, ) : null; } @@ -15894,7 +15902,7 @@ ? k().createElement( "span", { className: "examples-select__section-label" }, - "Examples: " + "Examples: ", ) : null, k().createElement( @@ -15908,7 +15916,7 @@ ? k().createElement( "option", { value: "__MODIFIED__VALUE__" }, - "[Modified value]" + "[Modified value]", ) : null, b()(e) @@ -15916,11 +15924,11 @@ k().createElement( "option", { key: t, value: t }, - e.get("summary") || t - ) + e.get("summary") || t, + ), ) - .valueSeq() - ) + .valueSeq(), + ), ); } } @@ -15931,7 +15939,7 @@ t[n] = arguments[n]; return console.log( "DEBUG: ExamplesSelect was not given an onSelect callback", - ...t + ...t, ); }, currentExampleKey: null, @@ -16030,7 +16038,7 @@ c = this._getValueForExample(e.currentKey, e), i = l()(n).call( n, - (e) => e.get("value") === t || (0, $.Pz)(e.get("value")) === t + (e) => e.get("value") === t || (0, $.Pz)(e.get("value")) === t, ); if (i.size) { let t; @@ -16081,7 +16089,7 @@ t[n] = arguments[n]; return console.log( "ExamplesSelectValueRetainer: no `onSelect` function was provided", - ...t + ...t, ); }, updateValue: function () { @@ -16089,7 +16097,7 @@ t[n] = arguments[n]; return console.log( "ExamplesSelectValueRetainer: no `updateValue` function was provided", - ...t + ...t, ); }, }); @@ -16192,7 +16200,7 @@ m.push( b()((y = [e, f[e]])) .call(y, encodeURIComponent) - .join("=") + .join("="), ); } const v = l.get("authorizationUrl"); @@ -16200,7 +16208,7 @@ S = o ? Je()((0, $.Nm)(v), o, !0).toString() : (0, $.Nm)(v); let E, x = [S, m.join("&")].join( - -1 === me()(v).call(v, "?") ? "?" : "&" + -1 === me()(v).call(v, "?") ? "?" : "&", ); (E = "implicit" === p @@ -16241,7 +16249,7 @@ this.setState({ scopes: l()((c = this.state.scopes)).call( c, - (e) => e !== a + (e) => e !== a, ), }); } @@ -16264,8 +16272,8 @@ Re()( (t = this.props.schema.get("allowedScopes") || - this.props.schema.get("scopes")) - ).call(t) + this.props.schema.get("scopes")), + ).call(t), ), }) : this.setState({ scopes: [] }); @@ -16341,7 +16349,7 @@ O = !!r.authorized().get(o), A = l()((e = a.allErrors())).call( e, - (e) => e.get("authId") === o + (e) => e.get("authId") === o, ), I = !l()(A).call(A, (e) => "validation" === e.get("source")).size, P = n.get("description"); @@ -16355,7 +16363,7 @@ " (OAuth2, ", _, ") ", - k().createElement(h, { path: ["securityDefinitions", o] }) + k().createElement(h, { path: ["securityDefinitions", o] }), ), this.state.appName ? k().createElement( @@ -16363,7 +16371,7 @@ null, "Application: ", this.state.appName, - " " + " ", ) : null, P && k().createElement(g, { source: n.get("description") }), @@ -16373,27 +16381,27 @@ "p", null, "OpenID Connect URL: ", - k().createElement("code", null, v) + k().createElement("code", null, v), ), (j === S || j === w) && k().createElement( "p", null, "Authorization URL: ", - k().createElement("code", null, n.get("authorizationUrl")) + k().createElement("code", null, n.get("authorizationUrl")), ), (j === E || j === w || j === x) && k().createElement( "p", null, "Token URL:", - k().createElement("code", null, " ", n.get("tokenUrl")) + k().createElement("code", null, " ", n.get("tokenUrl")), ), k().createElement( "p", { className: "flow" }, "Flow: ", - k().createElement("code", null, _) + k().createElement("code", null, _), ), j !== E ? null @@ -16406,7 +16414,7 @@ k().createElement( "label", { htmlFor: "oauth_username" }, - "username:" + "username:", ), O ? k().createElement( @@ -16414,7 +16422,7 @@ null, " ", this.state.username, - " " + " ", ) : k().createElement( p, @@ -16425,8 +16433,8 @@ "data-name": "username", onChange: this.onInputChange, autoFocus: !0, - }) - ) + }), + ), ), k().createElement( u, @@ -16434,7 +16442,7 @@ k().createElement( "label", { htmlFor: "oauth_password" }, - "password:" + "password:", ), O ? k().createElement("code", null, " ****** ") @@ -16446,8 +16454,8 @@ type: "password", "data-name": "password", onChange: this.onInputChange, - }) - ) + }), + ), ), k().createElement( u, @@ -16455,7 +16463,7 @@ k().createElement( "label", { htmlFor: "password_type" }, - "Client credentials location:" + "Client credentials location:", ), O ? k().createElement( @@ -16463,7 +16471,7 @@ null, " ", this.state.passwordType, - " " + " ", ) : k().createElement( p, @@ -16478,16 +16486,16 @@ k().createElement( "option", { value: "basic" }, - "Authorization header" + "Authorization header", ), k().createElement( "option", { value: "request-body" }, - "Request body" - ) - ) - ) - ) + "Request body", + ), + ), + ), + ), ), (j === x || j === S || j === w || j === E) && (!O || (O && this.state.clientId)) && @@ -16497,7 +16505,7 @@ k().createElement( "label", { htmlFor: "client_id" }, - "client_id:" + "client_id:", ), O ? k().createElement("code", null, " ****** ") @@ -16511,8 +16519,8 @@ initialValue: this.state.clientId, "data-name": "clientId", onChange: this.onInputChange, - }) - ) + }), + ), ), (j === x || j === w || j === E) && k().createElement( @@ -16521,7 +16529,7 @@ k().createElement( "label", { htmlFor: "client_secret" }, - "client_secret:" + "client_secret:", ), O ? k().createElement("code", null, " ****** ") @@ -16534,8 +16542,8 @@ type: "password", "data-name": "clientSecret", onChange: this.onInputChange, - }) - ) + }), + ), ), !O && N && N.size ? k().createElement( @@ -16548,13 +16556,13 @@ k().createElement( "a", { onClick: this.selectScopes, "data-all": !0 }, - "select all" + "select all", ), k().createElement( "a", { onClick: this.selectScopes }, - "select none" - ) + "select none", + ), ), b()(N) .call(N, (e, t) => { @@ -16585,23 +16593,23 @@ k().createElement( "p", { className: "name" }, - t + t, ), k().createElement( "p", { className: "description" }, - e - ) - ) - ) - ) + e, + ), + ), + ), + ), ); }) - .toArray() + .toArray(), ) : null, b()((t = A.valueSeq())).call(t, (e, t) => - k().createElement(d, { error: e, key: t }) + k().createElement(d, { error: e, key: t }), ), k().createElement( "div", @@ -16614,7 +16622,7 @@ className: "btn modal-btn auth authorize", onClick: this.logout, }, - "Logout" + "Logout", ) : k().createElement( m, @@ -16622,7 +16630,7 @@ className: "btn modal-btn auth authorize", onClick: this.authorize, }, - "Authorize" + "Authorize", )), k().createElement( m, @@ -16630,9 +16638,9 @@ className: "btn modal-btn auth btn-done", onClick: this.close, }, - "Close" - ) - ) + "Close", + ), + ), ); } } @@ -16651,7 +16659,7 @@ className: "btn btn-clear opblock-control__btn", onClick: this.onClick, }, - "Clear" + "Clear", ); } } @@ -16661,7 +16669,7 @@ "div", null, k().createElement("h5", null, "Response headers"), - k().createElement("pre", { className: "microlight" }, t) + k().createElement("pre", { className: "microlight" }, t), ); }, Ve = (e) => { @@ -16670,7 +16678,7 @@ "div", null, k().createElement("h5", null, "Request duration"), - k().createElement("pre", { className: "microlight" }, t, " ms") + k().createElement("pre", { className: "microlight" }, t, " ms"), ); }; class Ue extends k().Component { @@ -16713,7 +16721,7 @@ e, ": ", t, - " " + " ", ); }), C = 0 !== x.length, @@ -16735,8 +16743,8 @@ "div", { className: "request-url" }, k().createElement("h4", null, "Request URL"), - k().createElement("pre", { className: "microlight" }, m) - ) + k().createElement("pre", { className: "microlight" }, m), + ), ), k().createElement("h4", null, "Server response"), k().createElement( @@ -16751,14 +16759,14 @@ k().createElement( "td", { className: "col_header response-col_status" }, - "Code" + "Code", ), k().createElement( "td", { className: "col_header response-col_description" }, - "Details" - ) - ) + "Details", + ), + ), ), k().createElement( "tbody", @@ -16774,9 +16782,9 @@ ? k().createElement( "div", { className: "response-undocumented" }, - k().createElement("i", null, " Undocumented ") + k().createElement("i", null, " Undocumented "), ) - : null + : null, ), k().createElement( "td", @@ -16799,11 +16807,11 @@ }) : null, C ? k().createElement(Ke, { headers: x }) : null, - s && y ? k().createElement(Ve, { duration: y }) : null - ) - ) - ) - ) + s && y ? k().createElement(Ve, { duration: y }) : null, + ), + ), + ), + ), ); } } @@ -16856,8 +16864,8 @@ tag: t, }); }) - .toArray() - ) + .toArray(), + ), ); }); } @@ -16874,9 +16882,9 @@ ? k().createElement( "h3", null, - " No operations defined in spec! " + " No operations defined in spec! ", ) - : null + : null, ); } } @@ -16940,7 +16948,7 @@ ? k().createElement( "small", null, - k().createElement(d, { source: S }) + k().createElement(d, { source: S }), ) : k().createElement("small", null), v @@ -16957,9 +16965,9 @@ onClick: (e) => e.stopPropagation(), target: "_blank", }, - E || v - ) - ) + E || v, + ), + ), ) : null, k().createElement( @@ -16972,10 +16980,10 @@ }, C ? k().createElement(f, { className: "arrow" }) - : k().createElement(y, { className: "arrow" }) - ) + : k().createElement(y, { className: "arrow" }), + ), ), - k().createElement(m, { isOpened: C }, n) + k().createElement(m, { isOpened: C }, n), ); } } @@ -17082,7 +17090,7 @@ k().createElement( "h4", { className: "opblock-title_normal" }, - " Warning: Deprecated" + " Warning: Deprecated", ), P && k().createElement( @@ -17091,8 +17099,8 @@ k().createElement( "div", { className: "opblock-description" }, - k().createElement(H, { source: P }) - ) + k().createElement(H, { source: P }), + ), ), T ? k().createElement( @@ -17101,7 +17109,7 @@ k().createElement( "h4", { className: "opblock-title_normal" }, - "Find more details" + "Find more details", ), k().createElement( "div", @@ -17112,7 +17120,7 @@ { className: "opblock-external-docs__description", }, - k().createElement(H, { source: q.description }) + k().createElement(H, { source: q.description }), ), k().createElement( Q, @@ -17121,9 +17129,9 @@ className: "opblock-external-docs__link", href: (0, $.Nm)(T), }, - T - ) - ) + T, + ), + ), ) : null, M && M.size @@ -17171,7 +17179,7 @@ method: x, specActions: m, currentScheme: L, - }) + }), ) : null, !A || !N || ne.length <= 0 @@ -17184,9 +17192,9 @@ "ul", null, b()(ne).call(ne, (e, t) => - k().createElement("li", { key: t }, " ", e, " ") - ) - ) + k().createElement("li", { key: t }, " ", e, " "), + ), + ), ), k().createElement( "div", @@ -17212,13 +17220,13 @@ path: w, method: x, }) - : null + : null, ), I ? k().createElement( "div", { className: "loading-container" }, - k().createElement("div", { className: "loading" }) + k().createElement("div", { className: "loading" }), ) : null, D @@ -17243,9 +17251,9 @@ : null, ee && V.size ? k().createElement(X, { extensions: V, getComponent: u }) - : null - ) - ) + : null, + ), + ), ); } } @@ -17313,16 +17321,16 @@ ? k().createElement( "div", { className: "opblock-summary-description" }, - Ge()(f || l) + Ge()(f || l), ) : null, g && (h || d) ? k().createElement( "span", { className: "opblock-summary-operation-id" }, - h || d + h || d, ) - : null + : null, ), k().createElement(x, { textToCopy: `${o.get(1)}` }), N @@ -17345,9 +17353,9 @@ }, e ? k().createElement(C, { className: "arrow" }) - : k().createElement(j, { className: "arrow" }) + : k().createElement(j, { className: "arrow" }), ), - k().createElement(w, { path: o }) + k().createElement(w, { path: o }), ); } } @@ -17362,7 +17370,7 @@ return k().createElement( "span", { className: "opblock-summary-method" }, - e.toUpperCase() + e.toUpperCase(), ); } } @@ -17397,7 +17405,7 @@ isShown: s, path: (0, $.oJ)(`${a}/${o}`), text: c, - }) + }), ); } } @@ -17411,7 +17419,7 @@ k().createElement( "div", { className: "opblock-section-header" }, - k().createElement("h4", null, "Extensions") + k().createElement("h4", null, "Extensions"), ), k().createElement( "div", @@ -17428,14 +17436,14 @@ k().createElement( "td", { className: "col_header" }, - "Field" + "Field", ), k().createElement( "td", { className: "col_header" }, - "Value" - ) - ) + "Value", + ), + ), ), k().createElement( "tbody", @@ -17447,10 +17455,10 @@ xKey: t, xVal: n, }); - }) - ) - ) - ) + }), + ), + ), + ), ); }, st = (e) => { @@ -17460,7 +17468,7 @@ "tr", null, k().createElement("td", null, t), - k().createElement("td", null, p()(s)) + k().createElement("td", null, p()(s)), ); }; var rt = n(4235), @@ -17494,11 +17502,11 @@ var e; const t = l()((e = Pe()(p.current.childNodes))).call( e, - (e) => !!e.nodeType && e.classList.contains("microlight") + (e) => !!e.nodeType && e.classList.contains("microlight"), ); return ( at()(t).call(t, (e) => - e.addEventListener("mousewheel", m, { passive: !1 }) + e.addEventListener("mousewheel", m, { passive: !1 }), ), () => { at()(t).call(t, (e) => e.removeEventListener("mousewheel", m)); @@ -17522,8 +17530,8 @@ k().createElement( gt.CopyToClipboard, { text: t }, - k().createElement("button", null) - ) + k().createElement("button", null), + ), ), r ? k().createElement( @@ -17534,7 +17542,7 @@ ht()(t, n); }, }, - "Download" + "Download", ) : null, u @@ -17544,16 +17552,16 @@ language: c, className: lt()(s, "microlight"), style: (0, ct.C2)( - ut()(i, "syntaxHighlight.theme", "agate") + ut()(i, "syntaxHighlight.theme", "agate"), ), }, - t + t, ) : k().createElement( "pre", { className: lt()(s, "microlight") }, - t - ) + t, + ), ); }; ft.defaultProps = { fileName: "response.txt" }; @@ -17564,8 +17572,8 @@ ue()(this, "onChangeProducesWrapper", (e) => this.props.specActions.changeProducesValue( [this.props.path, this.props.method], - e - ) + e, + ), ), ue()(this, "onResponseContentTypeChange", (e) => { let { controlsAcceptHeader: t, value: n } = e; @@ -17628,8 +17636,8 @@ contentTypes: v, controlId: w, onChange: this.onChangeProducesWrapper, - }) - ) + }), + ), ), k().createElement( "div", @@ -17647,7 +17655,7 @@ method: this.props.method, displayRequestDuration: c, }), - k().createElement("h4", null, "Responses") + k().createElement("h4", null, "Responses"), ) : null, k().createElement( @@ -17667,21 +17675,21 @@ k().createElement( "td", { className: "col_header response-col_status" }, - "Code" + "Code", ), k().createElement( "td", { className: "col_header response-col_description" }, - "Description" + "Description", ), a.isOAS3() ? k().createElement( "td", { className: "col col_header response-col_links" }, - "Links" + "Links", ) - : null - ) + : null, + ), ), k().createElement( "tbody", @@ -17710,16 +17718,16 @@ u, p, "responses", - t + t, ), oas3Actions: d, getComponent: s, }); }) - .toArray() - ) - ) - ) + .toArray(), + ), + ), + ), ); } } @@ -17844,7 +17852,7 @@ getConfigs: n, language: s, value: (0, $.Pz)(e), - }) + }), ) ); } @@ -17860,7 +17868,7 @@ k().createElement( "div", { className: "response-col_description__inner" }, - k().createElement(N, { source: a.get("description") }) + k().createElement(N, { source: a.get("description") }), ), v && S.size ? b()((e = S.entrySeq())).call(e, (e) => { @@ -17886,7 +17894,7 @@ k().createElement( "small", { className: "response-control-media-type__title" }, - "Media type" + "Media type", ), k().createElement(A, { value: this.state.responseContentType, @@ -17905,9 +17913,9 @@ }, "Controls ", k().createElement("code", null, "Accept"), - " header." + " header.", ) - : null + : null, ), J ? k().createElement( @@ -17916,7 +17924,7 @@ k().createElement( "small", { className: "response-control-examples__title" }, - "Examples" + "Examples", ), k().createElement(P, { examples: J, @@ -17929,9 +17937,9 @@ contextName: r, }), showLabels: !1, - }) + }), ) - : null + : null, ) : null, z || R @@ -17949,14 +17957,16 @@ ? k().createElement(q, { example: J.get( this.getTargetExamplesKey(), - (0, I.Map)({}) + (0, I.Map)({}), ), getComponent: i, getConfigs: u, omitValue: !0, }) : null, - E ? k().createElement(C, { headers: E, getComponent: i }) : null + E + ? k().createElement(C, { headers: E, getComponent: i }) + : null, ), y ? k().createElement( @@ -17972,9 +17982,9 @@ getComponent: i, }); }) - : k().createElement("i", null, "No links") + : k().createElement("i", null, "No links"), ) - : null + : null, ); } } @@ -17989,7 +17999,7 @@ { className: "response__extension" }, t, ": ", - String(n) + String(n), ); }; var jt = n(9478), @@ -18067,8 +18077,8 @@ href: l, onClick: () => J.Z.navigator.msSaveOrOpenBlob(o, c), }, - "Download file" - ) + "Download file", + ), ) : k().createElement( "div", @@ -18076,14 +18086,14 @@ k().createElement( "a", { href: l, download: c }, - "Download file" - ) + "Download file", + ), ); } else m = k().createElement( "pre", { className: "microlight" }, - "Download headers detected but your browser does not support downloading binary via XHR (Blob)." + "Download headers detected but your browser does not support downloading binary via XHR (Blob).", ); else if (/json/i.test(t)) { let t = null; @@ -18141,8 +18151,8 @@ k().createElement( "audio", { controls: !0, key: n }, - k().createElement("source", { src: n, type: t }) - ) + k().createElement("source", { src: n, type: t }), + ), ) : "string" == typeof e ? k().createElement(c, { @@ -18160,7 +18170,7 @@ k().createElement( "p", { className: "i" }, - "Unrecognized response type; displaying content as text." + "Unrecognized response type; displaying content as text.", ), k().createElement(c, { downloadable: !0, @@ -18168,12 +18178,12 @@ value: l, getConfigs: r, canCopy: !0, - }) + }), ) : k().createElement( "p", { className: "i" }, - "Unrecognized response type; unable to display." + "Unrecognized response type; unable to display.", ) : null); return m @@ -18181,7 +18191,7 @@ "div", null, k().createElement("h5", null, "Response body"), - m + m, ) : null; } @@ -18216,7 +18226,7 @@ callbackVisible: !0, parametersVisible: !1, }) - : void 0 + : void 0, ), ue()(this, "onChangeMediaType", (e) => { let { value: t, pathMethod: n } = e, @@ -18273,9 +18283,9 @@ const n = t.get("in"); return e[n] ?? (e[n] = []), e[n].push(t), e; }, - {} - ) - )) + {}, + ), + )), ).call(e, (e, t) => N()(e).call(e, t), []); return k().createElement( "div", @@ -18298,8 +18308,8 @@ k().createElement( "h4", { className: "opblock-title" }, - k().createElement("span", null, "Parameters") - ) + k().createElement("span", null, "Parameters"), + ), ), g.get("callbacks") ? k().createElement( @@ -18313,10 +18323,10 @@ k().createElement( "h4", { className: "opblock-title" }, - k().createElement("span", null, "Callbacks") - ) + k().createElement("span", null, "Callbacks"), + ), ) - : null + : null, ) : k().createElement( "div", @@ -18324,8 +18334,8 @@ k().createElement( "h4", { className: "opblock-title" }, - "Parameters" - ) + "Parameters", + ), ), r ? k().createElement(y, { @@ -18336,7 +18346,7 @@ onTryoutClick: t, onResetClick: () => n(m), }) - : null + : null, ), this.state.parametersVisible ? k().createElement( @@ -18360,7 +18370,7 @@ { className: "col_header parameters-col_name", }, - "Name" + "Name", ), k().createElement( "th", @@ -18368,9 +18378,9 @@ className: "col_header parameters-col_description", }, - "Description" - ) - ) + "Description", + ), + ), ), k().createElement( "tbody", @@ -18393,16 +18403,16 @@ oas3Selectors: h, pathMethod: m, isExecute: x, - }) - ) - ) - ) + }), + ), + ), + ), ) : k().createElement( "div", { className: "opblock-description-wrapper" }, - k().createElement("p", null, "No parameters") - ) + k().createElement("p", null, "No parameters"), + ), ) : null, this.state.callbackVisible @@ -18415,7 +18425,7 @@ k().createElement(E, { callbacks: (0, I.Map)(g.get("callbacks")), specPath: S()(o).call(o, 0, -1).push("callbacks"), - }) + }), ) : null, j && @@ -18434,7 +18444,7 @@ _.get("required") && "required" }`, }, - "Request body" + "Request body", ), k().createElement( "label", @@ -18447,8 +18457,8 @@ }, className: "body-param-content-type", ariaLabel: "Request content type", - }) - ) + }), + ), ), k().createElement( "div", @@ -18471,7 +18481,7 @@ activeExamplesKey: h.activeExamplesMember( ...m, "requestBody", - "requestBody" + "requestBody", ), updateActiveExamplesKey: (e) => { this.props.oas3Actions.setActiveExamplesMember({ @@ -18500,9 +18510,9 @@ }); }, contentType: h.requestContentType(...m), - }) - ) - ) + }), + ), + ), ); } } @@ -18521,7 +18531,7 @@ { className: "parameter__extension" }, t, ": ", - String(n) + String(n), ); }, Tt = { onChange: () => {}, isIncludedOptions: {} }; @@ -18556,8 +18566,8 @@ checked: !t && e, onChange: this.onCheckboxChange, }), - "Send empty value" - ) + "Send empty value", + ), ); } } @@ -18623,7 +18633,7 @@ const e = s.activeExamplesMember( ...t, "parameters", - this.getParamKey() + this.getParamKey(), ); n = void 0 !== a.getIn(["examples", e, "value"]) @@ -18646,7 +18656,7 @@ c && !a.get("examples") && this.onChangeWrapper( - I.List.isList(c) ? c : (0, $.Pz)(c) + I.List.isList(c) ? c : (0, $.Pz)(c), ); } }), @@ -18762,7 +18772,7 @@ : "parameter__name", }, n.get("name"), - V ? k().createElement("span", null, " *") : null + V ? k().createElement("span", null, " *") : null, ), k().createElement( "div", @@ -18775,20 +18785,20 @@ { className: "prop-format" }, "($", T, - ")" - ) + ")", + ), ), k().createElement( "div", { className: "parameter__deprecated" }, - d && n.get("deprecated") ? "deprecated" : null + d && n.get("deprecated") ? "deprecated" : null, ), k().createElement( "div", { className: "parameter__in" }, "(", n.get("in"), - ")" + ")", ), g && F.size ? b()((e = F.entrySeq())).call(e, (e) => { @@ -18809,7 +18819,7 @@ xVal: n, }); }) - : null + : null, ), k().createElement( "td", @@ -18844,7 +18854,7 @@ k().createElement( "div", null, - "Error: your browser does not support FormData" + "Error: your browser does not support FormData", ), d && n.get("examples") ? k().createElement( @@ -18859,10 +18869,10 @@ currentKey: m.activeExamplesMember( ...u, "parameters", - this.getParamKey() + this.getParamKey(), ), currentUserInputValue: U, - }) + }), ) : null, S @@ -18896,7 +18906,7 @@ isIncluded: i.parameterInclusionSettingFor( u, n.get("name"), - n.get("in") + n.get("in"), ), isDisabled: !(0, $.O2)(U), }) @@ -18908,14 +18918,14 @@ m.activeExamplesMember( ...u, "parameters", - this.getParamKey() + this.getParamKey(), ), ]), getComponent: r, getConfigs: a, }) - : null - ) + : null, + ), ) ); } @@ -19011,8 +19021,8 @@ ue()(this, "onChangeProducesWrapper", (e) => this.props.specActions.changeProducesValue( [this.props.path, this.props.method], - e - ) + e, + ), ); } render() { @@ -19024,7 +19034,7 @@ onClick: this.onClick, disabled: e, }, - "Execute" + "Execute", ); } } @@ -19041,7 +19051,7 @@ k().createElement( "h4", { className: "headers__title" }, - "Headers:" + "Headers:", ), k().createElement( "table", @@ -19055,19 +19065,19 @@ k().createElement( "th", { className: "header-col" }, - "Name" + "Name", ), k().createElement( "th", { className: "header-col" }, - "Description" + "Description", ), k().createElement( "th", { className: "header-col" }, - "Type" - ) - ) + "Type", + ), + ), ), k().createElement( "tbody", @@ -19087,12 +19097,12 @@ k().createElement( "td", { className: "header-col" }, - t + t, ), k().createElement( "td", { className: "header-col" }, - a ? k().createElement(r, { source: a }) : null + a ? k().createElement(r, { source: a }) : null, ), k().createElement( "td", @@ -19105,13 +19115,13 @@ propVal: l, propClass: "header-example", }) - : null - ) + : null, + ), ); }) - .toArray() - ) - ) + .toArray(), + ), + ), ) : null; } @@ -19130,7 +19140,7 @@ let c = t.allErrors(), i = l()(c).call( c, - (e) => "thrown" === e.get("type") || "error" === e.get("level") + (e) => "thrown" === e.get("type") || "error" === e.get("level"), ); if (!i || i.count() < 1) return null; let u = n.isShown(["errorPane"], !0), @@ -19144,7 +19154,7 @@ k().createElement( "h4", { className: "errors__title" }, - "Errors" + "Errors", ), k().createElement( "button", @@ -19152,8 +19162,8 @@ className: "btn errors__clear-btn", onClick: () => s.show(["errorPane"], !u), }, - u ? "Hide" : "Show" - ) + u ? "Hide" : "Show", + ), ), k().createElement( a, @@ -19176,9 +19186,9 @@ jumpToLine: o, }) : void 0; - }) - ) - ) + }), + ), + ), ); } } @@ -19204,14 +19214,14 @@ "small", null, " at ", - t.get("path") + t.get("path"), ) - : null + : null, ), k().createElement( "span", { className: "message thrown" }, - t.get("message") + t.get("message"), ), k().createElement( "div", @@ -19221,12 +19231,12 @@ "a", { onClick: g()(n).call(n, null, s) }, "Jump to line ", - s + s, ) - : null - ) + : null, + ), ) - : null + : null, ); }, zt = (e) => { @@ -19239,7 +19249,7 @@ "small", null, "at ", - t.get("path").join(".") + t.get("path").join("."), ) : k().createElement("small", null, "at ", t.get("path"))) : t.get("line") && @@ -19248,7 +19258,7 @@ "small", null, "on line ", - t.get("line") + t.get("line"), )), k().createElement( "div", @@ -19262,12 +19272,12 @@ null, Bt(t.get("source")) + " " + t.get("level"), " ", - s + s, ), k().createElement( "span", { className: "message" }, - t.get("message") + t.get("message"), ), k().createElement( "div", @@ -19277,12 +19287,12 @@ "a", { onClick: g()(n).call(n, null, t.get("line")) }, "Jump to line ", - t.get("line") + t.get("line"), ) - : null - ) + : null, + ), ) - : null + : null, ) ); }; @@ -19297,7 +19307,7 @@ constructor() { super(...arguments), ue()(this, "onChangeWrapper", (e) => - this.props.onChange(e.target.value) + this.props.onChange(e.target.value), ); } componentDidMount() { @@ -19336,10 +19346,10 @@ }, b()(s) .call(s, (e) => - k().createElement("option", { key: e, value: e }, e) + k().createElement("option", { key: e, value: e }, e), ) - .toArray() - ) + .toArray(), + ), ) : null; } @@ -19359,7 +19369,7 @@ return Xt()( (e = l()(n) .call(n, (e) => !!e) - .join(" ")) + .join(" ")), ).call(e); } class Qt extends k().Component { @@ -19369,7 +19379,7 @@ let s = "swagger-container" + (t ? "-full" : ""); return k().createElement( "section", - Zt()({}, n, { className: Yt(n.className, s) }) + Zt()({}, n, { className: Yt(n.className, s) }), ); } } @@ -19415,7 +19425,7 @@ "div", Zt()({}, this.props, { className: Yt(this.props.className, "wrapper"), - }) + }), ); } } @@ -19425,7 +19435,7 @@ "button", Zt()({}, this.props, { className: Yt(this.props.className, "button"), - }) + }), ); } } @@ -19445,7 +19455,7 @@ ? (t = b()( (a = l()(r).call(r, function (e) { return e.selected; - })) + })), ).call(a, function (e) { return e.value; })) @@ -19487,9 +19497,9 @@ return k().createElement( "option", { key: t, value: String(e) }, - String(e) + String(e), ); - }) + }), ); } } @@ -19501,7 +19511,7 @@ Zt()({}, this.props, { rel: "noopener noreferrer", className: Yt(this.props.className, "link"), - }) + }), ); } } @@ -19512,7 +19522,7 @@ { className: "no-margin" }, " ", t, - " " + " ", ); }; class un extends k().Component { @@ -19557,7 +19567,7 @@ k().createElement( "h4", { className: "overview-title" }, - "Overview" + "Overview", ), b()(r) .call(r, (e, s) => { @@ -19575,7 +19585,7 @@ }, " ", l ? "-" : "+", - s + s, ), k().createElement( a, @@ -19598,8 +19608,8 @@ onClick: n.show, }); }) - .toArray() - ) + .toArray(), + ), ); }) .toArray(), @@ -19607,8 +19617,8 @@ k().createElement( "h3", null, - " No operations defined in spec! " - ) + " No operations defined in spec! ", + ), ); } } @@ -19641,10 +19651,10 @@ k().createElement( "small", { className: `bold-label-${t}` }, - t.toUpperCase() + t.toUpperCase(), ), - k().createElement("span", { className: "bold-label" }, e) - ) + k().createElement("span", { className: "bold-label" }, e), + ), ); } } @@ -19662,7 +19672,7 @@ } = this.props; return k().createElement( "input", - Zt()({}, s, { ref: (e) => (this.inputRef = e) }) + Zt()({}, s, { ref: (e) => (this.inputRef = e) }), ); } } @@ -19675,7 +19685,7 @@ "[ Base URL: ", e, t, - " ]" + " ]", ); } } @@ -19686,7 +19696,7 @@ return k().createElement( n, { target: "_blank", href: (0, $.Nm)(e) }, - k().createElement("span", { className: "url" }, " ", e) + k().createElement("span", { className: "url" }, " ", e), ); } } @@ -19728,15 +19738,15 @@ "h2", { className: "title" }, u, - c && k().createElement(S, { version: c }) + c && k().createElement(S, { version: c }), ), n || s ? k().createElement(w, { host: n, basePath: s }) : null, - t && k().createElement(E, { getComponent: r, url: t }) + t && k().createElement(E, { getComponent: r, url: t }), ), k().createElement( "div", { className: "description" }, - k().createElement(y, { source: i }) + k().createElement(y, { source: i }), ), p && k().createElement( @@ -19745,8 +19755,8 @@ k().createElement( v, { target: "_blank", href: (0, $.Nm)(p) }, - "Terms of service" - ) + "Terms of service", + ), ), (null == m ? void 0 : m.size) > 0 && k().createElement(C, { @@ -19770,9 +19780,9 @@ target: "_blank", href: (0, $.Nm)(g), }, - f || g + f || g, ) - : null + : null, ); } } @@ -19804,7 +19814,7 @@ getComponent: t, selectedServer: c, }) - : null + : null, ); } } @@ -19831,15 +19841,15 @@ l, { href: (0, $.Nm)(a), target: "_blank" }, r, - " - Website" - ) + " - Website", + ), ), o && k().createElement( l, { href: (0, $.Nm)(`mailto:${o}`) }, - a ? `Send email to ${r}` : `Contact ${r}` - ) + a ? `Send email to ${r}` : `Contact ${r}`, + ), ); } } @@ -19865,10 +19875,10 @@ k().createElement( o, { target: "_blank", href: (0, $.Nm)(a) }, - r - ) + r, + ), ) - : k().createElement("span", null, r) + : k().createElement("span", null, r), ); } } @@ -19891,8 +19901,8 @@ k().createElement( gt.CopyToClipboard, { text: this.props.textToCopy }, - k().createElement(t, null) - ) + k().createElement(t, null), + ), ); } } @@ -19943,9 +19953,9 @@ onChange: this.onFilterChange, value: !0 === o || "true" === o ? "" : o, disabled: r, - }) - ) - ) + }), + ), + ), ) ); } @@ -19990,7 +20000,7 @@ this.onChange(s, { isXml: n, isEditBox: this.state.isEditBox }); }), ue()(this, "toggleIsEditBox", () => - this.setState((e) => ({ isEditBox: !e.isEditBox })) + this.setState((e) => ({ isEditBox: !e.isEditBox })), ), (this.state = { isEditBox: !1, value: "" }); } @@ -20016,7 +20026,7 @@ u = o("contentType"); let p = (s ? s.parameterWithMetaByIdentity(r, t) : t).get( "errors", - (0, I.List)() + (0, I.List)(), ), m = s.contentTypeValues(r).get("requestContentType"), d = @@ -20063,8 +20073,8 @@ : "btn edit body-param__example-edit", onClick: this.toggleIsEditBox, }, - g ? "Cancel" : "Edit" - ) + g ? "Cancel" : "Edit", + ), ) : null, k().createElement( @@ -20077,9 +20087,9 @@ onChange: e, className: "body-param-content-type", ariaLabel: "Parameter content type", - }) - ) - ) + }), + ), + ), ) ); } @@ -20104,7 +20114,7 @@ className: "curl microlight", style: (0, ct.C2)(ut()(s, "syntaxHighlight.theme")), }, - n + n, ) : k().createElement("textarea", { readOnly: !0, @@ -20121,10 +20131,10 @@ k().createElement( gt.CopyToClipboard, { text: n }, - k().createElement("button", null) - ) + k().createElement("button", null), + ), ), - k().createElement("div", null, r) + k().createElement("div", null, r), ); } } @@ -20158,17 +20168,17 @@ k().createElement( "span", { className: "schemes-title" }, - "Schemes" + "Schemes", ), k().createElement( "select", { onChange: this.onChange, value: n }, b()((e = t.valueSeq())) .call(e, (e) => - k().createElement("option", { value: e, key: e }, e) + k().createElement("option", { value: e, key: e }, e), ) - .toArray() - ) + .toArray(), + ), ); } } @@ -20198,7 +20208,7 @@ this.props.onToggle && this.props.onToggle( this.props.modelName, - !this.state.expanded + !this.state.expanded, ), this.setState({ expanded: !this.state.expanded }); }), @@ -20208,7 +20218,7 @@ P().is(t, this.props.specPath) && this.toggleCollapsed(), this.props.layoutActions.readyToScroll( this.props.specPath, - e.parentElement + e.parentElement, ); } }); @@ -20236,7 +20246,7 @@ ? k().createElement( "span", { className: t || "" }, - this.props.children + this.props.children, ) : k().createElement( "span", @@ -20258,10 +20268,10 @@ k().createElement( "span", null, - this.state.collapsedContent - ) + this.state.collapsedContent, + ), ), - this.state.expanded && this.props.children + this.state.expanded && this.props.children, ); } } @@ -20344,8 +20354,8 @@ onClick: this.activeTab, role: "tab", }, - r ? "Edit Value" : "Example Value" - ) + r ? "Edit Value" : "Example Value", + ), ), n && k().createElement( @@ -20367,9 +20377,9 @@ onClick: this.activeTab, role: "tab", }, - f ? "Schema" : "Model" - ) - ) + f ? "Schema" : "Model", + ), + ), ), "example" === this.state.activeTab && k().createElement( @@ -20386,7 +20396,7 @@ k().createElement(p, { value: "(no example available)", getConfigs: a, - }) + }), ), "model" === this.state.activeTab && k().createElement( @@ -20408,8 +20418,8 @@ specPath: o, includeReadOnly: l, includeWriteOnly: c, - }) - ) + }), + ), ); } } @@ -20439,8 +20449,8 @@ depth: 1, onToggle: this.onToggle, expandDepth: this.props.expandDepth || 0, - }) - ) + }), + ), ) ); } @@ -20452,7 +20462,7 @@ ue()(this, "getSchemaBasePath", () => this.props.specSelectors.isOAS3() ? ["components", "schemas"] - : ["definitions"] + : ["definitions"], ), ue()(this, "getCollapsedContent", () => " "), ue()(this, "handleToggle", (e, t) => { @@ -20468,7 +20478,7 @@ e && this.props.layoutActions.readyToScroll( this.getSchemaBasePath(), - e + e, ); }), ue()(this, "onLoadModel", (e) => { @@ -20476,7 +20486,7 @@ const t = e.getAttribute("data-name"); this.props.layoutActions.readyToScroll( [...this.getSchemaBasePath(), t], - e + e, ); } }); @@ -20519,8 +20529,8 @@ onClick: () => r.show(i, !u), }, k().createElement("span", null, p ? "Schemas" : "Models"), - u ? k().createElement(f, null) : k().createElement(y, null) - ) + u ? k().createElement(f, null) : k().createElement(y, null), + ), ), k().createElement( d, @@ -20561,8 +20571,8 @@ k().createElement( "span", { className: "model model-title" }, - v - ) + v, + ), ); return k().createElement( "div", @@ -20576,7 +20586,7 @@ k().createElement( "span", { className: "models-jump-to-path" }, - k().createElement(g, { specPath: u }) + k().createElement(g, { specPath: u }), ), k().createElement( h, @@ -20593,12 +20603,12 @@ hideSelfOnExpand: !0, expanded: c > 0 && S, }, - E - ) + E, + ), ); }) - .toArray() - ) + .toArray(), + ), ); } } @@ -20616,8 +20626,8 @@ { collapsedContent: r }, "[ ", t.join(", "), - " ]" - ) + " ]", + ), ); }; class Kn extends O.Component { @@ -20660,7 +20670,7 @@ "minProperties", "nullable", "example", - ]) + ]), ).call(n, t) ); }), @@ -20677,7 +20687,7 @@ k().createElement( "span", { className: "model-jump-to-path" }, - k().createElement(M, { specPath: g }) + k().createElement(M, { specPath: g }), ), F = k().createElement( "span", @@ -20685,7 +20695,7 @@ k().createElement("span", null, "{"), "...", k().createElement("span", null, "}"), - c ? k().createElement(U, null) : "" + c ? k().createElement(U, null) : "", ), z = y.isOAS3() ? r.get("anyOf") : null, B = y.isOAS3() ? r.get("oneOf") : null, @@ -20700,13 +20710,13 @@ k().createElement( "span", { className: "model-hint" }, - r.get("$$ref") + r.get("$$ref"), ), k().createElement( "span", { className: "model-title__text" }, - O - ) + O, + ), ); return k().createElement( "span", @@ -20723,7 +20733,7 @@ k().createElement( "span", { className: "brace-open object" }, - "{" + "{", ), c ? k().createElement(U, null) : null, k().createElement( @@ -20743,8 +20753,8 @@ k().createElement( "td", null, - k().createElement(D, { source: j }) - ) + k().createElement(D, { source: j }), + ), ) : null, R && @@ -20758,16 +20768,16 @@ k().createElement( V, { target: "_blank", href: (0, $.Nm)(R) }, - T || R - ) - ) + T || R, + ), + ), ), q ? k().createElement( "tr", { className: "property" }, k().createElement("td", null, "deprecated:"), - k().createElement("td", null, "true") + k().createElement("td", null, "true"), ) : null, _ && _.size @@ -20778,7 +20788,7 @@ (!t.get("readOnly") || E) && (!t.get("writeOnly") || w) ); - })) + })), ) .call(e, (e) => { let [t, n] = e, @@ -20799,8 +20809,8 @@ k().createElement( "span", { className: "star" }, - "*" - ) + "*", + ), ), k().createElement( "td", @@ -20817,10 +20827,10 @@ getConfigs: u, schema: n, depth: m + 1, - } - ) - ) - ) + }, + ), + ), + ), ) ); }) @@ -20830,7 +20840,7 @@ ? k().createElement( "tr", null, - k().createElement("td", null, " ") + k().createElement("td", null, " "), ) : null, C @@ -20843,7 +20853,7 @@ "tr", { key: t, className: "extension" }, k().createElement("td", null, t), - k().createElement("td", null, p()(s)) + k().createElement("td", null, p()(s)), ); }) .toArray() @@ -20865,9 +20875,9 @@ getConfigs: u, schema: N, depth: m + 1, - }) - ) - ) + }), + ), + ), ) : null, z @@ -20891,11 +20901,11 @@ getConfigs: u, schema: e, depth: m + 1, - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ) : null, B @@ -20919,11 +20929,11 @@ getConfigs: u, schema: e, depth: m + 1, - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ) : null, W @@ -20946,16 +20956,16 @@ getConfigs: u, schema: W, depth: m + 1, - }) - ) - ) - ) + }), + ), + ), + ), ) - : null - ) - ) + : null, + ), + ), ), - k().createElement("span", { className: "brace-close" }, "}") + k().createElement("span", { className: "brace-close" }, "}"), ), P.size ? b()((s = P.entrySeq())).call(s, (e) => { @@ -20967,7 +20977,7 @@ propClass: "property", }); }) - : null + : null, ); } } @@ -20998,7 +21008,7 @@ "description", "$$ref", "externalDocs", - ]) + ]), ).call(n, t) ); }), @@ -21017,8 +21027,8 @@ k().createElement( "span", { className: "model-title__text" }, - m - ) + m, + ), ); return k().createElement( "span", @@ -21050,8 +21060,8 @@ k().createElement( E, { target: "_blank", href: (0, $.Nm)(h) }, - g || h - ) + g || h, + ), ), k().createElement( "span", @@ -21065,11 +21075,11 @@ schema: p, required: !1, depth: r + 1, - }) - ) + }), + ), ), - "]" - ) + "]", + ), ); } } @@ -21108,7 +21118,7 @@ "description", "$$ref", "externalDocs", - ]) + ]), ).call(n, t) ); }) @@ -21128,8 +21138,8 @@ k().createElement( "span", { className: "model-title__text" }, - f - ) + f, + ), ); return k().createElement( "span", @@ -21155,7 +21165,7 @@ { className: "prop-format" }, "($", d, - ")" + ")", ), S.size ? b()((e = S.entrySeq())).call(e, (e) => { @@ -21187,8 +21197,8 @@ k().createElement( N, { target: "_blank", href: (0, $.Nm)(E) }, - w || E - ) + w || E, + ), ), h && h.size ? k().createElement( @@ -21206,15 +21216,15 @@ "   ", t, ": ", - String(n) + String(n), ); }) - .toArray() + .toArray(), ) : null, - g && k().createElement(C, { value: g, getComponent: r }) - ) - ) + g && k().createElement(C, { value: g, getComponent: r }), + ), + ), ); } } @@ -21226,7 +21236,7 @@ k().createElement("br", null), t, ": ", - String(n) + String(n), ); }; class Bn extends k().Component { @@ -21247,19 +21257,19 @@ ? k().createElement( "button", { className: "btn try-out__btn cancel", onClick: t }, - "Cancel" + "Cancel", ) : k().createElement( "button", { className: "btn try-out__btn", onClick: e }, - "Try it out " + "Try it out ", ), o && k().createElement( "button", { className: "btn try-out__btn reset", onClick: n }, - "Reset" - ) + "Reset", + ), ); } } @@ -21298,7 +21308,7 @@ k().createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), k().createElement( "p", @@ -21306,7 +21316,7 @@ k().createElement("code", null, "swagger"), " and ", k().createElement("code", null, "openapi"), - " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields." + " fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.", ), k().createElement( "p", @@ -21317,10 +21327,10 @@ k().createElement("code", null, "openapi: 3.0.n"), " (for example, ", k().createElement("code", null, "openapi: 3.0.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ) : t || n ? k().createElement("div", null, this.props.children) @@ -21340,12 +21350,12 @@ k().createElement( "h3", null, - "Unable to render this definition" + "Unable to render this definition", ), k().createElement( "p", null, - "The provided definition does not specify a valid version field." + "The provided definition does not specify a valid version field.", ), k().createElement( "p", @@ -21356,10 +21366,10 @@ k().createElement("code", null, "openapi: 3.0.n"), " (for example, ", k().createElement("code", null, "openapi: 3.0.0"), - ")." - ) - ) - ) + ").", + ), + ), + ), ); } } @@ -21373,7 +21383,7 @@ return k().createElement( "small", null, - k().createElement("pre", { className: "version" }, " ", t, " ") + k().createElement("pre", { className: "version" }, " ", t, " "), ); }, Zn = (e) => { @@ -21385,7 +21395,7 @@ onClick: t ? (e) => e.preventDefault() : null, href: t ? `#/${n}` : null, }, - k().createElement("span", null, s) + k().createElement("span", null, s), ); }, Gn = () => @@ -21407,56 +21417,56 @@ { viewBox: "0 0 20 20", id: "unlocked" }, k().createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z", - }) + }), ), k().createElement( "symbol", { viewBox: "0 0 20 20", id: "locked" }, k().createElement("path", { d: "M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z", - }) + }), ), k().createElement( "symbol", { viewBox: "0 0 20 20", id: "close" }, k().createElement("path", { d: "M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z", - }) + }), ), k().createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow" }, k().createElement("path", { d: "M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z", - }) + }), ), k().createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow-down" }, k().createElement("path", { d: "M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z", - }) + }), ), k().createElement( "symbol", { viewBox: "0 0 20 20", id: "large-arrow-up" }, k().createElement("path", { d: "M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z", - }) + }), ), k().createElement( "symbol", { viewBox: "0 0 24 24", id: "jump-to" }, k().createElement("path", { d: "M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z", - }) + }), ), k().createElement( "symbol", { viewBox: "0 0 24 24", id: "expand" }, k().createElement("path", { d: "M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z", - }) + }), ), k().createElement( "symbol", @@ -21468,11 +21478,11 @@ fill: "#ffffff", fillRule: "evenodd", d: "M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z", - }) - ) - ) - ) - ) + }), + ), + ), + ), + ), ); var Xn = n(2552); class Yn extends k().Component { @@ -21509,8 +21519,8 @@ k().createElement( "div", { className: "loading-container" }, - k().createElement("div", { className: "loading" }) - ) + k().createElement("div", { className: "loading" }), + ), )), "failed" === E && (w = k().createElement( @@ -21522,10 +21532,10 @@ k().createElement( "h4", { className: "title" }, - "Failed to load API definition." + "Failed to load API definition.", ), - k().createElement(p, null) - ) + k().createElement(p, null), + ), )), "failedConfig" === E) ) { @@ -21540,10 +21550,10 @@ k().createElement( "h4", { className: "title" }, - "Failed to load remote configuration." + "Failed to load remote configuration.", ), - k().createElement("p", null, n) - ) + k().createElement("p", null, n), + ), ); } if ( @@ -21552,14 +21562,14 @@ (w = k().createElement( "h4", null, - "No API definition provided." + "No API definition provided.", )), w) ) return k().createElement( "div", { className: "swagger-ui" }, - k().createElement("div", { className: "loading-container" }, w) + k().createElement("div", { className: "loading-container" }, w), ); const x = t.servers(), C = t.schemes(), @@ -21584,8 +21594,8 @@ k().createElement( u, { mobile: 12 }, - k().createElement(r, null) - ) + k().createElement(r, null), + ), ), j || b || _ ? k().createElement( @@ -21596,8 +21606,8 @@ { className: "schemes wrapper", mobile: 12 }, j ? k().createElement(m, null) : null, b ? k().createElement(d, null) : null, - _ ? k().createElement(h, null) : null - ) + _ ? k().createElement(h, null) : null, + ), ) : null, k().createElement(g, null), @@ -21607,8 +21617,8 @@ k().createElement( u, { mobile: 12, desktop: 12 }, - k().createElement(o, null) - ) + k().createElement(o, null), + ), ), v && k().createElement( @@ -21617,8 +21627,8 @@ k().createElement( u, { mobile: 12, desktop: 12 }, - k().createElement(c, null) - ) + k().createElement(c, null), + ), ), k().createElement( i, @@ -21626,10 +21636,10 @@ k().createElement( u, { mobile: 12, desktop: 12 }, - k().createElement(l, null) - ) - ) - ) + k().createElement(l, null), + ), + ), + ), ); } } @@ -21680,7 +21690,7 @@ onChange: s, schema: e, disabled: o, - }) + }), ) ); } @@ -21774,10 +21784,10 @@ value: t.push( e.getSampleSchema(this.state.schema.get("items"), !1, { includeWriteOnly: !0, - }) + }), ), }), - this.onChange + this.onChange, ); }), ue()(this, "onEnumChange", (e) => { @@ -21804,7 +21814,7 @@ r = r.toJS ? r.toJS() : w()(r) ? r : []; const c = l()(r).call(r, (e) => "string" == typeof e), i = b()( - (e = l()(r).call(r, (e) => void 0 !== e.needRemove)) + (e = l()(r).call(r, (e) => void 0 !== e.needRemove)), ).call(e, (e) => e.error), u = this.state.value, p = !!(u && u.count && u.count() > 0), @@ -21845,7 +21855,7 @@ const c = (0, I.fromJS)([ ...b()((s = l()(r).call(r, (e) => e.index === n))).call( s, - (e) => e.error + (e) => e.error, ), ]); return k().createElement( @@ -21876,7 +21886,7 @@ schema: g, getComponent: t, fn: a, - }) + }), ), o ? null @@ -21889,8 +21899,8 @@ title: i.length ? i : "", onClick: () => this.removeItem(n), }, - " - " - ) + " - ", + ), ); }) : null, @@ -21907,8 +21917,8 @@ }, "Add ", d ? `${d} ` : "", - "item" - ) + "item", + ), ); } } @@ -22049,7 +22059,7 @@ value: (0, $.Pz)(t), disabled: s, onChange: this.handleOnChange, - }) + }), ) ); } @@ -22206,7 +22216,7 @@ window.location.host }${window.location.pathname.substring( 0, - a()((t = window.location.pathname)).call(t, "/") + a()((t = window.location.pathname)).call(t, "/"), )}/oauth2-redirect.html`, persistAuthorization: !1, configs: {}, @@ -22270,7 +22280,7 @@ spec: { spec: "", url: o.url }, requestSnippets: o.requestSnippets, }, - o.initialState + o.initialState, ), }; if (o.initialState) @@ -22313,7 +22323,7 @@ null === n.dom_id || null === n.domNode || console.error( - "Skipped rendering: no `dom_id` or `domNode` was specified" + "Skipped rendering: no `dom_id` or `domNode` was specified", ); return h; }, @@ -22326,7 +22336,7 @@ requestInterceptor: o.requestInterceptor, responseInterceptor: o.responseInterceptor, }, - g + g, ), h) : g(); @@ -22336,6 +22346,6 @@ })(), (s = s.default) ); - })() + })(), ); //# sourceMappingURL=swagger-ui.js.map diff --git a/scripts/postgis_snippets/import_geojson_as_postgis_with_jsonb.md b/scripts/postgis_snippets/import_geojson_as_postgis_with_jsonb.md index 505efa693a..625e33e564 100644 --- a/scripts/postgis_snippets/import_geojson_as_postgis_with_jsonb.md +++ b/scripts/postgis_snippets/import_geojson_as_postgis_with_jsonb.md @@ -1,6 +1,6 @@ # Deprecated; now using pg_dump -Import the GeoJSON file to PostGIS. To function in the same way as a layer directly imported from OSM using osm2psql, the ```tags``` column needs to be jsonb type. +Import the GeoJSON file to PostGIS. To function in the same way as a layer directly imported from OSM using osm2psql, the `tags` column needs to be jsonb type. There probably is a simple way to combine changing the column type and casting the json string to the actual jsonb type, but I don't know how to do it. So here's the workaround: @@ -25,7 +25,7 @@ update "Islington_AOI_polygons" set tags = tagsvarchar::jsonb ``` -- Nuke the renamed column with the varchar, leaving only the ```tags``` column with the jsonb type +- Nuke the renamed column with the varchar, leaving only the `tags` column with the jsonb type ``` alter table "Islington_AOI_polygons" diff --git a/scripts/postgis_snippets/postgis_resources.md b/scripts/postgis_snippets/postgis_resources.md index 9a63ea3118..fd309cbe46 100644 --- a/scripts/postgis_snippets/postgis_resources.md +++ b/scripts/postgis_snippets/postgis_resources.md @@ -1,11 +1,16 @@ # PostGIS resources + ## Paul Ramsey or CleverElephant -Paul Ramsey is a Canadian open source geographical analyst and developer. [His blog](https://blog.cleverelephant.ca/) (which is often *very* technical) is a gold mine of information on many subjects, notably PostGIS. + +Paul Ramsey is a Canadian open source geographical analyst and developer. [His blog](https://blog.cleverelephant.ca/) (which is often _very_ technical) is a gold mine of information on many subjects, notably PostGIS. + - [Overlays of polygons](https://blog.cleverelephant.ca/2019/07/postgis-overlays.html) ## Matt Forest's Spatial SQL Cookbook -- Intended for someone who's already an experienced GIS user and wants to transfer their knowledge to SQL. [Lots of clear, useful recipes](https://forrest.nyc/spatial-sql-cookbook/). + +- Intended for someone who's already an experienced GIS user and wants to transfer their knowledge to SQL. [Lots of clear, useful recipes](https://forrest.nyc/spatial-sql-cookbook/). ## Random + - [A nice Stack Exchange](https://gis.stackexchange.com/questions/172198/constructing-voronoi-diagram-in-postgis/174219#174219) on Voronoi Polygons - [Best answer ever](https://stackoverflow.com/questions/49531535/pass-fields-when-applying-st-voronoipolygons-and-clip-output) on how to subdivide existing areas with Voronoi polygons diff --git a/scripts/postgis_snippets/task_splitting/task_splitting_readme.md b/scripts/postgis_snippets/task_splitting/task_splitting_readme.md index ecdfe35999..7e7f29649b 100644 --- a/scripts/postgis_snippets/task_splitting/task_splitting_readme.md +++ b/scripts/postgis_snippets/task_splitting/task_splitting_readme.md @@ -1,41 +1,45 @@ # Task Splitting -The file ```task_splitting_optimized.sql``` is a spatial Structured Query Language (SQL) script to split an area of interest for field mapping into small "task" areas. +The file `task_splitting_optimized.sql` is a spatial Structured Query Language (SQL) script to split an area of interest for field mapping into small "task" areas. -It operates within a Postgresql database with the the spatial extension PostGIS enabled. It requires write access to the database for performance reasons (there is another version without the suffice "_optimized" that doesn't require write access, but it's not likely to ever work well enough for production. +It operates within a Postgresql database with the the spatial extension PostGIS enabled. It requires write access to the database for performance reasons (there is another version without the suffice "\_optimized" that doesn't require write access, but it's not likely to ever work well enough for production. It takes into account roads, waterways, and railways to avoid forcing mappers to cross such features during mapping. It uses a clustering algorithm to divide the area into discrete polygons containing an average number of tasks. ## Inputs (tables/layers) + This script takes 4 inputs, all of which are Postgresql/PostGIS tables/layers. -- ```project-aoi```, a PostGIS polygon layer containing a single feature: a polygon containing the Area of Interest. -- ```ways_line```, a PostGIS line layer containing all OpenStreetMap "open ways" (the OSM term for linestrings) in the Area of Interest. -- ```ways_poly```, a Postgis polygon layer containing all OpenSTreetMap "closed ways" (the OSM term for polygons) in the AOI. -- ```project-config```, a Postgresql table containing settings (for example, the average number of features desired per task). _This isn't yet implemented; these settings are hard-coded for the moment. The script runs without a ```project-config``` table, but the number of features per task needs to be tweaked within the code._ -OSM data (```ways-line``` and ```ways_poly```) can be loaded into a PostGIS database using the [Underpass](https://github.com/hotosm/underpass) configuration file [raw.lua](https://github.com/hotosm/underpass/blob/master/utils/raw.lua). If these two layers are present in the same database and schema as the ```project-aoi``` layer, the script will make use of them automatically (non-desctructively; it doesn't modify any tables other than the ones it creates unless you're unlucky enough to have tables matching the very specific names I'm using, which I'll later change to names that should avoid all realistically possible collisions). +- `project-aoi`, a PostGIS polygon layer containing a single feature: a polygon containing the Area of Interest. +- `ways_line`, a PostGIS line layer containing all OpenStreetMap "open ways" (the OSM term for linestrings) in the Area of Interest. +- `ways_poly`, a Postgis polygon layer containing all OpenSTreetMap "closed ways" (the OSM term for polygons) in the AOI. +- `project-config`, a Postgresql table containing settings (for example, the average number of features desired per task). _This isn't yet implemented; these settings are hard-coded for the moment. The script runs without a `project-config` table, but the number of features per task needs to be tweaked within the code._ + +OSM data (`ways-line` and `ways_poly`) can be loaded into a PostGIS database using the [Underpass](https://github.com/hotosm/underpass) configuration file [raw.lua](https://github.com/hotosm/underpass/blob/master/utils/raw.lua). If these two layers are present in the same database and schema as the `project-aoi` layer, the script will make use of them automatically (non-desctructively; it doesn't modify any tables other than the ones it creates unless you're unlucky enough to have tables matching the very specific names I'm using, which I'll later change to names that should avoid all realistically possible collisions). ## Running the script + You need a Postgresql database with PostGIS extension enabled. If both Postgresql and PostGIS are installed and you have permissions set up properly (doing both of those things is way beyond scope here), this should do the trick (choose whatever database name you want): ``` createdb [databasename] -O [username] ``` + ``` psql -U [username] -d [databasename] -c 'CREATE EXTENSION POSTGIS' ``` -Now you need to get some OSM data in there. You can get OSM data from the GeoFabrik download tool or the HOT export tool in ```.pbf``` format. +Now you need to get some OSM data in there. You can get OSM data from the GeoFabrik download tool or the HOT export tool in `.pbf` format. -If you have your own way of getting the OSM data into the database, as long as it'll create the ```ways_line``` and ```ways_poly``` layers, go for it. Here's ho I'm doing it: +If you have your own way of getting the OSM data into the database, as long as it'll create the `ways_line` and `ways_poly` layers, go for it. Here's ho I'm doing it: ``` -osm2pgsql --create -H localhost -U [username] -P 5432 -d [database name] -W --extra-attributes --output=flex --style /path/to/git/underpass/utils/raw.lua /path/to/my_extract.osm.pbf +osm2pgsql --create -H localhost -U [username] -P 5432 -d [database name] -W --extra-attributes --output=flex --style /path/to/git/underpass/utils/raw.lua /path/to/my_extract.osm.pbf ``` -Now you need an AOI. I'm using QGIS connect to the database using the Database Manager, then creating a polygon layer (make a "Temporary scratch layer' with polygon geometry, draw an AOI, and import that layer into the database using the Database Manager). If you don't want to use QGIS, you can get a GeoJSON polygon some other way ([geojson.io](geojson.io) comes to mind) and shove it into the database using ogr2ogr or some other tool. Whatever. Just ensure it's a polygon layer in EPSG:4326 and it's called ```project-aoi```. +Now you need an AOI. I'm using QGIS connect to the database using the Database Manager, then creating a polygon layer (make a "Temporary scratch layer' with polygon geometry, draw an AOI, and import that layer into the database using the Database Manager). If you don't want to use QGIS, you can get a GeoJSON polygon some other way ([geojson.io](geojson.io) comes to mind) and shove it into the database using ogr2ogr or some other tool. Whatever. Just ensure it's a polygon layer in EPSG:4326 and it's called `project-aoi`. ``` psql -U [username] -d [database name] -f path/to/fmtm/scripts/postgis_snippets/task_splitting/task_splitting_optimized.sql @@ -44,25 +48,27 @@ psql -U [username] -d [database name] -f path/to/fmtm/scripts/postgis_snippets/t If all is set up correctly, that'll run and spit out some console output. It's moderately likely to include some warning messages due to messy OSM data, and will very likely complain that some tables do not exist (that's because I clobber any tables with colliding names before creating my own tables; don't run this script on random production databases until I collision-proof the names, and probably not even then). ## Outputs + You should now have the following useful layers in your Postgresql/PostGIS database: + - clusteredbuildings - taskpolygons As well as the following non-useful layers (well, they're useful for debugging, but not for end users' purposes): + - buildings - dumpedpoints - lowfeaturecountpolygons - splitpolygons - voronois -The ```taskpolygons``` layer can be exported as GeoJSON and used as a task to upload to the FMTM. This works in at least some cases; I'm not sure if there are cases where whatever was in the AOI and OSM layers causes outputs that break somehow (there are definitely some cases where building footprints in OSM are sufficiently messed up that they create weird task geometries, but so far these haven't actually broken anything). +The `taskpolygons` layer can be exported as GeoJSON and used as a task to upload to the FMTM. This works in at least some cases; I'm not sure if there are cases where whatever was in the AOI and OSM layers causes outputs that break somehow (there are definitely some cases where building footprints in OSM are sufficiently messed up that they create weird task geometries, but so far these haven't actually broken anything). ## Next steps It's working OK now, but needs more work. + - Still simply discards polygon delineated by roads/waterways/railways rather than merging them into neighbors, which causes the task polygons to not tile the full AOI. This isn't necessarily always a problem, but it would be better to have the option to merge rather than discard those areas. - Task polygon edges can be rough, often jagged, occasionally poking into buildings from adjacent polygons (though never, I think to the centroid). Working on simplifying/smoothing these, but there are some complications... - Task polygon edges can contain closed-off loops unconnected to their main bodies. May need to increase density of segmentation of buildings in some places. - Clustering is really pretty good, but not very strict at keeping similar numbers of features per cluster; you get a bit of a range of task sizes (though much, much better than anything we've had previously). I think it's possible to tweak this, though I think it might be expensive in terms of performance. - - diff --git a/src/backend/app/auth/auth_routes.py b/src/backend/app/auth/auth_routes.py index 75a756a5b6..dbf7bcae04 100644 --- a/src/backend/app/auth/auth_routes.py +++ b/src/backend/app/auth/auth_routes.py @@ -18,13 +18,12 @@ """Auth routes, using OSM OAuth2 endpoints.""" -from loguru import logger as log from fastapi import APIRouter, Depends, HTTPException, Request from fastapi.responses import JSONResponse +from loguru import logger as log from sqlalchemy.orm import Session -from ..config import settings - +from ..config import settings from ..db import database from ..db.db_models import DbUser from ..users import user_crud @@ -39,8 +38,7 @@ @router.get("/osm_login/") def login_url(request: Request, osm_auth=Depends(init_osm_auth)): - """ - Generate a login URL for authentication using OAuth2 Application registered with OpenStreetMap. + """Generate a login URL for authentication using OAuth2 Application registered with OpenStreetMap. Args: request (Request): The request object. @@ -56,8 +54,7 @@ def login_url(request: Request, osm_auth=Depends(init_osm_auth)): @router.get("/callback/") def callback(request: Request, osm_auth=Depends(init_osm_auth)): - """ - Perform token exchange between OpenStreetMap and Export tool API. + """Perform token exchange between OpenStreetMap and Export tool API. Args: request (Request): The request object. @@ -67,8 +64,10 @@ def callback(request: Request, osm_auth=Depends(init_osm_auth)): A JSONResponse with the access token. """ print("Call back api requested", request.url) - - access_token = osm_auth.callback(str(request.url).replace('http',settings.URL_SCHEME)) + + access_token = osm_auth.callback( + str(request.url).replace("http", settings.URL_SCHEME) + ) log.debug(f"Access token returned: {access_token}") return JSONResponse(content={"access_token": access_token}, status_code=200) diff --git a/src/backend/app/auth/osm.py b/src/backend/app/auth/osm.py index 594741a659..aa4f0417b6 100644 --- a/src/backend/app/auth/osm.py +++ b/src/backend/app/auth/osm.py @@ -13,22 +13,21 @@ class AuthUser(BaseModel): - """ - A Pydantic model representing an authenticated user. + """A Pydantic model representing an authenticated user. Attributes: id (int): The ID of the user. username (str): The username of the user. img_url (Union[str, None]): The URL of the user's profile image, or None if not provided. """ + id: int username: str img_url: Union[str, None] def init_osm_auth(): - """ - Initialize an instance of the Auth class from the osm_login_python.core module. + """Initialize an instance of the Auth class from the osm_login_python.core module. Returns: An instance of the Auth class. @@ -44,8 +43,7 @@ def init_osm_auth(): def login_required(access_token: str = Header(...)): - """ - A dependency that deserializes an access token from the request header. + """A dependency that deserializes an access token from the request header. Args: access_token (str, optional): The access token from the request header. Injected by FastAPI. diff --git a/src/backend/app/central/central_crud.py b/src/backend/app/central/central_crud.py index 92f8d43ccb..8e094c5e8a 100644 --- a/src/backend/app/central/central_crud.py +++ b/src/backend/app/central/central_crud.py @@ -15,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with FMTM. If not, see . # -from loguru import logger as log - import base64 import json import os @@ -26,13 +24,13 @@ # import osm_fieldwork # Qr code imports import segno -import xmltodict from fastapi import HTTPException +from fastapi.responses import JSONResponse +from loguru import logger as log from osm_fieldwork.CSVDump import CSVDump from osm_fieldwork.OdkCentral import OdkAppUser, OdkForm, OdkProject from pyxform.xls2xform import xls2xform_convert from sqlalchemy.orm import Session -from fastapi.responses import JSONResponse from ..config import settings from ..db import db_models @@ -40,8 +38,7 @@ def get_odk_project(odk_central: project_schemas.ODKCentral = None): - """ - Get an instance of the OdkProject class with the provided credentials. + """Get an instance of the OdkProject class with the provided credentials. Args: odk_central (project_schemas.ODKCentral, optional): The ODK Central credentials. Defaults to None. @@ -76,8 +73,7 @@ def get_odk_project(odk_central: project_schemas.ODKCentral = None): def get_odk_form(odk_central: project_schemas.ODKCentral = None): - """ - Get an instance of the OdkForm class with the provided credentials. + """Get an instance of the OdkForm class with the provided credentials. Args: odk_central (project_schemas.ODKCentral, optional): The ODK Central credentials. Defaults to None. @@ -113,8 +109,7 @@ def get_odk_form(odk_central: project_schemas.ODKCentral = None): def get_odk_app_user(odk_central: project_schemas.ODKCentral = None): - """ - Get an instance of the OdkAppUser class with the provided credentials. + """Get an instance of the OdkAppUser class with the provided credentials. Args: odk_central (project_schemas.ODKCentral, optional): The ODK Central credentials. Defaults to None. @@ -149,8 +144,7 @@ def get_odk_app_user(odk_central: project_schemas.ODKCentral = None): def list_odk_projects(odk_central: project_schemas.ODKCentral = None): - """ - List all projects on a remote ODK Server. + """List all projects on a remote ODK Server. Args: odk_central (project_schemas.ODKCentral, optional): The ODK Central credentials. Defaults to None. @@ -163,8 +157,7 @@ def list_odk_projects(odk_central: project_schemas.ODKCentral = None): def create_odk_project(name: str, odk_central: project_schemas.ODKCentral = None): - """ - Create a project on a remote ODK Server. + """Create a project on a remote ODK Server. Args: name (str): The name of the project to create. @@ -201,8 +194,7 @@ def create_odk_project(name: str, odk_central: project_schemas.ODKCentral = None def delete_odk_project(project_id: int, odk_central: project_schemas.ODKCentral = None): - """ - Delete a project from a remote ODK Server. + """Delete a project from a remote ODK Server. Args: project_id (int): The ID of the project to delete. @@ -216,9 +208,7 @@ def delete_odk_project(project_id: int, odk_central: project_schemas.ODKCentral try: project = get_odk_project(odk_central) result = project.deleteProject(project_id) - log.info( - f"Project {project_id} has been deleted from the ODK Central server." - ) + log.info(f"Project {project_id} has been deleted from the ODK Central server.") return result except Exception: return "Could not delete project from central odk" @@ -251,8 +241,7 @@ def create_appuser( def delete_app_user( project_id: int, name: str, odk_central: project_schemas.ODKCentral = None ): - """ - Delete an app-user from a remote ODK Server. + """Delete an app-user from a remote ODK Server. Args: project_id (int): The ID of the project to delete an app-user from. @@ -306,8 +295,7 @@ def create_odk_xform( upload_media=True, convert_to_draft_when_publishing=True, ): - """ - Create an XForm on a remote ODK Central server. + """Create an XForm on a remote ODK Central server. Args: project_id (int): The ID of the project to create an XForm for. @@ -362,8 +350,7 @@ def delete_odk_xform( filespec: str, odk_central: project_schemas.ODKCentral = None, ): - """ - Delete an XForm from a remote ODK Central server. + """Delete an XForm from a remote ODK Central server. Args: project_id (int): The ID of the project to delete an XForm from. @@ -381,7 +368,11 @@ def delete_odk_xform( # def list_odk_xforms(project_id: int, odk_central: project_schemas.ODKCentral = None): -def list_odk_xforms(project_id: int, odk_central: project_schemas.ODKCentral = None, metadata:bool = False): +def list_odk_xforms( + project_id: int, + odk_central: project_schemas.ODKCentral = None, + metadata: bool = False, +): """List all XForms in an ODK Central project.""" project = get_odk_project(odk_central) xforms = project.listForms(project_id, metadata) @@ -414,8 +405,7 @@ def list_task_submissions( def list_submissions(project_id: int, odk_central: project_schemas.ODKCentral = None): - """ - List all submissions from a remote ODK server. + """List all submissions from a remote ODK server. Args: project_id (int): The ID of the project to list submissions for. @@ -435,8 +425,7 @@ def list_submissions(project_id: int, odk_central: project_schemas.ODKCentral = def get_form_list(db: Session, skip: int, limit: int): - """ - Get a list of IDs and titles of XForms from the database. + """Get a list of IDs and titles of XForms from the database. Args: db (Session): The database session. @@ -450,21 +439,21 @@ def get_form_list(db: Session, skip: int, limit: int): HTTPException: If there is an error querying the database. """ try: - forms = ( + forms = ( db.query(db_models.DbXForm.id, db_models.DbXForm.title) .offset(skip) .limit(limit) .all() ) - + result_dict = [] for form in forms: form_dict = { - 'id': form[0], # Assuming the first element is the ID - 'title': form[1] # Assuming the second element is the title + "id": form[0], # Assuming the first element is the ID + "title": form[1], # Assuming the second element is the title } result_dict.append(form_dict) - + return result_dict except Exception as e: @@ -479,8 +468,7 @@ def download_submissions( get_json: bool = True, odk_central: project_schemas.ODKCentral = None, ): - """ - Download submissions from a remote ODK server. + """Download submissions from a remote ODK server. Args: project_id (int): The ID of the project to download submissions for. @@ -491,7 +479,7 @@ def download_submissions( Returns: A list of downloaded submissions from the remote ODK server for the specified parameters. - """ + """ xform = get_odk_form(odk_central) # FIXME: should probably filter by timestamps or status value data = xform.getSubmissions(project_id, xform_id, submission_id, True, get_json) @@ -515,7 +503,10 @@ async def test_form_validity(xform_content: str, form_type: str): xls2xform_convert(xlsform_path=xlsform_path, xform_path=outfile, validate=False) return {"message": "Your form is valid"} except Exception as e: - return JSONResponse(content={"message":"Your form is invalid", "possible_reason":str(e)}, status_code=400) + return JSONResponse( + content={"message": "Your form is invalid", "possible_reason": str(e)}, + status_code=400, + ) def generate_updated_xform( @@ -523,8 +514,7 @@ def generate_updated_xform( xform: str, form_type: str, ): - """ - Update the version in an XForm so it's unique. + """Update the version in an XForm so it's unique. Args: xlsform (str): The path to the XLSForm file used to create the XForm. @@ -604,12 +594,11 @@ def generate_updated_xform( import xml.etree.ElementTree as ET root = ET.fromstring(data) - head = root.find("h:head",namespaces) - model = head.find("xforms:model",namespaces) - instances = model.findall("xforms:instance",namespaces) + head = root.find("h:head", namespaces) + model = head.find("xforms:model", namespaces) + instances = model.findall("xforms:instance", namespaces) index = 0 - data_tag_present = False for inst in instances: try: if "src" in inst.attrib: @@ -621,8 +610,7 @@ def generate_updated_xform( if data_tags: for dt in data_tags: dt.attrib["id"] = id - data_tag_present = True - except Exception as e: + except Exception: continue index += 1 @@ -685,8 +673,7 @@ def upload_media( filespec: str, odk_central: project_schemas.ODKCentral = None, ): - """ - Upload a data file to ODK Central. + """Upload a data file to ODK Central. Args: project_id (int): The ID of the project to upload a data file for. @@ -704,8 +691,7 @@ def download_media( filespec: str, odk_central: project_schemas.ODKCentral = None, ): - """ - Download a data file from ODK Central. + """Download a data file from ODK Central. Args: project_id (int): The ID of the project to download a data file for. @@ -722,8 +708,7 @@ def convert_csv( filespec: str, data: bytes, ): - """ - Convert an ODK CSV file to OSM XML and GeoJson. + """Convert an ODK CSV file to OSM XML and GeoJson. Args: filespec (str): The path to the CSV file to convert. diff --git a/src/backend/app/central/central_routes.py b/src/backend/app/central/central_routes.py index b7f92ec601..f3868b46bd 100644 --- a/src/backend/app/central/central_routes.py +++ b/src/backend/app/central/central_routes.py @@ -15,12 +15,11 @@ # You should have received a copy of the GNU General Public License # along with FMTM. If not, see . # -from loguru import logger as log - import json from fastapi import APIRouter, Depends, HTTPException from fastapi.responses import JSONResponse +from loguru import logger as log from sqlalchemy import ( column, select, @@ -43,8 +42,7 @@ @router.get("/projects") async def list_projects(): - """ - List projects in ODK Central. + """List projects in ODK Central. Returns: A dictionary containing a list of projects in ODK Central. @@ -62,8 +60,7 @@ async def create_appuser( name: str, db: Session = Depends(database.get_db), ): - """ - Create an app-user in ODK Central. + """Create an app-user in ODK Central. Args: project_id (int): The ID of the project to create an app-user for. @@ -88,12 +85,9 @@ async def create_appuser( @router.get("/list-forms") async def get_form_lists( - db: Session = Depends(database.get_db), - skip: int = 0, - limit: int = 100 + db: Session = Depends(database.get_db), skip: int = 0, limit: int = 100 ): - """ - Retrieve a list of XForms from a database. + """Retrieve a list of XForms from a database. Args: db (Session, optional): The database session. Injected by FastAPI. @@ -112,8 +106,7 @@ async def download_submissions( project_id: int, db: Session = Depends(database.get_db), ): - """ - Download submissions data from ODK Central. + """Download submissions data from ODK Central. Args: project_id (int): The ID of the project to download submissions data for. @@ -123,7 +116,11 @@ async def download_submissions( A dictionary containing the downloaded submissions data from ODK Central for the specified project. """ project = table( - "projects", column("project_name_prefix"), column("xform_title"), column("id"), column("odkid") + "projects", + column("project_name_prefix"), + column("xform_title"), + column("id"), + column("odkid"), ) where = f"id={project_id}" sql = select(project).where(text(where)) @@ -156,9 +153,8 @@ async def list_submissions( project_id: int, xml_form_id: str = None, db: Session = Depends(database.get_db), - ): - """ - List submissions data from ODK Central. +): + """List submissions data from ODK Central. Args: project_id (int): The ID of the project to list submissions data for. @@ -167,10 +163,14 @@ async def list_submissions( Returns: A list of submissions data from ODK Central for the specified parameters. - """ + """ try: project = table( - "projects", column("project_name_prefix"), column("xform_title"), column("id"), column("odkid") + "projects", + column("project_name_prefix"), + column("xform_title"), + column("id"), + column("odkid"), ) where = f"id={project_id}" sql = select(project).where(text(where)) @@ -186,7 +186,9 @@ async def list_submissions( for xform in xforms: try: - data = central_crud.download_submissions(first.odkid, xform["xml_form_id"], None, False) + data = central_crud.download_submissions( + first.odkid, xform["xml_form_id"], None, False + ) except Exception: continue if len(submissions) == 0: @@ -212,11 +214,10 @@ async def list_submissions( async def get_submission( project_id: int, xmlFormId: str = None, - submission_id: str=None, + submission_id: str = None, db: Session = Depends(database.get_db), ): - """ - Retrieve submission data from ODK Central. + """Retrieve submission data from ODK Central. Args: project_id (int): The ID of the project to retrieve submission data for. @@ -233,8 +234,14 @@ async def get_submission( try: """Download the submissions data from Central.""" project = table( - "projects", column("project_name_prefix"), column("xform_title"), column("id"), column("odkid"), - column("odk_central_url"), column("odk_central_user"), column("odk_central_password") + "projects", + column("project_name_prefix"), + column("xform_title"), + column("id"), + column("odkid"), + column("odk_central_url"), + column("odk_central_user"), + column("odk_central_password"), ) where = f"id={project_id}" sql = select(project).where(text(where)) @@ -245,19 +252,17 @@ async def get_submission( # ODK Credentials odk_credentials = project_schemas.ODKCentral( - odk_central_url = first.odk_central_url, - odk_central_user = first.odk_central_user, - odk_central_password = first.odk_central_password, - ) + odk_central_url=first.odk_central_url, + odk_central_user=first.odk_central_user, + odk_central_password=first.odk_central_password, + ) submissions = list() if xmlFormId and submission_id: - data = central_crud.download_submissions(first.odkid, - xmlFormId, - submission_id, - True, - odk_credentials) + data = central_crud.download_submissions( + first.odkid, xmlFormId, submission_id, True, odk_credentials + ) if len(submissions) == 0: submissions.append(json.loads(data[0])) if len(data) >= 2: @@ -269,11 +274,13 @@ async def get_submission( xforms = central_crud.list_odk_xforms(first.odkid) for xform in xforms: try: - data = central_crud.download_submissions(first.odkid, - xform["xml_form_id"], - None, - True, - odk_credentials) + data = central_crud.download_submissions( + first.odkid, + xform["xml_form_id"], + None, + True, + odk_credentials, + ) except Exception: continue if len(submissions) == 0: @@ -289,7 +296,6 @@ async def get_submission( for entry in range(1, len(data)): submissions.append(json.loads(data[entry])) - return submissions except Exception as e: log.error(e) diff --git a/src/backend/app/central/central_schemas.py b/src/backend/app/central/central_schemas.py index eb4adc3510..001e794b53 100644 --- a/src/backend/app/central/central_schemas.py +++ b/src/backend/app/central/central_schemas.py @@ -15,30 +15,29 @@ # You should have received a copy of the GNU General Public License # along with FMTM. If not, see . # -from loguru import logger as log - from enum import Enum +from loguru import logger as log from pydantic import BaseModel class CentralBase(BaseModel): - """ - A Pydantic model representing the base information for interacting with an ODK Central server. + """A Pydantic model representing the base information for interacting with an ODK Central server. Attributes: central_url (str): The URL of the ODK Central server. """ + central_url: str class Central(CentralBase): - """ - A Pydantic model representing additional information for interacting with an ODK Central server. + """A Pydantic model representing additional information for interacting with an ODK Central server. Attributes: geometry_geojson (str): The geometry of a GeoJSON file. """ + geometry_geojson: str # qr_code_binary: bytes @@ -48,12 +47,12 @@ class CentralOut(CentralBase): class CentralFileType(BaseModel): - """ - A Pydantic model representing an enumeration of file types that can be used with ODK Central. + """A Pydantic model representing an enumeration of file types that can be used with ODK Central. Attributes: filetype (Enum): An enumeration of file types. """ + filetype: Enum("FileType", ["xform", "extract", "zip", "xlsform", "all"]) log.debug("Hello World!") diff --git a/src/backend/app/db/db_models.py b/src/backend/app/db/db_models.py index 880eed5ed3..30d5188a83 100644 --- a/src/backend/app/db/db_models.py +++ b/src/backend/app/db/db_models.py @@ -60,8 +60,7 @@ class DbUser(Base): - """ - A SQLAlchemy model representing a user. + """A SQLAlchemy model representing a user. Attributes: id (BigInteger): The ID of the user. @@ -134,8 +133,7 @@ class DbUser(Base): class DbOrganisation(Base): - """ - A SQLAlchemy model representing an organisation. + """A SQLAlchemy model representing an organisation. Attributes: id (Integer): The ID of the organisation. @@ -168,8 +166,7 @@ class DbOrganisation(Base): class DbTeam(Base): - """ - A SQLAlchemy model representing a team. + """A SQLAlchemy model representing a team. Attributes: id (Integer): The ID of the team. @@ -177,7 +174,7 @@ class DbTeam(Base): name (String): The name of the team. logo (String): The URL of the team's logo. description (String): A description of the team. - invite_only (Boolean): Whether this team is invite-only or not. + invite_only (Boolean): Whether this team is invite-only or not. """ __tablename__ = "teams" @@ -209,8 +206,7 @@ class DbTeam(Base): class DbProjectTeams(Base): - """ - A SQLAlchemy model representing the relationship between a project and its teams. + """A SQLAlchemy model representing the relationship between a project and its teams. Attributes: team_id (Integer): The ID of the team. @@ -219,6 +215,7 @@ class DbProjectTeams(Base): project (relationship): A relationship to the project that this team is associated with. team (relationship): A relationship to the team that is associated with this project. """ + __tablename__ = "project_teams" team_id = Column(Integer, ForeignKey("teams.id"), primary_key=True) project_id = Column(Integer, ForeignKey("projects.id"), primary_key=True) @@ -233,8 +230,7 @@ class DbProjectTeams(Base): class DbProjectInfo(Base): - """ - A SQLAlchemy model representing localized information for a project. + """A SQLAlchemy model representing localized information for a project. Attributes: project_id (Integer): The ID of the project. @@ -265,8 +261,7 @@ class DbProjectInfo(Base): class DbProjectChat(Base): - """ - A SQLAlchemy model representing chat messages for a project. + """A SQLAlchemy model representing chat messages for a project. Attributes: id (BigInteger): The ID of the chat message. @@ -289,8 +284,7 @@ class DbProjectChat(Base): class DbXForm(Base): - """ - A SQLAlchemy model representing an XForm template or custom upload. + """A SQLAlchemy model representing an XForm template or custom upload. Attributes: id (Integer): The ID of the XForm. @@ -313,8 +307,7 @@ class DbXForm(Base): class DbTaskInvalidationHistory(Base): - """ - A SQLAlchemy model representing the most recent history of task invalidation and subsequent validation. + """A SQLAlchemy model representing the most recent history of task invalidation and subsequent validation. Attributes: id (Integer): The ID of this invalidation history record. @@ -327,7 +320,7 @@ class DbTaskInvalidationHistory(Base): invalidated_date (DateTime): The date and time when this task was invalidated by the invalidator user. invalidation_history_id (Integer): The ID of a previous invalidation history record for this task, if any. validator_id (BigInteger): The ID of the user who validated this task after it was invalidated, if any. - """ + """ __tablename__ = "task_invalidation_history" id = Column(Integer, primary_key=True) @@ -361,8 +354,7 @@ class DbTaskInvalidationHistory(Base): class DbTaskMappingIssue(Base): - """ - A SQLAlchemy model representing an issue with a task mapping that contributed to invalidation of the task. + """A SQLAlchemy model representing an issue with a task mapping that contributed to invalidation of the task. Attributes: id (Integer): The ID of the task mapping issue. @@ -387,8 +379,7 @@ class DbTaskMappingIssue(Base): class DbMappingIssueCategory(Base): - """ - A SQLAlchemy model representing a category of task mapping issues identified during validation. + """A SQLAlchemy model representing a category of task mapping issues identified during validation. Attributes: id (Integer): The ID of the mapping issue category. @@ -405,8 +396,7 @@ class DbMappingIssueCategory(Base): class DbTaskHistory(Base): - """ - A SQLAlchemy model representing the history associated with a task. + """A SQLAlchemy model representing the history associated with a task. Attributes: id (Integer): The ID of this task history record. @@ -418,7 +408,7 @@ class DbTaskHistory(Base): user_id (BigInteger): The ID of the user who performed this action on this task. invalidation_history (relationship): A relationship to a list of invalidation history records for this task, if any. actioned_by (relationship): A relationship to the user who performed this action on this task. - task_mapping_issues (relationship): A relationship to a list of mapping issues for this task, if any. + task_mapping_issues (relationship): A relationship to a list of mapping issues for this task, if any. """ __tablename__ = "task_history" @@ -453,13 +443,12 @@ class DbTaskHistory(Base): class DbQrCode(Base): - """ - A SQLAlchemy model representing a QR Code. + """A SQLAlchemy model representing a QR Code. Attributes: id (Integer): The ID of the QR Code. filename (String): The filename of the QR Code image file. - image (LargeBinary): The binary data for the QR Code image file. + image (LargeBinary): The binary data for the QR Code image file. """ __tablename__ = "qr_code" @@ -470,8 +459,7 @@ class DbQrCode(Base): class DbTask(Base): - """ - A SQLAlchemy model representing an individual mapping Task. + """A SQLAlchemy model representing an individual mapping Task. Attributes: id (Integer): The ID of the Task. @@ -479,7 +467,7 @@ class DbTask(Base): project_task_index (Integer): The index of this Task within its project. project_task_name (String): The name of this Task within its project. outline (Geometry("POLYGON", srid=4326)): The outline geometry for this Task in WGS84 coordinates. - """ + """ __tablename__ = "tasks" @@ -666,12 +654,13 @@ def tasks_bad(self): # Count of tasks where osm extracts is completed, used for progress bar. extract_completed_count = Column(Integer, default=0) - form_xls = Column(LargeBinary) # XLSForm file if custom xls is uploaded - form_config_file = Column(LargeBinary) # Yaml config file if custom xls is uploaded + form_xls = Column(LargeBinary) # XLSForm file if custom xls is uploaded + form_config_file = Column(LargeBinary) # Yaml config file if custom xls is uploaded + + data_extract_type = Column(String) # Type of data extract (Polygon or Centroid) + task_split_type = Column(String) # Type of split (Grid or Feature) + hashtags = Column(ARRAY(String)) # Project hashtag - data_extract_type = Column(String) # Type of data extract (Polygon or Centroid) - task_split_type = Column(String) # Type of split (Grid or Feature) - hashtags = Column(ARRAY(String)) # Project hashtag # TODO: Add index on project geometry, tried to add in __table args__ # Index("idx_geometry", DbProject.geometry, postgresql_using="gist") @@ -726,8 +715,7 @@ class DbFeatures(Base): class BackgroundTasks(Base): - """ - A SQLAlchemy model representing a background task. + """A SQLAlchemy model representing a background task. Attributes: id (String): The ID of the background task. @@ -735,6 +723,7 @@ class BackgroundTasks(Base): status (Enum): The status of the background task. message (String): A message associated with the background task. """ + __tablename__ = "background_tasks" id = Column(String, primary_key=True) @@ -745,8 +734,7 @@ class BackgroundTasks(Base): class DbUserRoles(Base): - """ - A SQLAlchemy model representing the roles of a user in various contexts. + """A SQLAlchemy model representing the roles of a user in various contexts. Attributes: user_id (BigInteger): The ID of the user. @@ -755,8 +743,9 @@ class DbUserRoles(Base): organization (relationship): A relationship to the organization that this role is associated with, if any. project_id (Integer): The ID of the project that this role is associated with, if any. project (relationship): A relationship to the project that this role is associated with, if any. - role (Enum): The role of the user in the specified context. + role (Enum): The role of the user in the specified context. """ + __tablename__ = "user_roles" user_id = Column(BigInteger, ForeignKey("users.id"), primary_key=True) @@ -769,17 +758,17 @@ class DbUserRoles(Base): class DbProjectAOI(Base): - """ - A SQLAlchemy model representing an Area of Interest for a project. + """A SQLAlchemy model representing an Area of Interest for a project. Attributes: id (Integer): The ID of the Area of Interest. project_id (String): The ID of the project that this Area of Interest is associated with. - geom (Geometry(geometry_type="GEOMETRY", srid=4326)): The geometry of this Area of Interest in WGS84 coordinates. - tags (JSONB): A JSON object containing tags for this Area of Interest. + geom (Geometry(geometry_type="GEOMETRY", srid=4326)): The geometry of this Area of Interest in WGS84 coordinates. + tags (JSONB): A JSON object containing tags for this Area of Interest. """ + __tablename__ = "project_aoi" - + id = Column(Integer, primary_key=True) project_id = Column(String) geom = Column(Geometry(geometry_type="GEOMETRY", srid=4326)) @@ -787,17 +776,17 @@ class DbProjectAOI(Base): class DbOsmLines(Base): - """ - A SQLAlchemy model representing OSM lines for a project. + """A SQLAlchemy model representing OSM lines for a project. Attributes: id (Integer): The ID of the OSM line. project_id (String): The ID of the project that this OSM line is associated with. - geom (Geometry(geometry_type="GEOMETRY", srid=4326)): The geometry of this OSM line in WGS84 coordinates. - tags (JSONB): A JSON object containing tags for this OSM line. + geom (Geometry(geometry_type="GEOMETRY", srid=4326)): The geometry of this OSM line in WGS84 coordinates. + tags (JSONB): A JSON object containing tags for this OSM line. """ + __tablename__ = "ways_line" - + id = Column(Integer, primary_key=True) project_id = Column(String) geom = Column(Geometry(geometry_type="GEOMETRY", srid=4326)) @@ -805,15 +794,15 @@ class DbOsmLines(Base): class DbBuildings(Base): - """ - A SQLAlchemy model representing buildings for a project. + """A SQLAlchemy model representing buildings for a project. Attributes: id (Integer): The ID of the building. project_id (String): The ID of the project that this building is associated with. osm_id (String): The OSM ID of this building, if any. geom (Geometry(geometry_type="GEOMETRY", srid=4326)): The geometry of this building in WGS84 coordinates. - """ + """ + __tablename__ = "ways_poly" id = Column(Integer, primary_key=True) @@ -824,8 +813,7 @@ class DbBuildings(Base): class DbTilesPath(Base): - """ - A SQLAlchemy model representing the path to an MBTiles file for a project. + """A SQLAlchemy model representing the path to an MBTiles file for a project. Attributes: id (Integer): The ID of the MBTiles path. @@ -834,10 +822,9 @@ class DbTilesPath(Base): path (String): The path to the MBTiles file. tile_source (String): The source of the tiles used to generate the MBTiles file. background_task_id (String): The ID of the background task associated with this MBTiles path. - created_at (DateTime): The date and time when this MBTiles path was created. + created_at (DateTime): The date and time when this MBTiles path was created. """ - __tablename__ = "mbtiles_path" id = Column(Integer, primary_key=True) diff --git a/src/backend/app/db/postgis_utils.py b/src/backend/app/db/postgis_utils.py index ed62fa12f2..a8657a1ba3 100644 --- a/src/backend/app/db/postgis_utils.py +++ b/src/backend/app/db/postgis_utils.py @@ -25,8 +25,7 @@ def timestamp(): - """ - Get the current UTC timestamp. + """Get the current UTC timestamp. Returns: The current UTC timestamp as a datetime object. @@ -35,8 +34,7 @@ def timestamp(): def geometry_to_geojson(geometry: Geometry, properties: str = {}, id: int = None): - """ - Convert a geometry object to a GeoJSON Feature. + """Convert a geometry object to a GeoJSON Feature. Args: geometry (Geometry): The geometry object to convert. @@ -53,14 +51,13 @@ def geometry_to_geojson(geometry: Geometry, properties: str = {}, id: int = None "geometry": mapping(shape), "properties": properties, "id": id, - "bbox":shape.bounds + "bbox": shape.bounds, } return Feature(**geojson) def get_centroid(geometry: Geometry, properties: str = {}): - """ - Get the centroid of a geometry object as a GeoJSON Feature. + """Get the centroid of a geometry object as a GeoJSON Feature. Args: geometry (Geometry): The geometry object to get the centroid of. diff --git a/src/backend/app/models/enums.py b/src/backend/app/models/enums.py index 1f3f01e036..e7784c170b 100644 --- a/src/backend/app/models/enums.py +++ b/src/backend/app/models/enums.py @@ -20,12 +20,14 @@ class StrEnum(str, Enum): - """Designed to work with string-based enumerations""" + """Designed to work with string-based enumerations.""" + pass class IntEnum(int, Enum): - """It is intended for integer-based enumerations""" + """It is intended for integer-based enumerations.""" + pass @@ -121,8 +123,7 @@ class TaskStatus(IntEnum, Enum): def verify_valid_status_update(old_status: TaskStatus, new_status: TaskStatus): - """ - Verify if the transition from the old status to the new status is valid. + """Verify if the transition from the old status to the new status is valid. Args: old_status (TaskStatus): The previous status of the task. @@ -181,8 +182,7 @@ class TaskAction(IntEnum, Enum): def is_status_change_action(task_action): - """ - Check if a given task action is related to changing the status of a task. + """Check if a given task action is related to changing the status of a task. Args: task_action: The task action to check. @@ -203,8 +203,7 @@ def is_status_change_action(task_action): def get_action_for_status_change(task_status: TaskStatus): - """ - Check if a given task action is related to changing the status of a task. + """Check if a given task action is related to changing the status of a task. Args: task_action: The task action to check. @@ -231,18 +230,16 @@ def get_action_for_status_change(task_status: TaskStatus): class TaskType(IntEnum, Enum): - """ - Enum describing different types of tasks. - """ + """Enum describing different types of tasks.""" + BUILDINGS = 0 AMENITIES = 1 OTHER = 2 class ProjectSplitStrategy(IntEnum, Enum): - """ - Enum describing different strategies for splitting projects. - """ + """Enum describing different strategies for splitting projects.""" + GRID = 0 OSM_VECTORS = 1 OTHER = 2 diff --git a/src/backend/app/models/languages_and_countries.py b/src/backend/app/models/languages_and_countries.py index 7c5104bdde..cc8d5060d4 100644 --- a/src/backend/app/models/languages_and_countries.py +++ b/src/backend/app/models/languages_and_countries.py @@ -1,6 +1,6 @@ # see https://gist.github.com/alexanderjulo/4073388 -"""List of languages and countries""" +"""List of languages and countries.""" languages = [ ("aa", "Afar"), diff --git a/src/backend/app/organization/organization_crud.py b/src/backend/app/organization/organization_crud.py index c04ce48319..77cec0a9d9 100644 --- a/src/backend/app/organization/organization_crud.py +++ b/src/backend/app/organization/organization_crud.py @@ -15,15 +15,16 @@ # You should have received a copy of the GNU General Public License # along with FMTM. If not, see . # -from loguru import logger as log - import os import random -import string -from fastapi import HTTPException, File,UploadFile import re +import string + +from fastapi import HTTPException, UploadFile +from loguru import logger as log from sqlalchemy import func from sqlalchemy.orm import Session + from ..db import db_models IMAGEDIR = "app/images/" @@ -32,8 +33,7 @@ def get_organisations( db: Session, ): - """ - Retrieve a list of organisations from the database. + """Retrieve a list of organisations from the database. Args: db (Session): SQLAlchemy database session. @@ -44,9 +44,9 @@ def get_organisations( db_organisation = db.query(db_models.DbOrganisation).all() return db_organisation + def generate_slug(text: str) -> str: - """ - Generate a slug from the given text. + """Generate a slug from the given text. This function removes special characters, replaces spaces with hyphens, and ensures a clean slug format. @@ -57,9 +57,9 @@ def generate_slug(text: str) -> str: str: The generated slug. """ # Remove special characters and replace spaces with hyphens - slug = re.sub(r'[^\w\s-]', '', text).strip().lower().replace(' ', '-') + slug = re.sub(r"[^\w\s-]", "", text).strip().lower().replace(" ", "-") # Remove consecutive hyphens - slug = re.sub(r'[-\s]+', '-', slug) + slug = re.sub(r"[-\s]+", "-", slug) return slug @@ -67,15 +67,14 @@ async def get_organisation_by_name(db: Session, name: str): # Use SQLAlchemy's query-building capabilities db_organisation = ( db.query(db_models.DbOrganisation) - .filter(func.lower(db_models.DbOrganisation.name).like(func.lower(f'%{name}%'))) + .filter(func.lower(db_models.DbOrganisation.name).like(func.lower(f"%{name}%"))) .first() ) return db_organisation async def upload_image(db: Session, file: UploadFile(None)): - """ - Upload an image file. + """Upload an image file. This function saves an uploaded image file to the specified directory and returns the filename. @@ -90,9 +89,8 @@ async def upload_image(db: Session, file: UploadFile(None)): filename = file.filename file_path = f"{IMAGEDIR}{filename}" while os.path.exists(file_path): - # Generate a random character - random_char = ''.join(random.choices(string.ascii_letters + string.digits, k=3)) + random_char = "".join(random.choices(string.ascii_letters + string.digits, k=3)) # Add the random character to the filename logo_name, extension = os.path.splitext(filename) @@ -109,9 +107,10 @@ async def upload_image(db: Session, file: UploadFile(None)): return filename -async def create_organization(db: Session, name: str, description: str, url: str, logo: UploadFile(None)): - """ - Creates a new organization with the given name, description, url, type, and logo. +async def create_organization( + db: Session, name: str, description: str, url: str, logo: UploadFile(None) +): + """Creates a new organization with the given name, description, url, type, and logo. Saves the logo file to the app/images folder. Args: @@ -125,7 +124,6 @@ async def create_organization(db: Session, name: str, description: str, url: str Returns: bool: True if organization was created successfully """ - # create new organization try: logo_name = await upload_image(db, logo) if logo else None @@ -135,7 +133,7 @@ async def create_organization(db: Session, name: str, description: str, url: str slug=generate_slug(name), description=description, url=url, - logo=logo_name + logo=logo_name, ) db.add(db_organization) @@ -151,8 +149,7 @@ async def create_organization(db: Session, name: str, description: str, url: str async def get_organisation_by_id(db: Session, id: int): - """ - Get an organization by its id. + """Get an organization by its id. Args: db (Session): database session @@ -162,22 +159,25 @@ async def get_organisation_by_id(db: Session, id: int): DbOrganisation: organization with the given id """ db_organization = ( - db.query(db_models.DbOrganisation).filter(db_models.DbOrganisation.id == id).first() + db.query(db_models.DbOrganisation) + .filter(db_models.DbOrganisation.id == id) + .first() ) return db_organization async def update_organization_info( - db: Session, - organization_id, name: str, + db: Session, + organization_id, + name: str, description: str, url: str, - logo: UploadFile - ): + logo: UploadFile, +): organization = await get_organisation_by_id(db, organization_id) if not organization: - raise HTTPException(status_code=404, detail='Organization not found') - + raise HTTPException(status_code=404, detail="Organization not found") + if name: organization.name = name if description: diff --git a/src/backend/app/organization/organization_routes.py b/src/backend/app/organization/organization_routes.py index ab03a857a2..c0abfa3ff8 100644 --- a/src/backend/app/organization/organization_routes.py +++ b/src/backend/app/organization/organization_routes.py @@ -16,7 +16,6 @@ # along with FMTM. If not, see . # -from typing import Union,Optional from fastapi import ( APIRouter, @@ -26,7 +25,6 @@ HTTPException, UploadFile, ) -from loguru import logger as log from sqlalchemy.orm import Session from ..db import database @@ -43,10 +41,8 @@ @router.get("/") def get_organisations( db: Session = Depends(database.get_db), - ): - """ - Get the list of organizations. + """Get the list of organizations. Args: db (Session): SQLAlchemy database session. @@ -54,17 +50,15 @@ def get_organisations( Returns: List[DbOrganisation]: A list of organization records from the database. """ - organizations = organization_crud.get_organisations(db) return organizations @router.get("/{organization_id}") async def get_organization_detail( - organization_id: int, - db: Session = Depends(database.get_db) + organization_id: int, db: Session = Depends(database.get_db) ): - """Get API for fetching detail about a organiation based on id""" + """Get API for fetching detail about a organiation based on id.""" organization = await organization_crud.get_organisation_by_id(db, organization_id) if not organization: raise HTTPException(status_code=404, detail="Organization not found") @@ -80,8 +74,7 @@ async def create_organization( logo: UploadFile = File(None), # Optional field for organization logo db: Session = Depends(database.get_db), # Dependency for database session ): - """ - Create an organization with the given details. + """Create an organization with the given details. Args: name (str): The name of the organization. Required. @@ -95,7 +88,9 @@ async def create_organization( """ # Check if the organization with the same already exists if await organization_crud.get_organisation_by_name(db, name=name): - raise HTTPException(status_code=400, detail=f"Organization already exists with the name {name}") + raise HTTPException( + status_code=400, detail=f"Organization already exists with the name {name}" + ) await organization_crud.create_organization(db, name, description, url, logo) @@ -104,28 +99,28 @@ async def create_organization( @router.patch("/{organization_id}/") async def update_organization( - organization_id: int, + organization_id: int, name: str = Form(None), description: str = Form(None), url: str = Form(None), logo: UploadFile = File(None), - db: Session = Depends(database.get_db) + db: Session = Depends(database.get_db), ): - """PUT API to update the details of an organization""" + """PUT API to update the details of an organization.""" try: - organization = await organization_crud.update_organization_info(db, organization_id, name, description, url, logo) + organization = await organization_crud.update_organization_info( + db, organization_id, name, description, url, logo + ) return organization except Exception as e: raise HTTPException(status_code=400, detail=f"Error updating organization: {e}") - @router.delete("/{organization_id}") async def delete_organisations( organization_id: int, db: Session = Depends(database.get_db) - ): - """ - Upload an image file. +): + """Upload an image file. This function saves an uploaded image file to the specified directory and returns the filename. @@ -136,7 +131,6 @@ async def delete_organisations( Returns: str: The filename of the uploaded image. """ - organization = await organization_crud.get_organisation_by_id(db, organization_id) if not organization: diff --git a/src/backend/app/organization/organization_schemas.py b/src/backend/app/organization/organization_schemas.py index a0f27b4f5b..bf914bac96 100644 --- a/src/backend/app/organization/organization_schemas.py +++ b/src/backend/app/organization/organization_schemas.py @@ -18,10 +18,8 @@ from pydantic import BaseModel - class Organisation(BaseModel): - """ - Represents an organization. + """Represents an organization. Attributes: slug (str): The unique identifier (slug) for the organization. @@ -29,6 +27,7 @@ class Organisation(BaseModel): description (str): The description of the organization. url (str): The URL of the organization's website. """ + # id: int slug: str name: str diff --git a/src/backend/app/pagination/pagination.py b/src/backend/app/pagination/pagination.py index b4cc8c0277..65e3181209 100644 --- a/src/backend/app/pagination/pagination.py +++ b/src/backend/app/pagination/pagination.py @@ -1,9 +1,9 @@ import math from typing import List + def get_pages_nav(total_pages: int, current_page: int) -> tuple[int, int]: - """ - Generate navigation links for pagination. + """Generate navigation links for pagination. Args: total_pages (int): Total number of pages. @@ -20,9 +20,11 @@ def get_pages_nav(total_pages: int, current_page: int) -> tuple[int, int]: prev_page = current_page - 1 return next_page, prev_page -def paginate_data(data: List[dict], page_no: int, page_size: int, total_content: int) -> dict[str, any]: - """ - Paginate a list of data. + +def paginate_data( + data: List[dict], page_no: int, page_size: int, total_content: int +) -> dict[str, any]: + """Paginate a list of data. Args: data (List[dict]): The list of data to be paginated. @@ -42,4 +44,3 @@ def paginate_data(data: List[dict], page_no: int, page_size: int, total_content: "prev_page": prev_page, "results": data, } - diff --git a/src/backend/app/projects/project_crud.py b/src/backend/app/projects/project_crud.py index 3ca7cde367..6ce9e7f66e 100644 --- a/src/backend/app/projects/project_crud.py +++ b/src/backend/app/projects/project_crud.py @@ -15,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with FMTM. If not, see . # -from loguru import logger as log - import base64 import io import json @@ -33,39 +31,35 @@ import geoalchemy2 import geojson import numpy as np +import pkg_resources import requests import segno import shapely.wkb as wkblib import sqlalchemy -import pkg_resources from fastapi import File, HTTPException, UploadFile from geoalchemy2.shape import from_shape from geojson import dump +from loguru import logger as log from osm_fieldwork import basemapper +from osm_fieldwork.json2osm import json2osm from osm_fieldwork.make_data_extract import PostgresClient from osm_fieldwork.OdkCentral import OdkAppUser from osm_fieldwork.xlsforms import xlsforms_path -from osm_fieldwork.json2osm import json2osm from shapely import wkt from shapely.geometry import MultiPolygon, Polygon, mapping, shape -from sqlalchemy import and_, column, func, inspect, select, table +from sqlalchemy import and_, column, func, inspect, select, table, text from sqlalchemy.dialects.postgresql import insert from sqlalchemy.orm import Session -from sqlalchemy import text from sqlalchemy.sql import text -from cpuinfo import get_cpu_info -from ..db import database -import concurrent.futures from ..central import central_crud from ..config import settings -from ..db import db_models +from ..db import database, db_models from ..db.postgis_utils import geometry_to_geojson, timestamp from ..tasks import tasks_crud from ..users import user_crud from . import project_schemas - QR_CODES_DIR = "QR_codes/" TASK_GEOJSON_DIR = "geojson/" TILESDIR = "/opt/tiles" @@ -79,8 +73,7 @@ def get_projects( db_objects: bool = False, hashtags: List[str] = None, ): - """ - Gets a list of projects. + """Gets a list of projects. Args: db (Session): A database session. @@ -146,8 +139,7 @@ def get_project_summaries( def get_project_by_id_w_all_tasks(db: Session, project_id: int): - """ - Gets a project by its ID and includes all tasks. + """Gets a project by its ID and includes all tasks. Args: db (Session): A database session. @@ -166,8 +158,7 @@ def get_project_by_id_w_all_tasks(db: Session, project_id: int): def get_project(db: Session, project_id: int): - """ - Gets a project by its ID. + """Gets a project by its ID. Args: db (Session): A database session. @@ -205,8 +196,7 @@ def get_project_info_by_id(db: Session, project_id: int): def delete_project_by_id(db: Session, project_id: int): - """ - Deletes a project by its ID. + """Deletes a project by its ID. Args: db (Session): A database session. @@ -264,8 +254,7 @@ def partial_update_project_info( def update_project_info( db: Session, project_metadata: project_schemas.BETAProjectUpload, project_id ): - """ - Updates a project's information. + """Updates a project's information. Args: db (Session): A database session. @@ -322,8 +311,7 @@ def update_project_info( def create_project_with_project_info( db: Session, project_metadata: project_schemas.BETAProjectUpload, project_id ): - """ - Creates a new project with the specified information. + """Creates a new project with the specified information. Args: db (Session): A database session. @@ -424,8 +412,7 @@ def upload_xlsform( name: str, category: str, ): - """ - Uploads an XLSForm to the database. + """Uploads an XLSForm to the database. Args: db (Session): A database session. @@ -462,8 +449,7 @@ def update_multi_polygon_project_boundary( project_id: int, boundary: str, ): - """ - Updates a project's boundary with multiple polygons. + """Updates a project's boundary with multiple polygons. Args: db (Session): A database session. @@ -523,12 +509,12 @@ def remove_z_dimension(coord): ) db.commit() - - # Generate project outline from tasks - query = text(f"""SELECT ST_AsText(ST_ConvexHull(ST_Collect(outline))) + query = text( + f"""SELECT ST_AsText(ST_ConvexHull(ST_Collect(outline))) FROM tasks - WHERE project_id={project_id};""") + WHERE project_id={project_id};""" + ) log.debug("Generating project outline from tasks") result = db.execute(query) @@ -547,8 +533,7 @@ def remove_z_dimension(coord): async def preview_tasks(boundary: str, dimension: int): - """ - Previews tasks by returning a list of task objects. + """Previews tasks by returning a list of task objects. Args: boundary (str): A GeoJSON string representing the boundary of the tasks to preview. @@ -654,8 +639,7 @@ def remove_z_dimension(coord): def get_osm_extracts(boundary: str): - """ - Gets OSM extracts for a specified boundary. + """Gets OSM extracts for a specified boundary. Args: boundary (str): A GeoJSON string representing the boundary to get OSM extracts for. @@ -719,15 +703,17 @@ def get_osm_extracts(boundary: str): return data + async def split_into_tasks( - db: Session, boundary: str, no_of_buildings: int, has_data_extracts:bool + db: Session, boundary: str, no_of_buildings: int, has_data_extracts: bool ): - """ - Splits a project into tasks. + """Splits a project into tasks. + Args: db (Session): A database session. boundary (str): A GeoJSON string representing the boundary of the project to split into tasks. no_of_buildings (int): The number of buildings to include in each task. + Returns: Any: A GeoJSON object containing the tasks for the specified project. """ @@ -736,32 +722,36 @@ async def split_into_tasks( all_results = [] boundary_data = [] result = [] - if outline['type'] == "FeatureCollection": + if outline["type"] == "FeatureCollection": boundary_data.extend(feature["geometry"] for feature in outline["features"]) result.extend( process_polygon(db, project_id, data, no_of_buildings, has_data_extracts) for data in boundary_data - ) + ) for inner_list in result: all_results.extend(iter(inner_list)) - elif outline['type'] == "GeometryCollection": + elif outline["type"] == "GeometryCollection": geometries = outline["geometries"] boundary_data.extend(iter(geometries)) result.extend( process_polygon(db, project_id, data, no_of_buildings, has_data_extracts) for data in boundary_data - ) + ) for inner_list in result: all_results.extend(iter(inner_list)) - elif outline['type'] == "Feature": + elif outline["type"] == "Feature": boundary_data = outline["geometry"] - result = process_polygon(db, project_id, boundary_data, no_of_buildings, has_data_extracts) + result = process_polygon( + db, project_id, boundary_data, no_of_buildings, has_data_extracts + ) all_results.extend(iter(result)) else: boundary_data = outline - result = process_polygon(db, project_id, boundary_data, no_of_buildings, has_data_extracts) + result = process_polygon( + db, project_id, boundary_data, no_of_buildings, has_data_extracts + ) all_results.extend(result) return { "type": "FeatureCollection", @@ -769,7 +759,13 @@ async def split_into_tasks( } -def process_polygon(db:Session, project_id:uuid.UUID, boundary_data:str, no_of_buildings:int, has_data_extracts: bool): +def process_polygon( + db: Session, + project_id: uuid.UUID, + boundary_data: str, + no_of_buildings: int, + has_data_extracts: bool, +): outline = shape(boundary_data) db_task = db_models.DbProjectAOI( project_id=project_id, @@ -783,43 +779,40 @@ def process_polygon(db:Session, project_id:uuid.UUID, boundary_data:str, no_of_b if not data: return None for feature in data["features"]: - feature_shape = shape(feature['geometry']) + feature_shape = shape(feature["geometry"]) wkb_element = from_shape(feature_shape, srid=4326) - if feature['properties'].get('building') == 'yes': + if feature["properties"].get("building") == "yes": db_feature = db_models.DbBuildings( - project_id=project_id, - geom=wkb_element, - tags=feature["properties"] + project_id=project_id, geom=wkb_element, tags=feature["properties"] ) db.add(db_feature) - elif 'highway' in feature['properties']: + elif "highway" in feature["properties"]: db_feature = db_models.DbOsmLines( - project_id=project_id, - geom=wkb_element, - tags=feature["properties"] + project_id=project_id, geom=wkb_element, tags=feature["properties"] ) db.add(db_feature) db.commit() else: # Remove the polygons outside of the project AOI using a parameterized query - query = text(f""" + query = text( + f""" DELETE FROM ways_poly WHERE NOT ST_Within(ST_Centroid(ways_poly.geom), (SELECT geom FROM project_aoi WHERE project_id = '{project_id}')); - """) + """ + ) result = db.execute(query) db.commit() - with open('app/db/split_algorithm.sql', 'r') as sql_file: + with open("app/db/split_algorithm.sql", "r") as sql_file: query = sql_file.read() - result = db.execute(text(query), params={'num_buildings': no_of_buildings}) + result = db.execute(text(query), params={"num_buildings": no_of_buildings}) result = result.fetchall() db.query(db_models.DbBuildings).delete() db.query(db_models.DbOsmLines).delete() db.query(db_models.DbProjectAOI).delete() db.commit() - return result[0][0]['features'] - + return result[0][0]["features"] # def update_project_boundary( @@ -897,8 +890,7 @@ def process_polygon(db:Session, project_id:uuid.UUID, boundary_data:str, no_of_b def update_project_boundary( db: Session, project_id: int, boundary: str, dimension: int ): - """ - Updates a project's boundary. + """Updates a project's boundary. Args: db (Session): A database session. @@ -909,7 +901,6 @@ def update_project_boundary( Returns: bool: True if the project's boundary was successfully updated, False otherwise. """ - db_project = get_project_by_id(db, project_id) if not db_project: log.error(f"Project {project_id} doesn't exist!") @@ -1002,8 +993,7 @@ def update_project_with_zip( task_type_prefix: str, uploaded_zip: UploadFile, ): - """ - Updates a project with data from a ZIP file. + """Updates a project with data from a ZIP file. Args: db (Session): A database session. @@ -1170,8 +1160,7 @@ def read_xlsforms( db: Session, directory: str, ): - """ - Reads a list of XLSForms from a directory. + """Reads a list of XLSForms from a directory. Args: db (Session): A database session. @@ -1186,7 +1175,7 @@ def read_xlsforms( if xls.endswith(".xls") or xls.endswith(".xlsx"): file_name = xls.split(".")[0] yaml_file_name = f"data_models/{file_name}.yaml" - if pkg_resources.resource_exists(package_name,yaml_file_name): + if pkg_resources.resource_exists(package_name, yaml_file_name): xlsforms.append(xls) else: continue @@ -1219,8 +1208,7 @@ def read_xlsforms( def get_odk_id_for_project(db: Session, project_id: int): - """ - Gets the ODK project ID for a specified project. + """Gets the ODK project ID for a specified project. Args: db (Session): A database session. @@ -1331,7 +1319,7 @@ def generate_task_files( # If app user could not be created, raise an exception. if not appuser: - project_log.error(f"Couldn't create appuser for project") + project_log.error("Couldn't create appuser for project") return False # prefix should be sent instead of name @@ -1359,7 +1347,8 @@ def generate_task_files( # Get the features for this task. # Postgis query to filter task inside this task outline and of this project # Update those features and set task_id - query = text(f"""UPDATE features + query = text( + f"""UPDATE features SET task_id={task_id} WHERE id IN ( SELECT id @@ -1368,12 +1357,14 @@ def generate_task_files( AND ST_IsValid(geometry) AND ST_IsValid('{task.outline}'::Geometry) AND ST_Contains('{task.outline}'::Geometry, ST_Centroid(geometry)) - )""") + )""" + ) result = db.execute(query) # Get the geojson of those features for this task. - query = text(f"""SELECT jsonb_build_object( + query = text( + f"""SELECT jsonb_build_object( 'type', 'FeatureCollection', 'features', jsonb_agg(feature) ) @@ -1386,13 +1377,14 @@ def generate_task_files( ) AS feature FROM features WHERE project_id={project_id} and task_id={task_id} - ) features;""") + ) features;""" + ) result = db.execute(query) features = result.fetchone()[0] - upload_media = False if features['features'] is None else True + upload_media = False if features["features"] is None else True # Update outfile containing osm extracts with the new geojson contents containing title in the properties. with open(extracts, "w") as jsonfile: @@ -1402,10 +1394,11 @@ def generate_task_files( project_log.info(f"Generating xform for task {task_id}") outfile = central_crud.generate_updated_xform(xlsform, xform, form_type) - # Create an odk xform project_log.info(f"Uploading media in {task_id}") - result = central_crud.create_odk_xform(odk_id, task_id, outfile, odk_credentials, False, upload_media) + result = central_crud.create_odk_xform( + odk_id, task_id, outfile, odk_credentials, False, upload_media + ) # result = central_crud.create_odk_xform(odk_id, task_id, outfile, odk_credentials) project_log.info(f"Updating role for app user in task {task_id}") @@ -1439,7 +1432,6 @@ def generate_task_files( return True - def generate_task_files_wrapper(project_id, task, xlsform, form_type, odk_credentials): for db in database.get_db(): generate_task_files(db, project_id, task, xlsform, form_type, odk_credentials) @@ -1469,7 +1461,7 @@ def generate_appuser_files( """ try: project_log = log.bind(task="create_project", project_id=project_id) - + project_log.info(f"Starting generate_appuser_files for project {project_id}") # Get the project table contents. @@ -1532,11 +1524,11 @@ def generate_appuser_files( # Data Extracts if extracts_contents is not None: - project_log.info(f"Uploading data extracts") + project_log.info("Uploading data extracts") upload_custom_data_extracts(db, project_id, extracts_contents) else: - project_log.info(f"Extracting Data from OSM") + project_log.info("Extracting Data from OSM") # OSM Extracts for whole project pg = PostgresClient(settings.UNDERPASS_API_URL, "underpass") @@ -1597,7 +1589,12 @@ def generate_appuser_files( for task in tasks_list: try: generate_task_files( - db, project_id, task, xlsform, form_type, odk_credentials, + db, + project_id, + task, + xlsform, + form_type, + odk_credentials, ) except Exception as e: log.warning(str(e)) @@ -1623,8 +1620,7 @@ def create_qrcode( project_name: str, odk_central_url: str = None, ): - """ - Creates a QR code for an app user. + """Creates a QR code for an app user. Args: db (Session): A database session. @@ -1704,10 +1700,10 @@ def get_task_geometry(db: Session, project_id: int): return json.dumps(feature_collection) -async def get_project_features_geojson(db:Session, project_id:int): - +async def get_project_features_geojson(db: Session, project_id: int): # Get the geojson of those features for this task. - query = text(f"""SELECT jsonb_build_object( + query = text( + f"""SELECT jsonb_build_object( 'type', 'FeatureCollection', 'features', jsonb_agg(feature) ) @@ -1721,7 +1717,8 @@ async def get_project_features_geojson(db:Session, project_id:int): FROM features WHERE project_id={project_id} ) features; - """) + """ + ) result = db.execute(query) features = result.fetchone()[0] @@ -1729,8 +1726,7 @@ async def get_project_features_geojson(db:Session, project_id:int): def create_task_grid(db: Session, project_id: int, delta: int): - """ - Creates a grid of tasks for a specified project. + """Creates a grid of tasks for a specified project. Args: db (Session): A database session. @@ -1837,8 +1833,7 @@ def create_task_grid(db: Session, project_id: int, delta: int): def get_json_from_zip(zip, filename: str, error_detail: str): - """ - Gets a JSON object from a file in a ZIP archive. + """Gets a JSON object from a file in a ZIP archive. Args: zip (ZipFile): The ZIP archive to read from. @@ -1859,8 +1854,7 @@ def get_json_from_zip(zip, filename: str, error_detail: str): def get_outline_from_geojson_file_in_zip( zip, filename: str, error_detail: str, feature_index: int = 0 ): - """ - Gets an outline from a GeoJSON file in a ZIP archive. + """Gets an outline from a GeoJSON file in a ZIP archive. Args: zip (ZipFile): The ZIP archive to read from. @@ -1889,8 +1883,7 @@ def get_outline_from_geojson_file_in_zip( def get_shape_from_json_str(feature: str, error_detail: str): - """ - Gets a shape object from a JSON string representing a feature. + """Gets a shape object from a JSON string representing a feature. Args: feature (str): A JSON string representing a feature. @@ -1911,8 +1904,7 @@ def get_shape_from_json_str(feature: str, error_detail: str): def get_dbqrcode_from_file(zip, qr_filename: str, error_detail: str): - """ - Gets a database QR code object from a file in a ZIP archive. + """Gets a database QR code object from a file in a ZIP archive. Args: zip (ZipFile): The ZIP archive to read from. @@ -1949,8 +1941,7 @@ def get_dbqrcode_from_file(zip, qr_filename: str, error_detail: str): def convert_to_app_project(db_project: db_models.DbProject): - """ - Converts a database project object to an app project object. + """Converts a database project object to an app project object. Args: db_project (db_models.DbProject): The database project object to convert. @@ -1977,8 +1968,7 @@ def convert_to_app_project(db_project: db_models.DbProject): def convert_to_app_project_info(db_project_info: db_models.DbProjectInfo): - """ - Converts a database project info object to an app project info object. + """Converts a database project info object to an app project info object. Args: db_project_info (db_models.DbProjectInfo): The database project info object to convert. @@ -1994,8 +1984,7 @@ def convert_to_app_project_info(db_project_info: db_models.DbProjectInfo): def convert_to_app_projects(db_projects: List[db_models.DbProject]): - """ - Converts a list of database project objects to a list of app project objects. + """Converts a list of database project objects to a list of app project objects. Args: db_projects (List[db_models.DbProject]): The list of database project objects to convert. @@ -2015,8 +2004,7 @@ def convert_to_app_projects(db_projects: List[db_models.DbProject]): def convert_to_project_summary(db_project: db_models.DbProject): - """ - Converts a database project object to a project summary object. + """Converts a database project object to a project summary object. Args: db_project (db_models.DbProject): The database project object to convert. @@ -2039,7 +2027,9 @@ def convert_to_project_summary(db_project: db_models.DbProject): summary.num_contributors = ( db_project.tasks_mapped + db_project.tasks_validated ) # TODO: get real number of contributors - summary.organisation_logo = db_project.organisation.logo if db_project.organisation else None + summary.organisation_logo = ( + db_project.organisation.logo if db_project.organisation else None + ) return summary else: @@ -2047,8 +2037,7 @@ def convert_to_project_summary(db_project: db_models.DbProject): def convert_to_project_summaries(db_projects: List[db_models.DbProject]): - """ - Converts a list of database project objects to a list of project summary objects. + """Converts a list of database project objects to a list of project summary objects. Args: db_projects (List[db_models.DbProject]): The list of database project objects to convert. @@ -2068,8 +2057,7 @@ def convert_to_project_summaries(db_projects: List[db_models.DbProject]): def convert_to_project_feature(db_project_feature: db_models.DbFeatures): - """ - Converts a database feature object to a project feature object. + """Converts a database feature object to a project feature object. Args: db_project_feature (db_models.DbFeatures): The database feature object to convert. @@ -2093,8 +2081,7 @@ def convert_to_project_feature(db_project_feature: db_models.DbFeatures): def convert_to_project_features(db_project_features: List[db_models.DbFeatures]): - """ - Converts a list of database feature objects to a list of project feature objects. + """Converts a list of database feature objects to a list of project feature objects. Args: db_project_features (List[db_models.DbFeatures]): The list of database feature objects to convert. @@ -2113,8 +2100,7 @@ def convert_to_project_features(db_project_features: List[db_models.DbFeatures]) def get_project_features(db: Session, project_id: int, task_id: int = None): - """ - Gets the features for a specified project and task. + """Gets the features for a specified project and task. Args: db (Session): A database session. @@ -2141,8 +2127,7 @@ def get_project_features(db: Session, project_id: int, task_id: int = None): async def get_extract_completion_count(project_id: int, db: Session): - """ - Gets the extract completion count for a specified project. + """Gets the extract completion count for a specified project. Args: db (Session): A database session. @@ -2160,8 +2145,7 @@ async def get_extract_completion_count(project_id: int, db: Session): async def get_background_task_status(task_id: uuid.UUID, db: Session): - """ - Gets the status of a background task. + """Gets the status of a background task. Args: task_id (uuid.UUID): The ID of the background task. @@ -2181,8 +2165,7 @@ async def get_background_task_status(task_id: uuid.UUID, db: Session): async def insert_background_task_into_database( db: Session, task_id: uuid.UUID, name: str = None, project_id=None ): - """ - Inserts a new background task into the database. + """Inserts a new background task into the database. Args: db (Session): A database session. @@ -2206,8 +2189,7 @@ async def insert_background_task_into_database( def update_background_task_status_in_database( db: Session, task_id: uuid.UUID, status: int, message: str = None ): - """ - Updates the status of a background task in the database. + """Updates the status of a background task in the database. Args: db (Session): A database session. @@ -2237,8 +2219,7 @@ def add_features_into_database( background_task_id: uuid.UUID, feature_type: str, ): - """ - Adds features into the database for a specified project. + """Adds features into the database for a specified project. Args: db (Session): A database session. @@ -2411,20 +2392,23 @@ async def update_project_form( # Get the features for this task. # Postgis query to filter task inside this task outline and of this project # Update those features and set task_id - query = text(f"""UPDATE features + query = text( + f"""UPDATE features SET task_id={task} WHERE id in ( - + SELECT id FROM features WHERE project_id={project_id} and ST_Intersects(geometry, '{task_obj.outline}'::Geometry) - )""") + )""" + ) result = db.execute(query) # Get the geojson of those features for this task. - query = text(f"""SELECT jsonb_build_object( + query = text( + f"""SELECT jsonb_build_object( 'type', 'FeatureCollection', 'features', jsonb_agg(feature) ) @@ -2437,7 +2421,8 @@ async def update_project_form( ) AS feature FROM features WHERE project_id={project_id} and task_id={task} - ) features;""") + ) features;""" + ) result = db.execute(query) features = result.fetchone()[0] @@ -2477,7 +2462,8 @@ async def update_odk_credentials( async def get_extracted_data_from_db(db: Session, project_id: int, outfile: str): """Get the geojson of those features for this project.""" - query = text(f"""SELECT jsonb_build_object( + query = text( + f"""SELECT jsonb_build_object( 'type', 'FeatureCollection', 'features', jsonb_agg(feature) ) @@ -2490,7 +2476,8 @@ async def get_extracted_data_from_db(db: Session, project_id: int, outfile: str) ) AS feature FROM features WHERE project_id={project_id} - ) features;""") + ) features;""" + ) result = db.execute(query) features = result.fetchone()[0] @@ -2531,7 +2518,8 @@ def get_project_tiles( db.commit() # Project Outline - query = text(f"""SELECT jsonb_build_object( + query = text( + f"""SELECT jsonb_build_object( 'type', 'FeatureCollection', 'features', jsonb_agg(feature) ) @@ -2543,7 +2531,8 @@ def get_project_tiles( ) AS feature FROM projects WHERE id={project_id} - ) features;""") + ) features;""" + ) result = db.execute(query) features = result.fetchone()[0] @@ -2593,8 +2582,7 @@ def get_project_tiles( async def get_mbtiles_list(db: Session, project_id: int): - """ - Gets a list of MBTiles for a specified project. + """Gets a list of MBTiles for a specified project. Args: db (Session): A database session. diff --git a/src/backend/app/projects/project_routes.py b/src/backend/app/projects/project_routes.py index f466f58cd6..fc2f5f5453 100644 --- a/src/backend/app/projects/project_routes.py +++ b/src/backend/app/projects/project_routes.py @@ -15,8 +15,6 @@ # You should have received a copy of the GNU General Public License # along with FMTM. If not, see . # -from loguru import logger as log - import json import os import uuid @@ -34,6 +32,7 @@ UploadFile, ) from fastapi.responses import FileResponse +from loguru import logger as log from osm_fieldwork.make_data_extract import getChoices from osm_fieldwork.xlsforms import xlsforms_path from sqlalchemy.orm import Session @@ -44,7 +43,6 @@ from ..tasks import tasks_crud from . import project_crud, project_schemas, utils - router = APIRouter( prefix="/projects", tags=["projects"], @@ -60,8 +58,7 @@ async def read_projects( limit: int = 100, db: Session = Depends(database.get_db), ): - """ - Get a list of projects. + """Get a list of projects. Args: user_id (int, optional): The ID of the user to filter projects by. Defaults to None. @@ -97,7 +94,9 @@ async def get_projet_details(project_id: int, db: Session = Depends(database.get odk_central_password=project.odk_central_password, ) - odk_details = await central_crud.get_project_full_details(project.odkid, odk_credentials) + odk_details = await central_crud.get_project_full_details( + project.odkid, odk_credentials + ) # Features count query = f"select count(*) from features where project_id={project_id} and task_id is not null" @@ -105,19 +104,18 @@ async def get_projet_details(project_id: int, db: Session = Depends(database.get features = result.fetchone()[0] return { - 'id':project_id, - 'name':odk_details['name'], - 'createdAt':odk_details['createdAt'], - 'tasks':odk_details['forms'], - 'lastSubmission':odk_details['lastSubmission'], - 'total_features':features + "id": project_id, + "name": odk_details["name"], + "createdAt": odk_details["createdAt"], + "tasks": odk_details["forms"], + "lastSubmission": odk_details["lastSubmission"], + "total_features": features, } @router.post("/near_me", response_model=project_schemas.ProjectSummary) def get_task(lat: float, long: float, user_id: int = None): - """ - Get a task near the specified location. + """Get a task near the specified location. Args: lat (float): The latitude of the location. @@ -138,8 +136,7 @@ async def read_project_summaries( limit: int = 100, db: Session = Depends(database.get_db), ): - """ - Get a list of project summaries. + """Get a list of project summaries. Args: user_id (int, optional): The ID of the user to filter projects by. Defaults to None. @@ -163,8 +160,7 @@ async def read_project_summaries( @router.get("/{project_id}", response_model=project_schemas.ProjectOut) async def read_project(project_id: int, db: Session = Depends(database.get_db)): - """ - Get a project by its ID. + """Get a project by its ID. Args: project_id (int): The ID of the project. @@ -175,7 +171,7 @@ async def read_project(project_id: int, db: Session = Depends(database.get_db)): Raises: HTTPException: If the project is not found. - + """ project = project_crud.get_project_by_id(db, project_id) if project: @@ -186,8 +182,7 @@ async def read_project(project_id: int, db: Session = Depends(database.get_db)): @router.delete("/delete/{project_id}") async def delete_project(project_id: int, db: Session = Depends(database.get_db)): - """ - Delete a project by its ID. + """Delete a project by its ID. Args: project_id (int): The ID of the project. @@ -309,8 +304,7 @@ async def update_project( project_info: project_schemas.BETAProjectUpload, db: Session = Depends(database.get_db), ): - """ - Update an existing project by its ID. + """Update an existing project by its ID. Args: id (int): The ID of the project to update. @@ -322,7 +316,7 @@ async def update_project( Raises: HTTPException: If the project is not found. - + """ project = project_crud.update_project_info(db, project_info, id) if project: @@ -337,8 +331,7 @@ async def project_partial_update( project_info: project_schemas.ProjectUpdate, db: Session = Depends(database.get_db), ): - """ - Partially update an existing project by its ID. + """Partially update an existing project by its ID. Args: id (int): The ID of the project to update. @@ -350,7 +343,7 @@ async def project_partial_update( Raises: HTTPException: If the project is not found. - + """ # Update project informations project = project_crud.partial_update_project_info(db, project_info, id) @@ -369,8 +362,7 @@ async def upload_project_boundary_with_zip( upload: UploadFile, db: Session = Depends(database.get_db), ): - """ - Upload a ZIP file with task geojson polygons and QR codes for an existing project. + """Upload a ZIP file with task geojson polygons and QR codes for an existing project. Args: project_id (int): The ID of the project to upload to. @@ -384,7 +376,7 @@ async def upload_project_boundary_with_zip( Raises: HTTPException: If there is a connection error to ODK Central. - + """ r"""Upload a ZIP with task geojson polygons and QR codes for an existing project. @@ -412,8 +404,7 @@ async def upload_custom_xls( category: str = Form(...), db: Session = Depends(database.get_db), ): - """ - Upload a custom XLSForm to the database. + """Upload a custom XLSForm to the database. Args: upload (UploadFile): The XLSForm file to upload. @@ -437,8 +428,7 @@ async def upload_multi_project_boundary( upload: UploadFile = File(...), db: Session = Depends(database.get_db), ): - """ - Upload a multi-polygon project boundary in JSON format for a specified project ID. + """Upload a multi-polygon project boundary in JSON format for a specified project ID. Args: project_id (int): The ID of the project to which the boundary is being uploaded. @@ -450,7 +440,7 @@ async def upload_multi_project_boundary( Raises: HTTPException: If the project ID does not exist in the database. - + """ log.debug( "Uploading project boundary multipolygon for " f"project ID: {project_id}" @@ -478,10 +468,9 @@ async def task_split( upload: UploadFile = File(...), no_of_buildings: int = Form(50), has_data_extracts: bool = Form(False), - db: Session = Depends(database.get_db) - ): - """ - Split a task into subtasks. + db: Session = Depends(database.get_db), +): + """Split a task into subtasks. Args: upload (UploadFile): The file to split. @@ -490,14 +479,15 @@ async def task_split( Returns: The result of splitting the task into subtasks. - - """ + """ # read entire file await upload.seek(0) content = await upload.read() - result = await project_crud.split_into_tasks(db, content, no_of_buildings, has_data_extracts) + result = await project_crud.split_into_tasks( + db, content, no_of_buildings, has_data_extracts + ) return result @@ -522,7 +512,7 @@ async def upload_project_boundary( Raises: HTTPException: If the provided file is not valid or if the project ID does not exist in the database. - + """ # Validating for .geojson File. file_name = os.path.splitext(upload.filename) @@ -619,8 +609,7 @@ async def generate_files( data_extracts: Optional[UploadFile] = File(None), db: Session = Depends(database.get_db), ): - """ - Generate required media files for tasks in the project based on the provided parameters. + """Generate required media files for tasks in the project based on the provided parameters. Args: background_tasks (BackgroundTasks): The background tasks object. @@ -635,7 +624,7 @@ async def generate_files( Raises: HTTPException: If the project ID does not exist in the database or if an invalid file is provided. - + """ log.debug(f"Generating media files tasks for project: {project_id}") contents = None @@ -666,13 +655,15 @@ async def generate_files( if config_file: config_file_name = os.path.splitext(config_file.filename) - config_file_ext = config_file_name[1] + config_file_ext = config_file_name[1] if not config_file_ext == ".yaml": - raise HTTPException(status_code=400, detail="Provide a valid .yaml config file") + raise HTTPException( + status_code=400, detail="Provide a valid .yaml config file" + ) await config_file.seek(0) config_file_contents = await config_file.read() project.form_config_file = config_file_contents - + db.commit() if data_extracts: @@ -742,8 +733,7 @@ def get_project_features( task_id: int = None, db: Session = Depends(database.get_db), ): - """ - Get all the features of a project. + """Get all the features of a project. Args: project_id (int): The project's ID. @@ -761,9 +751,7 @@ def get_project_features( async def generate_log( project_id: int, uuid: uuid.UUID, db: Session = Depends(database.get_db) ): - - """ - Get the contents of a log file in a log format. + """Get the contents of a log file in a log format. Args: project_id (int): The project's ID. @@ -794,8 +782,13 @@ async def generate_log( with open("/opt/logs/create_project.json", "r") as log_file: logs = [json.loads(line) for line in log_file] - - filtered_logs = [log.get("record",{}).get("message",None) for log in logs if log.get("record", {}).get("extra", {}).get("project_id") == project_id] + + filtered_logs = [ + log.get("record", {}).get("message", None) + for log in logs + if log.get("record", {}).get("extra", {}).get("project_id") + == project_id + ] last_50_logs = filtered_logs[-50:] logs = "\n".join(last_50_logs) @@ -812,12 +805,11 @@ async def generate_log( @router.get("/categories/") async def get_categories(): - """ - Get all the categories from osm_fieldwork. + """Get all the categories from osm_fieldwork. Returns: A list of categories and their respective forms. - + """ categories = ( getChoices() @@ -827,8 +819,7 @@ async def get_categories(): @router.post("/preview_tasks/") async def preview_tasks(upload: UploadFile = File(...), dimension: int = Form(500)): - """ - Preview tasks for a project. + """Preview tasks for a project. Args: upload (UploadFile): The boundary file to preview tasks for. @@ -839,7 +830,7 @@ async def preview_tasks(upload: UploadFile = File(...), dimension: int = Form(50 Raises: HTTPException: If an invalid file is provided. - + """ # Validating for .geojson File. file_name = os.path.splitext(upload.filename) @@ -861,11 +852,12 @@ async def preview_tasks(upload: UploadFile = File(...), dimension: int = Form(50 async def add_features( background_tasks: BackgroundTasks, upload: UploadFile = File(...), - feature_type: str = Query(..., description="Select feature type ", enum=["buildings","lines"]), + feature_type: str = Query( + ..., description="Select feature type ", enum=["buildings", "lines"] + ), db: Session = Depends(database.get_db), ): - """ - Add features to a project. + """Add features to a project. This endpoint allows you to add features to a project. @@ -900,7 +892,7 @@ async def add_features( db, features, background_task_id, - feature_type + feature_type, ) return True @@ -972,8 +964,7 @@ async def update_project_category( @router.get("/download_template/") async def download_template(category: str, db: Session = Depends(database.get_db)): - """ - Download a template based on the provided category. + """Download a template based on the provided category. Args: category (str): The category of the template. @@ -1035,19 +1026,15 @@ async def download_task_boundaries( @router.get("/features/download/") -async def download_features( - project_id: int, - db: Session = Depends(database.get_db) -): +async def download_features(project_id: int, db: Session = Depends(database.get_db)): """Downloads the features of a project as a GeoJSON file. - - Args: - project_id (int): The id of the project. - - Returns: - Response: The HTTP response object containing the downloaded file. - """ + Args: + project_id (int): The id of the project. + + Returns: + Response: The HTTP response object containing the downloaded file. + """ out = await project_crud.get_project_features_geojson(db, project_id) headers = { @@ -1144,15 +1131,16 @@ async def download_task_boundary_osm( response = Response(content=content, media_type="application/xml") return response + from sqlalchemy.sql import text + @router.get("/centroid/") async def project_centroid( - project_id:int = None, - db: Session = Depends(database.get_db), - ): - """ - Get a centroid of each projects. + project_id: int = None, + db: Session = Depends(database.get_db), +): + """Get a centroid of each projects. Parameters: project_id (int): The ID of the project. @@ -1160,11 +1148,12 @@ async def project_centroid( Returns: List[Tuple[int, str]]: A list of tuples containing the task ID and the centroid as a string. """ - - query = text(f"""SELECT id, ARRAY_AGG(ARRAY[ST_X(ST_Centroid(outline)), ST_Y(ST_Centroid(outline))]) AS centroid + query = text( + f"""SELECT id, ARRAY_AGG(ARRAY[ST_X(ST_Centroid(outline)), ST_Y(ST_Centroid(outline))]) AS centroid FROM projects WHERE {f"id={project_id}" if project_id else "1=1"} - GROUP BY id;""") + GROUP BY id;""" + ) result = db.execute(query) result_dict_list = [{"id": row[0], "centroid": row[1]} for row in result.fetchall()] diff --git a/src/backend/app/projects/project_schemas.py b/src/backend/app/projects/project_schemas.py index f8578cb6df..7efb7f8454 100644 --- a/src/backend/app/projects/project_schemas.py +++ b/src/backend/app/projects/project_schemas.py @@ -16,7 +16,7 @@ # along with FMTM. If not, see . # -from typing import List, Union, Optional +from typing import List, Optional, Union from geojson_pydantic import Feature as GeojsonFeature from pydantic import BaseModel @@ -27,8 +27,7 @@ class ODKCentral(BaseModel): - """ - Represents the configuration details for an ODK Central instance. + """Represents the configuration details for an ODK Central instance. Attributes: odk_central_url (str): The URL of the ODK Central instance. @@ -36,14 +35,14 @@ class ODKCentral(BaseModel): odk_central_password (str): The password for ODK Central. """ + odk_central_url: str odk_central_user: str odk_central_password: str class ProjectInfo(BaseModel): - """ - Basic information about a project. + """Basic information about a project. Attributes: name (str): The project's name. @@ -51,6 +50,7 @@ class ProjectInfo(BaseModel): description (str): The full description of the project. """ + name: str short_description: str description: str @@ -63,8 +63,7 @@ class ProjectUpdate(BaseModel): class BETAProjectUpload(BaseModel): - """ - Data needed to upload a new project. + """Data needed to upload a new project. Attributes: author (User): The author of the project. @@ -74,6 +73,7 @@ class BETAProjectUpload(BaseModel): hashtags (Union[List[str], None]): List of hashtags for the project. """ + author: User project_info: ProjectInfo xform_title: Union[str, None] @@ -92,8 +92,7 @@ class Feature(BaseModel): class ProjectSummary(BaseModel): - """ - Summary view of project details. + """Summary view of project details. Attributes: id (int): The project's ID. @@ -110,6 +109,7 @@ class ProjectSummary(BaseModel): hashtags (List[str]): List of project hashtags. """ + id: int = -1 priority: ProjectPriority = ProjectPriority.MEDIUM priority_str: str = priority.name @@ -127,8 +127,7 @@ class ProjectSummary(BaseModel): class ProjectBase(BaseModel): - """ - Base structure of a project. + """Base structure of a project. Attributes: id (int): The project's ID. @@ -142,6 +141,7 @@ class ProjectBase(BaseModel): hashtags (List[str]): List of project hashtags. """ + id: int odkid: int author: User @@ -156,13 +156,10 @@ class ProjectBase(BaseModel): class ProjectOut(ProjectBase): - """ - Detailed project information. + """Detailed project information. Inherits from ProjectBase and provides additional information. """ - pass - - + pass diff --git a/src/backend/app/projects/utils.py b/src/backend/app/projects/utils.py index 7d43a47127..d89b61a6d1 100644 --- a/src/backend/app/projects/utils.py +++ b/src/backend/app/projects/utils.py @@ -9,12 +9,12 @@ HTTPException, UploadFile, ) -from loguru import logger as log from sqlalchemy.orm import Session from ..db import database from . import project_crud + async def generate_files( background_tasks: BackgroundTasks, project_id: int, @@ -22,8 +22,7 @@ async def generate_files( upload: Optional[UploadFile] = File(None), db: Session = Depends(database.get_db), ): - """ - Generate required media files and tasks for a project based on the provided parameters. + """Generate required media files and tasks for a project based on the provided parameters. This function accepts a project ID, category, custom form flag, and an uploaded file as inputs. The generated files are associated with the project ID and stored in the database. @@ -43,7 +42,6 @@ async def generate_files( dict: A dictionary containing a success message and the associated task ID. """ - contents = None xform_title = None @@ -53,11 +51,11 @@ async def generate_files( status_code=428, detail=f"Project with id {project_id} does not exist" ) - project.data_extract_type = 'polygon' if extract_polygon else 'centroid' + project.data_extract_type = "polygon" if extract_polygon else "centroid" db.commit() if upload: - file_ext = 'xls' + file_ext = "xls" contents = upload # generate a unique task ID using uuid @@ -76,7 +74,7 @@ async def generate_files( contents, None, xform_title, - file_ext if upload else 'xls', + file_ext if upload else "xls", background_task_id, ) diff --git a/src/backend/app/submission/submission_crud.py b/src/backend/app/submission/submission_crud.py index 2a95ae1e8a..47a5a5985c 100644 --- a/src/backend/app/submission/submission_crud.py +++ b/src/backend/app/submission/submission_crud.py @@ -15,33 +15,29 @@ # You should have received a copy of the GNU General Public License # along with FMTM. If not, see . # -from loguru import logger as log - import asyncio -import os -import zipfile import concurrent.futures -import threading import csv import io +import json import os +import threading import zipfile -import json -from datetime import datetime +from pathlib import Path + from fastapi import HTTPException, Response from fastapi.responses import FileResponse +from loguru import logger as log +from osm_fieldwork.json2osm import JsonDump from sqlalchemy.orm import Session from ..central.central_crud import get_odk_form, get_odk_project -from ..tasks import tasks_crud from ..projects import project_crud, project_schemas -from osm_fieldwork.json2osm import JsonDump -from pathlib import Path +from ..tasks import tasks_crud def get_submission_of_project(db: Session, project_id: int, task_id: int = None): - """ - Gets the submission of project. + """Gets the submission of project. Args: db (Session): A database session. @@ -89,7 +85,6 @@ def get_submission_of_project(db: Session, project_id: int, task_id: int = None) data = [] for id in task_list: - # XML Form Id is a combination or project_name, category and task_id xml_form_id = f"{project_name}_{form_category}_{id}".split("_")[2] submission_list = xform.listSubmissions(odkid, xml_form_id) @@ -110,8 +105,7 @@ def get_submission_of_project(db: Session, project_id: int, task_id: int = None) def get_forms_of_project(db: Session, project_id: int): - """ - Gets the forms of a project. + """Gets the forms of a project. Args: db (Session): A database session. @@ -134,8 +128,7 @@ def get_forms_of_project(db: Session, project_id: int): def list_app_users_or_project(db: Session, project_id: int): - """ - Lists the app users of a project. + """Lists the app users of a project. Args: db (Session): A database session. @@ -157,8 +150,7 @@ def list_app_users_or_project(db: Session, project_id: int): def create_zip_file(files, output_file_path): - """ - Creates a zip file containing the specified files. + """Creates a zip file containing the specified files. Args: files (list): A list of file paths to include in the zip file. @@ -208,10 +200,8 @@ def create_zip_file(files, output_file_path): # return osmoutfile - async def convert_json_to_osm_xml(file_path): - """ - Converts a JSON file to an OSM XML file. + """Converts a JSON file to an OSM XML file. Args: file_path (str): The path to the JSON file to be converted. @@ -219,7 +209,6 @@ async def convert_json_to_osm_xml(file_path): Returns: str: The path to the created OSM XML file. """ - # TODO refactor to simply use json2osm(file_path) jsonin = JsonDump() infile = Path(file_path) @@ -237,12 +226,12 @@ async def process_entry_async(entry): return None if len(feature) > 0: if "lat" not in feature["attrs"]: - if 'geometry' in feature['tags']: - if type(feature['tags']['geometry']) == str: - coords = list(feature['tags']['geometry']) + if "geometry" in feature["tags"]: + if type(feature["tags"]["geometry"]) == str: + coords = list(feature["tags"]["geometry"]) else: - coords = feature['tags']['geometry']['coordinates'] - feature['attrs'] = {'lat': coords[1], 'lon': coords[0]} + coords = feature["tags"]["geometry"]["coordinates"] + feature["attrs"] = {"lat": coords[1], "lon": coords[0]} else: log.warning("Bad record! %r" % feature) return None @@ -264,8 +253,7 @@ async def write_osm_async(features): async def convert_json_to_osm(file_path): - """ - Converts a JSON file to an OSM XML file and a GeoJSON file. + """Converts a JSON file to an OSM XML file and a GeoJSON file. Args: file_path (str): The path to the JSON file to be converted. @@ -273,7 +261,6 @@ async def convert_json_to_osm(file_path): Returns: Tuple[str, str]: A tuple containing the paths to the created OSM XML and GeoJSON files. """ - # TODO refactor to simply use json2osm(file_path) jsonin = JsonDump() infile = Path(file_path) @@ -295,14 +282,14 @@ async def convert_json_to_osm(file_path): continue if len(feature) > 0: if "lat" not in feature["attrs"]: - if 'geometry' in feature['tags']: - if type(feature['tags']['geometry']) == str: - coords = list(feature['tags']['geometry']) + if "geometry" in feature["tags"]: + if type(feature["tags"]["geometry"]) == str: + coords = list(feature["tags"]["geometry"]) # del feature['tags']['geometry'] else: - coords = feature['tags']['geometry']['coordinates'] + coords = feature["tags"]["geometry"]["coordinates"] # del feature['tags']['geometry'] - feature['attrs'] = {'lat': coords[1], 'lon': coords[0]} + feature["attrs"] = {"lat": coords[1], "lon": coords[0]} else: log.warning("Bad record! %r" % feature) continue @@ -317,8 +304,7 @@ async def convert_json_to_osm(file_path): async def convert_to_osm_for_task(odk_id: int, form_id: int, xform: any): - """ - Converts submission data from ODK Central to OSM XML and GeoJSON files. + """Converts submission data from ODK Central to OSM XML and GeoJSON files. Args: odk_id (int): The ID of the ODK project. @@ -328,7 +314,6 @@ async def convert_to_osm_for_task(odk_id: int, form_id: int, xform: any): Returns: Tuple[str, str]: A tuple containing the paths to the created OSM XML and GeoJSON files. """ - # This file stores the submission data. file_path = f"/tmp/{odk_id}_{form_id}.json" @@ -346,8 +331,7 @@ async def convert_to_osm_for_task(odk_id: int, form_id: int, xform: any): async def convert_to_osm(db: Session, project_id: int, task_id: int): - """ - Converts submission data from a project to OSM XML and GeoJSON files and returns a ZIP file containing the converted files. + """Converts submission data from a project to OSM XML and GeoJSON files and returns a ZIP file containing the converted files. Args: db (Session): A database session. @@ -357,7 +341,6 @@ async def convert_to_osm(db: Session, project_id: int, task_id: int): Returns: FileResponse: A FileResponse object containing the ZIP file with the converted OSM XML and GeoJSON files. """ - project_info = project_crud.get_project(db, project_id) # Return exception if project is not found @@ -388,7 +371,7 @@ async def convert_to_osm(db: Session, project_id: int, task_id: int): # Submission JSON if task_id: submission = xform.getSubmissions(odkid, task_id, None, False, True) - submission = (json.loads(submission))['value'] + submission = (json.loads(submission))["value"] else: submission = await get_all_submissions(db, project_id) @@ -399,29 +382,30 @@ async def convert_to_osm(db: Session, project_id: int, task_id: int): jsoninfile = "/tmp/json_infile.json" # Write the submission to a file - with open(jsoninfile, 'w') as f: + with open(jsoninfile, "w") as f: f.write(json.dumps(submission)) # Convert the submission to osm xml format osmoutfile, jsonoutfile = await convert_json_to_osm(jsoninfile) if osmoutfile and jsonoutfile: - - #FIXME: Need to fix this when generating osm file + # FIXME: Need to fix this when generating osm file # Remove the extra closing tag from the end of the file - with open(osmoutfile, 'r') as f: + with open(osmoutfile, "r") as f: osmoutfile_data = f.read() # Find the last index of the closing tag - last_osm_index = osmoutfile_data.rfind('') + last_osm_index = osmoutfile_data.rfind("") # Remove the extra closing tag from the end - processed_xml_string = osmoutfile_data[:last_osm_index] + osmoutfile_data[last_osm_index + len(''):] + processed_xml_string = ( + osmoutfile_data[:last_osm_index] + + osmoutfile_data[last_osm_index + len("") :] + ) # Write the modified XML data back to the file - with open(osmoutfile, 'w') as f: + with open(osmoutfile, "w") as f: f.write(processed_xml_string) - # Add the files to the ZIP file with zipfile.ZipFile(final_zip_file_path, mode="a") as final_zip_file: final_zip_file.write(osmoutfile) @@ -430,10 +414,8 @@ async def convert_to_osm(db: Session, project_id: int, task_id: int): return FileResponse(final_zip_file_path) - def download_submission_for_project(db, project_id): - """ - Downloads submission data for a project. + """Downloads submission data for a project. Args: db (Session): A database session. @@ -442,7 +424,7 @@ def download_submission_for_project(db, project_id): Returns: None """ - print('Download submission for a project') + print("Download submission for a project") project_info = project_crud.get_project(db, project_id) @@ -466,7 +448,9 @@ def download_submission_for_project(db, project_id): xform = get_odk_form(odk_credentials) def download_submission_for_task(task_id): - log.info(f"Thread {threading.current_thread().name} - Downloading submission for Task ID {task_id}") + log.info( + f"Thread {threading.current_thread().name} - Downloading submission for Task ID {task_id}" + ) xml_form_id = f"{project_name}_{form_category}_{task_id}".split("_")[2] file = xform.getSubmissionMedia(odkid, xml_form_id) file_path = f"{project_name}_{form_category}_submission_{task_id}.zip" @@ -475,18 +459,22 @@ def download_submission_for_task(task_id): return file_path def extract_files(zip_file_path): - log.info(f"Thread {threading.current_thread().name} - Extracting files from {zip_file_path}") + log.info( + f"Thread {threading.current_thread().name} - Extracting files from {zip_file_path}" + ) with zipfile.ZipFile(zip_file_path, "r") as zip_file: extract_dir = os.path.splitext(zip_file_path)[0] zip_file.extractall(extract_dir) return [os.path.join(extract_dir, f) for f in zip_file.namelist()] - with concurrent.futures.ThreadPoolExecutor() as executor: task_list = [x.id for x in project_tasks] # Download submissions using thread pool - futures = {executor.submit(download_submission_for_task, task_id): task_id for task_id in task_list} + futures = { + executor.submit(download_submission_for_task, task_id): task_id + for task_id in task_list + } files = [] for future in concurrent.futures.as_completed(futures): @@ -494,20 +482,30 @@ def extract_files(zip_file_path): try: file_path = future.result() files.append(file_path) - log.info(f"Thread {threading.current_thread().name} - Task {task_id} - Download completed.") + log.info( + f"Thread {threading.current_thread().name} - Task {task_id} - Download completed." + ) except Exception as e: - log.error(f"Thread {threading.current_thread().name} - Error occurred while downloading submission for task {task_id}: {e}") + log.error( + f"Thread {threading.current_thread().name} - Error occurred while downloading submission for task {task_id}: {e}" + ) # Extract files using thread pool extracted_files = [] - futures = {executor.submit(extract_files, file_path): file_path for file_path in files} + futures = { + executor.submit(extract_files, file_path): file_path for file_path in files + } for future in concurrent.futures.as_completed(futures): file_path = futures[future] try: extracted_files.extend(future.result()) - log.info(f"Thread {threading.current_thread().name} - Extracted files from {file_path}") + log.info( + f"Thread {threading.current_thread().name} - Extracted files from {file_path}" + ) except Exception as e: - log.error(f"Thread {threading.current_thread().name} - Error occurred while extracting files from {file_path}: {e}") + log.error( + f"Thread {threading.current_thread().name} - Error occurred while extracting files from {file_path}: {e}" + ) # Create a new ZIP file for the extracted files final_zip_file_path = f"{project_name}_{form_category}_submissions_final.zip" @@ -536,8 +534,7 @@ async def get_all_submissions(db: Session, project_id): def get_project_submission(db: Session, project_id: int): - """ - Gets submission data for a project. + """Gets submission data for a project. Args: db (Session): A database session. @@ -571,15 +568,13 @@ def get_project_submission(db: Session, project_id: int): task_list = [x.id for x in project_tasks] for id in task_list: - xml_form_id = f"{project_name}_{form_category}_{id}".split("_")[ - 2] - file = xform.getSubmissions( - odkid, xml_form_id, None, False, True) + xml_form_id = f"{project_name}_{form_category}_{id}".split("_")[2] + file = xform.getSubmissions(odkid, xml_form_id, None, False, True) if not file: json_data = None else: json_data = json.loads(file) - json_data_value = json_data.get('value') + json_data_value = json_data.get("value") if json_data_value: submissions.extend(json_data_value) @@ -587,8 +582,7 @@ def get_project_submission(db: Session, project_id: int): def download_submission(db: Session, project_id: int, task_id: int, export_json: bool): - """ - Downloads submission data for a project. + """Downloads submission data for a project. Args: db (Session): A database session. @@ -599,7 +593,6 @@ def download_submission(db: Session, project_id: int, task_id: int, export_json: Returns: Union[FileResponse, Response]: A FileResponse object containing the downloaded submission data as a ZIP or JSON file. """ - project_info = project_crud.get_project(db, project_id) # Return empty list if project is not found @@ -633,11 +626,9 @@ def download_submission(db: Session, project_id: int, task_id: int, export_json: files = [] for id in task_list: - # XML Form Id is a combination or project_name, category and task_id # FIXME: fix xml_form_id - xml_form_id = f"{project_name}_{form_category}_{id}".split("_")[ - 2] + xml_form_id = f"{project_name}_{form_category}_{id}".split("_")[2] file = xform.getSubmissionMedia(odkid, xml_form_id) # Create a new output file for each submission @@ -661,15 +652,16 @@ def download_submission(db: Session, project_id: int, task_id: int, export_json: ] # Add the extracted file paths to the list of extracted files # Create a new ZIP file for the extracted files - final_zip_file_path = f"{project_name}_{form_category}_submissions_final.zip" + final_zip_file_path = ( + f"{project_name}_{form_category}_submissions_final.zip" + ) with zipfile.ZipFile(final_zip_file_path, mode="w") as final_zip_file: for file_path in extracted_files: final_zip_file.write(file_path) return FileResponse(final_zip_file_path) else: - xml_form_id = f"{project_name}_{form_category}_{task_id}".split("_")[ - 2] + xml_form_id = f"{project_name}_{form_category}_{task_id}".split("_")[2] file = xform.getSubmissionMedia(odkid, xml_form_id) with open(file_path, "wb") as f: f.write(file.content) @@ -685,32 +677,29 @@ def download_submission(db: Session, project_id: int, task_id: int, export_json: if task_id is None: task_list = [x.id for x in project_tasks] for id in task_list: - xml_form_id = f"{project_name}_{form_category}_{id}".split("_")[ - 2] - file = xform.getSubmissions( - odkid, xml_form_id, None, False, True) + xml_form_id = f"{project_name}_{form_category}_{id}".split("_")[2] + file = xform.getSubmissions(odkid, xml_form_id, None, False, True) if not file: json_data = None else: json_data = json.loads(file) - json_data_value = json_data.get('value') + json_data_value = json_data.get("value") if json_data_value: files.extend(json_data_value) else: - xml_form_id = f"{project_name}_{form_category}_{task_id}".split("_")[ - 2] + xml_form_id = f"{project_name}_{form_category}_{task_id}".split("_")[2] file = xform.getSubmissions(odkid, xml_form_id, None, False, True) json_data = json.loads(file) response_content = json.dumps( - files if task_id is None else json_data, indent=4).encode() + files if task_id is None else json_data, indent=4 + ).encode() return Response(content=response_content, headers=headers) def get_submission_points(db: Session, project_id: int, task_id: int = None): - """ - Gets the submission points of a project. + """Gets the submission points of a project. Args: db (Session): A database session. @@ -752,8 +741,7 @@ def get_submission_points(db: Session, project_id: int, task_id: int = None): # Open the zipfile with zipfile.ZipFile(response_file_obj, "r") as zip_ref: # Find the CSV file in the zipfile (assuming it has a .csv extension) - csv_filename = [ - f for f in zip_ref.namelist() if f.endswith(".csv")][0] + csv_filename = [f for f in zip_ref.namelist() if f.endswith(".csv")][0] # Open the CSV file with zip_ref.open(csv_filename) as csv_file: # Read the CSV data @@ -763,8 +751,7 @@ def get_submission_points(db: Session, project_id: int, task_id: int = None): # Check if the row contains the 'warmup-Latitude' and 'warmup-Longitude' columns # FIXME: fix the column names (they might not be same warmup-Latitude and warmup-Longitude) if "warmup-Latitude" in row and "warmup-Longitude" in row: - point = (row["warmup-Latitude"], - row["warmup-Longitude"]) + point = (row["warmup-Latitude"], row["warmup-Longitude"]) # Create a GeoJSON Feature object geometry.append( @@ -782,10 +769,8 @@ def get_submission_points(db: Session, project_id: int, task_id: int = None): return None -async def get_submission_count_of_a_project(db:Session, - project_id: int): - """ - Gets the submission count for a project. +async def get_submission_count_of_a_project(db: Session, project_id: int): + """Gets the submission count for a project. Args: db (Session): A database session. @@ -794,7 +779,6 @@ async def get_submission_count_of_a_project(db:Session, Returns: int: The submission count for the specified project. """ - project_info = project_crud.get_project(db, project_id) # Return empty list if project is not found @@ -820,15 +804,13 @@ async def get_submission_count_of_a_project(db:Session, task_list = [x.id for x in project_tasks] for id in task_list: - xml_form_id = f"{project_name}_{form_category}_{id}".split("_")[ - 2] - file = xform.getSubmissions( - odkid, xml_form_id, None, False, True) + xml_form_id = f"{project_name}_{form_category}_{id}".split("_")[2] + file = xform.getSubmissions(odkid, xml_form_id, None, False, True) if not file: json_data = None else: json_data = json.loads(file) - json_data_value = json_data.get('value') + json_data_value = json_data.get("value") if json_data_value: files.extend(json_data_value) diff --git a/src/backend/app/submission/submission_routes.py b/src/backend/app/submission/submission_routes.py index ba19285d3a..35f8bc70bc 100644 --- a/src/backend/app/submission/submission_routes.py +++ b/src/backend/app/submission/submission_routes.py @@ -15,17 +15,17 @@ # You should have received a copy of the GNU General Public License # along with FMTM. If not, see . # -import os import json -from fastapi import APIRouter, Depends, HTTPException, Response -from ..projects import project_crud, project_schemas -from loguru import logger as log -from sqlalchemy.orm import Session +import os + +from fastapi import APIRouter, Depends, Response from fastapi.responses import FileResponse from osm_fieldwork.odk_merge import OdkMerge from osm_fieldwork.osmfile import OsmFile -from ..projects import project_crud +from sqlalchemy.orm import Session + from ..db import database +from ..projects import project_crud from . import submission_crud router = APIRouter( @@ -42,8 +42,7 @@ async def read_submissions( task_id: int = None, db: Session = Depends(database.get_db), ): - """ - Returns the submission made in the project. + """Returns the submission made in the project. Args: project_id (int): The ID of the project. This endpoint returns the submission made in this project. @@ -61,8 +60,7 @@ async def list_forms( project_id: int, db: Session = Depends(database.get_db), ): - """ - Returns the list of forms in the odk central. + """Returns the list of forms in the odk central. Args: project_id (int): The ID of the project. This endpoint returns the list of forms in this project. @@ -79,8 +77,7 @@ async def list_app_users( project_id: int, db: Session = Depends(database.get_db), ): - """ - Returns the list of app users in a project. + """Returns the list of app users in a project. Args: project_id (int): The ID of the project. This endpoint returns the list of app users in this project. @@ -99,8 +96,7 @@ async def download_submission( export_json: bool = True, db: Session = Depends(database.get_db), ): - """ - Downloads the submission made in a project. + """Downloads the submission made in a project. Args: project_id (int): The ID of the project. This endpoint returns the submission made in this project. @@ -124,8 +120,7 @@ async def submission_points( task_id: int = None, db: Session = Depends(database.get_db), ): - """ - Returns the submission points of a project. + """Returns the submission points of a project. Args: project_id (int): The ID of the project. This endpoint returns the submission points of this project. @@ -144,9 +139,7 @@ async def convert_to_osm( task_id: int = None, db: Session = Depends(database.get_db), ): - - """ - Converts submission data to OSM format. + """Converts submission data to OSM format. Args: project_id (int): The ID of the project. This endpoint converts submission data for this project. @@ -163,9 +156,8 @@ async def convert_to_osm( async def get_submission_count( project_id: int, db: Session = Depends(database.get_db), - ): - """ - Returns the submission count for a project. +): + """Returns the submission count for a project. Args: project_id (int): The ID of the project. This endpoint returns the submission count for this project. @@ -181,9 +173,8 @@ async def get_submission_count( async def conflate_osm_date( project_id: int, db: Session = Depends(database.get_db), - ): - """ - Conflates OSM data for a project. +): + """Conflates OSM data for a project. Args: project_id (int): The ID of the project. This endpoint conflates OSM data for this project. @@ -192,7 +183,6 @@ async def conflate_osm_date( Returns: Any: The conflated OSM data for the specified project. """ - # Submission JSON submission = submission_crud.get_all_submissions(db, project_id) @@ -213,28 +203,31 @@ async def conflate_osm_date( os.remove(jsoninfile) # Write the submission to a file - with open(jsoninfile, 'w') as f: + with open(jsoninfile, "w") as f: f.write(json.dumps(submission)) # Convert the submission to osm xml format osmoutfile, jsonoutfile = await submission_crud.convert_json_to_osm(jsoninfile) # Remove the extra closing tag from the end of the file - with open(osmoutfile, 'r') as f: + with open(osmoutfile, "r") as f: osmoutfile_data = f.read() # Find the last index of the closing tag - last_osm_index = osmoutfile_data.rfind('') + last_osm_index = osmoutfile_data.rfind("") # Remove the extra closing tag from the end - processed_xml_string = osmoutfile_data[:last_osm_index] + osmoutfile_data[last_osm_index + len(''):] - + processed_xml_string = ( + osmoutfile_data[:last_osm_index] + + osmoutfile_data[last_osm_index + len("") :] + ) + # Write the modified XML data back to the file - with open(osmoutfile, 'w') as f: + with open(osmoutfile, "w") as f: f.write(processed_xml_string) odkf = OsmFile(outfile) osm = odkf.loadFile(osmoutfile) if osm: - odk_merge = OdkMerge(data_extracts_file,None) + odk_merge = OdkMerge(data_extracts_file, None) data = odk_merge.conflateData(osm) return data return [] @@ -244,7 +237,7 @@ async def conflate_osm_date( async def get_osm_xml( project_id: int, db: Session = Depends(database.get_db), - ): +): # JSON FILE PATH jsoninfile = f"/tmp/{project_id}_json_infile.json" @@ -256,22 +249,25 @@ async def get_osm_xml( submission = await submission_crud.get_all_submissions(db, project_id) # Write the submission to a file - with open(jsoninfile, 'w') as f: + with open(jsoninfile, "w") as f: f.write(json.dumps(submission)) # Convert the submission to osm xml format osmoutfile = await submission_crud.convert_json_to_osm_xml(jsoninfile) # Remove the extra closing tag from the end of the file - with open(osmoutfile, 'r') as f: + with open(osmoutfile, "r") as f: osmoutfile_data = f.read() # Find the last index of the closing tag - last_osm_index = osmoutfile_data.rfind('') + last_osm_index = osmoutfile_data.rfind("") # Remove the extra closing tag from the end - processed_xml_string = osmoutfile_data[:last_osm_index] + osmoutfile_data[last_osm_index + len(''):] + processed_xml_string = ( + osmoutfile_data[:last_osm_index] + + osmoutfile_data[last_osm_index + len("") :] + ) # Write the modified XML data back to the file - with open(osmoutfile, 'w') as f: + with open(osmoutfile, "w") as f: f.write(processed_xml_string) # Create a plain XML response diff --git a/src/backend/app/tasks/tasks_crud.py b/src/backend/app/tasks/tasks_crud.py index c82d088f4f..90d9a92481 100644 --- a/src/backend/app/tasks/tasks_crud.py +++ b/src/backend/app/tasks/tasks_crud.py @@ -15,20 +15,21 @@ # You should have received a copy of the GNU General Public License # along with FMTM. If not, see . # -from loguru import logger as log - import base64 from typing import List from fastapi import HTTPException from geoalchemy2.shape import from_shape from geojson import dump +from loguru import logger as log from osm_fieldwork.make_data_extract import PostgresClient from shapely.geometry import shape from sqlalchemy import column, select, table from sqlalchemy.orm import Session from sqlalchemy.sql import text +from app.config import settings + from ..central import central_crud from ..db import db_models from ..db.postgis_utils import geometry_to_geojson, get_centroid @@ -40,7 +41,6 @@ from ..projects import project_crud from ..tasks import tasks_schemas from ..users import user_crud -from app.config import settings async def get_task_count_in_project(db: Session, project_id: int): @@ -51,11 +51,13 @@ async def get_task_count_in_project(db: Session, project_id: int): def get_task_lists(db: Session, project_id: int): """Get a list of tasks for a project.""" - query = text(""" + query = text( + """ SELECT id FROM tasks WHERE project_id = :project_id - """) + """ + ) # Then execute the query with the desired parameter result = db.execute(query, {"project_id": project_id}) @@ -68,8 +70,7 @@ def get_task_lists(db: Session, project_id: int): def get_tasks( db: Session, project_id: int, user_id: int, skip: int = 0, limit: int = 1000 ): - """ - Get a list of tasks for a project or user. + """Get a list of tasks for a project or user. Args: db (Session): Database session. @@ -110,8 +111,7 @@ def get_task(db: Session, task_id: int, db_obj: bool = False): def update_task_status(db: Session, user_id: int, task_id: int, new_status: TaskStatus): - """ - Update the status of a task. + """Update the status of a task. Args: db (Session): Database session. @@ -125,7 +125,6 @@ def update_task_status(db: Session, user_id: int, task_id: int, new_status: Task Returns: Task: Updated Task object. """ - if not user_id: raise HTTPException(status_code=400, detail="User id required.") @@ -138,10 +137,11 @@ def update_task_status(db: Session, user_id: int, task_id: int, new_status: Task db_task = get_task(db, task_id, db_obj=True) if db_task: - if db_task.task_status in [TaskStatus.LOCKED_FOR_MAPPING, TaskStatus.LOCKED_FOR_VALIDATION]: - if not ( - user_id is not db_task.locked_by - ): + if db_task.task_status in [ + TaskStatus.LOCKED_FOR_MAPPING, + TaskStatus.LOCKED_FOR_VALIDATION, + ]: + if not (user_id is not db_task.locked_by): raise HTTPException( status_code=401, detail=f"User {user_id} with username {db_user.username} has not locked this task.", @@ -194,8 +194,7 @@ def update_qrcode( qr_id: int, project_id: int, ): - """ - Update the QR code for a task. + """Update the QR code for a task. Args: db (Session): Database session. @@ -227,8 +226,7 @@ def update_qrcode( def create_task_history_for_status_change( db_task: db_models.DbTask, new_status: TaskStatus, db_user: db_models.DbUser ): - """ - Create a task history entry for a status change. + """Create a task history entry for a status change. Args: db_task (db_models.DbTask): Database task object. @@ -268,8 +266,7 @@ def create_task_history_for_status_change( def convert_to_app_history(db_histories: List[db_models.DbTaskHistory]): - """ - Convert a list of database task history entries to application task history entries. + """Convert a list of database task history entries to application task history entries. Args: db_histories (List[db_models.DbTaskHistory]): List of database task history entries. @@ -292,8 +289,7 @@ def convert_to_app_history(db_histories: List[db_models.DbTaskHistory]): def convert_to_app_task(db_task: db_models.DbTask): - """ - Convert a database task object to an application task object. + """Convert a database task object to an application task object. Args: db_task (db_models.DbTask): Database task object. @@ -332,9 +328,7 @@ def convert_to_app_task(db_task: db_models.DbTask): log.debug("Task currently locked by user " f"{app_task.locked_by_username}") if db_task.qr_code: - log.debug( - f"QR code found for task ID {db_task.id}. Converting to base64" - ) + log.debug(f"QR code found for task ID {db_task.id}. Converting to base64") app_task.qr_code_base64 = base64.b64encode(db_task.qr_code.image) else: log.warning(f"No QR code found for task ID {db_task.id}") @@ -369,8 +363,7 @@ def get_qr_codes_for_task( db: Session, task_id: int, ): - """ - Get the QR code for a task. + """Get the QR code for a task. Args: db (Session): Database session. diff --git a/src/backend/app/tasks/tasks_routes.py b/src/backend/app/tasks/tasks_routes.py index 02fa5e8d06..477d411321 100644 --- a/src/backend/app/tasks/tasks_routes.py +++ b/src/backend/app/tasks/tasks_routes.py @@ -17,20 +17,18 @@ # import json -import asyncio from typing import List -from fastapi import APIRouter, Depends, HTTPException, UploadFile, File +from fastapi import APIRouter, Depends, File, HTTPException, UploadFile from sqlalchemy.orm import Session +from sqlalchemy.sql import text +from ..central import central_crud from ..db import database from ..models.enums import TaskStatus +from ..projects import project_crud, project_schemas from ..users import user_schemas from . import tasks_crud, tasks_schemas -from ..projects import project_crud, project_schemas -from ..central import central_crud -from sqlalchemy.sql import text - router = APIRouter( prefix="/tasks", @@ -45,9 +43,8 @@ async def read_task_list( project_id: int, limit: int = 1000, db: Session = Depends(database.get_db), - ): - """ - Get a list of tasks for a project. +): + """Get a list of tasks for a project. Args: project_id (int): Project ID. @@ -60,13 +57,12 @@ async def read_task_list( Returns: List[TaskOut]: List of TaskOut objects. """ - tasks = tasks_crud.get_tasks(db, project_id, limit) if tasks: return tasks else: raise HTTPException(status_code=404, detail="Tasks not found") - + @router.get("/", response_model=List[tasks_schemas.TaskOut]) async def read_tasks( @@ -76,8 +72,7 @@ async def read_tasks( limit: int = 1000, db: Session = Depends(database.get_db), ): - """ - Get a list of tasks for a project or user. + """Get a list of tasks for a project or user. Args: project_id (int): Project ID. @@ -106,13 +101,8 @@ async def read_tasks( @router.get("/point_on_surface") -async def get_point_on_surface( - project_id:int, - db: Session = Depends(database.get_db) - ): - - """ - Get a point on the surface of the geometry for each task of the project. +async def get_point_on_surface(project_id: int, db: Session = Depends(database.get_db)): + """Get a point on the surface of the geometry for each task of the project. Parameters: project_id (int): The ID of the project. @@ -120,12 +110,13 @@ async def get_point_on_surface( Returns: List[Tuple[int, str]]: A list of tuples containing the task ID and the centroid as a string. """ - - query = text(f""" + query = text( + f""" SELECT id, ARRAY_AGG(ARRAY[ST_X(ST_PointOnSurface(outline)), ST_Y(ST_PointOnSurface(outline))]) AS point FROM tasks WHERE project_id = {project_id} - GROUP BY id; """) + GROUP BY id; """ + ) result = db.execute(query) result_dict_list = [{"id": row[0], "point": row[1]} for row in result.fetchall()] @@ -134,8 +125,7 @@ async def get_point_on_surface( @router.post("/near_me", response_model=tasks_schemas.TaskOut) def get_task(lat: float, long: float, project_id: int = None, user_id: int = None): - """ - Get tasks near the requesting user. + """Get tasks near the requesting user. Args: lat (float): Latitude of the user's location. @@ -151,8 +141,7 @@ def get_task(lat: float, long: float, project_id: int = None, user_id: int = Non @router.get("/{task_id}", response_model=tasks_schemas.TaskOut) async def read_tasks(task_id: int, db: Session = Depends(database.get_db)): - """ - Get a task by its ID. + """Get a task by its ID. Args: task_id (int): Task ID. @@ -178,8 +167,7 @@ async def update_task_status( new_status: tasks_schemas.TaskStatusOption, db: Session = Depends(database.get_db), ): - """ - Update the status of a task. + """Update the status of a task. Args: user (user_schemas.User): User object for the logged in user. @@ -210,8 +198,7 @@ async def get_qr_code_list( task_id: int, db: Session = Depends(database.get_db), ): - """ - Get the QR code for a task. + """Get the QR code for a task. Args: task_id (int): Task ID. @@ -228,9 +215,8 @@ async def edit_task_boundary( task_id: int, boundary: UploadFile = File(...), db: Session = Depends(database.get_db), - ): - """ - Edit the boundary of a task. +): + """Edit the boundary of a task. Args: task_id (int): Task ID. @@ -240,12 +226,11 @@ async def edit_task_boundary( Returns: bool or dict or list or str or NoneType or Response or JSONResponse or HTMLResponse or RedirectResponse or StreamingResponse or FileResponse or UJSONResponse or ORJSONResponse or MsgpackResponse: Result of the boundary edit. """ - # read entire file content = await boundary.read() boundary_json = json.loads(content) - edit_boundary = await tasks_crud.edit_task_boundary(db, task_id, boundary_json) + edit_boundary = await tasks_crud.edit_task_boundary(db, task_id, boundary_json) return edit_boundary @@ -254,9 +239,8 @@ async def edit_task_boundary( async def task_features_count( project_id: int, db: Session = Depends(database.get_db), - ): - """ - Get the feature count for tasks in a project. +): + """Get the feature count for tasks in a project. Args: project_id (int): Project ID. @@ -265,33 +249,36 @@ async def task_features_count( Returns: dict or list or str or NoneType or Response or JSONResponse or HTMLResponse or RedirectResponse or StreamingResponse or FileResponse or UJSONResponse or ORJSONResponse or MsgpackResponse: Feature count for tasks in the project. """ - # Get the project object. project = project_crud.get_project(db, project_id) # ODK Credentials odk_credentials = project_schemas.ODKCentral( - odk_central_url = project.odk_central_url, - odk_central_user = project.odk_central_user, - odk_central_password = project.odk_central_password, - ) + odk_central_url=project.odk_central_url, + odk_central_user=project.odk_central_user, + odk_central_password=project.odk_central_password, + ) odk_details = central_crud.list_odk_xforms(project.odkid, odk_credentials, True) # Assemble the final data list data = [] for x in odk_details: - feature_count_query = text(f""" + feature_count_query = text( + f""" select count(*) from features where project_id = {project_id} and task_id = {x['xmlFormId']} - """) + """ + ) result = db.execute(feature_count_query) feature_count = result.fetchone() - data.append({ - 'task_id': x['xmlFormId'], - 'submission_count': x['submissions'], - 'last_submission': x['lastSubmission'], - 'feature_count': feature_count[0] - }) + data.append( + { + "task_id": x["xmlFormId"], + "submission_count": x["submissions"], + "last_submission": x["lastSubmission"], + "feature_count": feature_count[0], + } + ) - return data \ No newline at end of file + return data diff --git a/src/backend/app/tasks/tasks_schemas.py b/src/backend/app/tasks/tasks_schemas.py index 49c835b8c1..dd36cd55fc 100644 --- a/src/backend/app/tasks/tasks_schemas.py +++ b/src/backend/app/tasks/tasks_schemas.py @@ -28,8 +28,7 @@ def get_task_status_strings(): - """ - Get the task status strings. + """Get the task status strings. Returns: Enum: Enum containing the task status strings. @@ -44,29 +43,27 @@ def get_task_status_strings(): class TaskHistoryBase(BaseModel): - """ - Base model for a task history entry. + """Base model for a task history entry. Attributes: id (int): Task history ID. action_text (str): Text describing the action taken. action_date (datetime): Date and time of the action. """ + id: int action_text: str action_date: datetime class TaskHistoryOut(TaskHistoryBase): - """ - Output model for a task history entry. - """ + """Output model for a task history entry.""" + pass class TaskBasicInfo(BaseModel): - """ - Basic information about a task. + """Basic information about a task. Attributes: id (int): Task ID. @@ -77,6 +74,7 @@ class TaskBasicInfo(BaseModel): locked_by_username (str, optional): Username of the user who has locked the task. Defaults to None. task_history (List[TaskHistoryBase]): List of task history entries for the task. """ + id: int project_id: int project_task_index: int @@ -87,8 +85,7 @@ class TaskBasicInfo(BaseModel): class TaskBase(BaseModel): - """ - Base model for a task. + """Base model for a task. Attributes: id (int): Task ID. @@ -102,6 +99,7 @@ class TaskBase(BaseModel): locked_by_username (str, optional): Username of the user who has locked the task. Defaults to None. task_history (List[TaskHistoryBase]): List of task history entries for the task. """ + id: int project_id: int project_task_index: int @@ -116,13 +114,13 @@ class TaskBase(BaseModel): class Task(TaskBase): - """ - Model for a task. + """Model for a task. Attributes: qr_code_base64 (str): Base64 representation of the QR code for the task. task_status_str (TaskStatusOption): String representation of the task status. """ + # geometry_geojson: str qr_code_base64: str task_status_str: TaskStatusOption @@ -130,18 +128,17 @@ class Task(TaskBase): class TaskOut(TaskBase): - """ - Output model for a task. + """Output model for a task. Attributes: task_status_str (TaskStatusOption): String representation of the task status. """ + task_status_str: TaskStatusOption pass class TaskDetails(TaskBase): - """ - Detailed information about a task. - """ + """Detailed information about a task.""" + pass diff --git a/src/backend/app/users/user_crud.py b/src/backend/app/users/user_crud.py index bb0920062c..a807e7d29f 100644 --- a/src/backend/app/users/user_crud.py +++ b/src/backend/app/users/user_crud.py @@ -28,8 +28,7 @@ def get_users(db: Session, skip: int = 0, limit: int = 100): - """ - Get a list of users from the database. + """Get a list of users from the database. Args: db (Session): The database session. @@ -44,8 +43,7 @@ def get_users(db: Session, skip: int = 0, limit: int = 100): def get_user(db: Session, user_id: int, db_obj: bool = False): - """ - Get a user from the database by their ID. + """Get a user from the database by their ID. Args: db (Session): The database session. @@ -55,7 +53,6 @@ def get_user(db: Session, user_id: int, db_obj: bool = False): Returns: user_schemas.User: The user with the given ID. """ - db_user = db.query(db_models.DbUser).filter(db_models.DbUser.id == user_id).first() if db_obj: return db_user @@ -63,8 +60,7 @@ def get_user(db: Session, user_id: int, db_obj: bool = False): def get_user_by_username(db: Session, username: str): - """ - Get a user from the database by their username. + """Get a user from the database by their username. Args: db (Session): The database session. @@ -86,8 +82,7 @@ def get_user_by_username(db: Session, username: str): # TODO: write tests for these def convert_to_app_user(db_user: db_models.DbUser): - """ - Convert a database user object to an app user object. + """Convert a database user object to an app user object. Args: db_user (db_models.DbUser): The database user object. @@ -103,8 +98,7 @@ def convert_to_app_user(db_user: db_models.DbUser): def convert_to_app_users(db_users: List[db_models.DbUser]): - """ - Convert a list of database user objects to a list of app user objects. + """Convert a list of database user objects to a list of app user objects. Args: db_users (List[db_models.DbUser]): The list of database user objects. @@ -124,8 +118,7 @@ def convert_to_app_users(db_users: List[db_models.DbUser]): def get_user_role_by_user_id(db: Session, user_id: int): - """ - Get the role of a user from the database by their ID. + """Get the role of a user from the database by their ID. Args: db (Session): The database session. @@ -134,7 +127,6 @@ def get_user_role_by_user_id(db: Session, user_id: int): Returns: str: The role of the user with the given ID. """ - db_user_role = ( db.query(db_models.DbUserRoles) .filter(db_models.DbUserRoles.user_id == user_id) @@ -170,8 +162,7 @@ async def create_user_roles(user_role: user_schemas.UserRoles, db: Session): def get_user_by_id(db: Session, user_id: int): - """ - Get a user from the database by their ID. + """Get a user from the database by their ID. Args: db (Session): The database session. diff --git a/src/backend/app/users/user_routes.py b/src/backend/app/users/user_routes.py index 0f37cddbe8..04602b1e22 100644 --- a/src/backend/app/users/user_routes.py +++ b/src/backend/app/users/user_routes.py @@ -40,8 +40,7 @@ def get_users( limit: int = 100, db: Session = Depends(database.get_db), ): - """ - Get a list of users from the database. + """Get a list of users from the database. Args: username (str, optional): Filter users by username. Defaults to "". @@ -59,8 +58,7 @@ def get_users( @router.get("/{id}", response_model=user_schemas.UserOut) async def get_user_by_id(id: int, db: Session = Depends(database.get_db)): - """ - Get a user from the database by their ID. + """Get a user from the database by their ID. Args: id (int): The ID of the user to retrieve. @@ -97,7 +95,6 @@ async def create_user_role( Status Code 200 (OK): If the role is successfully created Status Code 400 (Bad Request): If the user is already assigned a role """ - existing_user_role = user_crud.get_user_role_by_user_id( db, user_id=user_role.user_id ) @@ -115,8 +112,7 @@ async def create_user_role( @router.get("/user-role-options/") async def get_user_roles(): - """ - Get a list of available roles for users. + """Get a list of available roles for users. Returns: dict[str,str]: A dictionary containing all available roles and their values. diff --git a/src/backend/app/users/user_schemas.py b/src/backend/app/users/user_schemas.py index 1acdbf05a6..bf2e8dc730 100644 --- a/src/backend/app/users/user_schemas.py +++ b/src/backend/app/users/user_schemas.py @@ -22,44 +22,40 @@ class UserBase(BaseModel): - """ - A base model for user data. - """ + """A base model for user data.""" + username: str class User(UserBase): - """ - A model for user data in the database. - """ + """A model for user data in the database.""" + id: int class UserOut(UserBase): - """ - A model for user data when retrieving a user from the database. - """ + """A model for user data when retrieving a user from the database.""" + id: int role: str class UserRole(BaseModel): - """ - A model for a user's role. - """ + """A model for a user's role.""" + role: str class UserRoles(BaseModel): - """ - A model for assigning a role to a user. - + """A model for assigning a role to a user. + Attributes: user_id (int): The ID of the user to assign the role to. organization_id (Optional[int]): The ID of the organization to assign the role for. Defaults to None. project_id (Optional[int]): The ID of the project to assign the role for. Defaults to None. role (str): The role to assign to the user. """ + user_id: int organization_id: Optional[int] = None project_id: Optional[int] = None diff --git a/src/frontend/.babelrc b/src/frontend/.babelrc index 88e14d6a9c..3d0837b2e3 100755 --- a/src/frontend/.babelrc +++ b/src/frontend/.babelrc @@ -1,6 +1,8 @@ { - "presets": ["@babel/preset-typescript", "@babel/preset-react", "@babel/preset-env"], - "plugins": [ - ["@babel/transform-runtime"] - ] + "presets": [ + "@babel/preset-typescript", + "@babel/preset-react", + "@babel/preset-env" + ], + "plugins": [["@babel/transform-runtime"]] } diff --git a/src/frontend/main/.prettierrc b/src/frontend/main/.prettierrc index 5d33d3bae7..d4a0fc192a 100755 --- a/src/frontend/main/.prettierrc +++ b/src/frontend/main/.prettierrc @@ -1,7 +1,7 @@ { - "semi": true, - "trailingComma": "all", - "singleQuote": true, - "printWidth": 120, - "endOfLine": "auto" -} \ No newline at end of file + "semi": true, + "trailingComma": "all", + "singleQuote": true, + "printWidth": 120, + "endOfLine": "auto" +} diff --git a/src/frontend/main/public/manifest.json b/src/frontend/main/public/manifest.json index e2bf572d18..380b5a429e 100644 --- a/src/frontend/main/public/manifest.json +++ b/src/frontend/main/public/manifest.json @@ -1,30 +1,30 @@ { - "name": "Field Mapping Tasking Manager", - "short_name": "FMTM", - "start_url": ".", - "display": "fullscreen", - "background_color": "#fff", - "description": "A project to provide tools for Open Mapping campaigns.", - "icons": [ - { - "src": "/icon-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/icon-256x256.png", - "sizes": "256x256", - "type": "image/png" - }, - { - "src": "/icon-384x384.png", - "sizes": "384x384", - "type": "image/png" - }, - { - "src": "/icon-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ] + "name": "Field Mapping Tasking Manager", + "short_name": "FMTM", + "start_url": ".", + "display": "fullscreen", + "background_color": "#fff", + "description": "A project to provide tools for Open Mapping campaigns.", + "icons": [ + { + "src": "/icon-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/icon-256x256.png", + "sizes": "256x256", + "type": "image/png" + }, + { + "src": "/icon-384x384.png", + "sizes": "384x384", + "type": "image/png" + }, + { + "src": "/icon-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ] } diff --git a/src/frontend/main/src/api/OrganizationService.ts b/src/frontend/main/src/api/OrganizationService.ts index a62f1da5d1..1aba3c4fe6 100644 --- a/src/frontend/main/src/api/OrganizationService.ts +++ b/src/frontend/main/src/api/OrganizationService.ts @@ -4,108 +4,97 @@ import { GetOrganizationDataModel, OrganizationModal } from '../models/organizat import { CommonActions } from '../store/slices/CommonSlice'; import { OrganizationAction } from '../store/slices/organizationSlice'; - function appendObjectToFormData(formData, object) { - for (const [key, value] of Object.entries(object)) { - // if (key === 'logo') { - // formData.append(key, value[0]) - // } - formData.append(key, value); - } + for (const [key, value] of Object.entries(object)) { + // if (key === 'logo') { + // formData.append(key, value[0]) + // } + formData.append(key, value); + } } export const OrganizationService: Function = (url: string, payload: OrganizationModal) => { + return async (dispatch) => { + dispatch(CommonActions.PostOrganizationLoading(true)); + + const postOrganization = async (url, payload) => { + try { + const generateApiFormData = new FormData(); + appendObjectToFormData(generateApiFormData, payload); + await axios.post(url, generateApiFormData, { + headers: { + 'Content-Type': 'multipart/form-data', + }, + }); + // const resp: HomeProjectCardModel = postOrganizationData.data; + // dispatch(CommonActions.SetOrganizationDetail(resp)) + dispatch(CommonActions.PostOrganizationLoading(false)); + } catch (error) { + dispatch(CommonActions.PostOrganizationLoading(false)); + } + }; - return async (dispatch) => { - dispatch(CommonActions.PostOrganizationLoading(true)) - - const postOrganization = async (url, payload) => { - - try { - const generateApiFormData = new FormData(); - appendObjectToFormData(generateApiFormData, payload); - await axios.post(url, generateApiFormData, - { - headers: { - "Content-Type": "multipart/form-data", - } - }); - // const resp: HomeProjectCardModel = postOrganizationData.data; - // dispatch(CommonActions.SetOrganizationDetail(resp)) - dispatch(CommonActions.PostOrganizationLoading(false)) - } catch (error) { - dispatch(CommonActions.PostOrganizationLoading(false)) - } - } - - await postOrganization(url, payload); - - } - -} + await postOrganization(url, payload); + }; +}; export const OrganizationDataService: Function = (url: string) => { - return async (dispatch) => { - dispatch(OrganizationAction.GetOrganizationDataLoading(true)) - const getOrganizationData = async (url) => { - try { - const getOrganizationDataResponse = await axios.get(url); - const response: GetOrganizationDataModel = getOrganizationDataResponse.data; - dispatch(OrganizationAction.GetOrganizationsData(response)) - } catch (error) { - dispatch(OrganizationAction.GetOrganizationDataLoading(false)) - } - } - await getOrganizationData(url); - } -} - -export const PostOrganizationDataService:Function = (url: string, payload: any) => { - return async (dispatch) => { - dispatch(OrganizationAction.PostOrganizationDataLoading(true)); - - const postOrganizationData = async (url, payload) => { - dispatch(OrganizationAction.SetOrganizationFormData(payload)) - - try { - const generateApiFormData = new FormData(); - appendObjectToFormData(generateApiFormData, payload); - - const postOrganizationData = await axios.post( - url, - payload, - { - headers: { - 'Content-Type': 'multipart/form-data', - }, - } - ); - - const resp: HomeProjectCardModel = postOrganizationData.data; - dispatch(OrganizationAction.PostOrganizationDataLoading(false)) - dispatch(OrganizationAction.postOrganizationData(resp)) - dispatch( - CommonActions.SetSnackBar({ - open: true, - message: 'Organization Successfully Created.', - variant: "success", - duration: 2000, - }) - ); - } catch (error:any) { - dispatch( - CommonActions.SetSnackBar({ - open: true, - message: error.response.data.detail, - variant: "error", - duration: 2000, - }) - ); - dispatch(OrganizationAction.PostOrganizationDataLoading(false)) - - } - }; - - await postOrganizationData(url, payload); + return async (dispatch) => { + dispatch(OrganizationAction.GetOrganizationDataLoading(true)); + const getOrganizationData = async (url) => { + try { + const getOrganizationDataResponse = await axios.get(url); + const response: GetOrganizationDataModel = getOrganizationDataResponse.data; + dispatch(OrganizationAction.GetOrganizationsData(response)); + } catch (error) { + dispatch(OrganizationAction.GetOrganizationDataLoading(false)); + } }; -}; \ No newline at end of file + await getOrganizationData(url); + }; +}; + +export const PostOrganizationDataService: Function = (url: string, payload: any) => { + return async (dispatch) => { + dispatch(OrganizationAction.PostOrganizationDataLoading(true)); + + const postOrganizationData = async (url, payload) => { + dispatch(OrganizationAction.SetOrganizationFormData(payload)); + + try { + const generateApiFormData = new FormData(); + appendObjectToFormData(generateApiFormData, payload); + + const postOrganizationData = await axios.post(url, payload, { + headers: { + 'Content-Type': 'multipart/form-data', + }, + }); + + const resp: HomeProjectCardModel = postOrganizationData.data; + dispatch(OrganizationAction.PostOrganizationDataLoading(false)); + dispatch(OrganizationAction.postOrganizationData(resp)); + dispatch( + CommonActions.SetSnackBar({ + open: true, + message: 'Organization Successfully Created.', + variant: 'success', + duration: 2000, + }), + ); + } catch (error: any) { + dispatch( + CommonActions.SetSnackBar({ + open: true, + message: error.response.data.detail, + variant: 'error', + duration: 2000, + }), + ); + dispatch(OrganizationAction.PostOrganizationDataLoading(false)); + } + }; + + await postOrganizationData(url, payload); + }; +}; diff --git a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js index 23dab94e14..dec28db24b 100644 --- a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js +++ b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/LayerSwitcher/index.js @@ -6,7 +6,7 @@ import LayerGroup from 'ol/layer/Group'; import LayerTile from 'ol/layer/Tile'; import SourceOSM from 'ol/source/OSM'; import LayerSwitcher from 'ol-layerswitcher'; -import React,{ useEffect } from 'react'; +import React, { useEffect } from 'react'; import { XYZ } from 'ol/source'; @@ -126,7 +126,6 @@ const monochromeMidNight = (visible = false) => }), }); - const LayerSwitcherControl = ({ map, visible = 'osm' }) => { useEffect(() => { if (!map) return; diff --git a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Layers/VectorTileLayer.js b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Layers/VectorTileLayer.js index bd4afdeaa4..c7cd0d7f45 100644 --- a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Layers/VectorTileLayer.js +++ b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Layers/VectorTileLayer.js @@ -1,4 +1,4 @@ -import React,{ useEffect, useMemo } from 'react'; +import React, { useEffect, useMemo } from 'react'; // import * as olExtent from 'ol/extent'; import VectorTile from 'ol/layer/VectorTile'; import MVT from 'ol/format/MVT'; diff --git a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Popup/popup.css b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Popup/popup.css index bdd5110d88..6a5112f811 100644 --- a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Popup/popup.css +++ b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Popup/popup.css @@ -16,7 +16,7 @@ .ol-popup:before { top: 100%; border: solid transparent; - content: " "; + content: ' '; height: 0; width: 0; position: absolute; @@ -45,5 +45,5 @@ } .ol-popup-closer:after { - content: "✖"; -}/*# sourceMappingURL=popup.css.map */ \ No newline at end of file + content: '✖'; +} /*# sourceMappingURL=popup.css.map */ diff --git a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Popup/popup.scss b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Popup/popup.scss index 2890e1b352..1e8ca3f0d8 100644 --- a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Popup/popup.scss +++ b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/Popup/popup.scss @@ -4,7 +4,7 @@ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); // padding: 15px; border-radius: 20px; - border: 1px solid #BDBDBD; + border: 1px solid #bdbdbd; min-height: fit-content; // top: 6px; margin-top: 12px; diff --git a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/map.css b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/map.css index d84aeb99db..a1fcd582f9 100644 --- a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/map.css +++ b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/map.css @@ -86,12 +86,12 @@ border-radius: 5px !important; } .layer-switcher button::before { - font-family: "Material Icons"; - content: "layers"; + font-family: 'Material Icons'; + content: 'layers'; position: relative; top: -3px; } .ol-attribution { display: none !important; -}/*# sourceMappingURL=map.css.map */ \ No newline at end of file +} /*# sourceMappingURL=map.css.map */ diff --git a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/map.scss b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/map.scss index 4e6b38ebf0..8f38f9f611 100644 --- a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/map.scss +++ b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/map.scss @@ -1,16 +1,15 @@ - @keyframes blink { - 0% { - opacity: 1; - } - 50% { - opacity: 0; - } - 100% { - opacity: 1; - } + 0% { + opacity: 1; + } + 50% { + opacity: 0; } - + 100% { + opacity: 1; + } +} + .blink { - animation: blink 1s infinite; -} \ No newline at end of file + animation: blink 1s infinite; +} diff --git a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/useOLMap/index.js b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/useOLMap/index.js index 487a5b80c8..8881769ee8 100644 --- a/src/frontend/main/src/components/MapComponent/OpenLayersComponent/useOLMap/index.js +++ b/src/frontend/main/src/components/MapComponent/OpenLayersComponent/useOLMap/index.js @@ -1,5 +1,5 @@ /* eslint-disable consistent-return */ -import React,{ useRef, useState, useEffect } from 'react'; +import React, { useRef, useState, useEffect } from 'react'; import Map from 'ol/Map'; import { View } from 'ol'; import * as olExtent from 'ol/extent'; diff --git a/src/frontend/main/src/components/MapLegends.jsx b/src/frontend/main/src/components/MapLegends.jsx index f269ff2fd6..8777d7fc53 100755 --- a/src/frontend/main/src/components/MapLegends.jsx +++ b/src/frontend/main/src/components/MapLegends.jsx @@ -1,68 +1,68 @@ -import React from "react"; +import React from 'react'; import CoreModules from 'fmtm/CoreModules'; import AssetModules from 'fmtm/AssetModules'; const MapLegends = ({ direction, spacing, iconBtnProps, defaultTheme, valueStatus }) => { - - const MapDetails = [ - { - value: 'Ready', - color: defaultTheme.palette.mapFeatureColors.ready, - status: 'none' - }, - { - value: 'Locked For Mapping', - color: defaultTheme.palette.mapFeatureColors.locked_for_mapping, - status: 'lock' - }, - { - value: 'Locked For Validation', - color: defaultTheme.palette.mapFeatureColors.locked_for_validation, - status: 'lock' - }, - { - value: 'Ready For Validation', - color: defaultTheme.palette.mapFeatureColors.mapped, - status: 'none' - }, - { - value: 'Validated', - color: defaultTheme.palette.mapFeatureColors.validated, - status: 'none' - }, - { - value: 'Bad', - color: defaultTheme.palette.mapFeatureColors.bad, - status: 'none' - }, - { - value: 'More mapping needed', - color: defaultTheme.palette.mapFeatureColors.invalidated, - status: 'none' - } - ] - return ( - - { - MapDetails.map((data, index) => { - return ( - - - - - { - valueStatus && - - {data.value} - - - } - - ) - }) - } - - ) -} + const MapDetails = [ + { + value: 'Ready', + color: defaultTheme.palette.mapFeatureColors.ready, + status: 'none', + }, + { + value: 'Locked For Mapping', + color: defaultTheme.palette.mapFeatureColors.locked_for_mapping, + status: 'lock', + }, + { + value: 'Locked For Validation', + color: defaultTheme.palette.mapFeatureColors.locked_for_validation, + status: 'lock', + }, + { + value: 'Ready For Validation', + color: defaultTheme.palette.mapFeatureColors.mapped, + status: 'none', + }, + { + value: 'Validated', + color: defaultTheme.palette.mapFeatureColors.validated, + status: 'none', + }, + { + value: 'Bad', + color: defaultTheme.palette.mapFeatureColors.bad, + status: 'none', + }, + { + value: 'More mapping needed', + color: defaultTheme.palette.mapFeatureColors.invalidated, + status: 'none', + }, + ]; + return ( + + {MapDetails.map((data, index) => { + return ( + + + + + {valueStatus && ( + + {data.value} + + )} + + ); + })} + + ); +}; export default MapLegends; diff --git a/src/frontend/main/src/components/ProjectMap/ProjectMap.jsx b/src/frontend/main/src/components/ProjectMap/ProjectMap.jsx index 77585d180a..cf6ae604b7 100644 --- a/src/frontend/main/src/components/ProjectMap/ProjectMap.jsx +++ b/src/frontend/main/src/components/ProjectMap/ProjectMap.jsx @@ -1,30 +1,24 @@ -import React, { useState } from "react"; -import CoreModules from "fmtm/CoreModules"; -import { useOLMap } from "../MapComponent/OpenLayersComponent"; -import { MapContainer as MapComponent } from "../MapComponent/OpenLayersComponent"; -import LayerSwitcherControl from "../MapComponent/OpenLayersComponent/LayerSwitcher/index.js"; -import { VectorLayer } from "../MapComponent/OpenLayersComponent/Layers"; +import React, { useState } from 'react'; +import CoreModules from 'fmtm/CoreModules'; +import { useOLMap } from '../MapComponent/OpenLayersComponent'; +import { MapContainer as MapComponent } from '../MapComponent/OpenLayersComponent'; +import LayerSwitcherControl from '../MapComponent/OpenLayersComponent/LayerSwitcher/index.js'; +import { VectorLayer } from '../MapComponent/OpenLayersComponent/Layers'; const basicGeojsonTemplate = { - type: "FeatureCollection", + type: 'FeatureCollection', features: [], }; const ProjectMap = ({}) => { - const defaultTheme = CoreModules.useAppSelector( - (state) => state.theme.hotTheme - ); + const defaultTheme = CoreModules.useAppSelector((state) => state.theme.hotTheme); const { mapRef, map } = useOLMap({ // center: fromLonLat([85.3, 27.7]), center: [0, 0], zoom: 4, maxZoom: 25, }); - const projectTaskBoundries = CoreModules.useAppSelector( - (state) => state.project.projectTaskBoundries - ); - const projectBuildingGeojson = CoreModules.useAppSelector( - (state) => state.project.projectBuildingGeojson - ); + const projectTaskBoundries = CoreModules.useAppSelector((state) => state.project.projectTaskBoundries); + const projectBuildingGeojson = CoreModules.useAppSelector((state) => state.project.projectBuildingGeojson); const [projectBoundaries, setProjectBoundaries] = useState(null); const [buildingBoundaries, setBuildingBoundaries] = useState(null); @@ -55,20 +49,20 @@ const ProjectMap = ({}) => { setBuildingBoundaries(buildingGeojsonFeatureCollection); } return ( - + -
+
@@ -96,9 +90,7 @@ const ProjectMap = ({}) => { zIndex={5} /> )} - {buildingBoundaries?.type && ( - - )} + {buildingBoundaries?.type && } {/* )} */}
diff --git a/src/frontend/main/src/components/TasksMap/TasksMap.jsx b/src/frontend/main/src/components/TasksMap/TasksMap.jsx index 0f7e0b622b..78322e2f3b 100644 --- a/src/frontend/main/src/components/TasksMap/TasksMap.jsx +++ b/src/frontend/main/src/components/TasksMap/TasksMap.jsx @@ -1,16 +1,14 @@ -import React from "react"; -import useOLMap from "../../hooks/useOlMap"; -import { MapContainer as MapComponent } from "../MapComponent/OpenLayersComponent"; -import LayerSwitcherControl from "../MapComponent/OpenLayersComponent/LayerSwitcher/index.js"; -import { VectorLayer } from "../MapComponent/OpenLayersComponent/Layers"; +import React from 'react'; +import useOLMap from '../../hooks/useOlMap'; +import { MapContainer as MapComponent } from '../MapComponent/OpenLayersComponent'; +import LayerSwitcherControl from '../MapComponent/OpenLayersComponent/LayerSwitcher/index.js'; +import { VectorLayer } from '../MapComponent/OpenLayersComponent/Layers'; function elastic(t) { - return ( - Math.pow(2, -10 * t) * Math.sin(((t - 0.075) * (2 * Math.PI)) / 0.3) + 1 - ); + return Math.pow(2, -10 * t) * Math.sin(((t - 0.075) * (2 * Math.PI)) / 0.3) + 1; } const basicGeojsonTemplate = { - type: "FeatureCollection", + type: 'FeatureCollection', features: [], }; const TasksMap = ({ projectTaskBoundries, projectBuildingGeojson }) => { @@ -23,17 +21,17 @@ const TasksMap = ({ projectTaskBoundries, projectBuildingGeojson }) => { zoom: 4, maxZoom: 25, }); - console.log(projectTaskBoundries, "projectTaskBoundries"); + console.log(projectTaskBoundries, 'projectTaskBoundries'); return ( -
+
diff --git a/src/frontend/main/src/components/createproject/validation/DefineTaskValidation.tsx b/src/frontend/main/src/components/createproject/validation/DefineTaskValidation.tsx index 23ec348748..83027d4c25 100644 --- a/src/frontend/main/src/components/createproject/validation/DefineTaskValidation.tsx +++ b/src/frontend/main/src/components/createproject/validation/DefineTaskValidation.tsx @@ -1,30 +1,27 @@ - interface ProjectValues { - splitting_algorithm: string; - dimension: number; + splitting_algorithm: string; + dimension: number; } interface ValidationErrors { - splitting_algorithm?: string; - dimension?: string; + splitting_algorithm?: string; + dimension?: string; } function DefineTaskValidation(values: ProjectValues) { - const errors: ValidationErrors = {}; - - if (!values?.splitting_algorithm) { - errors.splitting_algorithm = 'Splitting Algorithm is Required.'; - } - if (values?.splitting_algorithm === 'Divide on Square' && !values?.dimension) { - errors.dimension = 'Dimension is Required.'; - } - if (values?.splitting_algorithm === 'Divide on Square' && values?.dimension && values.dimension < 9) { - errors.dimension = 'Dimension should be greater than 10 or equal to 10.'; - } - + const errors: ValidationErrors = {}; + if (!values?.splitting_algorithm) { + errors.splitting_algorithm = 'Splitting Algorithm is Required.'; + } + if (values?.splitting_algorithm === 'Divide on Square' && !values?.dimension) { + errors.dimension = 'Dimension is Required.'; + } + if (values?.splitting_algorithm === 'Divide on Square' && values?.dimension && values.dimension < 9) { + errors.dimension = 'Dimension should be greater than 10 or equal to 10.'; + } - console.log(errors); - return errors; + console.log(errors); + return errors; } export default DefineTaskValidation; diff --git a/src/frontend/main/src/components/createproject/validation/SelectFormValidation.tsx b/src/frontend/main/src/components/createproject/validation/SelectFormValidation.tsx index 29af16990f..af4b0b2b97 100644 --- a/src/frontend/main/src/components/createproject/validation/SelectFormValidation.tsx +++ b/src/frontend/main/src/components/createproject/validation/SelectFormValidation.tsx @@ -1,4 +1,3 @@ - interface ProjectValues { xform_title: string; form_ways: string; @@ -18,7 +17,6 @@ function SelectFormValidation(values: ProjectValues) { errors.form_ways = 'Form Selection is Required.'; } - console.log(errors); return errors; } diff --git a/src/frontend/main/src/components/home/ProjectCardSkeleton.tsx b/src/frontend/main/src/components/home/ProjectCardSkeleton.tsx index 19ecb1c7ed..ef1d1c0174 100755 --- a/src/frontend/main/src/components/home/ProjectCardSkeleton.tsx +++ b/src/frontend/main/src/components/home/ProjectCardSkeleton.tsx @@ -1,72 +1,68 @@ -import React from "react"; +import React from 'react'; import CoreModules from '../../shared/CoreModules'; // Skeleton card main purpose is to perfom loading in case of any delay in retrieving project const ProjectCardSkeleton = ({ cardsPerRow, defaultTheme }) => { - + return cardsPerRow.map((data, index) => { return ( - - cardsPerRow.map((data, index) => { - return ( -
- -
-
- - - - - -
-
- - - -
-
- -
-
- - - -
-
- - - - - - -
-
- - - -
-
-
- - ) - }) - ) -} +
+
+
+ + + +
+
+ + + +
+
+
+ + + +
+
+ + + + + +
+
+ + + +
+
+
+ ); + }); +}; export default ProjectCardSkeleton; diff --git a/src/frontend/main/src/constants/EditProjectSidebarContent.ts b/src/frontend/main/src/constants/EditProjectSidebarContent.ts index 993fd036a9..cd93e9fcbc 100644 --- a/src/frontend/main/src/constants/EditProjectSidebarContent.ts +++ b/src/frontend/main/src/constants/EditProjectSidebarContent.ts @@ -1,27 +1,26 @@ interface ISidebarContent { - id: number; - name: string; - slug: string; - type?: string; + id: number; + name: string; + slug: string; + type?: string; } - const SidebarContent: ISidebarContent[] = [ - { - id: 1, - name: 'Project Description', - slug: 'project-description' - }, - { - id: 2, - name: 'Form Update', - slug: 'form-update' - }, - { - id: 3, - name: 'Update Project Boundary', - slug: 'update-project-boundary' - }, -] + { + id: 1, + name: 'Project Description', + slug: 'project-description', + }, + { + id: 2, + name: 'Form Update', + slug: 'form-update', + }, + { + id: 3, + name: 'Update Project Boundary', + slug: 'update-project-boundary', + }, +]; -export default SidebarContent \ No newline at end of file +export default SidebarContent; diff --git a/src/frontend/main/src/hooks/OnScroll.tsx b/src/frontend/main/src/hooks/OnScroll.tsx index 32c9296c7e..7228a66d80 100755 --- a/src/frontend/main/src/hooks/OnScroll.tsx +++ b/src/frontend/main/src/hooks/OnScroll.tsx @@ -1,27 +1,24 @@ -import React, { useEffect, useState } from "react"; +import React, { useEffect, useState } from 'react'; export default function OnScroll(element, dep) { - - const [scrollTop, setScrollTop] = useState(0); - useEffect(() => { - const doc = document.getElementsByClassName('mainview')[0] - - const handleScroll = (event) => { - if (element != undefined) { - setScrollTop(element.getTargetElement().getBoundingClientRect().y) - } - }; - - doc.addEventListener('scroll', handleScroll); - window.addEventListener('resize', handleScroll) - - return () => { - doc.removeEventListener('scroll', handleScroll); - window.removeEventListener('resize', handleScroll) - - }; - }, [element, dep]); - - - return { y: scrollTop } + const [scrollTop, setScrollTop] = useState(0); + useEffect(() => { + const doc = document.getElementsByClassName('mainview')[0]; + + const handleScroll = (event) => { + if (element != undefined) { + setScrollTop(element.getTargetElement().getBoundingClientRect().y); + } + }; + + doc.addEventListener('scroll', handleScroll); + window.addEventListener('resize', handleScroll); + + return () => { + doc.removeEventListener('scroll', handleScroll); + window.removeEventListener('resize', handleScroll); + }; + }, [element, dep]); + + return { y: scrollTop }; } diff --git a/src/frontend/main/src/hooks/WindowDimension.tsx b/src/frontend/main/src/hooks/WindowDimension.tsx index f6b54f789d..04f70765b5 100755 --- a/src/frontend/main/src/hooks/WindowDimension.tsx +++ b/src/frontend/main/src/hooks/WindowDimension.tsx @@ -1,59 +1,50 @@ -import React, { useEffect, useState } from "react"; +import React, { useEffect, useState } from 'react'; // Extra small.col - < 576px Mobile Display // Small.col - sm - ≥576px Mobile Display // Medium.col - md - ≥768px Tablet Display // Large.col - lg - ≥992px Desktop Display // Extra large.col - xl - ≥1200px Desktop Display function calculateWidthType(width) { - if (width >= 1700) { - return 'xl' - } - else if (width >= 1332) { - return 'lg' - } - else if (width >= 1200) { - return 'md' - } else if (width >= 855) { - return 'sm' - } else if (width >= 632) { - return 's' - } else if (width < 632) { - return 'xs' - } + if (width >= 1700) { + return 'xl'; + } else if (width >= 1332) { + return 'lg'; + } else if (width >= 1200) { + return 'md'; + } else if (width >= 855) { + return 'sm'; + } else if (width >= 632) { + return 's'; + } else if (width < 632) { + return 'xs'; + } } const windowDimention = () => { - - const [windowSize, setWindowSize] = useState({ - width: 0, - height: 0 - }) - - useEffect(() => { - - const handleResize = () => { - setWindowSize({ - width: window.innerWidth, - height: window.innerHeight - }) - } - - handleResize(); - window.addEventListener('resize', handleResize) - - const cleanUp = () => { - window.removeEventListener('resize', handleResize) - } - - return cleanUp; - }, []) - - return { windowSize, type: calculateWidthType(windowSize.width) }; - - - - -} - + const [windowSize, setWindowSize] = useState({ + width: 0, + height: 0, + }); + + useEffect(() => { + const handleResize = () => { + setWindowSize({ + width: window.innerWidth, + height: window.innerHeight, + }); + }; + + handleResize(); + window.addEventListener('resize', handleResize); + + const cleanUp = () => { + window.removeEventListener('resize', handleResize); + }; + + return cleanUp; + }, []); + + return { windowSize, type: calculateWidthType(windowSize.width) }; +}; export default windowDimention; diff --git a/src/frontend/main/src/hooks/useOlMap.ts b/src/frontend/main/src/hooks/useOlMap.ts index 3e75266bd5..70344efb12 100644 --- a/src/frontend/main/src/hooks/useOlMap.ts +++ b/src/frontend/main/src/hooks/useOlMap.ts @@ -1,9 +1,9 @@ /* eslint-disable consistent-return */ -import React, { useRef, useState, useEffect } from "react"; -import Map from "ol/Map"; -import { View } from "ol"; -import * as olExtent from "ol/extent"; -import VectorLayer from "ol/layer/Vector"; +import React, { useRef, useState, useEffect } from 'react'; +import Map from 'ol/Map'; +import { View } from 'ol'; +import * as olExtent from 'ol/extent'; +import VectorLayer from 'ol/layer/Vector'; const defaultProps = { center: [0, 0], @@ -53,14 +53,14 @@ const useOLMap = (props) => { setTimeout(() => { setRenderComplete(true); }, 500); - map.un("rendercomplete", onRenderComplete); + map.un('rendercomplete', onRenderComplete); } } - map.on("rendercomplete", onRenderComplete); + map.on('rendercomplete', onRenderComplete); return () => { if (map) { - map.un("rendercomplete", onRenderComplete); + map.un('rendercomplete', onRenderComplete); } }; }, [map]); diff --git a/src/frontend/main/src/index.html b/src/frontend/main/src/index.html index 4134e0afc6..9383bccfae 100755 --- a/src/frontend/main/src/index.html +++ b/src/frontend/main/src/index.html @@ -1,19 +1,23 @@ - + + + - - - - - - - - - Field Mapping Tasking Manager - - - -
- + + + + + + Field Mapping Tasking Manager + + +
+ diff --git a/src/frontend/main/src/index.ts b/src/frontend/main/src/index.ts index c7ffe8613a..0189803552 100755 --- a/src/frontend/main/src/index.ts +++ b/src/frontend/main/src/index.ts @@ -1,2 +1 @@ - -import("./App"); +import('./App'); diff --git a/src/frontend/main/src/models/createproject/createProjectModel.ts b/src/frontend/main/src/models/createproject/createProjectModel.ts index 3e4dbad39e..dfa5ba502a 100755 --- a/src/frontend/main/src/models/createproject/createProjectModel.ts +++ b/src/frontend/main/src/models/createproject/createProjectModel.ts @@ -1,23 +1,37 @@ - export interface ProjectDetailsModel { + id: number; + odkid: number; + author: { + username: string; id: number; - odkid: number; - author: { - username: string; - id: number; + }; + default_locale: string; + project_info: { + locale: string; + name: string; + short_description: string; + description: string; + instructions: string; + per_task_instructions: string; + }[]; + status: number; + xform_title: string; + location_str: string; + outline_geojson: { + type: string; + geometry: { + coordinates: [string, string]; + type: string; }; - default_locale: string; - project_info: { - locale: string; - name: string; - short_description: string; - description: string; - instructions: string; - per_task_instructions: string; - }[]; - status: number; - xform_title: string; - location_str: string; + properties: Record; + id: string; + bbox: [string, string, string, string]; + }; + project_tasks: { + id: number; + project_id: number; + project_task_index: number; + project_task_name: string; outline_geojson: { type: string; geometry: { @@ -28,55 +42,40 @@ export interface ProjectDetailsModel { id: string; bbox: [string, string, string, string]; }; - project_tasks: { - id: number; - project_id: number; - project_task_index: number; - project_task_name: string; - outline_geojson: { - type: string; - geometry: { - coordinates: [string, string]; - type: string; - }; - properties: Record; - id: string; - bbox: [string, string, string, string]; - }; - outline_centroid: { + outline_centroid: { + type: string; + geometry: { + coordinates: [string, string]; type: string; - geometry: { - coordinates: [string, string]; - type: string; - }; - properties: Record; - id: string; - bbox: [string, string, string, string]; }; - task_status: number; - locked_by_uid: number; - locked_by_username: string; - task_history: { - id: number; - action_text: string; - action_date: string; - }[]; - qr_code_base64: string; - task_status_str: string; + properties: Record; + id: string; + bbox: [string, string, string, string]; + }; + task_status: number; + locked_by_uid: number; + locked_by_username: string; + task_history: { + id: number; + action_text: string; + action_date: string; }[]; - } + qr_code_base64: string; + task_status_str: string; + }[]; +} - export interface FormCategoryListModel { - id: number, - title: string, - } - export interface OrganisationListModel { - name: string; - slug: string; - description: string; - type: number; - subscription_tier: null | string; - id: number; - logo: string; - url: string; - } \ No newline at end of file +export interface FormCategoryListModel { + id: number; + title: string; +} +export interface OrganisationListModel { + name: string; + slug: string; + description: string; + type: number; + subscription_tier: null | string; + id: number; + logo: string; + url: string; +} diff --git a/src/frontend/main/src/models/geojsonObjectModel.js b/src/frontend/main/src/models/geojsonObjectModel.js index 08bb89584b..89d8b06cbf 100755 --- a/src/frontend/main/src/models/geojsonObjectModel.js +++ b/src/frontend/main/src/models/geojsonObjectModel.js @@ -1,10 +1,10 @@ export const geojsonObjectModel = { - 'type': 'FeatureCollection', - 'SRID': { - 'type': 'name', - 'properties': { - 'name': 'EPSG:3857', - }, + type: 'FeatureCollection', + SRID: { + type: 'name', + properties: { + name: 'EPSG:3857', }, - 'features': [] -} + }, + features: [], +}; diff --git a/src/frontend/main/src/models/home/homeModel.ts b/src/frontend/main/src/models/home/homeModel.ts index b5319dc5fe..924259b2ac 100755 --- a/src/frontend/main/src/models/home/homeModel.ts +++ b/src/frontend/main/src/models/home/homeModel.ts @@ -1,12 +1,11 @@ - export interface HomeProjectCardModel { - id: number, - priority: number, - title: string, - location_str: string, - description: string, - total_tasks: number, - tasks_mapped: number, - tasks_validated: number, - tasks_bad_imagery: number -} \ No newline at end of file + id: number; + priority: number; + title: string; + location_str: string; + description: string; + total_tasks: number; + tasks_mapped: number; + tasks_validated: number; + tasks_bad_imagery: number; +} diff --git a/src/frontend/main/src/models/organization/organizationModel.ts b/src/frontend/main/src/models/organization/organizationModel.ts index 256dec9316..a7795a55b1 100644 --- a/src/frontend/main/src/models/organization/organizationModel.ts +++ b/src/frontend/main/src/models/organization/organizationModel.ts @@ -1,43 +1,42 @@ - export interface OrganizationModal { - name: string, - description: string, - url: string, - type: number, + name: string; + description: string; + url: string; + type: number; } - export interface FormCategoryListModel { - id: number, - title: string, - } - export interface OrganisationListModel { - name: string; - slug: string; - description: string; - type: number; - subscription_tier: null | string; - id: number; - logo: string; - url: string; - } +export interface FormCategoryListModel { + id: number; + title: string; +} +export interface OrganisationListModel { + name: string; + slug: string; + description: string; + type: number; + subscription_tier: null | string; + id: number; + logo: string; + url: string; +} - export interface GetOrganizationDataModel { - name : string; - slug : string; - description : string; - type : number; - subscription_tier : null; - id: number; - logo : string; - url : string; - } - export interface PostOrganizationDataModel { - name : string; - slug : string; - description : string; - type : number; - subscription_tier : null; - id: number; - logo : string; - url : string; - } \ No newline at end of file +export interface GetOrganizationDataModel { + name: string; + slug: string; + description: string; + type: number; + subscription_tier: null; + id: number; + logo: string; + url: string; +} +export interface PostOrganizationDataModel { + name: string; + slug: string; + description: string; + type: number; + subscription_tier: null; + id: number; + logo: string; + url: string; +} diff --git a/src/frontend/main/src/store/slices/CommonSlice.ts b/src/frontend/main/src/store/slices/CommonSlice.ts index 1fc4e85df2..333e8f313c 100755 --- a/src/frontend/main/src/store/slices/CommonSlice.ts +++ b/src/frontend/main/src/store/slices/CommonSlice.ts @@ -1,30 +1,28 @@ - -import CoreModules from "../../shared/CoreModules"; +import CoreModules from '../../shared/CoreModules'; const CommonSlice = CoreModules.createSlice({ - name: 'common', - initialState: { - snackbar: { - open: false, - message: '', - variant: 'info', - duration: 0 - }, - loading:false, - postOrganizationLoading:false + name: 'common', + initialState: { + snackbar: { + open: false, + message: '', + variant: 'info', + duration: 0, }, - reducers: { - SetSnackBar(state, action) { - state.snackbar = action.payload - }, - SetLoading(state,action){ - state.loading = action.payload - }, - PostOrganizationLoading(state,action){ - state.organization = action.payload - } - } -}) - + loading: false, + postOrganizationLoading: false, + }, + reducers: { + SetSnackBar(state, action) { + state.snackbar = action.payload; + }, + SetLoading(state, action) { + state.loading = action.payload; + }, + PostOrganizationLoading(state, action) { + state.organization = action.payload; + }, + }, +}); export const CommonActions = CommonSlice.actions; export default CommonSlice; diff --git a/src/frontend/main/src/store/slices/organizationSlice.ts b/src/frontend/main/src/store/slices/organizationSlice.ts index 0690199fa0..f4d85c9937 100644 --- a/src/frontend/main/src/store/slices/organizationSlice.ts +++ b/src/frontend/main/src/store/slices/organizationSlice.ts @@ -1,32 +1,32 @@ -import CoreModules from "../../shared/CoreModules.js" +import CoreModules from '../../shared/CoreModules.js'; const OrganizationSlice = CoreModules.createSlice({ - name: 'organization', - initialState: { - organizationFormData:{}, - organizationData: [], - postOrganizationData: null, - organizationDataLoading: false, - postOrganizationDataLoading: false, + name: 'organization', + initialState: { + organizationFormData: {}, + organizationData: [], + postOrganizationData: null, + organizationDataLoading: false, + postOrganizationDataLoading: false, + }, + reducers: { + GetOrganizationsData(state, action) { + state.oraganizationData = action.payload; }, - reducers: { - GetOrganizationsData(state, action) { - state.oraganizationData = action.payload - }, - GetOrganizationDataLoading(state, action) { - state.organizationDataLoading = action.payload - }, - postOrganizationData(state, action) { - state.postOrganizationData = action.payload - }, - PostOrganizationDataLoading(state, action) { - state.postOrganizationDataLoading = action.payload - }, - SetOrganizationFormData(state, action) { - state.organizationFormData = action.payload - }, - } -}) + GetOrganizationDataLoading(state, action) { + state.organizationDataLoading = action.payload; + }, + postOrganizationData(state, action) { + state.postOrganizationData = action.payload; + }, + PostOrganizationDataLoading(state, action) { + state.postOrganizationDataLoading = action.payload; + }, + SetOrganizationFormData(state, action) { + state.organizationFormData = action.payload; + }, + }, +}); export const OrganizationAction = OrganizationSlice.actions; -export default OrganizationSlice; \ No newline at end of file +export default OrganizationSlice; diff --git a/src/frontend/main/src/styles/home.css b/src/frontend/main/src/styles/home.css index 5171ec811f..40d54188f9 100755 --- a/src/frontend/main/src/styles/home.css +++ b/src/frontend/main/src/styles/home.css @@ -1,11 +1,11 @@ #search { - margin-top: 11.8px; + margin-top: 11.8px; } #searchXs { - width: '15%'; + width: '15%'; } .dropdown-item { - width: '100%'; + width: '100%'; } diff --git a/src/frontend/main/src/styles/home.scss b/src/frontend/main/src/styles/home.scss index ba59b55c9f..837407da91 100755 --- a/src/frontend/main/src/styles/home.scss +++ b/src/frontend/main/src/styles/home.scss @@ -39,12 +39,12 @@ transform: rotate(360deg); } } -#qrcodeImg{ +#qrcodeImg { width: 170px; - height:inherit; + height: inherit; } .spinner:after { - content: ""; + content: ''; box-sizing: border-box; position: absolute; top: 50%; @@ -70,7 +70,7 @@ .ol-popup { position: absolute; background-color: white; - box-shadow: 0 1px 4px rgba(0,0,0,0.2); + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); padding: 15px; border-radius: 10px; border: 1px solid #cccccc; @@ -78,10 +78,11 @@ left: -50px; min-width: 280px; } -.ol-popup:after, .ol-popup:before { +.ol-popup:after, +.ol-popup:before { top: 100%; border: solid transparent; - content: " "; + content: ' '; height: 0; width: 0; position: absolute; @@ -106,5 +107,5 @@ right: 8px; } .ol-popup-closer:after { - content: "✖"; -} \ No newline at end of file + content: '✖'; +} diff --git a/src/frontend/main/src/utilities/BasicCard.tsx b/src/frontend/main/src/utilities/BasicCard.tsx index a1a855e836..fb5eadd501 100755 --- a/src/frontend/main/src/utilities/BasicCard.tsx +++ b/src/frontend/main/src/utilities/BasicCard.tsx @@ -2,12 +2,12 @@ import * as React from 'react'; import CoreModules from '../shared/CoreModules'; export default function BasicCard({ title, subtitle, content, variant, contentProps, headerStatus }) { - - return ( - - - {headerStatus && - {/* + + {headerStatus && ( + + {/* {title} @@ -17,11 +17,12 @@ export default function BasicCard({ title, subtitle, content, variant, contentPr > {subtitle} */} - } - - {content} - - - - ); + + )} + + {content} + + + + ); } diff --git a/src/frontend/main/src/utilities/CustomizedImage.jsx b/src/frontend/main/src/utilities/CustomizedImage.jsx index 9a44f6c0d5..bfa2c7c15b 100755 --- a/src/frontend/main/src/utilities/CustomizedImage.jsx +++ b/src/frontend/main/src/utilities/CustomizedImage.jsx @@ -1,21 +1,18 @@ -import React from "react"; +import React from 'react'; import cardImg from '../assets/images/project_icon.png'; -import logo from '../assets/images/hotLog.png' +import logo from '../assets/images/hotLog.png'; import { LazyLoadImage } from 'react-lazy-load-image-component'; -const Switcher = ({ status,width,height }) => { - switch (status) { - case 'card': - return - case 'logo': - return +const Switcher = ({ status, width, height }) => { + switch (status) { + case 'card': + return ; + case 'logo': + return ; + } +}; - } -} - -const CustomizedImage = ({ status,style }) => { - return ( - - ) -} +const CustomizedImage = ({ status, style }) => { + return ; +}; export default CustomizedImage; diff --git a/src/frontend/main/src/utilities/CustomizedMenus.tsx b/src/frontend/main/src/utilities/CustomizedMenus.tsx index f06f864fc1..5b36f53097 100755 --- a/src/frontend/main/src/utilities/CustomizedMenus.tsx +++ b/src/frontend/main/src/utilities/CustomizedMenus.tsx @@ -4,72 +4,70 @@ import CoreModules from '../shared/CoreModules'; import AssetModules from '../shared/AssetModules'; const StyledMenu = AssetModules.styled((props: MenuProps) => ( - + ))(({ theme }) => ({ - '& .MuiPaper-root': { - borderRadius: 6, - marginTop: theme.spacing(1), - minWidth: 180, - boxShadow: - `rgb(255, 255, 255) 0px 0px 0px 0px, + '& .MuiPaper-root': { + borderRadius: 6, + marginTop: theme.spacing(1), + minWidth: 180, + boxShadow: `rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px`, - '& .MuiMenu-list': { - padding: '4px 0', - }, - + '& .MuiMenu-list': { + padding: '4px 0', }, + }, })); export default function CustomizedMenus({ element, btnProps, btnName }) { - const [anchorEl, setAnchorEl] = React.useState(null); - const open = Boolean(anchorEl); - const handleClick = (event: React.MouseEvent) => { - setAnchorEl(event.currentTarget); - }; - const handleClose = () => { - setAnchorEl(null); - }; + const [anchorEl, setAnchorEl] = React.useState(null); + const open = Boolean(anchorEl); + const handleClick = (event: React.MouseEvent) => { + setAnchorEl(event.currentTarget); + }; + const handleClose = () => { + setAnchorEl(null); + }; - return ( -
- } - > - {btnName} - - - {element} - -
- ); + return ( +
+ } + > + {btnName} + + + {element} + +
+ ); } diff --git a/src/frontend/main/src/utilities/CustomizedSnackbar.jsx b/src/frontend/main/src/utilities/CustomizedSnackbar.jsx index 1c611cc948..bb70fbb4fd 100755 --- a/src/frontend/main/src/utilities/CustomizedSnackbar.jsx +++ b/src/frontend/main/src/utilities/CustomizedSnackbar.jsx @@ -1,26 +1,26 @@ import * as React from 'react'; import CoreModules from '../shared/CoreModules'; const Alert = React.forwardRef(function Alert(props, ref) { - return ; + return ; }); function SlideTransition(props) { - return ; + return ; } export default function CustomizedSnackbars({ open, message, variant, handleClose, duration }) { - - return ( - - - - - {message} - - - - - ); + return ( + + + + {message} + + + + ); } diff --git a/src/frontend/main/src/utilities/MappingHeader.tsx b/src/frontend/main/src/utilities/MappingHeader.tsx index e11be61036..a3fd28cb47 100644 --- a/src/frontend/main/src/utilities/MappingHeader.tsx +++ b/src/frontend/main/src/utilities/MappingHeader.tsx @@ -3,26 +3,34 @@ import CoreModules from '../shared/CoreModules'; import environment from '../environment'; const MappingHeader = () => { - const onToggleOutline=(e)=>{ + const onToggleOutline = (e) => { var styleSheet = document.styleSheets[0]; - if(e.target.checked){ + if (e.target.checked) { styleSheet.insertRule('* { outline: 1px solid #ff9c84; }', 0); - }else{ + } else { if (styleSheet && styleSheet.cssRules.length > 0) { styleSheet.deleteRule(0); } } + }; - } - return ( - {environment.nodeEnv === 'development' ?

Toggle Outline

:null} + {environment.nodeEnv === 'development' ? ( +
+ +

Toggle Outline

+
+ ) : null} Mapping our world together - + hotosm.org
diff --git a/src/frontend/main/src/utilities/mapUtils.js b/src/frontend/main/src/utilities/mapUtils.js index 2b972ee051..5aad0c34ac 100644 --- a/src/frontend/main/src/utilities/mapUtils.js +++ b/src/frontend/main/src/utilities/mapUtils.js @@ -1,15 +1,14 @@ -import { Stroke, Style } from "ol/style"; +import { Stroke, Style } from 'ol/style'; const basicGeojsonTemplate = { - type: "FeatureCollection", - features: [], + type: 'FeatureCollection', + features: [], }; const buildingStyle = new Style({ - stroke: new Stroke({ - color: "#FF0000", - }), - }); + stroke: new Stroke({ + color: '#FF0000', + }), +}); - -export { basicGeojsonTemplate,buildingStyle } \ No newline at end of file +export { basicGeojsonTemplate, buildingStyle }; diff --git a/src/frontend/main/src/views/NotFound404.jsx b/src/frontend/main/src/views/NotFound404.jsx index 7175ece6a9..ee8ce79070 100644 --- a/src/frontend/main/src/views/NotFound404.jsx +++ b/src/frontend/main/src/views/NotFound404.jsx @@ -11,11 +11,11 @@ const NotFoundPage = () => { alignItems="center" p={3} > - - The page you were looking for doesn't exist. + + The page you were looking for doesn't exist. - - You may have mistyped the address or the page may have moved. + + You may have mistyped the address or the page may have moved. diff --git a/src/frontend/main/src/views/Tabbed.tsx b/src/frontend/main/src/views/Tabbed.tsx index acfa899858..87d596799c 100755 --- a/src/frontend/main/src/views/Tabbed.tsx +++ b/src/frontend/main/src/views/Tabbed.tsx @@ -33,7 +33,9 @@ const grey = { }; const Tab = styled(TabUnstyled)` - font-family: IBM Plex Sans, sans-serif; + font-family: + IBM Plex Sans, + sans-serif; color: #fff; cursor: pointer; font-size: 0.875rem; diff --git a/src/frontend/main/test-tsconfig.json b/src/frontend/main/test-tsconfig.json index 58c788aa31..d549227b8e 100644 --- a/src/frontend/main/test-tsconfig.json +++ b/src/frontend/main/test-tsconfig.json @@ -1,64 +1,60 @@ { - "compilerOptions": { - /* Basic Options */ - "target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */, - "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, - "lib": [ - "esnext", - "dom" - ] /* Specify library files to be included in the compilation. */, - // "allowJs": true, /* Allow javascript files to be compiled. */ - // "checkJs": true, /* Report errors in .js files. */ - "jsx": "react-jsx" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */, - // "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ - // "outFile": "./", /* Concatenate and emit output to single file. */ - // "outDir": "./dist/", /* Redirect output structure to the directory. */ - // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ - // "composite": true, /* Enable project compilation */ - // "removeComments": true, /* Do not emit comments to output. */ - "noEmit": false /* Do not emit outputs. */, - // "importHelpers": true /* Import emit helpers from 'tslib'. */, - // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ - // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ - /* Strict Type-Checking Options */ - "strict": false /* Enable all strict type-checking options. */, - // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ - // "strictNullChecks": true, /* Enable strict null checks. */ - // "strictFunctionTypes": true, /* Enable strict checking of function types. */ - // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ - // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ - // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ - // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ - /* Additional Checks */ - "noUnusedLocals": true /* Report errors on unused locals. */, - "noUnusedParameters": true /* Report errors on unused parameters. */, - // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ - // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - /* Module Resolution Options */ - "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, - // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ - // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ - // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ - // "typeRoots": [], /* List of folders to include type definitions from. */ - // "types": [], /* Type declaration files to be included in compilation. */ - // "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */, - "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, - // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ - /* Source Map Options */ - // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ - // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ - // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ - /* Experimental Options */ - // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ - // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "resolveJsonModule": true, - "outDir": "dist" - - }, - "exclude": ["node_modules"] - } \ No newline at end of file + "compilerOptions": { + /* Basic Options */ + "target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */, + "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, + "lib": ["esnext", "dom"] /* Specify library files to be included in the compilation. */, + // "allowJs": true, /* Allow javascript files to be compiled. */ + // "checkJs": true, /* Report errors in .js files. */ + "jsx": "react-jsx" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */, + // "declaration": true, /* Generates corresponding '.d.ts' file. */ + // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ + // "sourceMap": true, /* Generates corresponding '.map' file. */ + // "outFile": "./", /* Concatenate and emit output to single file. */ + // "outDir": "./dist/", /* Redirect output structure to the directory. */ + // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ + // "composite": true, /* Enable project compilation */ + // "removeComments": true, /* Do not emit comments to output. */ + "noEmit": false /* Do not emit outputs. */, + // "importHelpers": true /* Import emit helpers from 'tslib'. */, + // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ + // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ + /* Strict Type-Checking Options */ + "strict": false /* Enable all strict type-checking options. */, + // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ + // "strictNullChecks": true, /* Enable strict null checks. */ + // "strictFunctionTypes": true, /* Enable strict checking of function types. */ + // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ + // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ + // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ + // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ + /* Additional Checks */ + "noUnusedLocals": true /* Report errors on unused locals. */, + "noUnusedParameters": true /* Report errors on unused parameters. */, + // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ + // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ + /* Module Resolution Options */ + "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, + // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ + // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ + // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ + // "typeRoots": [], /* List of folders to include type definitions from. */ + // "types": [], /* Type declaration files to be included in compilation. */ + // "allowSyntheticDefaultImports": true /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */, + "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, + // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ + /* Source Map Options */ + // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ + // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ + // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ + // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ + /* Experimental Options */ + // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ + // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "outDir": "dist" + }, + "exclude": ["node_modules"] +} diff --git a/src/frontend/main/tsconfig.json b/src/frontend/main/tsconfig.json index ff388b6558..778ddc0202 100644 --- a/src/frontend/main/tsconfig.json +++ b/src/frontend/main/tsconfig.json @@ -2,11 +2,7 @@ "compilerOptions": { "target": "ESNext", "useDefineForClassFields": true, - "lib": [ - "DOM", - "DOM.Iterable", - "ESNext" - ], + "lib": ["DOM", "DOM.Iterable", "ESNext"], "allowJs": false, "checkJs": false, "skipLibCheck": true, @@ -31,7 +27,7 @@ "noImplicitReturns": true, "strictPropertyInitialization": true, "noUnusedLocals": true, - "noUnusedParameters": true, + "noUnusedParameters": true }, "include": [ // ".eslintrc.cjs", @@ -40,8 +36,5 @@ "src/**/*.ts", "tests" ], - "exclude": [ - "node_modules", - "dist" - ], -} \ No newline at end of file + "exclude": ["node_modules", "dist"] +}