@redocly/reference-docs 3.0.0-alpha.3 → 3.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli/commands/redocly-docs-cli.min.js +274 -241
- package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +5 -21
- package/dist/console.redocly-reference-docs.min.js +182 -159
- package/dist/oauth2-redirect.js +1 -1
- package/dist/redocly-reference-docs.min.js +812 -710
- package/lib/components/Endpoint/Endpoint.d.ts +1 -6
- package/lib/components/Endpoint/Endpoint.js +1 -1
- package/lib/components/Endpoint/ServerList.d.ts +2 -7
- package/lib/components/Endpoint/ServerList.js +1 -1
- package/lib/components/Endpoint/Summary.d.ts +1 -12
- package/lib/components/Endpoint/Summary.js +1 -1
- package/lib/components/Endpoint/index.d.ts +2 -1
- package/lib/components/Endpoint/index.js +1 -1
- package/lib/components/Endpoint/styled.d.ts +13 -0
- package/lib/components/Endpoint/styled.js +2 -0
- package/lib/components/Endpoint/types.d.ts +21 -0
- package/lib/components/Endpoint/types.js +2 -0
- package/lib/components/OperationParameters/OperationParameters.js +1 -1
- package/lib/components/OperationParameters/utils.d.ts +1 -1
- package/lib/components/OperationParameters/utils.js +1 -1
- package/lib/components/Panel/Accordion.js +1 -1
- package/lib/components/Panel/ContentPanel.js +1 -1
- package/lib/components/Panel/Description.d.ts +1 -0
- package/lib/components/Panel/Description.js +2 -0
- package/lib/components/Panel/PanelComponent.d.ts +1 -1
- package/lib/components/Panel/PanelComponent.js +1 -1
- package/lib/components/Panel/index.d.ts +1 -0
- package/lib/components/Panel/index.js +1 -1
- package/lib/components/ProProviders.d.ts +8 -2
- package/lib/components/RedoclyReferenceDocs.d.ts +1 -7
- package/lib/components/RedoclyReferenceDocs.js +1 -1
- package/lib/components/RedoclyReferenceDocsMultiStandalone.d.ts +8 -0
- package/lib/components/RedoclyReferenceDocsMultiStandalone.js +2 -0
- package/lib/components/Samples/SamplesTabs.d.ts +3 -1
- package/lib/components/Samples/SamplesTabs.js +1 -1
- package/lib/components/Samples/use-example-key.js +1 -1
- package/lib/components/Search/ProSearchBox.js +1 -1
- package/lib/components/StoreProvider.d.ts +1 -1
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +1 -1
- package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
- package/lib/components/common/CheckboxList.d.ts +1 -1
- package/lib/components/common/FileUpload/FileUpload.d.ts +3 -2
- package/lib/components/common/FileUpload/FileUpload.js +1 -1
- package/lib/components/console/ActionPanel.js +1 -1
- package/lib/components/console/AuthPanel/AuthPanel.d.ts +1 -1
- package/lib/components/console/AuthPanel/AuthPanel.js +1 -1
- package/lib/components/console/AuthPanel/types.d.ts +1 -1
- package/lib/components/console/CodemirrorInput.d.ts +15 -11
- package/lib/components/console/CodemirrorInput.js +1 -1
- package/lib/components/console/Console.d.ts +3 -3
- package/lib/components/console/Console.js +1 -1
- package/lib/components/console/ConsoleLazy.js +1 -1
- package/lib/components/console/OAuth2Flow.d.ts +2 -1
- package/lib/components/console/OAuth2Flow.js +1 -1
- package/lib/components/console/OAuth2TokenInput.d.ts +2 -1
- package/lib/components/console/OAuth2TokenInput.js +1 -1
- package/lib/components/console/OpenIDConnect.d.ts +4 -1
- package/lib/components/console/OpenIDConnect.js +1 -1
- package/lib/components/console/ParameterArray.d.ts +10 -0
- package/lib/components/console/ParameterArray.js +2 -0
- package/lib/components/console/RequestBody/RequestBody.d.ts +3 -0
- package/lib/components/console/RequestBody/RequestBody.js +2 -0
- package/lib/components/console/RequestBody/index.d.ts +2 -0
- package/lib/components/console/RequestBody/index.js +2 -0
- package/lib/components/console/RequestBody/types.d.ts +10 -0
- package/lib/components/console/RequestBody/types.js +2 -0
- package/lib/components/console/RequestBodyForm.d.ts +3 -2
- package/lib/components/console/ServersDropdown/ServersDropdown.d.ts +3 -0
- package/lib/components/console/ServersDropdown/ServersDropdown.js +2 -0
- package/lib/components/console/ServersDropdown/index.d.ts +1 -0
- package/lib/components/console/ServersDropdown/index.js +2 -0
- package/lib/components/console/ServersDropdown/types.d.ts +5 -0
- package/lib/components/console/ServersDropdown/types.js +2 -0
- package/lib/components/console/styled.d.ts +1 -0
- package/lib/components/console/styled.js +1 -1
- package/lib/components/console/utils.d.ts +9 -1
- package/lib/components/console/utils.js +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +1 -1
- package/lib/components/shared/index.d.ts +0 -1
- package/lib/components/shared/index.js +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +1 -1
- package/lib/hooks/useDimensions.d.ts +1 -0
- package/lib/hooks/useDimensions.js +2 -0
- package/lib/index.d.ts +1 -1
- package/lib/oauth2-redirect-page/handler/helpers.d.ts +1 -0
- package/lib/oauth2-redirect-page/handler/helpers.js +1 -1
- package/lib/redoc-lib/src/common-elements/linkify.d.ts +1 -1
- package/lib/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +1 -1
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +1 -1
- package/lib/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +1 -1
- package/lib/redoc-lib/src/components/Callbacks/CallbackDetails.js +1 -1
- package/lib/redoc-lib/src/components/Callbacks/CallbacksList.js +1 -1
- package/lib/redoc-lib/src/components/ContentItem/ContentItem.d.ts +10 -0
- package/lib/redoc-lib/src/components/ContentItem/ContentItem.js +2 -0
- package/lib/redoc-lib/src/components/ContentItem/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/ContentItem/index.js +2 -0
- package/lib/redoc-lib/src/components/ContentItems/ContentItems.d.ts +2 -18
- package/lib/redoc-lib/src/components/ContentItems/ContentItems.js +1 -1
- package/lib/redoc-lib/src/components/ContentItems/Skeleton.d.ts +2 -0
- package/lib/redoc-lib/src/components/ContentItems/Skeleton.js +2 -0
- package/lib/redoc-lib/src/components/ContentItems/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/ContentItems/index.js +2 -0
- package/lib/redoc-lib/src/components/ErrorBoundary.d.ts +1 -1
- package/lib/redoc-lib/src/components/Fields/EnumValues.js +1 -1
- package/lib/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +1 -1
- package/lib/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +1 -1
- package/lib/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
- package/lib/redoc-lib/src/components/Operation/Operation.js +1 -1
- package/lib/redoc-lib/src/components/Operation/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/Operation/index.js +2 -0
- package/lib/redoc-lib/src/components/OperationItem/OperationItem.d.ts +7 -0
- package/lib/redoc-lib/src/components/OperationItem/OperationItem.js +2 -0
- package/lib/redoc-lib/src/components/OperationItem/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/OperationItem/index.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/Example.d.ts +1 -5
- package/lib/redoc-lib/src/components/PayloadSamples/Example.js +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +1 -8
- package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +2 -7
- package/lib/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +1 -7
- package/lib/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +1 -1
- package/lib/redoc-lib/src/components/PayloadSamples/index.d.ts +5 -0
- package/lib/redoc-lib/src/components/PayloadSamples/index.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/types.d.ts +23 -0
- package/lib/redoc-lib/src/components/PayloadSamples/types.js +2 -0
- package/lib/redoc-lib/src/components/PayloadSamples/{exernalExampleHook.d.ts → useExternalExample.d.ts} +0 -0
- package/lib/redoc-lib/src/components/PayloadSamples/{exernalExampleHook.js → useExternalExample.js} +1 -1
- package/lib/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
- package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +1 -1
- package/lib/redoc-lib/src/components/RequestSamples/RequestSamples.js +1 -1
- package/lib/redoc-lib/src/components/RequestSamples/languageSwitchEvent.d.ts +1 -1
- package/lib/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +1 -1
- package/lib/redoc-lib/src/components/Responses/Response.d.ts +2 -5
- package/lib/redoc-lib/src/components/Responses/Response.js +1 -1
- package/lib/redoc-lib/src/components/Responses/ResponseDetails.d.ts +3 -8
- package/lib/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
- package/lib/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +3 -9
- package/lib/redoc-lib/src/components/Responses/ResponseHeaders.js +1 -1
- package/lib/redoc-lib/src/components/Responses/ResponseSummary.d.ts +1 -5
- package/lib/redoc-lib/src/components/Responses/ResponseSummary.js +1 -1
- package/lib/redoc-lib/src/components/Responses/ResponsesList.d.ts +3 -8
- package/lib/redoc-lib/src/components/Responses/ResponsesList.js +1 -1
- package/lib/redoc-lib/src/components/Responses/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/Responses/index.js +2 -0
- package/lib/redoc-lib/src/components/Responses/{styled.elements.d.ts → styled.d.ts} +1 -0
- package/lib/redoc-lib/src/components/Responses/styled.js +2 -0
- package/lib/redoc-lib/src/components/Responses/types.d.ts +12 -0
- package/lib/redoc-lib/src/components/Responses/types.js +2 -0
- package/lib/redoc-lib/src/components/Schema/DiscriminatorDropdown.js +1 -1
- package/lib/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +1 -1
- package/lib/redoc-lib/src/components/SearchBox/SearchBox.d.ts +1 -1
- package/lib/redoc-lib/src/components/SectionItem/SectionItem.d.ts +7 -0
- package/lib/redoc-lib/src/components/SectionItem/SectionItem.js +2 -0
- package/lib/redoc-lib/src/components/SectionItem/index.d.ts +1 -0
- package/lib/redoc-lib/src/components/SectionItem/index.js +2 -0
- package/lib/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +1 -1
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +1 -1
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +1 -1
- package/lib/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +1 -1
- package/lib/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +1 -1
- package/lib/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +4 -0
- package/lib/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
- package/lib/redoc-lib/src/components/SideMenu/MenuItems.js +1 -1
- package/lib/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +1 -1
- package/lib/redoc-lib/src/components/index.d.ts +2 -4
- package/lib/redoc-lib/src/components/index.js +1 -1
- package/lib/redoc-lib/src/services/MenuBuilder.d.ts +1 -1
- package/lib/redoc-lib/src/services/OpenAPIParser.d.ts +1 -1
- package/lib/redoc-lib/src/services/OpenAPIParser.js +1 -1
- package/lib/redoc-lib/src/services/SearchStore.js +1 -1
- package/lib/redoc-lib/src/services/models/MediaContent.d.ts +1 -1
- package/lib/redoc-lib/src/services/models/MediaType.d.ts +2 -2
- package/lib/redoc-lib/src/services/models/MediaType.js +1 -1
- package/lib/redoc-lib/src/services/models/Operation.d.ts +2 -2
- package/lib/redoc-lib/src/services/models/RequestBody.d.ts +1 -1
- package/lib/redoc-lib/src/services/models/Response.d.ts +1 -1
- package/lib/redoc-lib/src/services/models/Schema.d.ts +1 -1
- package/lib/redoc-lib/src/services/models/Schema.js +1 -1
- package/lib/redoc-lib/src/types/open-api.d.ts +3 -0
- package/lib/redoc-lib/src/utils/helpers.d.ts +3 -1
- package/lib/redoc-lib/src/utils/helpers.js +1 -1
- package/lib/redoc-lib/src/utils/openapi.d.ts +3 -2
- package/lib/redoc-lib/src/utils/openapi.js +1 -1
- package/lib/redoc-lib/src/utils/string.d.ts +1 -0
- package/lib/redoc-lib/src/utils/string.js +2 -0
- package/lib/services/OAuth2.d.ts +4 -2
- package/lib/services/OAuth2.js +1 -1
- package/lib/services/OpenIDConnect.d.ts +1 -1
- package/lib/services/ProStore.d.ts +6 -6
- package/lib/services/SearchStore.d.ts +1 -1
- package/lib/services/VersionedSpecStore.d.ts +1 -1
- package/lib/services/code-samples/generator.d.ts +1 -0
- package/lib/services/code-samples/generator.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/java8/apachehttp.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/node/fetch.js +1 -1
- package/lib/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
- package/lib/standalone.d.ts +1 -1
- package/lib/standalone.js +1 -1
- package/lib/types.d.ts +11 -0
- package/lib/utils.d.ts +3 -13
- package/lib/utils.js +1 -1
- package/lib-esm/components/Endpoint/Endpoint.d.ts +1 -6
- package/lib-esm/components/Endpoint/Endpoint.js +1 -1
- package/lib-esm/components/Endpoint/ServerList.d.ts +2 -7
- package/lib-esm/components/Endpoint/ServerList.js +1 -1
- package/lib-esm/components/Endpoint/Summary.d.ts +1 -12
- package/lib-esm/components/Endpoint/Summary.js +1 -1
- package/lib-esm/components/Endpoint/index.d.ts +2 -1
- package/lib-esm/components/Endpoint/index.js +1 -1
- package/lib-esm/components/Endpoint/styled.d.ts +13 -0
- package/lib-esm/components/Endpoint/styled.js +2 -0
- package/lib-esm/components/Endpoint/types.d.ts +21 -0
- package/lib-esm/components/Endpoint/types.js +2 -0
- package/lib-esm/components/OperationParameters/OperationParameters.js +1 -1
- package/lib-esm/components/OperationParameters/utils.d.ts +1 -1
- package/lib-esm/components/OperationParameters/utils.js +1 -1
- package/lib-esm/components/Panel/Accordion.js +1 -1
- package/lib-esm/components/Panel/ContentPanel.js +1 -1
- package/lib-esm/components/Panel/Description.d.ts +1 -0
- package/lib-esm/components/Panel/Description.js +2 -0
- package/lib-esm/components/Panel/PanelComponent.d.ts +1 -1
- package/lib-esm/components/Panel/PanelComponent.js +1 -1
- package/lib-esm/components/Panel/index.d.ts +1 -0
- package/lib-esm/components/Panel/index.js +1 -1
- package/lib-esm/components/ProProviders.d.ts +8 -2
- package/lib-esm/components/RedoclyReferenceDocs.d.ts +1 -7
- package/lib-esm/components/RedoclyReferenceDocs.js +1 -1
- package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.d.ts +8 -0
- package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.js +2 -0
- package/lib-esm/components/Samples/SamplesTabs.d.ts +3 -1
- package/lib-esm/components/Samples/SamplesTabs.js +1 -1
- package/lib-esm/components/Samples/use-example-key.js +1 -1
- package/lib-esm/components/Search/ProSearchBox.js +1 -1
- package/lib-esm/components/StoreProvider.d.ts +1 -1
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +1 -1
- package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
- package/lib-esm/components/common/CheckboxList.d.ts +1 -1
- package/lib-esm/components/common/FileUpload/FileUpload.d.ts +3 -2
- package/lib-esm/components/common/FileUpload/FileUpload.js +1 -1
- package/lib-esm/components/console/ActionPanel.js +1 -1
- package/lib-esm/components/console/AuthPanel/AuthPanel.d.ts +1 -1
- package/lib-esm/components/console/AuthPanel/AuthPanel.js +1 -1
- package/lib-esm/components/console/AuthPanel/types.d.ts +1 -1
- package/lib-esm/components/console/CodemirrorInput.d.ts +15 -11
- package/lib-esm/components/console/CodemirrorInput.js +1 -1
- package/lib-esm/components/console/Console.d.ts +3 -3
- package/lib-esm/components/console/Console.js +1 -1
- package/lib-esm/components/console/ConsoleLazy.js +1 -1
- package/lib-esm/components/console/OAuth2Flow.d.ts +2 -1
- package/lib-esm/components/console/OAuth2Flow.js +1 -1
- package/lib-esm/components/console/OAuth2TokenInput.d.ts +2 -1
- package/lib-esm/components/console/OAuth2TokenInput.js +1 -1
- package/lib-esm/components/console/OpenIDConnect.d.ts +4 -1
- package/lib-esm/components/console/OpenIDConnect.js +1 -1
- package/lib-esm/components/console/ParameterArray.d.ts +10 -0
- package/lib-esm/components/console/ParameterArray.js +2 -0
- package/lib-esm/components/console/RequestBody/RequestBody.d.ts +3 -0
- package/lib-esm/components/console/RequestBody/RequestBody.js +2 -0
- package/lib-esm/components/console/RequestBody/index.d.ts +2 -0
- package/lib-esm/components/console/RequestBody/index.js +2 -0
- package/lib-esm/components/console/RequestBody/types.d.ts +10 -0
- package/lib-esm/components/console/RequestBody/types.js +2 -0
- package/lib-esm/components/console/RequestBodyForm.d.ts +3 -2
- package/lib-esm/components/console/ServersDropdown/ServersDropdown.d.ts +3 -0
- package/lib-esm/components/console/ServersDropdown/ServersDropdown.js +2 -0
- package/lib-esm/components/console/ServersDropdown/index.d.ts +1 -0
- package/lib-esm/components/console/ServersDropdown/index.js +2 -0
- package/lib-esm/components/console/ServersDropdown/types.d.ts +5 -0
- package/lib-esm/components/console/ServersDropdown/types.js +2 -0
- package/lib-esm/components/console/styled.d.ts +1 -0
- package/lib-esm/components/console/styled.js +1 -1
- package/lib-esm/components/console/utils.d.ts +9 -1
- package/lib-esm/components/console/utils.js +1 -1
- package/lib-esm/components/index.d.ts +1 -0
- package/lib-esm/components/index.js +1 -1
- package/lib-esm/components/shared/index.d.ts +0 -1
- package/lib-esm/components/shared/index.js +1 -1
- package/lib-esm/hooks/index.d.ts +1 -0
- package/lib-esm/hooks/index.js +1 -1
- package/lib-esm/hooks/useDimensions.d.ts +1 -0
- package/lib-esm/hooks/useDimensions.js +2 -0
- package/lib-esm/index.d.ts +1 -1
- package/lib-esm/oauth2-redirect-page/handler/helpers.d.ts +1 -0
- package/lib-esm/oauth2-redirect-page/handler/helpers.js +1 -1
- package/lib-esm/redoc-lib/src/common-elements/linkify.d.ts +1 -1
- package/lib-esm/redoc-lib/src/common-elements/perfect-scrollbar.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackReqSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/CallbackSamples/CallbackSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbackDetails.js +1 -1
- package/lib-esm/redoc-lib/src/components/Callbacks/CallbacksList.js +1 -1
- package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.d.ts +10 -0
- package/lib-esm/redoc-lib/src/components/ContentItem/ContentItem.js +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItem/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/ContentItem/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.d.ts +2 -18
- package/lib-esm/redoc-lib/src/components/ContentItems/ContentItems.js +1 -1
- package/lib-esm/redoc-lib/src/components/ContentItems/Skeleton.d.ts +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/Skeleton.js +2 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/ContentItems/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/ErrorBoundary.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/Fields/EnumValues.js +1 -1
- package/lib-esm/redoc-lib/src/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +1 -1
- package/lib-esm/redoc-lib/src/components/Markdown/AdvancedMarkdown.js +1 -1
- package/lib-esm/redoc-lib/src/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
- package/lib-esm/redoc-lib/src/components/Operation/Operation.js +1 -1
- package/lib-esm/redoc-lib/src/components/Operation/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/Operation/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/OperationItem/OperationItem.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/OperationItem/OperationItem.js +2 -0
- package/lib-esm/redoc-lib/src/components/OperationItem/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/OperationItem/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.d.ts +1 -5
- package/lib-esm/redoc-lib/src/components/PayloadSamples/Example.js +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/ExampleValue.d.ts +1 -8
- package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.d.ts +2 -7
- package/lib-esm/redoc-lib/src/components/PayloadSamples/MediaTypeSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.d.ts +1 -7
- package/lib-esm/redoc-lib/src/components/PayloadSamples/PayloadSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/PayloadSamples/index.d.ts +5 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/types.d.ts +23 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/{exernalExampleHook.d.ts → useExternalExample.d.ts} +0 -0
- package/lib-esm/redoc-lib/src/components/PayloadSamples/{exernalExampleHook.js → useExternalExample.js} +1 -1
- package/lib-esm/redoc-lib/src/components/RequestSamples/CodeSample.js +1 -1
- package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/RequestSamples/RequestSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/RequestSamples/languageSwitchEvent.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/ResponseSamples/ResponseSamples.js +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/Response.d.ts +2 -5
- package/lib-esm/redoc-lib/src/components/Responses/Response.js +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.d.ts +3 -8
- package/lib-esm/redoc-lib/src/components/Responses/ResponseDetails.js +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.d.ts +3 -9
- package/lib-esm/redoc-lib/src/components/Responses/ResponseHeaders.js +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.d.ts +1 -5
- package/lib-esm/redoc-lib/src/components/Responses/ResponseSummary.js +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/ResponsesList.d.ts +3 -8
- package/lib-esm/redoc-lib/src/components/Responses/ResponsesList.js +1 -1
- package/lib-esm/redoc-lib/src/components/Responses/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/Responses/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/{styled.elements.d.ts → styled.d.ts} +1 -0
- package/lib-esm/redoc-lib/src/components/Responses/styled.js +2 -0
- package/lib-esm/redoc-lib/src/components/Responses/types.d.ts +12 -0
- package/lib-esm/redoc-lib/src/components/Responses/types.js +2 -0
- package/lib-esm/redoc-lib/src/components/Schema/DiscriminatorDropdown.js +1 -1
- package/lib-esm/redoc-lib/src/components/SchemaDefinition/SchemaDefinition.js +1 -1
- package/lib-esm/redoc-lib/src/components/SearchBox/SearchBox.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.d.ts +7 -0
- package/lib-esm/redoc-lib/src/components/SectionItem/SectionItem.js +2 -0
- package/lib-esm/redoc-lib/src/components/SectionItem/index.d.ts +1 -0
- package/lib-esm/redoc-lib/src/components/SectionItem/index.js +2 -0
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/RequiredScopesRow.js +1 -1
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirement.js +1 -1
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementElement.js +1 -1
- package/lib-esm/redoc-lib/src/components/SecurityRequirement/SecurityRequirementPanelDescription.js +1 -1
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/SecuritySchemes.js +1 -1
- package/lib-esm/redoc-lib/src/components/SecuritySchemes/helpers.d.ts +4 -0
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItem.js +1 -1
- package/lib-esm/redoc-lib/src/components/SideMenu/MenuItems.js +1 -1
- package/lib-esm/redoc-lib/src/components/StickySidebar/StickyResponsiveSidebar.d.ts +1 -1
- package/lib-esm/redoc-lib/src/components/index.d.ts +2 -4
- package/lib-esm/redoc-lib/src/components/index.js +1 -1
- package/lib-esm/redoc-lib/src/services/MenuBuilder.d.ts +1 -1
- package/lib-esm/redoc-lib/src/services/OpenAPIParser.d.ts +1 -1
- package/lib-esm/redoc-lib/src/services/OpenAPIParser.js +1 -1
- package/lib-esm/redoc-lib/src/services/SearchStore.js +1 -1
- package/lib-esm/redoc-lib/src/services/models/MediaContent.d.ts +1 -1
- package/lib-esm/redoc-lib/src/services/models/MediaType.d.ts +2 -2
- package/lib-esm/redoc-lib/src/services/models/MediaType.js +1 -1
- package/lib-esm/redoc-lib/src/services/models/Operation.d.ts +2 -2
- package/lib-esm/redoc-lib/src/services/models/RequestBody.d.ts +1 -1
- package/lib-esm/redoc-lib/src/services/models/Response.d.ts +1 -1
- package/lib-esm/redoc-lib/src/services/models/Schema.d.ts +1 -1
- package/lib-esm/redoc-lib/src/services/models/Schema.js +1 -1
- package/lib-esm/redoc-lib/src/types/open-api.d.ts +3 -0
- package/lib-esm/redoc-lib/src/utils/helpers.d.ts +3 -1
- package/lib-esm/redoc-lib/src/utils/helpers.js +1 -1
- package/lib-esm/redoc-lib/src/utils/openapi.d.ts +3 -2
- package/lib-esm/redoc-lib/src/utils/openapi.js +1 -1
- package/lib-esm/redoc-lib/src/utils/string.d.ts +1 -0
- package/lib-esm/redoc-lib/src/utils/string.js +2 -0
- package/lib-esm/services/OAuth2.d.ts +4 -2
- package/lib-esm/services/OAuth2.js +1 -1
- package/lib-esm/services/OpenIDConnect.d.ts +1 -1
- package/lib-esm/services/ProStore.d.ts +6 -6
- package/lib-esm/services/SearchStore.d.ts +1 -1
- package/lib-esm/services/VersionedSpecStore.d.ts +1 -1
- package/lib-esm/services/code-samples/generator.d.ts +1 -0
- package/lib-esm/services/code-samples/generator.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/csharp/httpclient.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/java8/apachehttp.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/javascript/fetch.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/node/fetch.js +1 -1
- package/lib-esm/services/code-samples/httpsnippet/targets/python/requests.js +1 -1
- package/lib-esm/standalone.d.ts +1 -1
- package/lib-esm/standalone.js +1 -1
- package/lib-esm/types.d.ts +11 -0
- package/lib-esm/utils.d.ts +3 -13
- package/lib-esm/utils.js +1 -1
- package/package.json +11 -8
- package/lib/components/Endpoint/CopyLink.d.ts +0 -1
- package/lib/components/Endpoint/CopyLink.js +0 -2
- package/lib/components/Endpoint/Path.d.ts +0 -4
- package/lib/components/Endpoint/Path.js +0 -2
- package/lib/components/Endpoint/ServerItem.d.ts +0 -1
- package/lib/components/Endpoint/ServerItem.js +0 -2
- package/lib/components/Endpoint/ServerUrl.d.ts +0 -1
- package/lib/components/Endpoint/ServerUrl.js +0 -2
- package/lib/components/console/RequestBody.d.ts +0 -12
- package/lib/components/console/RequestBody.js +0 -2
- package/lib/components/console/ServerDropdown.d.ts +0 -24
- package/lib/components/console/ServerDropdown.js +0 -2
- package/lib/components/shared/SelectOnClick.d.ts +0 -6
- package/lib/components/shared/SelectOnClick.js +0 -2
- package/lib/redoc-lib/src/components/Responses/styled.elements.js +0 -2
- package/lib-esm/components/Endpoint/CopyLink.d.ts +0 -1
- package/lib-esm/components/Endpoint/CopyLink.js +0 -2
- package/lib-esm/components/Endpoint/Path.d.ts +0 -4
- package/lib-esm/components/Endpoint/Path.js +0 -2
- package/lib-esm/components/Endpoint/ServerItem.d.ts +0 -1
- package/lib-esm/components/Endpoint/ServerItem.js +0 -2
- package/lib-esm/components/Endpoint/ServerUrl.d.ts +0 -1
- package/lib-esm/components/Endpoint/ServerUrl.js +0 -2
- package/lib-esm/components/console/RequestBody.d.ts +0 -12
- package/lib-esm/components/console/RequestBody.js +0 -2
- package/lib-esm/components/console/ServerDropdown.d.ts +0 -24
- package/lib-esm/components/console/ServerDropdown.js +0 -2
- package/lib-esm/components/shared/SelectOnClick.d.ts +0 -6
- package/lib-esm/components/shared/SelectOnClick.js +0 -2
- package/lib-esm/redoc-lib/src/components/Responses/styled.elements.js +0 -2
|
@@ -2,48 +2,48 @@ var mr=Math.pow;/*!
|
|
|
2
2
|
* Redocly Reference Docs
|
|
3
3
|
* (c) Copyright 2018 Redocly LLC, all rights reserved.
|
|
4
4
|
* -------------------------------------------------------------
|
|
5
|
-
* Version: "3.0.0-alpha.
|
|
5
|
+
* Version: "3.0.0-alpha.4"
|
|
6
6
|
*/(this.webpackChunkRedoclyReferenceDocs=this.webpackChunkRedoclyReferenceDocs||[]).push([[290],{66419:(h,I,a)=>{h.exports=a(27698)},77766:(h,I,a)=>{h.exports=a(8065)},72119:(h,I,a)=>{h.exports=a(57448)},20116:(h,I,a)=>{h.exports=a(11955)},94473:(h,I,a)=>{h.exports=a(61577)},78580:(h,I,a)=>{h.exports=a(33778)},2991:(h,I,a)=>{h.exports=a(61798)},3649:(h,I,a)=>{h.exports=a(82073)},92762:(h,I,a)=>{h.exports=a(2348)},59340:(h,I,a)=>{h.exports=a(8933)},51942:(h,I,a)=>{h.exports=a(63383)},26295:(h,I,a)=>{h.exports=a(86209)},86902:(h,I,a)=>{h.exports=a(23059)},93476:(h,I,a)=>{h.exports=a(27460)},52424:(h,I,a)=>{h.exports=a(72010)},53592:(h,I,a)=>{h.exports=a(27385)},78363:(h,I,a)=>{h.exports=a(81522)},19996:(h,I,a)=>{h.exports=a(32209)},30699:(h,I,a)=>{h.exports=a(44442)},28834:(h,I,a)=>{h.exports=a(57152)},95683:(h,I,a)=>{h.exports=a(69447)},95238:(h,I,a)=>{h.exports=a(81493)},189:(h,I,a)=>{h.exports=a(76094)},32752:(h,I,a)=>{h.exports=a(70573)},44341:(h,I,a)=>{h.exports=a(73685)},58377:(h,I,a)=>{h.exports=a(27533)},13038:(h,I,a)=>{h.exports=a(39057)},63263:(h,I,a)=>{h.exports=a(84710)},24889:(h,I,a)=>{h.exports=a(74303)},89356:(h,I,a)=>{h.exports=a(93799)},79542:(h,I,a)=>{h.exports=a(55122)},69798:(h,I,a)=>{h.exports=a(29531)},13535:(h,I,a)=>{h.exports=a(10856)},83863:(h,I,a)=>{h.exports=a(31524)},51446:(h,I,a)=>{h.exports=a(86600)},23882:(h,I,a)=>{h.exports=a(9759)},63109:(h,I,a)=>{h.exports=a(35666)},79742:(h,I)=>{"use strict";I.byteLength=g,I.toByteArray=D,I.fromByteArray=q;for(var a=[],c=[],v=typeof Uint8Array!="undefined"?Uint8Array:Array,x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=0,b=x.length;d<b;++d)a[d]=x[d],c[x.charCodeAt(d)]=d;c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63;function S(W){var M=W.length;if(M%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var X=W.indexOf("=");X===-1&&(X=M);var R=X===M?0:4-X%4;return[X,R]}function g(W){var M=S(W),X=M[0],R=M[1];return(X+R)*3/4-R}function L(W,M,X){return(M+X)*3/4-X}function D(W){var M,X=S(W),R=X[0],C=X[1],V=new v(L(W,R,C)),J=0,_=C>0?R-4:R,Q;for(Q=0;Q<_;Q+=4)M=c[W.charCodeAt(Q)]<<18|c[W.charCodeAt(Q+1)]<<12|c[W.charCodeAt(Q+2)]<<6|c[W.charCodeAt(Q+3)],V[J++]=M>>16&255,V[J++]=M>>8&255,V[J++]=M&255;return C===2&&(M=c[W.charCodeAt(Q)]<<2|c[W.charCodeAt(Q+1)]>>4,V[J++]=M&255),C===1&&(M=c[W.charCodeAt(Q)]<<10|c[W.charCodeAt(Q+1)]<<4|c[W.charCodeAt(Q+2)]>>2,V[J++]=M>>8&255,V[J++]=M&255),V}function B(W){return a[W>>18&63]+a[W>>12&63]+a[W>>6&63]+a[W&63]}function j(W,M,X){for(var R,C=[],V=M;V<X;V+=3)R=(W[V]<<16&16711680)+(W[V+1]<<8&65280)+(W[V+2]&255),C.push(B(R));return C.join("")}function q(W){for(var M,X=W.length,R=X%3,C=[],V=16383,J=0,_=X-R;J<_;J+=V)C.push(j(W,J,J+V>_?_:J+V));return R===1?(M=W[X-1],C.push(a[M>>2]+a[M<<4&63]+"==")):R===2&&(M=(W[X-2]<<8)+W[X-1],C.push(a[M>>10]+a[M>>4&63]+a[M<<2&63]+"=")),C.join("")}},50706:(h,I,a)=>{var c=a(48764).Buffer;(function(){"use strict";function v(x){var d;return x instanceof c?d=x:d=c.from(x.toString(),"binary"),d.toString("base64")}h.exports=v})()},48764:(h,I,a)=>{"use strict";/*!
|
|
7
7
|
* The buffer module from node.js, for the browser.
|
|
8
8
|
*
|
|
9
9
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
10
10
|
* @license MIT
|
|
11
|
-
*/var c=a(79742),v=a(80645),x=a(5826);I.Buffer=g,I.SlowBuffer=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=a.g.TYPED_ARRAY_SUPPORT!==void 0?a.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var ve=new Uint8Array(1);return ve.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ve.foo()===42&&typeof ve.subarray=="function"&&ve.subarray(1,1).byteLength===0}catch(z){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(ve,z){if(b()<z)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(ve=new Uint8Array(z),ve.__proto__=g.prototype):(ve===null&&(ve=new g(z)),ve.length=z),ve}function g(ve,z,$){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(ve,z,$);if(typeof ve=="number"){if(typeof z=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,ve)}return L(this,ve,z,$)}g.poolSize=8192,g._augment=function(ve){return ve.__proto__=g.prototype,ve};function L(ve,z,$,Se){if(typeof z=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&z instanceof ArrayBuffer?M(ve,z,$,Se):typeof z=="string"?q(ve,z,$):X(ve,z)}g.from=function(ve,z,$){return L(null,ve,z,$)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function D(ve){if(typeof ve!="number")throw new TypeError('"size" argument must be a number');if(ve<0)throw new RangeError('"size" argument must not be negative')}function B(ve,z,$,Se){return D(z),z<=0?S(ve,z):$!==void 0?typeof Se=="string"?S(ve,z).fill($,Se):S(ve,z).fill($):S(ve,z)}g.alloc=function(ve,z,$){return B(null,ve,z,$)};function j(ve,z){if(D(z),ve=S(ve,z<0?0:R(z)|0),!g.TYPED_ARRAY_SUPPORT)for(var $=0;$<z;++$)ve[$]=0;return ve}g.allocUnsafe=function(ve){return j(null,ve)},g.allocUnsafeSlow=function(ve){return j(null,ve)};function q(ve,z,$){if((typeof $!="string"||$==="")&&($="utf8"),!g.isEncoding($))throw new TypeError('"encoding" must be a valid string encoding');var Se=V(z,$)|0;ve=S(ve,Se);var Ie=ve.write(z,$);return Ie!==Se&&(ve=ve.slice(0,Ie)),ve}function W(ve,z){var $=z.length<0?0:R(z.length)|0;ve=S(ve,$);for(var Se=0;Se<$;Se+=1)ve[Se]=z[Se]&255;return ve}function M(ve,z,$,Se){if(z.byteLength,$<0||z.byteLength<$)throw new RangeError("'offset' is out of bounds");if(z.byteLength<$+(Se||0))throw new RangeError("'length' is out of bounds");return $===void 0&&Se===void 0?z=new Uint8Array(z):Se===void 0?z=new Uint8Array(z,$):z=new Uint8Array(z,$,Se),g.TYPED_ARRAY_SUPPORT?(ve=z,ve.__proto__=g.prototype):ve=W(ve,z),ve}function X(ve,z){if(g.isBuffer(z)){var $=R(z.length)|0;return ve=S(ve,$),ve.length===0||z.copy(ve,0,0,$),ve}if(z){if(typeof ArrayBuffer!="undefined"&&z.buffer instanceof ArrayBuffer||"length"in z)return typeof z.length!="number"||Dt(z.length)?S(ve,0):W(ve,z);if(z.type==="Buffer"&&x(z.data))return W(ve,z.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function R(ve){if(ve>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return ve|0}function C(ve){return+ve!=ve&&(ve=0),g.alloc(+ve)}g.isBuffer=function(z){return!!(z!=null&&z._isBuffer)},g.compare=function(z,$){if(!g.isBuffer(z)||!g.isBuffer($))throw new TypeError("Arguments must be Buffers");if(z===$)return 0;for(var Se=z.length,Ie=$.length,Ge=0,Ke=Math.min(Se,Ie);Ge<Ke;++Ge)if(z[Ge]!==$[Ge]){Se=z[Ge],Ie=$[Ge];break}return Se<Ie?-1:Ie<Se?1:0},g.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(z,$){if(!x(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return g.alloc(0);var Se;if($===void 0)for($=0,Se=0;Se<z.length;++Se)$+=z[Se].length;var Ie=g.allocUnsafe($),Ge=0;for(Se=0;Se<z.length;++Se){var Ke=z[Se];if(!g.isBuffer(Ke))throw new TypeError('"list" argument must be an Array of Buffers');Ke.copy(Ie,Ge),Ge+=Ke.length}return Ie};function V(ve,z){if(g.isBuffer(ve))return ve.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ve)||ve instanceof ArrayBuffer))return ve.byteLength;typeof ve!="string"&&(ve=""+ve);var $=ve.length;if($===0)return 0;for(var Se=!1;;)switch(z){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return Et(ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return Vt(ve).length;default:if(Se)return Et(ve).length;z=(""+z).toLowerCase(),Se=!0}}g.byteLength=V;function J(ve,z,$){var Se=!1;if((z===void 0||z<0)&&(z=0),z>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,z>>>=0,$<=z))return"";for(ve||(ve="utf8");;)switch(ve){case"hex":return rt(this,z,$);case"utf8":case"utf-8":return oe(this,z,$);case"ascii":return Me(this,z,$);case"latin1":case"binary":return Pe(this,z,$);case"base64":return ue(this,z,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,z,$);default:if(Se)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),Se=!0}}g.prototype._isBuffer=!0;function _(ve,z,$){var Se=ve[z];ve[z]=ve[$],ve[$]=Se}g.prototype.swap16=function(){var z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<z;$+=2)_(this,$,$+1);return this},g.prototype.swap32=function(){var z=this.length;if(z%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<z;$+=4)_(this,$,$+3),_(this,$+1,$+2);return this},g.prototype.swap64=function(){var z=this.length;if(z%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<z;$+=8)_(this,$,$+7),_(this,$+1,$+6),_(this,$+2,$+5),_(this,$+3,$+4);return this},g.prototype.toString=function(){var z=this.length|0;return z===0?"":arguments.length===0?oe(this,0,z):J.apply(this,arguments)},g.prototype.equals=function(z){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:g.compare(this,z)===0},g.prototype.inspect=function(){var z="",$=I.INSPECT_MAX_BYTES;return this.length>0&&(z=this.toString("hex",0,$).match(/.{2}/g).join(" "),this.length>$&&(z+=" ... ")),"<Buffer "+z+">"},g.prototype.compare=function(z,$,Se,Ie,Ge){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Se===void 0&&(Se=z?z.length:0),Ie===void 0&&(Ie=0),Ge===void 0&&(Ge=this.length),$<0||Se>z.length||Ie<0||Ge>this.length)throw new RangeError("out of range index");if(Ie>=Ge&&$>=Se)return 0;if(Ie>=Ge)return-1;if($>=Se)return 1;if($>>>=0,Se>>>=0,Ie>>>=0,Ge>>>=0,this===z)return 0;for(var Ke=Ge-Ie,P=Se-$,Re=Math.min(Ke,P),K=this.slice(Ie,Ge),T=z.slice($,Se),O=0;O<Re;++O)if(K[O]!==T[O]){Ke=K[O],P=T[O];break}return Ke<P?-1:P<Ke?1:0};function Q(ve,z,$,Se,Ie){if(ve.length===0)return-1;if(typeof $=="string"?(Se=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=Ie?0:ve.length-1),$<0&&($=ve.length+$),$>=ve.length){if(Ie)return-1;$=ve.length-1}else if($<0)if(Ie)$=0;else return-1;if(typeof z=="string"&&(z=g.from(z,Se)),g.isBuffer(z))return z.length===0?-1:Y(ve,z,$,Se,Ie);if(typeof z=="number")return z=z&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(ve,z,$):Uint8Array.prototype.lastIndexOf.call(ve,z,$):Y(ve,[z],$,Se,Ie);throw new TypeError("val must be string, number or Buffer")}function Y(ve,z,$,Se,Ie){var Ge=1,Ke=ve.length,P=z.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(ve.length<2||z.length<2)return-1;Ge=2,Ke/=2,P/=2,$/=2}function Re(N,te){return Ge===1?N[te]:N.readUInt16BE(te*Ge)}var K;if(Ie){var T=-1;for(K=$;K<Ke;K++)if(Re(ve,K)===Re(z,T===-1?0:K-T)){if(T===-1&&(T=K),K-T+1===P)return T*Ge}else T!==-1&&(K-=K-T),T=-1}else for($+P>Ke&&($=Ke-P),K=$;K>=0;K--){for(var O=!0,se=0;se<P;se++)if(Re(ve,K+se)!==Re(z,se)){O=!1;break}if(O)return K}return-1}g.prototype.includes=function(z,$,Se){return this.indexOf(z,$,Se)!==-1},g.prototype.indexOf=function(z,$,Se){return Q(this,z,$,Se,!0)},g.prototype.lastIndexOf=function(z,$,Se){return Q(this,z,$,Se,!1)};function fe(ve,z,$,Se){$=Number($)||0;var Ie=ve.length-$;Se?(Se=Number(Se),Se>Ie&&(Se=Ie)):Se=Ie;var Ge=z.length;if(Ge%2!=0)throw new TypeError("Invalid hex string");Se>Ge/2&&(Se=Ge/2);for(var Ke=0;Ke<Se;++Ke){var P=parseInt(z.substr(Ke*2,2),16);if(isNaN(P))return Ke;ve[$+Ke]=P}return Ke}function ee(ve,z,$,Se){return wt(Et(z,ve.length-$),ve,$,Se)}function ie(ve,z,$,Se){return wt(Ht(z),ve,$,Se)}function ye(ve,z,$,Se){return ie(ve,z,$,Se)}function be(ve,z,$,Se){return wt(Vt(z),ve,$,Se)}function he(ve,z,$,Se){return wt(jt(z,ve.length-$),ve,$,Se)}g.prototype.write=function(z,$,Se,Ie){if($===void 0)Ie="utf8",Se=this.length,$=0;else if(Se===void 0&&typeof $=="string")Ie=$,Se=this.length,$=0;else if(isFinite($))$=$|0,isFinite(Se)?(Se=Se|0,Ie===void 0&&(Ie="utf8")):(Ie=Se,Se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ge=this.length-$;if((Se===void 0||Se>Ge)&&(Se=Ge),z.length>0&&(Se<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var Ke=!1;;)switch(Ie){case"hex":return fe(this,z,$,Se);case"utf8":case"utf-8":return ee(this,z,$,Se);case"ascii":return ie(this,z,$,Se);case"latin1":case"binary":return ye(this,z,$,Se);case"base64":return be(this,z,$,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,z,$,Se);default:if(Ke)throw new TypeError("Unknown encoding: "+Ie);Ie=(""+Ie).toLowerCase(),Ke=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(ve,z,$){return z===0&&$===ve.length?c.fromByteArray(ve):c.fromByteArray(ve.slice(z,$))}function oe(ve,z,$){$=Math.min(ve.length,$);for(var Se=[],Ie=z;Ie<$;){var Ge=ve[Ie],Ke=null,P=Ge>239?4:Ge>223?3:Ge>191?2:1;if(Ie+P<=$){var Re,K,T,O;switch(P){case 1:Ge<128&&(Ke=Ge);break;case 2:Re=ve[Ie+1],(Re&192)==128&&(O=(Ge&31)<<6|Re&63,O>127&&(Ke=O));break;case 3:Re=ve[Ie+1],K=ve[Ie+2],(Re&192)==128&&(K&192)==128&&(O=(Ge&15)<<12|(Re&63)<<6|K&63,O>2047&&(O<55296||O>57343)&&(Ke=O));break;case 4:Re=ve[Ie+1],K=ve[Ie+2],T=ve[Ie+3],(Re&192)==128&&(K&192)==128&&(T&192)==128&&(O=(Ge&15)<<18|(Re&63)<<12|(K&63)<<6|T&63,O>65535&&O<1114112&&(Ke=O))}}Ke===null?(Ke=65533,P=1):Ke>65535&&(Ke-=65536,Se.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),Se.push(Ke),Ie+=P}return Le(Se)}var Fe=4096;function Le(ve){var z=ve.length;if(z<=Fe)return String.fromCharCode.apply(String,ve);for(var $="",Se=0;Se<z;)$+=String.fromCharCode.apply(String,ve.slice(Se,Se+=Fe));return $}function Me(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]&127);return Se}function Pe(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]);return Se}function rt(ve,z,$){var Se=ve.length;(!z||z<0)&&(z=0),(!$||$<0||$>Se)&&($=Se);for(var Ie="",Ge=z;Ge<$;++Ge)Ie+=kt(ve[Ge]);return Ie}function Ze(ve,z,$){for(var Se=ve.slice(z,$),Ie="",Ge=0;Ge<Se.length;Ge+=2)Ie+=String.fromCharCode(Se[Ge]+Se[Ge+1]*256);return Ie}g.prototype.slice=function(z,$){var Se=this.length;z=~~z,$=$===void 0?Se:~~$,z<0?(z+=Se,z<0&&(z=0)):z>Se&&(z=Se),$<0?($+=Se,$<0&&($=0)):$>Se&&($=Se),$<z&&($=z);var Ie;if(g.TYPED_ARRAY_SUPPORT)Ie=this.subarray(z,$),Ie.__proto__=g.prototype;else{var Ge=$-z;Ie=new g(Ge,void 0);for(var Ke=0;Ke<Ge;++Ke)Ie[Ke]=this[Ke+z]}return Ie};function Xe(ve,z,$){if(ve%1!=0||ve<0)throw new RangeError("offset is not uint");if(ve+z>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ie},g.prototype.readUIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z+--$],Ge=1;$>0&&(Ge*=256);)Ie+=this[z+--$]*Ge;return Ie},g.prototype.readUInt8=function(z,$){return $||Xe(z,1,this.length),this[z]},g.prototype.readUInt16LE=function(z,$){return $||Xe(z,2,this.length),this[z]|this[z+1]<<8},g.prototype.readUInt16BE=function(z,$){return $||Xe(z,2,this.length),this[z]<<8|this[z+1]},g.prototype.readUInt32LE=function(z,$){return $||Xe(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},g.prototype.readUInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},g.prototype.readIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ge*=128,Ie>=Ge&&(Ie-=Math.pow(2,8*$)),Ie},g.prototype.readIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=$,Ge=1,Ke=this[z+--Ie];Ie>0&&(Ge*=256);)Ke+=this[z+--Ie]*Ge;return Ge*=128,Ke>=Ge&&(Ke-=Math.pow(2,8*$)),Ke},g.prototype.readInt8=function(z,$){return $||Xe(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},g.prototype.readInt16LE=function(z,$){$||Xe(z,2,this.length);var Se=this[z]|this[z+1]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt16BE=function(z,$){$||Xe(z,2,this.length);var Se=this[z+1]|this[z]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt32LE=function(z,$){return $||Xe(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},g.prototype.readInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},g.prototype.readFloatLE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!0,23,4)},g.prototype.readFloatBE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!1,23,4)},g.prototype.readDoubleLE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!0,52,8)},g.prototype.readDoubleBE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!1,52,8)};function ft(ve,z,$,Se,Ie,Ge){if(!g.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>Ie||z<Ge)throw new RangeError('"value" argument is out of bounds');if($+Se>ve.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=1,P=0;for(this[$]=z&255;++P<Se&&(Ke*=256);)this[$+P]=z/Ke&255;return $+Se},g.prototype.writeUIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=Se-1,P=1;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)this[$+Ke]=z/P&255;return $+Se},g.prototype.writeUInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,255,0),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),this[$]=z&255,$+1};function ht(ve,z,$,Se){z<0&&(z=65535+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,2);Ie<Ge;++Ie)ve[$+Ie]=(z&255<<8*(Se?Ie:1-Ie))>>>(Se?Ie:1-Ie)*8}g.prototype.writeUInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeUInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2};function bt(ve,z,$,Se){z<0&&(z=4294967295+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,4);Ie<Ge;++Ie)ve[$+Ie]=z>>>(Se?Ie:3-Ie)*8&255}g.prototype.writeUInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$+3]=z>>>24,this[$+2]=z>>>16,this[$+1]=z>>>8,this[$]=z&255):bt(this,z,$,!0),$+4},g.prototype.writeUInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):bt(this,z,$,!1),$+4},g.prototype.writeIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=0,P=1,Re=0;for(this[$]=z&255;++Ke<Se&&(P*=256);)z<0&&Re===0&&this[$+Ke-1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=Se-1,P=1,Re=0;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)z<0&&Re===0&&this[$+Ke+1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,127,-128),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),z<0&&(z=255+z+1),this[$]=z&255,$+1},g.prototype.writeInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2},g.prototype.writeInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8,this[$+2]=z>>>16,this[$+3]=z>>>24):bt(this,z,$,!0),$+4},g.prototype.writeInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):bt(this,z,$,!1),$+4};function nt(ve,z,$,Se,Ie,Ge){if($+Se>ve.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function ut(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,4,34028234663852886e22,-34028234663852886e22),v.write(ve,z,$,Se,23,4),$+4}g.prototype.writeFloatLE=function(z,$,Se){return ut(this,z,$,!0,Se)},g.prototype.writeFloatBE=function(z,$,Se){return ut(this,z,$,!1,Se)};function yt(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,8,17976931348623157e292,-17976931348623157e292),v.write(ve,z,$,Se,52,8),$+8}g.prototype.writeDoubleLE=function(z,$,Se){return yt(this,z,$,!0,Se)},g.prototype.writeDoubleBE=function(z,$,Se){return yt(this,z,$,!1,Se)},g.prototype.copy=function(z,$,Se,Ie){if(Se||(Se=0),!Ie&&Ie!==0&&(Ie=this.length),$>=z.length&&($=z.length),$||($=0),Ie>0&&Ie<Se&&(Ie=Se),Ie===Se||z.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=this.length)throw new RangeError("sourceStart out of bounds");if(Ie<0)throw new RangeError("sourceEnd out of bounds");Ie>this.length&&(Ie=this.length),z.length-$<Ie-Se&&(Ie=z.length-$+Se);var Ge=Ie-Se,Ke;if(this===z&&Se<$&&$<Ie)for(Ke=Ge-1;Ke>=0;--Ke)z[Ke+$]=this[Ke+Se];else if(Ge<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke<Ge;++Ke)z[Ke+$]=this[Ke+Se];else Uint8Array.prototype.set.call(z,this.subarray(Se,Se+Ge),$);return Ge},g.prototype.fill=function(z,$,Se,Ie){if(typeof z=="string"){if(typeof $=="string"?(Ie=$,$=0,Se=this.length):typeof Se=="string"&&(Ie=Se,Se=this.length),z.length===1){var Ge=z.charCodeAt(0);Ge<256&&(z=Ge)}if(Ie!==void 0&&typeof Ie!="string")throw new TypeError("encoding must be a string");if(typeof Ie=="string"&&!g.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie)}else typeof z=="number"&&(z=z&255);if($<0||this.length<$||this.length<Se)throw new RangeError("Out of range index");if(Se<=$)return this;$=$>>>0,Se=Se===void 0?this.length:Se>>>0,z||(z=0);var Ke;if(typeof z=="number")for(Ke=$;Ke<Se;++Ke)this[Ke]=z;else{var P=g.isBuffer(z)?z:Et(new g(z,Ie).toString()),Re=P.length;for(Ke=0;Ke<Se-$;++Ke)this[Ke+$]=P[Ke%Re]}return this};var mt=/[^+\/0-9A-Za-z-_]/g;function pt(ve){if(ve=Mt(ve).replace(mt,""),ve.length<2)return"";for(;ve.length%4!=0;)ve=ve+"=";return ve}function Mt(ve){return ve.trim?ve.trim():ve.replace(/^\s+|\s+$/g,"")}function kt(ve){return ve<16?"0"+ve.toString(16):ve.toString(16)}function Et(ve,z){z=z||1/0;for(var $,Se=ve.length,Ie=null,Ge=[],Ke=0;Ke<Se;++Ke){if($=ve.charCodeAt(Ke),$>55295&&$<57344){if(!Ie){if($>56319){(z-=3)>-1&&Ge.push(239,191,189);continue}else if(Ke+1===Se){(z-=3)>-1&&Ge.push(239,191,189);continue}Ie=$;continue}if($<56320){(z-=3)>-1&&Ge.push(239,191,189),Ie=$;continue}$=(Ie-55296<<10|$-56320)+65536}else Ie&&(z-=3)>-1&&Ge.push(239,191,189);if(Ie=null,$<128){if((z-=1)<0)break;Ge.push($)}else if($<2048){if((z-=2)<0)break;Ge.push($>>6|192,$&63|128)}else if($<65536){if((z-=3)<0)break;Ge.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((z-=4)<0)break;Ge.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return Ge}function Ht(ve){for(var z=[],$=0;$<ve.length;++$)z.push(ve.charCodeAt($)&255);return z}function jt(ve,z){for(var $,Se,Ie,Ge=[],Ke=0;Ke<ve.length&&!((z-=2)<0);++Ke)$=ve.charCodeAt(Ke),Se=$>>8,Ie=$%256,Ge.push(Ie),Ge.push(Se);return Ge}function Vt(ve){return c.toByteArray(pt(ve))}function wt(ve,z,$,Se){for(var Ie=0;Ie<Se&&!(Ie+$>=z.length||Ie>=ve.length);++Ie)z[Ie+$]=ve[Ie];return Ie}function Dt(ve){return ve!==ve}},21924:(h,I,a)=>{"use strict";var c=a(40210),v=a(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,S){var g=c(b,!!S);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,a)=>{"use strict";var c=a(58612),v=a(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),S=v("%Object.getOwnPropertyDescriptor%",!0),g=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(g)try{g({},"a",{value:1})}catch(B){g=null}h.exports=function(j){var q=b(c,d,arguments);if(S&&g){var W=S(q,"length");W.configurable&&g(q,"length",{value:1+L(0,j.length-(arguments.length-1))})}return q};var D=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:D}):h.exports.apply=D},82801:(h,I,a)=>{(function(c){c(a(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(R,C,V){V&&V!=c.Init&&(R.removeKeyMap(b),R.state.closeBrackets=null),C&&(S(d(C,"pairs")),R.state.closeBrackets=C,R.addKeyMap(b))});function d(R,C){return C=="pairs"&&typeof R=="string"?R:typeof R=="object"&&R[C]!=null?R[C]:v[C]}var b={Backspace:D,Enter:B};function S(R){for(var C=0;C<R.length;C++){var V=R.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}S(v.pairs+"`");function g(R){return function(C){return W(C,R)}}function L(R){var C=R.state.closeBrackets;if(!C||C.override)return C;var V=R.getModeAt(R.getCursor());return V.closeBrackets||C}function D(R){var C=L(R);if(!C||R.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var _=J.length-1;_>=0;_--){var Y=J[_].head;R.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(R){var C=L(R),V=C&&d(C,"explode");if(!V||R.getOption("disableInput"))return c.Pass;for(var J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}R.operation(function(){var Y=R.lineSeparator()||`
|
|
12
|
-
`;R.replaceSelection(Y+Y,null),j(R,-1),J=R.listSelections();for(var fe=0;fe<J.length;fe++){var ee=J[fe].head.line;R.indentLine(ee,null,!0),R.indentLine(ee+1,null,!0)}})}function j(R,C){for(var V=[],J=R.listSelections(),_=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==R.getCursor()&&(_=Q);var fe=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:fe,head:fe})}R.setSelections(V,_)}function q(R){var C=c.cmpPos(R.anchor,R.head)>0;return{anchor:new x(R.anchor.line,R.anchor.ch+(C?-1:1)),head:new x(R.head.line,R.head.ch+(C?1:-1))}}function W(R,C){var V=L(R);if(!V||R.getOption("disableInput"))return c.Pass;var J=d(V,"pairs"),_=J.indexOf(C);if(_==-1)return c.Pass;for(var Q=d(V,"closeBefore"),Y=d(V,"triples"),fe=J.charAt(_+1)==C,ee=R.listSelections(),ie=_%2==0,ye,be=0;be<ee.length;be++){var he=ee[be],ue=he.head,oe,Fe=R.getRange(ue,x(ue.line,ue.ch+1));if(ie&&!he.empty())oe="surround";else if((fe||!ie)&&Fe==C)fe&&X(R,ue)?oe="both":Y.indexOf(C)>=0&&R.getRange(ue,x(ue.line,ue.ch+3))==C+C+C?oe="skipThree":oe="skip";else if(fe&&ue.ch>1&&Y.indexOf(C)>=0&&R.getRange(x(ue.line,ue.ch-2),ue)==C+C){if(ue.ch>2&&/\bstring/.test(R.getTokenTypeAt(x(ue.line,ue.ch-2))))return c.Pass;oe="addFour"}else if(fe){var Le=ue.ch==0?" ":R.getRange(x(ue.line,ue.ch-1),ue);if(!c.isWordChar(Fe)&&Le!=C&&!c.isWordChar(Le))oe="both";else return c.Pass}else if(ie&&(Fe.length===0||/\s/.test(Fe)||Q.indexOf(Fe)>-1))oe="both";else return c.Pass;if(!ye)ye=oe;else if(ye!=oe)return c.Pass}var Me=_%2?J.charAt(_-1):C,Pe=_%2?C:J.charAt(_+1);R.operation(function(){if(ye=="skip")j(R,1);else if(ye=="skipThree")j(R,3);else if(ye=="surround"){for(var rt=R.getSelections(),Ze=0;Ze<rt.length;Ze++)rt[Ze]=Me+rt[Ze]+Pe;R.replaceSelections(rt,"around"),rt=R.listSelections().slice();for(var Ze=0;Ze<rt.length;Ze++)rt[Ze]=q(rt[Ze]);R.setSelections(rt)}else ye=="both"?(R.replaceSelection(Me+Pe,null),R.triggerElectric(Me+Pe),j(R,-1)):ye=="addFour"&&(R.replaceSelection(Me+Me+Me+Me,"before"),j(R,1))})}function M(R,C){var V=R.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(R,C){var V=R.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(R.getTokenTypeAt(C)))}})},4328:(h,I,a)=>{(function(c){c(a(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),x=c.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(j){return j&&j.bracketRegex||/[(){}[\]]/}function S(j,q,W){var M=j.getLineHandle(q.line),X=q.ch-1,R=W&&W.afterCursor;R==null&&(R=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(W),V=!R&&X>=0&&C.test(M.text.charAt(X))&&d[M.text.charAt(X)]||C.test(M.text.charAt(X+1))&&d[M.text.charAt(++X)];if(!V)return null;var J=V.charAt(1)==">"?1:-1;if(W&&W.strict&&J>0!=(X==q.ch))return null;var _=j.getTokenTypeAt(x(q.line,X+1)),Q=g(j,x(q.line,X+(J>0?1:0)),J,_,W);return Q==null?null:{from:x(q.line,X),to:Q&&Q.pos,match:Q&&Q.ch==V.charAt(0),forward:J>0}}function g(j,q,W,M,X){for(var R=X&&X.maxScanLineLength||1e4,C=X&&X.maxScanLines||1e3,V=[],J=b(X),_=W>0?Math.min(q.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,q.line-C),Q=q.line;Q!=_;Q+=W){var Y=j.getLine(Q);if(!!Y){var fe=W>0?0:Y.length-1,ee=W>0?Y.length:-1;if(!(Y.length>R))for(Q==q.line&&(fe=q.ch-(W<0?1:0));fe!=ee;fe+=W){var ie=Y.charAt(fe);if(J.test(ie)&&(M===void 0||(j.getTokenTypeAt(x(Q,fe+1))||"")==(M||""))){var ye=d[ie];if(ye&&ye.charAt(1)==">"==W>0)V.push(ie);else if(V.length)V.pop();else return{pos:x(Q,fe),ch:ie}}}}}return Q-W==(W>0?j.lastLine():j.firstLine())?!1:null}function L(j,q,W){for(var M=j.state.matchBrackets.maxHighlightLineLength||1e3,X=W&&W.highlightNonMatching,R=[],C=j.listSelections(),V=0;V<C.length;V++){var J=C[V].empty()&&S(j,C[V].head,W);if(J&&(J.match||X!==!1)&&j.getLine(J.from.line).length<=M){var _=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";R.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:_})),J.to&&j.getLine(J.to.line).length<=M&&R.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:_}))}}if(R.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<R.length;Y++)R[Y].clear()})};if(q)setTimeout(Q,800);else return Q}}function D(j){j.operation(function(){j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null),j.state.matchBrackets.currentlyHighlighted=L(j,!1,j.state.matchBrackets)})}function B(j){j.state.matchBrackets&&j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(j,q,W){W&&W!=c.Init&&(j.off("cursorActivity",D),j.off("focus",D),j.off("blur",B),B(j)),q&&(j.state.matchBrackets=typeof q=="object"?q:{},j.on("cursorActivity",D),j.on("focus",D),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,q,W){return(W||typeof q=="boolean")&&(W?(W.strict=q,q=W):q=q?{strict:!0}:null),S(this,j,q)}),c.defineExtension("scanForBracket",function(j,q,W,M){return g(this,j,q,W,M)})})},71707:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(R,C,V){if(!C)return R.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var _ in V)J[_]=V[_];return R.showHint(J)},c.defineExtension("showHint",function(R){R=g(this,this.getCursor("start"),R);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!R.hint.supportsSelection)return;for(var V=0;V<C.length;V++)if(C[V].head.line!=C[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,R);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(R,C){if(this.cm=R,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;R.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(R){return setTimeout(R,1e3/60)},S=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(R,C){var V=R.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,R,V):J.cm.replaceRange(L(V),V.from||R.from,V.to||R.to,"complete"),c.signal(R,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(S(this.debounce),this.debounce=0);var R=this.startPos;this.data&&(R=this.data.from);var C=this.cm.getCursor(),V=this.cm.getLine(C.line);if(C.line!=this.startPos.line||V.length-C.ch!=this.startLen-this.startPos.ch||C.ch<R.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(V.charAt(C.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(R){if(this.tick!=null){var C=this,V=++this.tick;W(this.options.hint,this.cm,this.options,function(J){C.tick==V&&C.finishUpdate(J,R)})}},finishUpdate:function(R,C){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=R,R&&R.list.length&&(V&&R.list.length==1?this.pick(R,0):(this.widget=new j(this,R),c.signal(R,"shown")))}};function g(R,C,V){var J=R.options.hintOptions,_={};for(var Q in X)_[Q]=X[Q];if(J)for(var Q in J)J[Q]!==void 0&&(_[Q]=J[Q]);if(V)for(var Q in V)V[Q]!==void 0&&(_[Q]=V[Q]);return _.hint.resolve&&(_.hint=_.hint.resolve(R,C)),_}function L(R){return typeof R=="string"?R:R.text}function D(R,C){var V={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},J=/Mac/.test(navigator.platform);J&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var _=R.options.customKeys,Q=_?{}:V;function Y(ie,ye){var be;typeof ye!="string"?be=function(he){return ye(he,C)}:V.hasOwnProperty(ye)?be=V[ye]:be=ye,Q[ie]=be}if(_)for(var fe in _)_.hasOwnProperty(fe)&&Y(fe,_[fe]);var ee=R.options.extraKeys;if(ee)for(var fe in ee)ee.hasOwnProperty(fe)&&Y(fe,ee[fe]);return Q}function B(R,C){for(;C&&C!=R;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==R)return C;C=C.parentNode}}function j(R,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=R,this.data=C,this.picked=!1;var V=this,J=R.cm,_=J.getInputField().ownerDocument,Q=_.defaultView||_.parentWindow,Y=this.hints=_.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var fe=R.cm.options.theme;Y.className="CodeMirror-hints "+fe,this.selectedHint=C.selectedHint||0;for(var ee=C.list,ie=0;ie<ee.length;++ie){var ye=Y.appendChild(_.createElement("li")),be=ee[ie],he=v+(ie!=this.selectedHint?"":" "+x);be.className!=null&&(he=be.className+" "+he),ye.className=he,ie==this.selectedHint&&ye.setAttribute("aria-selected","true"),ye.id=this.id+"-"+ie,ye.setAttribute("role","option"),be.render?be.render(ye,C,be):ye.appendChild(_.createTextNode(be.displayText||L(be))),ye.hintId=ie}var ue=R.options.container||_.body,oe=J.cursorCoords(R.options.alignWithWord?C.from:null),Fe=oe.left,Le=oe.bottom,Me=!0,Pe=0,rt=0;if(ue!==_.body){var Ze=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(ue).position)!==-1,Xe=Ze?ue:ue.offsetParent,ft=Xe.getBoundingClientRect(),ht=_.body.getBoundingClientRect();Pe=ft.left-ht.left-Xe.scrollLeft,rt=ft.top-ht.top-Xe.scrollTop}Y.style.left=Fe-Pe+"px",Y.style.top=Le-rt+"px";var bt=Q.innerWidth||Math.max(_.body.offsetWidth,_.documentElement.offsetWidth),nt=Q.innerHeight||Math.max(_.body.offsetHeight,_.documentElement.offsetHeight);ue.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ut=R.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,yt=R.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,mt;setTimeout(function(){mt=J.getScrollInfo()});var pt=ut.bottom-nt;if(pt>0){var Mt=ut.bottom-ut.top,kt=oe.top-(oe.bottom-ut.top);if(kt-Mt>0)Y.style.top=(Le=oe.top-Mt-rt)+"px",Me=!1;else if(Mt>nt){Y.style.height=nt-5+"px",Y.style.top=(Le=oe.bottom-ut.top-rt)+"px";var Et=J.getCursor();C.from.ch!=Et.ch&&(oe=J.cursorCoords(Et),Y.style.left=(Fe=oe.left-Pe)+"px",ut=Y.getBoundingClientRect())}}var Ht=ut.right-bt;if(yt&&(Ht+=J.display.nativeBarWidth),Ht>0&&(ut.right-ut.left>bt&&(Y.style.width=bt-5+"px",Ht-=ut.right-ut.left-bt),Y.style.left=(Fe=oe.left-Ht-Pe)+"px"),yt)for(var jt=Y.firstChild;jt;jt=jt.nextSibling)jt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=D(R,{moveFocus:function(Dt,ve){V.changeActive(V.selectedHint+Dt,ve)},setFocus:function(Dt){V.changeActive(Dt)},menuSize:function(){return V.screenAmount()},length:ee.length,close:function(){R.close()},pick:function(){V.pick()},data:C})),R.options.closeOnUnfocus){var Vt;J.on("blur",this.onBlur=function(){Vt=setTimeout(function(){R.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(Vt)})}J.on("scroll",this.onScroll=function(){var Dt=J.getScrollInfo(),ve=J.getWrapperElement().getBoundingClientRect();mt||(mt=J.getScrollInfo());var z=Le+mt.top-Dt.top,$=z-(Q.pageYOffset||(_.documentElement||_.body).scrollTop);if(Me||($+=Y.offsetHeight),$<=ve.top||$>=ve.bottom)return R.close();Y.style.top=z+"px",Y.style.left=Fe+mt.left-Dt.left+"px"}),c.on(Y,"dblclick",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),V.pick())}),c.on(Y,"click",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),R.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var wt=this.getSelectedHintRange();return(wt.from!==0||wt.to!==0)&&this.scrollToActive(),c.signal(C,"select",ee[this.selectedHint],Y.childNodes[this.selectedHint]),!0}j.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var R=this.completion.cm.getInputField();R.removeAttribute("aria-activedescendant"),R.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var R=this;this.keyMap={Enter:function(){R.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(R,C){if(R>=this.data.list.length?R=C?this.data.list.length-1:0:R<0&&(R=C?0:this.data.list.length-1),this.selectedHint!=R){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=R],V.className+=" "+x,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var R=this.getSelectedHintRange(),C=this.hints.childNodes[R.from],V=this.hints.childNodes[R.to],J=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-J.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var R=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-R),to:Math.min(this.data.list.length-1,this.selectedHint+R)}}};function q(R,C){if(!R.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function W(R,C,V,J){if(R.async)R(C,J,V);else{var _=R(C,V);_&&_.then?_.then(J):J(_)}}function M(R,C){var V=R.getHelpers(C,"hint"),J;if(V.length){var _=function(Q,Y,fe){var ee=q(Q,V);function ie(ye){if(ye==ee.length)return Y(null);W(ee[ye],Q,fe,function(be){be&&be.list.length>0?Y(be):ie(ye+1)})}ie(0)};return _.async=!0,_.supportsSelection=!0,_}else return(J=R.getHelper(R.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:M}),c.registerHelper("hint","fromList",function(R,C){var V=R.getCursor(),J=R.getTokenAt(V),_,Q=c.Pos(V.line,J.start),Y=V;J.start<V.ch&&/\w/.test(J.string.charAt(V.ch-J.start-1))?_=J.string.substr(0,V.ch-J.start):(_="",Q=V);for(var fe=[],ee=0;ee<C.words.length;ee++){var ie=C.words[ee];ie.slice(0,_.length)==_&&fe.push(ie)}if(fe.length)return{list:fe,from:Q,to:Y}}),c.commands.autocomplete=c.showHint;var X={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(Y,fe,ee){var ie=document.createElement("div");ie.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ie.appendChild(ee.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ie):document.body.appendChild(ie);function ye(be){if(!ie.parentNode)return c.off(document,"mousemove",ye);ie.style.top=Math.max(0,be.clientY-ie.offsetHeight-5)+"px",ie.style.left=be.clientX+5+"px"}return c.on(document,"mousemove",ye),ye(fe),ie.style.opacity!=null&&(ie.style.opacity=1),ie}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function S(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,fe,ee,ie){var ye=d(Y,fe,ee);function be(){c.off(ie,"mouseout",be),ye&&(S(ye),ye=null)}var he=setInterval(function(){if(ye)for(var ue=ie;;ue=ue.parentNode){if(ue&&ue.nodeType==11&&(ue=ue.host),ue==document.body)return;if(!ue){be();break}}if(!ye)return clearInterval(he)},400);c.on(ie,"mouseout",be)}function L(Y,fe,ee){this.marked=[],fe instanceof Function&&(fe={getAnnotations:fe}),(!fe||fe===!0)&&(fe={}),this.options={},this.linterOptions=fe.options||{};for(var ie in D)this.options[ie]=D[ie];for(var ie in fe)D.hasOwnProperty(ie)?fe[ie]!=null&&(this.options[ie]=fe[ie]):fe.options||(this.linterOptions[ie]=fe[ie]);this.timeout=null,this.hasGutter=ee,this.onMouseOver=function(ye){Q(Y,ye)},this.waitingFor=0}var D={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(Y){var fe=Y.state.lint;fe.hasGutter&&Y.clearGutter(v),fe.options.highlightLines&&j(Y);for(var ee=0;ee<fe.marked.length;++ee)fe.marked[ee].clear();fe.marked.length=0}function j(Y){Y.eachLine(function(fe){var ee=fe.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(fe.wrapClass);ee&&Y.removeLineClass(fe,"wrap",ee[0])})}function q(Y,fe,ee,ie,ye){var be=document.createElement("div"),he=be;return be.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+ee,ie&&(he=be.appendChild(document.createElement("div")),he.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),ye!=!1&&c.on(he,"mouseover",function(ue){g(Y,ue,fe,he)}),be}function W(Y,fe){return Y=="error"?Y:fe}function M(Y){for(var fe=[],ee=0;ee<Y.length;++ee){var ie=Y[ee],ye=ie.from.line;(fe[ye]||(fe[ye]=[])).push(ie)}return fe}function X(Y){var fe=Y.severity;fe||(fe="error");var ee=document.createElement("div");return ee.className="CodeMirror-lint-message CodeMirror-lint-message-"+fe,typeof Y.messageHTML!="undefined"?ee.innerHTML=Y.messageHTML:ee.appendChild(document.createTextNode(Y.message)),ee}function R(Y,fe){var ee=Y.state.lint,ie=++ee.waitingFor;function ye(){ie=-1,Y.off("change",ye)}Y.on("change",ye),fe(Y.getValue(),function(be,he){Y.off("change",ye),ee.waitingFor==ie&&(he&&be instanceof c&&(be=he),Y.operation(function(){V(Y,be)}))},ee.linterOptions,Y)}function C(Y){var fe=Y.state.lint;if(!!fe){var ee=fe.options,ie=ee.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ie)if(ee.async||ie.async)R(Y,ie);else{var ye=ie(Y.getValue(),fe.linterOptions,Y);if(!ye)return;ye.then?ye.then(function(be){Y.operation(function(){V(Y,be)})}):Y.operation(function(){V(Y,ye)})}}}function V(Y,fe){var ee=Y.state.lint;if(!!ee){var ie=ee.options;B(Y);for(var ye=M(fe),be=0;be<ye.length;++be){var he=ye[be];if(!!he){var ue=[];he=he.filter(function(rt){return ue.indexOf(rt.message)>-1?!1:ue.push(rt.message)});for(var oe=null,Fe=ee.hasGutter&&document.createDocumentFragment(),Le=0;Le<he.length;++Le){var Me=he[Le],Pe=Me.severity;Pe||(Pe="error"),oe=W(oe,Pe),ie.formatAnnotation&&(Me=ie.formatAnnotation(Me)),ee.hasGutter&&Fe.appendChild(X(Me)),Me.to&&ee.marked.push(Y.markText(Me.from,Me.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Pe,__annotation:Me}))}ee.hasGutter&&Y.setGutterMarker(be,v,q(Y,Fe,oe,ye[be].length>1,ie.tooltips)),ie.highlightLines&&Y.addLineClass(be,"wrap",x+oe)}}ie.onUpdateLinting&&ie.onUpdateLinting(fe,ye,Y)}}function J(Y){var fe=Y.state.lint;!fe||(clearTimeout(fe.timeout),fe.timeout=setTimeout(function(){C(Y)},fe.options.delay))}function _(Y,fe,ee){for(var ie=ee.target||ee.srcElement,ye=document.createDocumentFragment(),be=0;be<fe.length;be++){var he=fe[be];ye.appendChild(X(he))}g(Y,ee,ye,ie)}function Q(Y,fe){var ee=fe.target||fe.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(ee.className)){for(var ie=ee.getBoundingClientRect(),ye=(ie.left+ie.right)/2,be=(ie.top+ie.bottom)/2,he=Y.findMarksAt(Y.coordsChar({left:ye,top:be},"client")),ue=[],oe=0;oe<he.length;++oe){var Fe=he[oe].__annotation;Fe&&ue.push(Fe)}ue.length&&_(Y,ue,fe)}}c.defineOption("lint",!1,function(Y,fe,ee){if(ee&&ee!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),fe){for(var ie=Y.getOption("gutters"),ye=!1,be=0;be<ie.length;++be)ie[be]==v&&(ye=!0);var he=Y.state.lint=new L(Y,fe,ye);he.options.lintOnChange&&Y.on("change",J),he.options.tooltips!=!1&&he.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",he.onMouseOver),C(Y)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v=c.Pos;function x(C){var V=C.flags;return V!=null?V:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function d(C,V){for(var J=x(C),_=J,Q=0;Q<V.length;Q++)_.indexOf(V.charAt(Q))==-1&&(_+=V.charAt(Q));return J==_?C:new RegExp(C.source,_)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function S(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.lastLine();_<=Y;_++,Q=0){V.lastIndex=Q;var fe=C.getLine(_),ee=V.exec(fe);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function g(C,V,J){if(!b(V))return S(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=J.line,fe=C.lastLine();Y<=fe;){for(var ee=0;ee<Q&&!(Y>fe);ee++){var ie=C.getLine(Y++);_=_==null?ie:_+`
|
|
13
|
-
`+ie}Q=Q*2,V.lastIndex=J.ch;var
|
|
14
|
-
`),he=
|
|
15
|
-
`),
|
|
16
|
-
`+_}Q*=2;var
|
|
17
|
-
`),
|
|
18
|
-
`),oe=fe+he.length,Fe=he[he.length-1].length;return{from:v(oe,Fe),to:v(oe+ue.length-1,ue.length==1?Fe+ue[0].length:ue[ue.length-1].length),match:be}}}}var j,q;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},q=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},q=function(C){return C});function W(C,V,J,_){if(C.length==V.length)return J;for(var Q=0,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var fe=Q+Y>>1,ee=_(C.slice(0,fe)).length;if(ee==J)return fe;ee>J?Y=fe:Q=fe+1}}function M(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var fe=J.line,ee=J.ch,ie=C.lastLine()+1-Y.length;fe<=ie;fe++,ee=0){var ye=C.getLine(fe).slice(ee),be=Q(ye);if(Y.length==1){var he=be.indexOf(Y[0]);if(he==-1)continue e;var J=W(ye,be,he,Q)+ee;return{from:v(fe,W(ye,be,he,Q)+ee),to:v(fe,W(ye,be,he+Y[0].length,Q)+ee)}}else{var ue=be.length-Y[0].length;if(be.slice(ue)!=Y[0])continue e;for(var oe=1;oe<Y.length-1;oe++)if(Q(C.getLine(fe+oe))!=Y[oe])continue e;var Fe=C.getLine(fe+Y.length-1),Le=Q(Fe),Me=Y[Y.length-1];if(Le.slice(0,Me.length)!=Me)continue e;return{from:v(fe,W(ye,be,ue,Q)+ee),to:v(fe+Y.length-1,W(Fe,Le,Me.length,Q))}}}}function X(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var fe=J.line,ee=J.ch,ie=C.firstLine()-1+Y.length;fe>=ie;fe--,ee=-1){var ye=C.getLine(fe);ee>-1&&(ye=ye.slice(0,ee));var be=Q(ye);if(Y.length==1){var he=be.lastIndexOf(Y[0]);if(he==-1)continue e;return{from:v(fe,W(ye,be,he,Q)),to:v(fe,W(ye,be,he+Y[0].length,Q))}}else{var ue=Y[Y.length-1];if(be.slice(0,ue.length)!=ue)continue e;for(var oe=1,J=fe-Y.length+1;oe<Y.length-1;oe++)if(Q(C.getLine(J+oe))!=Y[oe])continue e;var Fe=C.getLine(fe+1-Y.length),Le=Q(Fe);if(Le.slice(Le.length-Y[0].length)!=Y[0])continue e;return{from:v(fe+1-Y.length,W(Fe,Le,Fe.length-Y[0].length,Q)),to:v(fe,W(ye,be,ue.length,Q))}}}}function R(C,V,J,_){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,J=J?C.clipPos(J):v(0,0),this.pos={from:J,to:J};var Q;typeof _=="object"?Q=_.caseFold:(Q=_,_=null),typeof V=="string"?(Q==null&&(Q=!1),this.matches=function(Y,fe){return(Y?X:M)(C,V,fe,Q)}):(V=d(V,"gm"),!_||_.multiline!==!1?this.matches=function(Y,fe){return(Y?B:g)(C,V,fe)}:this.matches=function(Y,fe){return(Y?D:S)(C,V,fe)})}R.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var V=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),C?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var J=this.matches(C,V);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var _=v(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:_,to:_},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,V){if(!!this.atOccurrence){var J=c.splitLines(C);this.doc.replaceRange(J,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+J.length-1,J[J.length-1].length+(J.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,J){return new R(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new R(this,C,V,J)}),c.defineExtension("selectMatches",function(C,V){for(var J=[],_=this.getSearchCursor(C,this.getCursor("from"),V);_.findNext()&&!(c.cmpPos(_.to(),this.getCursor("to"))>0);)J.push({anchor:_.from(),head:_.to()});J.length&&this.setSelections(J,0)})})},4631:function(h){(function(I,a){h.exports=a()})(this,function(){"use strict";var I=navigator.userAgent,a=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),d=/Edge\/(\d+)/.exec(I),b=v||x||d,S=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),D=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),j=/Apple Computer/.test(navigator.vendor),q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),W=/PhantomJS/.test(I),M=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),R=M||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=M||/Mac/.test(a),V=/\bCrOS\b/.test(I),J=/win/i.test(a),_=B&&I.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(B=!1,g=!0);var Q=C&&(L||B&&(_==null||_<12.11)),Y=c||b&&S>=9;function fe(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ee=function(e,i){var u=e.className,l=fe(i).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ie(e){for(var i=e.childNodes.length;i>0;--i)e.removeChild(e.firstChild);return e}function ye(e,i){return ie(e).appendChild(i)}function be(e,i,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof i=="string")f.appendChild(document.createTextNode(i));else if(i)for(var m=0;m<i.length;++m)f.appendChild(i[m]);return f}function he(e,i,u,l){var f=be(e,i,u,l);return f.setAttribute("role","presentation"),f}var ue;document.createRange?ue=function(e,i,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,i),f}:ue=function(e,i,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function oe(e,i){if(i.nodeType==3&&(i=i.parentNode),e.contains)return e.contains(i);do if(i.nodeType==11&&(i=i.host),i==e)return!0;while(i=i.parentNode)}function Fe(){var e;try{e=document.activeElement}catch(i){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Le(e,i){var u=e.className;fe(i).test(u)||(e.className+=(u?" ":"")+i)}function Me(e,i){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!fe(u[l]).test(i)&&(i+=" "+u[l]);return i}var Pe=function(e){e.select()};M?Pe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Pe=function(e){try{e.select()}catch(i){}});function rt(e){var i=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,i)}}function Ze(e,i,u){i||(i={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=e[l]);return i}function Xe(e,i,u,l,f){i==null&&(i=e.search(/[^\s\u00a0]/),i==-1&&(i=e.length));for(var m=l||0,F=f||0;;){var U=e.indexOf(" ",m);if(U<0||U>=i)return F+(i-m);F+=U-m,F+=u-F%u,m=U+1}}var ft=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ft.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ft.prototype.set=function(e,i){this.f=i;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function ht(e,i){for(var u=0;u<e.length;++u)if(e[u]==i)return u;return-1}var bt=50,nt={toString:function(){return"CodeMirror.Pass"}},ut={scroll:!1},yt={origin:"*mouse"},mt={origin:"+move"};function pt(e,i,u){for(var l=0,f=0;;){var m=e.indexOf(" ",l);m==-1&&(m=e.length);var F=m-l;if(m==e.length||f+F>=i)return l+Math.min(F,i-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=i)return l}}var Mt=[""];function kt(e){for(;Mt.length<=e;)Mt.push(Et(Mt)+" ");return Mt[e]}function Et(e){return e[e.length-1]}function Ht(e,i){for(var u=[],l=0;l<e.length;l++)u[l]=i(e[l],l);return u}function jt(e,i,u){for(var l=0,f=u(i);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,i)}function Vt(){}function wt(e,i){var u;return Object.create?u=Object.create(e):(Vt.prototype=e,u=new Vt),i&&Ze(i,u),u}var Dt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ve(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Dt.test(e))}function z(e,i){return i?i.source.indexOf("\\w")>-1&&ve(e)?!0:i.test(e):ve(e)}function $(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i])return!1;return!0}var Se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ie(e){return e.charCodeAt(0)>=768&&Se.test(e)}function Ge(e,i,u){for(;(u<0?i>0:i<e.length)&&Ie(e.charAt(i));)i+=u;return i}function Ke(e,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var f=(i+u)/2,m=l<0?Math.ceil(f):Math.floor(f);if(m==i)return e(m)?i:u;e(m)?u=m:i=m+l}}function P(e,i,u,l){if(!e)return l(i,u,"ltr",0);for(var f=!1,m=0;m<e.length;++m){var F=e[m];(F.from<u&&F.to>i||i==u&&F.to==i)&&(l(Math.max(F.from,i),Math.min(F.to,u),F.level==1?"rtl":"ltr",m),f=!0)}f||l(i,u,"ltr")}var Re=null;function K(e,i,u){var l;Re=null;for(var f=0;f<e.length;++f){var m=e[f];if(m.from<i&&m.to>i)return f;m.to==i&&(m.from!=m.to&&u=="before"?l=f:Re=f),m.from==i&&(m.from!=m.to&&u!="before"?l=f:Re=f)}return l!=null?l:Re}var T=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(Z){return Z<=247?e.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?i.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,m=/[LRr]/,F=/[Lb1n]/,U=/[1n]/;function H(Z,me,Ce){this.level=Z,this.from=me,this.to=Ce}return function(Z,me){var Ce=me=="ltr"?"L":"R";if(Z.length==0||me=="ltr"&&!l.test(Z))return!1;for(var De=Z.length,ke=[],Ye=0;Ye<De;++Ye)ke.push(u(Z.charCodeAt(Ye)));for(var tt=0,ot=Ce;tt<De;++tt){var ct=ke[tt];ct=="m"?ke[tt]=ot:ot=ct}for(var gt=0,dt=Ce;gt<De;++gt){var xt=ke[gt];xt=="1"&&dt=="r"?ke[gt]="n":m.test(xt)&&(dt=xt,xt=="r"&&(ke[gt]="R"))}for(var Ft=1,It=ke[0];Ft<De-1;++Ft){var at=ke[Ft];at=="+"&&It=="1"&&ke[Ft+1]=="1"?ke[Ft]="1":at==","&&It==ke[Ft+1]&&(It=="1"||It=="n")&&(ke[Ft]=It),It=at}for(var Tt=0;Tt<De;++Tt){var Dr=ke[Tt];if(Dr==",")ke[Tt]="N";else if(Dr=="%"){var br=void 0;for(br=Tt+1;br<De&&ke[br]=="%";++br);for(var xn=Tt&&ke[Tt-1]=="!"||br<De&&ke[br]=="1"?"1":"N",un=Tt;un<br;++un)ke[un]=xn;Tt=br-1}}for(var Ir=0,fn=Ce;Ir<De;++Ir){var Fr=ke[Ir];fn=="L"&&Fr=="1"?ke[Ir]="L":m.test(Fr)&&(fn=Fr)}for(var kr=0;kr<De;++kr)if(f.test(ke[kr])){var Ar=void 0;for(Ar=kr+1;Ar<De&&f.test(ke[Ar]);++Ar);for(var vr=(kr?ke[kr-1]:Ce)=="L",Yr=(Ar<De?ke[Ar]:Ce)=="L",Ca=vr==Yr?vr?"L":"R":Ce,Li=kr;Li<Ar;++Li)ke[Li]=Ca;kr=Ar-1}for(var Jr=[],Gn,Wr=0;Wr<De;)if(F.test(ke[Wr])){var wl=Wr;for(++Wr;Wr<De&&F.test(ke[Wr]);++Wr);Jr.push(new H(0,wl,Wr))}else{var ni=Wr,aa=Jr.length,$n=me=="rtl"?1:0;for(++Wr;Wr<De&&ke[Wr]!="L";++Wr);for(var nr=ni;nr<Wr;)if(U.test(ke[nr])){ni<nr&&(Jr.splice(aa,0,new H(1,ni,nr)),aa+=$n);var fo=nr;for(++nr;nr<Wr&&U.test(ke[nr]);++nr);Jr.splice(aa,0,new H(2,fo,nr)),aa+=$n,ni=nr}else++nr;ni<Wr&&Jr.splice(aa,0,new H(1,ni,Wr))}return me=="ltr"&&(Jr[0].level==1&&(Gn=Z.match(/^\s+/))&&(Jr[0].from=Gn[0].length,Jr.unshift(new H(0,0,Gn[0].length))),Et(Jr).level==1&&(Gn=Z.match(/\s+$/))&&(Et(Jr).to-=Gn[0].length,Jr.push(new H(0,De-Gn[0].length,De)))),me=="rtl"?Jr.reverse():Jr}}();function O(e,i){var u=e.order;return u==null&&(u=e.order=T(e.text,i)),u}var se=[],N=function(e,i,u){if(e.addEventListener)e.addEventListener(i,u,!1);else if(e.attachEvent)e.attachEvent("on"+i,u);else{var l=e._handlers||(e._handlers={});l[i]=(l[i]||se).concat(u)}};function te(e,i){return e._handlers&&e._handlers[i]||se}function de(e,i,u){if(e.removeEventListener)e.removeEventListener(i,u,!1);else if(e.detachEvent)e.detachEvent("on"+i,u);else{var l=e._handlers,f=l&&l[i];if(f){var m=ht(f,u);m>-1&&(l[i]=f.slice(0,m).concat(f.slice(m+1)))}}}function ae(e,i){var u=te(e,i);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function pe(e,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),ae(e,u||i.type,e,i),At(i)||i.codemirrorIgnore}function Ae(e){var i=e._handlers&&e._handlers.cursorActivity;if(!!i)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)ht(u,i[l])==-1&&u.push(i[l])}function Be(e,i){return te(e,i).length>0}function Ue(e){e.prototype.on=function(i,u){N(this,i,u)},e.prototype.off=function(i,u){de(this,i,u)}}function Qe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function vt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function At(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Bt(e){Qe(e),vt(e)}function Pt(e){return e.target||e.srcElement}function dn(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),C&&e.ctrlKey&&i==1&&(i=3),i}var Br=function(){if(b&&S<9)return!1;var e=be("div");return"draggable"in e||"dragDrop"in e}(),Cr;function bi(e){if(Cr==null){var i=be("span","\u200B");ye(e,be("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Cr=i.offsetWidth<=1&&i.offsetHeight>2&&!(b&&S<8))}var u=Cr?be("span","\u200B"):be("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Gr;function ji(e){if(Gr!=null)return Gr;var i=ye(e,document.createTextNode("A\u062EA")),u=ue(i,0,1).getBoundingClientRect(),l=ue(i,1,2).getBoundingClientRect();return ie(e),!u||u.left==u.right?!1:Gr=l.right-u.right<3}var Nn=`
|
|
11
|
+
*/var c=a(79742),v=a(80645),x=a(5826);I.Buffer=g,I.SlowBuffer=C,I.INSPECT_MAX_BYTES=50,g.TYPED_ARRAY_SUPPORT=a.g.TYPED_ARRAY_SUPPORT!==void 0?a.g.TYPED_ARRAY_SUPPORT:d(),I.kMaxLength=b();function d(){try{var ve=new Uint8Array(1);return ve.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ve.foo()===42&&typeof ve.subarray=="function"&&ve.subarray(1,1).byteLength===0}catch(z){return!1}}function b(){return g.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function S(ve,z){if(b()<z)throw new RangeError("Invalid typed array length");return g.TYPED_ARRAY_SUPPORT?(ve=new Uint8Array(z),ve.__proto__=g.prototype):(ve===null&&(ve=new g(z)),ve.length=z),ve}function g(ve,z,$){if(!g.TYPED_ARRAY_SUPPORT&&!(this instanceof g))return new g(ve,z,$);if(typeof ve=="number"){if(typeof z=="string")throw new Error("If encoding is specified then the first argument must be a string");return j(this,ve)}return L(this,ve,z,$)}g.poolSize=8192,g._augment=function(ve){return ve.__proto__=g.prototype,ve};function L(ve,z,$,Se){if(typeof z=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&z instanceof ArrayBuffer?M(ve,z,$,Se):typeof z=="string"?q(ve,z,$):X(ve,z)}g.from=function(ve,z,$){return L(null,ve,z,$)},g.TYPED_ARRAY_SUPPORT&&(g.prototype.__proto__=Uint8Array.prototype,g.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&g[Symbol.species]===g&&Object.defineProperty(g,Symbol.species,{value:null,configurable:!0}));function D(ve){if(typeof ve!="number")throw new TypeError('"size" argument must be a number');if(ve<0)throw new RangeError('"size" argument must not be negative')}function B(ve,z,$,Se){return D(z),z<=0?S(ve,z):$!==void 0?typeof Se=="string"?S(ve,z).fill($,Se):S(ve,z).fill($):S(ve,z)}g.alloc=function(ve,z,$){return B(null,ve,z,$)};function j(ve,z){if(D(z),ve=S(ve,z<0?0:R(z)|0),!g.TYPED_ARRAY_SUPPORT)for(var $=0;$<z;++$)ve[$]=0;return ve}g.allocUnsafe=function(ve){return j(null,ve)},g.allocUnsafeSlow=function(ve){return j(null,ve)};function q(ve,z,$){if((typeof $!="string"||$==="")&&($="utf8"),!g.isEncoding($))throw new TypeError('"encoding" must be a valid string encoding');var Se=V(z,$)|0;ve=S(ve,Se);var Ie=ve.write(z,$);return Ie!==Se&&(ve=ve.slice(0,Ie)),ve}function W(ve,z){var $=z.length<0?0:R(z.length)|0;ve=S(ve,$);for(var Se=0;Se<$;Se+=1)ve[Se]=z[Se]&255;return ve}function M(ve,z,$,Se){if(z.byteLength,$<0||z.byteLength<$)throw new RangeError("'offset' is out of bounds");if(z.byteLength<$+(Se||0))throw new RangeError("'length' is out of bounds");return $===void 0&&Se===void 0?z=new Uint8Array(z):Se===void 0?z=new Uint8Array(z,$):z=new Uint8Array(z,$,Se),g.TYPED_ARRAY_SUPPORT?(ve=z,ve.__proto__=g.prototype):ve=W(ve,z),ve}function X(ve,z){if(g.isBuffer(z)){var $=R(z.length)|0;return ve=S(ve,$),ve.length===0||z.copy(ve,0,0,$),ve}if(z){if(typeof ArrayBuffer!="undefined"&&z.buffer instanceof ArrayBuffer||"length"in z)return typeof z.length!="number"||Dt(z.length)?S(ve,0):W(ve,z);if(z.type==="Buffer"&&x(z.data))return W(ve,z.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function R(ve){if(ve>=b())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+b().toString(16)+" bytes");return ve|0}function C(ve){return+ve!=ve&&(ve=0),g.alloc(+ve)}g.isBuffer=function(z){return!!(z!=null&&z._isBuffer)},g.compare=function(z,$){if(!g.isBuffer(z)||!g.isBuffer($))throw new TypeError("Arguments must be Buffers");if(z===$)return 0;for(var Se=z.length,Ie=$.length,Ge=0,Ke=Math.min(Se,Ie);Ge<Ke;++Ge)if(z[Ge]!==$[Ge]){Se=z[Ge],Ie=$[Ge];break}return Se<Ie?-1:Ie<Se?1:0},g.isEncoding=function(z){switch(String(z).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(z,$){if(!x(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return g.alloc(0);var Se;if($===void 0)for($=0,Se=0;Se<z.length;++Se)$+=z[Se].length;var Ie=g.allocUnsafe($),Ge=0;for(Se=0;Se<z.length;++Se){var Ke=z[Se];if(!g.isBuffer(Ke))throw new TypeError('"list" argument must be an Array of Buffers');Ke.copy(Ie,Ge),Ge+=Ke.length}return Ie};function V(ve,z){if(g.isBuffer(ve))return ve.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ve)||ve instanceof ArrayBuffer))return ve.byteLength;typeof ve!="string"&&(ve=""+ve);var $=ve.length;if($===0)return 0;for(var Se=!1;;)switch(z){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":case void 0:return Et(ve).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return Vt(ve).length;default:if(Se)return Et(ve).length;z=(""+z).toLowerCase(),Se=!0}}g.byteLength=V;function J(ve,z,$){var Se=!1;if((z===void 0||z<0)&&(z=0),z>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,z>>>=0,$<=z))return"";for(ve||(ve="utf8");;)switch(ve){case"hex":return rt(this,z,$);case"utf8":case"utf-8":return se(this,z,$);case"ascii":return Me(this,z,$);case"latin1":case"binary":return Pe(this,z,$);case"base64":return fe(this,z,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,z,$);default:if(Se)throw new TypeError("Unknown encoding: "+ve);ve=(ve+"").toLowerCase(),Se=!0}}g.prototype._isBuffer=!0;function _(ve,z,$){var Se=ve[z];ve[z]=ve[$],ve[$]=Se}g.prototype.swap16=function(){var z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var $=0;$<z;$+=2)_(this,$,$+1);return this},g.prototype.swap32=function(){var z=this.length;if(z%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var $=0;$<z;$+=4)_(this,$,$+3),_(this,$+1,$+2);return this},g.prototype.swap64=function(){var z=this.length;if(z%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var $=0;$<z;$+=8)_(this,$,$+7),_(this,$+1,$+6),_(this,$+2,$+5),_(this,$+3,$+4);return this},g.prototype.toString=function(){var z=this.length|0;return z===0?"":arguments.length===0?se(this,0,z):J.apply(this,arguments)},g.prototype.equals=function(z){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z?!0:g.compare(this,z)===0},g.prototype.inspect=function(){var z="",$=I.INSPECT_MAX_BYTES;return this.length>0&&(z=this.toString("hex",0,$).match(/.{2}/g).join(" "),this.length>$&&(z+=" ... ")),"<Buffer "+z+">"},g.prototype.compare=function(z,$,Se,Ie,Ge){if(!g.isBuffer(z))throw new TypeError("Argument must be a Buffer");if($===void 0&&($=0),Se===void 0&&(Se=z?z.length:0),Ie===void 0&&(Ie=0),Ge===void 0&&(Ge=this.length),$<0||Se>z.length||Ie<0||Ge>this.length)throw new RangeError("out of range index");if(Ie>=Ge&&$>=Se)return 0;if(Ie>=Ge)return-1;if($>=Se)return 1;if($>>>=0,Se>>>=0,Ie>>>=0,Ge>>>=0,this===z)return 0;for(var Ke=Ge-Ie,P=Se-$,Re=Math.min(Ke,P),K=this.slice(Ie,Ge),T=z.slice($,Se),O=0;O<Re;++O)if(K[O]!==T[O]){Ke=K[O],P=T[O];break}return Ke<P?-1:P<Ke?1:0};function Q(ve,z,$,Se,Ie){if(ve.length===0)return-1;if(typeof $=="string"?(Se=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,isNaN($)&&($=Ie?0:ve.length-1),$<0&&($=ve.length+$),$>=ve.length){if(Ie)return-1;$=ve.length-1}else if($<0)if(Ie)$=0;else return-1;if(typeof z=="string"&&(z=g.from(z,Se)),g.isBuffer(z))return z.length===0?-1:Y(ve,z,$,Se,Ie);if(typeof z=="number")return z=z&255,g.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Ie?Uint8Array.prototype.indexOf.call(ve,z,$):Uint8Array.prototype.lastIndexOf.call(ve,z,$):Y(ve,[z],$,Se,Ie);throw new TypeError("val must be string, number or Buffer")}function Y(ve,z,$,Se,Ie){var Ge=1,Ke=ve.length,P=z.length;if(Se!==void 0&&(Se=String(Se).toLowerCase(),Se==="ucs2"||Se==="ucs-2"||Se==="utf16le"||Se==="utf-16le")){if(ve.length<2||z.length<2)return-1;Ge=2,Ke/=2,P/=2,$/=2}function Re(N,re){return Ge===1?N[re]:N.readUInt16BE(re*Ge)}var K;if(Ie){var T=-1;for(K=$;K<Ke;K++)if(Re(ve,K)===Re(z,T===-1?0:K-T)){if(T===-1&&(T=K),K-T+1===P)return T*Ge}else T!==-1&&(K-=K-T),T=-1}else for($+P>Ke&&($=Ke-P),K=$;K>=0;K--){for(var O=!0,le=0;le<P;le++)if(Re(ve,K+le)!==Re(z,le)){O=!1;break}if(O)return K}return-1}g.prototype.includes=function(z,$,Se){return this.indexOf(z,$,Se)!==-1},g.prototype.indexOf=function(z,$,Se){return Q(this,z,$,Se,!0)},g.prototype.lastIndexOf=function(z,$,Se){return Q(this,z,$,Se,!1)};function ce(ve,z,$,Se){$=Number($)||0;var Ie=ve.length-$;Se?(Se=Number(Se),Se>Ie&&(Se=Ie)):Se=Ie;var Ge=z.length;if(Ge%2!=0)throw new TypeError("Invalid hex string");Se>Ge/2&&(Se=Ge/2);for(var Ke=0;Ke<Se;++Ke){var P=parseInt(z.substr(Ke*2,2),16);if(isNaN(P))return Ke;ve[$+Ke]=P}return Ke}function ee(ve,z,$,Se){return St(Et(z,ve.length-$),ve,$,Se)}function ie(ve,z,$,Se){return St(zt(z),ve,$,Se)}function xe(ve,z,$,Se){return ie(ve,z,$,Se)}function we(ve,z,$,Se){return St(Vt(z),ve,$,Se)}function he(ve,z,$,Se){return St(jt(z,ve.length-$),ve,$,Se)}g.prototype.write=function(z,$,Se,Ie){if($===void 0)Ie="utf8",Se=this.length,$=0;else if(Se===void 0&&typeof $=="string")Ie=$,Se=this.length,$=0;else if(isFinite($))$=$|0,isFinite(Se)?(Se=Se|0,Ie===void 0&&(Ie="utf8")):(Ie=Se,Se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ge=this.length-$;if((Se===void 0||Se>Ge)&&(Se=Ge),z.length>0&&(Se<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ie||(Ie="utf8");for(var Ke=!1;;)switch(Ie){case"hex":return ce(this,z,$,Se);case"utf8":case"utf-8":return ee(this,z,$,Se);case"ascii":return ie(this,z,$,Se);case"latin1":case"binary":return xe(this,z,$,Se);case"base64":return we(this,z,$,Se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,z,$,Se);default:if(Ke)throw new TypeError("Unknown encoding: "+Ie);Ie=(""+Ie).toLowerCase(),Ke=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(ve,z,$){return z===0&&$===ve.length?c.fromByteArray(ve):c.fromByteArray(ve.slice(z,$))}function se(ve,z,$){$=Math.min(ve.length,$);for(var Se=[],Ie=z;Ie<$;){var Ge=ve[Ie],Ke=null,P=Ge>239?4:Ge>223?3:Ge>191?2:1;if(Ie+P<=$){var Re,K,T,O;switch(P){case 1:Ge<128&&(Ke=Ge);break;case 2:Re=ve[Ie+1],(Re&192)==128&&(O=(Ge&31)<<6|Re&63,O>127&&(Ke=O));break;case 3:Re=ve[Ie+1],K=ve[Ie+2],(Re&192)==128&&(K&192)==128&&(O=(Ge&15)<<12|(Re&63)<<6|K&63,O>2047&&(O<55296||O>57343)&&(Ke=O));break;case 4:Re=ve[Ie+1],K=ve[Ie+2],T=ve[Ie+3],(Re&192)==128&&(K&192)==128&&(T&192)==128&&(O=(Ge&15)<<18|(Re&63)<<12|(K&63)<<6|T&63,O>65535&&O<1114112&&(Ke=O))}}Ke===null?(Ke=65533,P=1):Ke>65535&&(Ke-=65536,Se.push(Ke>>>10&1023|55296),Ke=56320|Ke&1023),Se.push(Ke),Ie+=P}return Le(Se)}var Fe=4096;function Le(ve){var z=ve.length;if(z<=Fe)return String.fromCharCode.apply(String,ve);for(var $="",Se=0;Se<z;)$+=String.fromCharCode.apply(String,ve.slice(Se,Se+=Fe));return $}function Me(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]&127);return Se}function Pe(ve,z,$){var Se="";$=Math.min(ve.length,$);for(var Ie=z;Ie<$;++Ie)Se+=String.fromCharCode(ve[Ie]);return Se}function rt(ve,z,$){var Se=ve.length;(!z||z<0)&&(z=0),(!$||$<0||$>Se)&&($=Se);for(var Ie="",Ge=z;Ge<$;++Ge)Ie+=kt(ve[Ge]);return Ie}function Ze(ve,z,$){for(var Se=ve.slice(z,$),Ie="",Ge=0;Ge<Se.length;Ge+=2)Ie+=String.fromCharCode(Se[Ge]+Se[Ge+1]*256);return Ie}g.prototype.slice=function(z,$){var Se=this.length;z=~~z,$=$===void 0?Se:~~$,z<0?(z+=Se,z<0&&(z=0)):z>Se&&(z=Se),$<0?($+=Se,$<0&&($=0)):$>Se&&($=Se),$<z&&($=z);var Ie;if(g.TYPED_ARRAY_SUPPORT)Ie=this.subarray(z,$),Ie.__proto__=g.prototype;else{var Ge=$-z;Ie=new g(Ge,void 0);for(var Ke=0;Ke<Ge;++Ke)Ie[Ke]=this[Ke+z]}return Ie};function Xe(ve,z,$){if(ve%1!=0||ve<0)throw new RangeError("offset is not uint");if(ve+z>$)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ie},g.prototype.readUIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z+--$],Ge=1;$>0&&(Ge*=256);)Ie+=this[z+--$]*Ge;return Ie},g.prototype.readUInt8=function(z,$){return $||Xe(z,1,this.length),this[z]},g.prototype.readUInt16LE=function(z,$){return $||Xe(z,2,this.length),this[z]|this[z+1]<<8},g.prototype.readUInt16BE=function(z,$){return $||Xe(z,2,this.length),this[z]<<8|this[z+1]},g.prototype.readUInt32LE=function(z,$){return $||Xe(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+this[z+3]*16777216},g.prototype.readUInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]*16777216+(this[z+1]<<16|this[z+2]<<8|this[z+3])},g.prototype.readIntLE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=this[z],Ge=1,Ke=0;++Ke<$&&(Ge*=256);)Ie+=this[z+Ke]*Ge;return Ge*=128,Ie>=Ge&&(Ie-=Math.pow(2,8*$)),Ie},g.prototype.readIntBE=function(z,$,Se){z=z|0,$=$|0,Se||Xe(z,$,this.length);for(var Ie=$,Ge=1,Ke=this[z+--Ie];Ie>0&&(Ge*=256);)Ke+=this[z+--Ie]*Ge;return Ge*=128,Ke>=Ge&&(Ke-=Math.pow(2,8*$)),Ke},g.prototype.readInt8=function(z,$){return $||Xe(z,1,this.length),this[z]&128?(255-this[z]+1)*-1:this[z]},g.prototype.readInt16LE=function(z,$){$||Xe(z,2,this.length);var Se=this[z]|this[z+1]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt16BE=function(z,$){$||Xe(z,2,this.length);var Se=this[z+1]|this[z]<<8;return Se&32768?Se|4294901760:Se},g.prototype.readInt32LE=function(z,$){return $||Xe(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},g.prototype.readInt32BE=function(z,$){return $||Xe(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},g.prototype.readFloatLE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!0,23,4)},g.prototype.readFloatBE=function(z,$){return $||Xe(z,4,this.length),v.read(this,z,!1,23,4)},g.prototype.readDoubleLE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!0,52,8)},g.prototype.readDoubleBE=function(z,$){return $||Xe(z,8,this.length),v.read(this,z,!1,52,8)};function ft(ve,z,$,Se,Ie,Ge){if(!g.isBuffer(ve))throw new TypeError('"buffer" argument must be a Buffer instance');if(z>Ie||z<Ge)throw new RangeError('"value" argument is out of bounds');if($+Se>ve.length)throw new RangeError("Index out of range")}g.prototype.writeUIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=1,P=0;for(this[$]=z&255;++P<Se&&(Ke*=256);)this[$+P]=z/Ke&255;return $+Se},g.prototype.writeUIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,Se=Se|0,!Ie){var Ge=Math.pow(2,8*Se)-1;ft(this,z,$,Se,Ge,0)}var Ke=Se-1,P=1;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)this[$+Ke]=z/P&255;return $+Se},g.prototype.writeUInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,255,0),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),this[$]=z&255,$+1};function ht(ve,z,$,Se){z<0&&(z=65535+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,2);Ie<Ge;++Ie)ve[$+Ie]=(z&255<<8*(Se?Ie:1-Ie))>>>(Se?Ie:1-Ie)*8}g.prototype.writeUInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeUInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,65535,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2};function wt(ve,z,$,Se){z<0&&(z=4294967295+z+1);for(var Ie=0,Ge=Math.min(ve.length-$,4);Ie<Ge;++Ie)ve[$+Ie]=z>>>(Se?Ie:3-Ie)*8&255}g.prototype.writeUInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$+3]=z>>>24,this[$+2]=z>>>16,this[$+1]=z>>>8,this[$]=z&255):wt(this,z,$,!0),$+4},g.prototype.writeUInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,4294967295,0),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):wt(this,z,$,!1),$+4},g.prototype.writeIntLE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=0,P=1,Re=0;for(this[$]=z&255;++Ke<Se&&(P*=256);)z<0&&Re===0&&this[$+Ke-1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeIntBE=function(z,$,Se,Ie){if(z=+z,$=$|0,!Ie){var Ge=Math.pow(2,8*Se-1);ft(this,z,$,Se,Ge-1,-Ge)}var Ke=Se-1,P=1,Re=0;for(this[$+Ke]=z&255;--Ke>=0&&(P*=256);)z<0&&Re===0&&this[$+Ke+1]!==0&&(Re=1),this[$+Ke]=(z/P>>0)-Re&255;return $+Se},g.prototype.writeInt8=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,1,127,-128),g.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),z<0&&(z=255+z+1),this[$]=z&255,$+1},g.prototype.writeInt16LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8):ht(this,z,$,!0),$+2},g.prototype.writeInt16BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,2,32767,-32768),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>8,this[$+1]=z&255):ht(this,z,$,!1),$+2},g.prototype.writeInt32LE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),g.TYPED_ARRAY_SUPPORT?(this[$]=z&255,this[$+1]=z>>>8,this[$+2]=z>>>16,this[$+3]=z>>>24):wt(this,z,$,!0),$+4},g.prototype.writeInt32BE=function(z,$,Se){return z=+z,$=$|0,Se||ft(this,z,$,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),g.TYPED_ARRAY_SUPPORT?(this[$]=z>>>24,this[$+1]=z>>>16,this[$+2]=z>>>8,this[$+3]=z&255):wt(this,z,$,!1),$+4};function nt(ve,z,$,Se,Ie,Ge){if($+Se>ve.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function ut(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,4,34028234663852886e22,-34028234663852886e22),v.write(ve,z,$,Se,23,4),$+4}g.prototype.writeFloatLE=function(z,$,Se){return ut(this,z,$,!0,Se)},g.prototype.writeFloatBE=function(z,$,Se){return ut(this,z,$,!1,Se)};function mt(ve,z,$,Se,Ie){return Ie||nt(ve,z,$,8,17976931348623157e292,-17976931348623157e292),v.write(ve,z,$,Se,52,8),$+8}g.prototype.writeDoubleLE=function(z,$,Se){return mt(this,z,$,!0,Se)},g.prototype.writeDoubleBE=function(z,$,Se){return mt(this,z,$,!1,Se)},g.prototype.copy=function(z,$,Se,Ie){if(Se||(Se=0),!Ie&&Ie!==0&&(Ie=this.length),$>=z.length&&($=z.length),$||($=0),Ie>0&&Ie<Se&&(Ie=Se),Ie===Se||z.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(Se<0||Se>=this.length)throw new RangeError("sourceStart out of bounds");if(Ie<0)throw new RangeError("sourceEnd out of bounds");Ie>this.length&&(Ie=this.length),z.length-$<Ie-Se&&(Ie=z.length-$+Se);var Ge=Ie-Se,Ke;if(this===z&&Se<$&&$<Ie)for(Ke=Ge-1;Ke>=0;--Ke)z[Ke+$]=this[Ke+Se];else if(Ge<1e3||!g.TYPED_ARRAY_SUPPORT)for(Ke=0;Ke<Ge;++Ke)z[Ke+$]=this[Ke+Se];else Uint8Array.prototype.set.call(z,this.subarray(Se,Se+Ge),$);return Ge},g.prototype.fill=function(z,$,Se,Ie){if(typeof z=="string"){if(typeof $=="string"?(Ie=$,$=0,Se=this.length):typeof Se=="string"&&(Ie=Se,Se=this.length),z.length===1){var Ge=z.charCodeAt(0);Ge<256&&(z=Ge)}if(Ie!==void 0&&typeof Ie!="string")throw new TypeError("encoding must be a string");if(typeof Ie=="string"&&!g.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie)}else typeof z=="number"&&(z=z&255);if($<0||this.length<$||this.length<Se)throw new RangeError("Out of range index");if(Se<=$)return this;$=$>>>0,Se=Se===void 0?this.length:Se>>>0,z||(z=0);var Ke;if(typeof z=="number")for(Ke=$;Ke<Se;++Ke)this[Ke]=z;else{var P=g.isBuffer(z)?z:Et(new g(z,Ie).toString()),Re=P.length;for(Ke=0;Ke<Se-$;++Ke)this[Ke+$]=P[Ke%Re]}return this};var xt=/[^+\/0-9A-Za-z-_]/g;function pt(ve){if(ve=Mt(ve).replace(xt,""),ve.length<2)return"";for(;ve.length%4!=0;)ve=ve+"=";return ve}function Mt(ve){return ve.trim?ve.trim():ve.replace(/^\s+|\s+$/g,"")}function kt(ve){return ve<16?"0"+ve.toString(16):ve.toString(16)}function Et(ve,z){z=z||1/0;for(var $,Se=ve.length,Ie=null,Ge=[],Ke=0;Ke<Se;++Ke){if($=ve.charCodeAt(Ke),$>55295&&$<57344){if(!Ie){if($>56319){(z-=3)>-1&&Ge.push(239,191,189);continue}else if(Ke+1===Se){(z-=3)>-1&&Ge.push(239,191,189);continue}Ie=$;continue}if($<56320){(z-=3)>-1&&Ge.push(239,191,189),Ie=$;continue}$=(Ie-55296<<10|$-56320)+65536}else Ie&&(z-=3)>-1&&Ge.push(239,191,189);if(Ie=null,$<128){if((z-=1)<0)break;Ge.push($)}else if($<2048){if((z-=2)<0)break;Ge.push($>>6|192,$&63|128)}else if($<65536){if((z-=3)<0)break;Ge.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((z-=4)<0)break;Ge.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return Ge}function zt(ve){for(var z=[],$=0;$<ve.length;++$)z.push(ve.charCodeAt($)&255);return z}function jt(ve,z){for(var $,Se,Ie,Ge=[],Ke=0;Ke<ve.length&&!((z-=2)<0);++Ke)$=ve.charCodeAt(Ke),Se=$>>8,Ie=$%256,Ge.push(Ie),Ge.push(Se);return Ge}function Vt(ve){return c.toByteArray(pt(ve))}function St(ve,z,$,Se){for(var Ie=0;Ie<Se&&!(Ie+$>=z.length||Ie>=ve.length);++Ie)z[Ie+$]=ve[Ie];return Ie}function Dt(ve){return ve!==ve}},21924:(h,I,a)=>{"use strict";var c=a(40210),v=a(55559),x=v(c("String.prototype.indexOf"));h.exports=function(b,S){var g=c(b,!!S);return typeof g=="function"&&x(b,".prototype.")>-1?v(g):g}},55559:(h,I,a)=>{"use strict";var c=a(58612),v=a(40210),x=v("%Function.prototype.apply%"),d=v("%Function.prototype.call%"),b=v("%Reflect.apply%",!0)||c.call(d,x),S=v("%Object.getOwnPropertyDescriptor%",!0),g=v("%Object.defineProperty%",!0),L=v("%Math.max%");if(g)try{g({},"a",{value:1})}catch(B){g=null}h.exports=function(j){var q=b(c,d,arguments);if(S&&g){var W=S(q,"length");W.configurable&&g(q,"length",{value:1+L(0,j.length-(arguments.length-1))})}return q};var D=function(){return b(c,x,arguments)};g?g(h.exports,"apply",{value:D}):h.exports.apply=D},82801:(h,I,a)=>{(function(c){c(a(4631))})(function(c){var v={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},x=c.Pos;c.defineOption("autoCloseBrackets",!1,function(R,C,V){V&&V!=c.Init&&(R.removeKeyMap(b),R.state.closeBrackets=null),C&&(S(d(C,"pairs")),R.state.closeBrackets=C,R.addKeyMap(b))});function d(R,C){return C=="pairs"&&typeof R=="string"?R:typeof R=="object"&&R[C]!=null?R[C]:v[C]}var b={Backspace:D,Enter:B};function S(R){for(var C=0;C<R.length;C++){var V=R.charAt(C),J="'"+V+"'";b[J]||(b[J]=g(V))}}S(v.pairs+"`");function g(R){return function(C){return W(C,R)}}function L(R){var C=R.state.closeBrackets;if(!C||C.override)return C;var V=R.getModeAt(R.getCursor());return V.closeBrackets||C}function D(R){var C=L(R);if(!C||R.getOption("disableInput"))return c.Pass;for(var V=d(C,"pairs"),J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}for(var _=J.length-1;_>=0;_--){var Y=J[_].head;R.replaceRange("",x(Y.line,Y.ch-1),x(Y.line,Y.ch+1),"+delete")}}function B(R){var C=L(R),V=C&&d(C,"explode");if(!V||R.getOption("disableInput"))return c.Pass;for(var J=R.listSelections(),_=0;_<J.length;_++){if(!J[_].empty())return c.Pass;var Q=M(R,J[_].head);if(!Q||V.indexOf(Q)%2!=0)return c.Pass}R.operation(function(){var Y=R.lineSeparator()||`
|
|
12
|
+
`;R.replaceSelection(Y+Y,null),j(R,-1),J=R.listSelections();for(var ce=0;ce<J.length;ce++){var ee=J[ce].head.line;R.indentLine(ee,null,!0),R.indentLine(ee+1,null,!0)}})}function j(R,C){for(var V=[],J=R.listSelections(),_=0,Q=0;Q<J.length;Q++){var Y=J[Q];Y.head==R.getCursor()&&(_=Q);var ce=Y.head.ch||C>0?{line:Y.head.line,ch:Y.head.ch+C}:{line:Y.head.line-1};V.push({anchor:ce,head:ce})}R.setSelections(V,_)}function q(R){var C=c.cmpPos(R.anchor,R.head)>0;return{anchor:new x(R.anchor.line,R.anchor.ch+(C?-1:1)),head:new x(R.head.line,R.head.ch+(C?1:-1))}}function W(R,C){var V=L(R);if(!V||R.getOption("disableInput"))return c.Pass;var J=d(V,"pairs"),_=J.indexOf(C);if(_==-1)return c.Pass;for(var Q=d(V,"closeBefore"),Y=d(V,"triples"),ce=J.charAt(_+1)==C,ee=R.listSelections(),ie=_%2==0,xe,we=0;we<ee.length;we++){var he=ee[we],fe=he.head,se,Fe=R.getRange(fe,x(fe.line,fe.ch+1));if(ie&&!he.empty())se="surround";else if((ce||!ie)&&Fe==C)ce&&X(R,fe)?se="both":Y.indexOf(C)>=0&&R.getRange(fe,x(fe.line,fe.ch+3))==C+C+C?se="skipThree":se="skip";else if(ce&&fe.ch>1&&Y.indexOf(C)>=0&&R.getRange(x(fe.line,fe.ch-2),fe)==C+C){if(fe.ch>2&&/\bstring/.test(R.getTokenTypeAt(x(fe.line,fe.ch-2))))return c.Pass;se="addFour"}else if(ce){var Le=fe.ch==0?" ":R.getRange(x(fe.line,fe.ch-1),fe);if(!c.isWordChar(Fe)&&Le!=C&&!c.isWordChar(Le))se="both";else return c.Pass}else if(ie&&(Fe.length===0||/\s/.test(Fe)||Q.indexOf(Fe)>-1))se="both";else return c.Pass;if(!xe)xe=se;else if(xe!=se)return c.Pass}var Me=_%2?J.charAt(_-1):C,Pe=_%2?C:J.charAt(_+1);R.operation(function(){if(xe=="skip")j(R,1);else if(xe=="skipThree")j(R,3);else if(xe=="surround"){for(var rt=R.getSelections(),Ze=0;Ze<rt.length;Ze++)rt[Ze]=Me+rt[Ze]+Pe;R.replaceSelections(rt,"around"),rt=R.listSelections().slice();for(var Ze=0;Ze<rt.length;Ze++)rt[Ze]=q(rt[Ze]);R.setSelections(rt)}else xe=="both"?(R.replaceSelection(Me+Pe,null),R.triggerElectric(Me+Pe),j(R,-1)):xe=="addFour"&&(R.replaceSelection(Me+Me+Me+Me,"before"),j(R,1))})}function M(R,C){var V=R.getRange(x(C.line,C.ch-1),x(C.line,C.ch+1));return V.length==2?V:null}function X(R,C){var V=R.getTokenAt(x(C.line,C.ch+1));return/\bstring/.test(V.type)&&V.start==C.ch&&(C.ch==0||!/\bstring/.test(R.getTokenTypeAt(C)))}})},4328:(h,I,a)=>{(function(c){c(a(4631))})(function(c){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),x=c.Pos,d={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function b(j){return j&&j.bracketRegex||/[(){}[\]]/}function S(j,q,W){var M=j.getLineHandle(q.line),X=q.ch-1,R=W&&W.afterCursor;R==null&&(R=/(^| )cm-fat-cursor($| )/.test(j.getWrapperElement().className));var C=b(W),V=!R&&X>=0&&C.test(M.text.charAt(X))&&d[M.text.charAt(X)]||C.test(M.text.charAt(X+1))&&d[M.text.charAt(++X)];if(!V)return null;var J=V.charAt(1)==">"?1:-1;if(W&&W.strict&&J>0!=(X==q.ch))return null;var _=j.getTokenTypeAt(x(q.line,X+1)),Q=g(j,x(q.line,X+(J>0?1:0)),J,_,W);return Q==null?null:{from:x(q.line,X),to:Q&&Q.pos,match:Q&&Q.ch==V.charAt(0),forward:J>0}}function g(j,q,W,M,X){for(var R=X&&X.maxScanLineLength||1e4,C=X&&X.maxScanLines||1e3,V=[],J=b(X),_=W>0?Math.min(q.line+C,j.lastLine()+1):Math.max(j.firstLine()-1,q.line-C),Q=q.line;Q!=_;Q+=W){var Y=j.getLine(Q);if(!!Y){var ce=W>0?0:Y.length-1,ee=W>0?Y.length:-1;if(!(Y.length>R))for(Q==q.line&&(ce=q.ch-(W<0?1:0));ce!=ee;ce+=W){var ie=Y.charAt(ce);if(J.test(ie)&&(M===void 0||(j.getTokenTypeAt(x(Q,ce+1))||"")==(M||""))){var xe=d[ie];if(xe&&xe.charAt(1)==">"==W>0)V.push(ie);else if(V.length)V.pop();else return{pos:x(Q,ce),ch:ie}}}}}return Q-W==(W>0?j.lastLine():j.firstLine())?!1:null}function L(j,q,W){for(var M=j.state.matchBrackets.maxHighlightLineLength||1e3,X=W&&W.highlightNonMatching,R=[],C=j.listSelections(),V=0;V<C.length;V++){var J=C[V].empty()&&S(j,C[V].head,W);if(J&&(J.match||X!==!1)&&j.getLine(J.from.line).length<=M){var _=J.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";R.push(j.markText(J.from,x(J.from.line,J.from.ch+1),{className:_})),J.to&&j.getLine(J.to.line).length<=M&&R.push(j.markText(J.to,x(J.to.line,J.to.ch+1),{className:_}))}}if(R.length){v&&j.state.focused&&j.focus();var Q=function(){j.operation(function(){for(var Y=0;Y<R.length;Y++)R[Y].clear()})};if(q)setTimeout(Q,800);else return Q}}function D(j){j.operation(function(){j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null),j.state.matchBrackets.currentlyHighlighted=L(j,!1,j.state.matchBrackets)})}function B(j){j.state.matchBrackets&&j.state.matchBrackets.currentlyHighlighted&&(j.state.matchBrackets.currentlyHighlighted(),j.state.matchBrackets.currentlyHighlighted=null)}c.defineOption("matchBrackets",!1,function(j,q,W){W&&W!=c.Init&&(j.off("cursorActivity",D),j.off("focus",D),j.off("blur",B),B(j)),q&&(j.state.matchBrackets=typeof q=="object"?q:{},j.on("cursorActivity",D),j.on("focus",D),j.on("blur",B))}),c.defineExtension("matchBrackets",function(){L(this,!0)}),c.defineExtension("findMatchingBracket",function(j,q,W){return(W||typeof q=="boolean")&&(W?(W.strict=q,q=W):q=q?{strict:!0}:null),S(this,j,q)}),c.defineExtension("scanForBracket",function(j,q,W,M){return g(this,j,q,W,M)})})},71707:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-hint",x="CodeMirror-hint-active";c.showHint=function(R,C,V){if(!C)return R.showHint(V);V&&V.async&&(C.async=!0);var J={hint:C};if(V)for(var _ in V)J[_]=V[_];return R.showHint(J)},c.defineExtension("showHint",function(R){R=g(this,this.getCursor("start"),R);var C=this.listSelections();if(!(C.length>1)){if(this.somethingSelected()){if(!R.hint.supportsSelection)return;for(var V=0;V<C.length;V++)if(C[V].head.line!=C[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var J=this.state.completionActive=new d(this,R);!J.options.hint||(c.signal(this,"startCompletion",this),J.update(!0))}}),c.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function d(R,C){if(this.cm=R,this.options=C,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;R.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var b=window.requestAnimationFrame||function(R){return setTimeout(R,1e3/60)},S=window.cancelAnimationFrame||clearTimeout;d.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&c.signal(this.data,"close"),this.widget&&this.widget.close(),c.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(R,C){var V=R.list[C],J=this;this.cm.operation(function(){V.hint?V.hint(J.cm,R,V):J.cm.replaceRange(L(V),V.from||R.from,V.to||R.to,"complete"),c.signal(R,"pick",V),J.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(S(this.debounce),this.debounce=0);var R=this.startPos;this.data&&(R=this.data.from);var C=this.cm.getCursor(),V=this.cm.getLine(C.line);if(C.line!=this.startPos.line||V.length-C.ch!=this.startLen-this.startPos.ch||C.ch<R.ch||this.cm.somethingSelected()||!C.ch||this.options.closeCharacters.test(V.charAt(C.ch-1)))this.close();else{var J=this;this.debounce=b(function(){J.update()}),this.widget&&this.widget.disable()}},update:function(R){if(this.tick!=null){var C=this,V=++this.tick;W(this.options.hint,this.cm,this.options,function(J){C.tick==V&&C.finishUpdate(J,R)})}},finishUpdate:function(R,C){this.data&&c.signal(this.data,"update");var V=this.widget&&this.widget.picked||C&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=R,R&&R.list.length&&(V&&R.list.length==1?this.pick(R,0):(this.widget=new j(this,R),c.signal(R,"shown")))}};function g(R,C,V){var J=R.options.hintOptions,_={};for(var Q in X)_[Q]=X[Q];if(J)for(var Q in J)J[Q]!==void 0&&(_[Q]=J[Q]);if(V)for(var Q in V)V[Q]!==void 0&&(_[Q]=V[Q]);return _.hint.resolve&&(_.hint=_.hint.resolve(R,C)),_}function L(R){return typeof R=="string"?R:R.text}function D(R,C){var V={Up:function(){C.moveFocus(-1)},Down:function(){C.moveFocus(1)},PageUp:function(){C.moveFocus(-C.menuSize()+1,!0)},PageDown:function(){C.moveFocus(C.menuSize()-1,!0)},Home:function(){C.setFocus(0)},End:function(){C.setFocus(C.length-1)},Enter:C.pick,Tab:C.pick,Esc:C.close},J=/Mac/.test(navigator.platform);J&&(V["Ctrl-P"]=function(){C.moveFocus(-1)},V["Ctrl-N"]=function(){C.moveFocus(1)});var _=R.options.customKeys,Q=_?{}:V;function Y(ie,xe){var we;typeof xe!="string"?we=function(he){return xe(he,C)}:V.hasOwnProperty(xe)?we=V[xe]:we=xe,Q[ie]=we}if(_)for(var ce in _)_.hasOwnProperty(ce)&&Y(ce,_[ce]);var ee=R.options.extraKeys;if(ee)for(var ce in ee)ee.hasOwnProperty(ce)&&Y(ce,ee[ce]);return Q}function B(R,C){for(;C&&C!=R;){if(C.nodeName.toUpperCase()==="LI"&&C.parentNode==R)return C;C=C.parentNode}}function j(R,C){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=R,this.data=C,this.picked=!1;var V=this,J=R.cm,_=J.getInputField().ownerDocument,Q=_.defaultView||_.parentWindow,Y=this.hints=_.createElement("ul");Y.setAttribute("role","listbox"),Y.setAttribute("aria-expanded","true"),Y.id=this.id;var ce=R.cm.options.theme;Y.className="CodeMirror-hints "+ce,this.selectedHint=C.selectedHint||0;for(var ee=C.list,ie=0;ie<ee.length;++ie){var xe=Y.appendChild(_.createElement("li")),we=ee[ie],he=v+(ie!=this.selectedHint?"":" "+x);we.className!=null&&(he=we.className+" "+he),xe.className=he,ie==this.selectedHint&&xe.setAttribute("aria-selected","true"),xe.id=this.id+"-"+ie,xe.setAttribute("role","option"),we.render?we.render(xe,C,we):xe.appendChild(_.createTextNode(we.displayText||L(we))),xe.hintId=ie}var fe=R.options.container||_.body,se=J.cursorCoords(R.options.alignWithWord?C.from:null),Fe=se.left,Le=se.bottom,Me=!0,Pe=0,rt=0;if(fe!==_.body){var Ze=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(fe).position)!==-1,Xe=Ze?fe:fe.offsetParent,ft=Xe.getBoundingClientRect(),ht=_.body.getBoundingClientRect();Pe=ft.left-ht.left-Xe.scrollLeft,rt=ft.top-ht.top-Xe.scrollTop}Y.style.left=Fe-Pe+"px",Y.style.top=Le-rt+"px";var wt=Q.innerWidth||Math.max(_.body.offsetWidth,_.documentElement.offsetWidth),nt=Q.innerHeight||Math.max(_.body.offsetHeight,_.documentElement.offsetHeight);fe.appendChild(Y),J.getInputField().setAttribute("aria-autocomplete","list"),J.getInputField().setAttribute("aria-owns",this.id),J.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var ut=R.options.moveOnOverlap?Y.getBoundingClientRect():new DOMRect,mt=R.options.paddingForScrollbar?Y.scrollHeight>Y.clientHeight+1:!1,xt;setTimeout(function(){xt=J.getScrollInfo()});var pt=ut.bottom-nt;if(pt>0){var Mt=ut.bottom-ut.top,kt=se.top-(se.bottom-ut.top);if(kt-Mt>0)Y.style.top=(Le=se.top-Mt-rt)+"px",Me=!1;else if(Mt>nt){Y.style.height=nt-5+"px",Y.style.top=(Le=se.bottom-ut.top-rt)+"px";var Et=J.getCursor();C.from.ch!=Et.ch&&(se=J.cursorCoords(Et),Y.style.left=(Fe=se.left-Pe)+"px",ut=Y.getBoundingClientRect())}}var zt=ut.right-wt;if(mt&&(zt+=J.display.nativeBarWidth),zt>0&&(ut.right-ut.left>wt&&(Y.style.width=wt-5+"px",zt-=ut.right-ut.left-wt),Y.style.left=(Fe=se.left-zt-Pe)+"px"),mt)for(var jt=Y.firstChild;jt;jt=jt.nextSibling)jt.style.paddingRight=J.display.nativeBarWidth+"px";if(J.addKeyMap(this.keyMap=D(R,{moveFocus:function(Dt,ve){V.changeActive(V.selectedHint+Dt,ve)},setFocus:function(Dt){V.changeActive(Dt)},menuSize:function(){return V.screenAmount()},length:ee.length,close:function(){R.close()},pick:function(){V.pick()},data:C})),R.options.closeOnUnfocus){var Vt;J.on("blur",this.onBlur=function(){Vt=setTimeout(function(){R.close()},100)}),J.on("focus",this.onFocus=function(){clearTimeout(Vt)})}J.on("scroll",this.onScroll=function(){var Dt=J.getScrollInfo(),ve=J.getWrapperElement().getBoundingClientRect();xt||(xt=J.getScrollInfo());var z=Le+xt.top-Dt.top,$=z-(Q.pageYOffset||(_.documentElement||_.body).scrollTop);if(Me||($+=Y.offsetHeight),$<=ve.top||$>=ve.bottom)return R.close();Y.style.top=z+"px",Y.style.left=Fe+xt.left-Dt.left+"px"}),c.on(Y,"dblclick",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),V.pick())}),c.on(Y,"click",function(Dt){var ve=B(Y,Dt.target||Dt.srcElement);ve&&ve.hintId!=null&&(V.changeActive(ve.hintId),R.options.completeOnSingleClick&&V.pick())}),c.on(Y,"mousedown",function(){setTimeout(function(){J.focus()},20)});var St=this.getSelectedHintRange();return(St.from!==0||St.to!==0)&&this.scrollToActive(),c.signal(C,"select",ee[this.selectedHint],Y.childNodes[this.selectedHint]),!0}j.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var R=this.completion.cm.getInputField();R.removeAttribute("aria-activedescendant"),R.removeAttribute("aria-owns");var C=this.completion.cm;this.completion.options.closeOnUnfocus&&(C.off("blur",this.onBlur),C.off("focus",this.onFocus)),C.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var R=this;this.keyMap={Enter:function(){R.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(R,C){if(R>=this.data.list.length?R=C?this.data.list.length-1:0:R<0&&(R=C?0:this.data.list.length-1),this.selectedHint!=R){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+x,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=R],V.className+=" "+x,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),c.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var R=this.getSelectedHintRange(),C=this.hints.childNodes[R.from],V=this.hints.childNodes[R.to],J=this.hints.firstChild;C.offsetTop<this.hints.scrollTop?this.hints.scrollTop=C.offsetTop-J.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+J.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var R=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-R),to:Math.min(this.data.list.length-1,this.selectedHint+R)}}};function q(R,C){if(!R.somethingSelected())return C;for(var V=[],J=0;J<C.length;J++)C[J].supportsSelection&&V.push(C[J]);return V}function W(R,C,V,J){if(R.async)R(C,J,V);else{var _=R(C,V);_&&_.then?_.then(J):J(_)}}function M(R,C){var V=R.getHelpers(C,"hint"),J;if(V.length){var _=function(Q,Y,ce){var ee=q(Q,V);function ie(xe){if(xe==ee.length)return Y(null);W(ee[xe],Q,ce,function(we){we&&we.list.length>0?Y(we):ie(xe+1)})}ie(0)};return _.async=!0,_.supportsSelection=!0,_}else return(J=R.getHelper(R.getCursor(),"hintWords"))?function(Q){return c.hint.fromList(Q,{words:J})}:c.hint.anyword?function(Q,Y){return c.hint.anyword(Q,Y)}:function(){}}c.registerHelper("hint","auto",{resolve:M}),c.registerHelper("hint","fromList",function(R,C){var V=R.getCursor(),J=R.getTokenAt(V),_,Q=c.Pos(V.line,J.start),Y=V;J.start<V.ch&&/\w/.test(J.string.charAt(V.ch-J.start-1))?_=J.string.substr(0,V.ch-J.start):(_="",Q=V);for(var ce=[],ee=0;ee<C.words.length;ee++){var ie=C.words[ee];ie.slice(0,_.length)==_&&ce.push(ie)}if(ce.length)return{list:ce,from:Q,to:Y}}),c.commands.autocomplete=c.showHint;var X={hint:c.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};c.defineOption("hintOptions",null)})},3256:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v="CodeMirror-lint-markers",x="CodeMirror-lint-line-";function d(Y,ce,ee){var ie=document.createElement("div");ie.className="CodeMirror-lint-tooltip cm-s-"+Y.options.theme,ie.appendChild(ee.cloneNode(!0)),Y.state.lint.options.selfContain?Y.getWrapperElement().appendChild(ie):document.body.appendChild(ie);function xe(we){if(!ie.parentNode)return c.off(document,"mousemove",xe);ie.style.top=Math.max(0,we.clientY-ie.offsetHeight-5)+"px",ie.style.left=we.clientX+5+"px"}return c.on(document,"mousemove",xe),xe(ce),ie.style.opacity!=null&&(ie.style.opacity=1),ie}function b(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}function S(Y){!Y.parentNode||(Y.style.opacity==null&&b(Y),Y.style.opacity=0,setTimeout(function(){b(Y)},600))}function g(Y,ce,ee,ie){var xe=d(Y,ce,ee);function we(){c.off(ie,"mouseout",we),xe&&(S(xe),xe=null)}var he=setInterval(function(){if(xe)for(var fe=ie;;fe=fe.parentNode){if(fe&&fe.nodeType==11&&(fe=fe.host),fe==document.body)return;if(!fe){we();break}}if(!xe)return clearInterval(he)},400);c.on(ie,"mouseout",we)}function L(Y,ce,ee){this.marked=[],ce instanceof Function&&(ce={getAnnotations:ce}),(!ce||ce===!0)&&(ce={}),this.options={},this.linterOptions=ce.options||{};for(var ie in D)this.options[ie]=D[ie];for(var ie in ce)D.hasOwnProperty(ie)?ce[ie]!=null&&(this.options[ie]=ce[ie]):ce.options||(this.linterOptions[ie]=ce[ie]);this.timeout=null,this.hasGutter=ee,this.onMouseOver=function(xe){Q(Y,xe)},this.waitingFor=0}var D={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function B(Y){var ce=Y.state.lint;ce.hasGutter&&Y.clearGutter(v),ce.options.highlightLines&&j(Y);for(var ee=0;ee<ce.marked.length;++ee)ce.marked[ee].clear();ce.marked.length=0}function j(Y){Y.eachLine(function(ce){var ee=ce.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(ce.wrapClass);ee&&Y.removeLineClass(ce,"wrap",ee[0])})}function q(Y,ce,ee,ie,xe){var we=document.createElement("div"),he=we;return we.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+ee,ie&&(he=we.appendChild(document.createElement("div")),he.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),xe!=!1&&c.on(he,"mouseover",function(fe){g(Y,fe,ce,he)}),we}function W(Y,ce){return Y=="error"?Y:ce}function M(Y){for(var ce=[],ee=0;ee<Y.length;++ee){var ie=Y[ee],xe=ie.from.line;(ce[xe]||(ce[xe]=[])).push(ie)}return ce}function X(Y){var ce=Y.severity;ce||(ce="error");var ee=document.createElement("div");return ee.className="CodeMirror-lint-message CodeMirror-lint-message-"+ce,typeof Y.messageHTML!="undefined"?ee.innerHTML=Y.messageHTML:ee.appendChild(document.createTextNode(Y.message)),ee}function R(Y,ce){var ee=Y.state.lint,ie=++ee.waitingFor;function xe(){ie=-1,Y.off("change",xe)}Y.on("change",xe),ce(Y.getValue(),function(we,he){Y.off("change",xe),ee.waitingFor==ie&&(he&&we instanceof c&&(we=he),Y.operation(function(){V(Y,we)}))},ee.linterOptions,Y)}function C(Y){var ce=Y.state.lint;if(!!ce){var ee=ce.options,ie=ee.getAnnotations||Y.getHelper(c.Pos(0,0),"lint");if(!!ie)if(ee.async||ie.async)R(Y,ie);else{var xe=ie(Y.getValue(),ce.linterOptions,Y);if(!xe)return;xe.then?xe.then(function(we){Y.operation(function(){V(Y,we)})}):Y.operation(function(){V(Y,xe)})}}}function V(Y,ce){var ee=Y.state.lint;if(!!ee){var ie=ee.options;B(Y);for(var xe=M(ce),we=0;we<xe.length;++we){var he=xe[we];if(!!he){var fe=[];he=he.filter(function(rt){return fe.indexOf(rt.message)>-1?!1:fe.push(rt.message)});for(var se=null,Fe=ee.hasGutter&&document.createDocumentFragment(),Le=0;Le<he.length;++Le){var Me=he[Le],Pe=Me.severity;Pe||(Pe="error"),se=W(se,Pe),ie.formatAnnotation&&(Me=ie.formatAnnotation(Me)),ee.hasGutter&&Fe.appendChild(X(Me)),Me.to&&ee.marked.push(Y.markText(Me.from,Me.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Pe,__annotation:Me}))}ee.hasGutter&&Y.setGutterMarker(we,v,q(Y,Fe,se,xe[we].length>1,ie.tooltips)),ie.highlightLines&&Y.addLineClass(we,"wrap",x+se)}}ie.onUpdateLinting&&ie.onUpdateLinting(ce,xe,Y)}}function J(Y){var ce=Y.state.lint;!ce||(clearTimeout(ce.timeout),ce.timeout=setTimeout(function(){C(Y)},ce.options.delay))}function _(Y,ce,ee){for(var ie=ee.target||ee.srcElement,xe=document.createDocumentFragment(),we=0;we<ce.length;we++){var he=ce[we];xe.appendChild(X(he))}g(Y,ee,xe,ie)}function Q(Y,ce){var ee=ce.target||ce.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(ee.className)){for(var ie=ee.getBoundingClientRect(),xe=(ie.left+ie.right)/2,we=(ie.top+ie.bottom)/2,he=Y.findMarksAt(Y.coordsChar({left:xe,top:we},"client")),fe=[],se=0;se<he.length;++se){var Fe=he[se].__annotation;Fe&&fe.push(Fe)}fe.length&&_(Y,fe,ce)}}c.defineOption("lint",!1,function(Y,ce,ee){if(ee&&ee!=c.Init&&(B(Y),Y.state.lint.options.lintOnChange!==!1&&Y.off("change",J),c.off(Y.getWrapperElement(),"mouseover",Y.state.lint.onMouseOver),clearTimeout(Y.state.lint.timeout),delete Y.state.lint),ce){for(var ie=Y.getOption("gutters"),xe=!1,we=0;we<ie.length;++we)ie[we]==v&&(xe=!0);var he=Y.state.lint=new L(Y,ce,xe);he.options.lintOnChange&&Y.on("change",J),he.options.tooltips!=!1&&he.options.tooltips!="gutter"&&c.on(Y.getWrapperElement(),"mouseover",he.onMouseOver),C(Y)}}),c.defineExtension("performLint",function(){C(this)})})},32095:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";var v=c.Pos;function x(C){var V=C.flags;return V!=null?V:(C.ignoreCase?"i":"")+(C.global?"g":"")+(C.multiline?"m":"")}function d(C,V){for(var J=x(C),_=J,Q=0;Q<V.length;Q++)_.indexOf(V.charAt(Q))==-1&&(_+=V.charAt(Q));return J==_?C:new RegExp(C.source,_)}function b(C){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(C.source)}function S(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.lastLine();_<=Y;_++,Q=0){V.lastIndex=Q;var ce=C.getLine(_),ee=V.exec(ce);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function g(C,V,J){if(!b(V))return S(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=J.line,ce=C.lastLine();Y<=ce;){for(var ee=0;ee<Q&&!(Y>ce);ee++){var ie=C.getLine(Y++);_=_==null?ie:_+`
|
|
13
|
+
`+ie}Q=Q*2,V.lastIndex=J.ch;var xe=V.exec(_);if(xe){var we=_.slice(0,xe.index).split(`
|
|
14
|
+
`),he=xe[0].split(`
|
|
15
|
+
`),fe=J.line+we.length-1,se=we[we.length-1].length;return{from:v(fe,se),to:v(fe+he.length-1,he.length==1?se+he[0].length:he[he.length-1].length),match:xe}}}}function L(C,V,J){for(var _,Q=0;Q<=C.length;){V.lastIndex=Q;var Y=V.exec(C);if(!Y)break;var ce=Y.index+Y[0].length;if(ce>C.length-J)break;(!_||ce>_.index+_[0].length)&&(_=Y),Q=Y.index+1}return _}function D(C,V,J){V=d(V,"g");for(var _=J.line,Q=J.ch,Y=C.firstLine();_>=Y;_--,Q=-1){var ce=C.getLine(_),ee=L(ce,V,Q<0?0:ce.length-Q);if(ee)return{from:v(_,ee.index),to:v(_,ee.index+ee[0].length),match:ee}}}function B(C,V,J){if(!b(V))return D(C,V,J);V=d(V,"gm");for(var _,Q=1,Y=C.getLine(J.line).length-J.ch,ce=J.line,ee=C.firstLine();ce>=ee;){for(var ie=0;ie<Q&&ce>=ee;ie++){var xe=C.getLine(ce--);_=_==null?xe:xe+`
|
|
16
|
+
`+_}Q*=2;var we=L(_,V,Y);if(we){var he=_.slice(0,we.index).split(`
|
|
17
|
+
`),fe=we[0].split(`
|
|
18
|
+
`),se=ce+he.length,Fe=he[he.length-1].length;return{from:v(se,Fe),to:v(se+fe.length-1,fe.length==1?Fe+fe[0].length:fe[fe.length-1].length),match:we}}}}var j,q;String.prototype.normalize?(j=function(C){return C.normalize("NFD").toLowerCase()},q=function(C){return C.normalize("NFD")}):(j=function(C){return C.toLowerCase()},q=function(C){return C});function W(C,V,J,_){if(C.length==V.length)return J;for(var Q=0,Y=J+Math.max(0,C.length-V.length);;){if(Q==Y)return Q;var ce=Q+Y>>1,ee=_(C.slice(0,ce)).length;if(ee==J)return ce;ee>J?Y=ce:Q=ce+1}}function M(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.lastLine()+1-Y.length;ce<=ie;ce++,ee=0){var xe=C.getLine(ce).slice(ee),we=Q(xe);if(Y.length==1){var he=we.indexOf(Y[0]);if(he==-1)continue e;var J=W(xe,we,he,Q)+ee;return{from:v(ce,W(xe,we,he,Q)+ee),to:v(ce,W(xe,we,he+Y[0].length,Q)+ee)}}else{var fe=we.length-Y[0].length;if(we.slice(fe)!=Y[0])continue e;for(var se=1;se<Y.length-1;se++)if(Q(C.getLine(ce+se))!=Y[se])continue e;var Fe=C.getLine(ce+Y.length-1),Le=Q(Fe),Me=Y[Y.length-1];if(Le.slice(0,Me.length)!=Me)continue e;return{from:v(ce,W(xe,we,fe,Q)+ee),to:v(ce+Y.length-1,W(Fe,Le,Me.length,Q))}}}}function X(C,V,J,_){if(!V.length)return null;var Q=_?j:q,Y=Q(V).split(/\r|\n\r?/);e:for(var ce=J.line,ee=J.ch,ie=C.firstLine()-1+Y.length;ce>=ie;ce--,ee=-1){var xe=C.getLine(ce);ee>-1&&(xe=xe.slice(0,ee));var we=Q(xe);if(Y.length==1){var he=we.lastIndexOf(Y[0]);if(he==-1)continue e;return{from:v(ce,W(xe,we,he,Q)),to:v(ce,W(xe,we,he+Y[0].length,Q))}}else{var fe=Y[Y.length-1];if(we.slice(0,fe.length)!=fe)continue e;for(var se=1,J=ce-Y.length+1;se<Y.length-1;se++)if(Q(C.getLine(J+se))!=Y[se])continue e;var Fe=C.getLine(ce+1-Y.length),Le=Q(Fe);if(Le.slice(Le.length-Y[0].length)!=Y[0])continue e;return{from:v(ce+1-Y.length,W(Fe,Le,Fe.length-Y[0].length,Q)),to:v(ce,W(xe,we,fe.length,Q))}}}}function R(C,V,J,_){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=C,J=J?C.clipPos(J):v(0,0),this.pos={from:J,to:J};var Q;typeof _=="object"?Q=_.caseFold:(Q=_,_=null),typeof V=="string"?(Q==null&&(Q=!1),this.matches=function(Y,ce){return(Y?X:M)(C,V,ce,Q)}):(V=d(V,"gm"),!_||_.multiline!==!1?this.matches=function(Y,ce){return(Y?B:g)(C,V,ce)}:this.matches=function(Y,ce){return(Y?D:S)(C,V,ce)})}R.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(C){var V=this.doc.clipPos(C?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=v(V.line,V.ch),C?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),c.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var J=this.matches(C,V);if(this.afterEmptyMatch=J&&c.cmpPos(J.from,J.to)==0,J)return this.pos=J,this.atOccurrence=!0,this.pos.match||!0;var _=v(C?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:_,to:_},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(C,V){if(!!this.atOccurrence){var J=c.splitLines(C);this.doc.replaceRange(J,this.pos.from,this.pos.to,V),this.pos.to=v(this.pos.from.line+J.length-1,J[J.length-1].length+(J.length==1?this.pos.from.ch:0))}}},c.defineExtension("getSearchCursor",function(C,V,J){return new R(this.doc,C,V,J)}),c.defineDocExtension("getSearchCursor",function(C,V,J){return new R(this,C,V,J)}),c.defineExtension("selectMatches",function(C,V){for(var J=[],_=this.getSearchCursor(C,this.getCursor("from"),V);_.findNext()&&!(c.cmpPos(_.to(),this.getCursor("to"))>0);)J.push({anchor:_.from(),head:_.to()});J.length&&this.setSelections(J,0)})})},4631:function(h){(function(I,a){h.exports=a()})(this,function(){"use strict";var I=navigator.userAgent,a=navigator.platform,c=/gecko\/\d/i.test(I),v=/MSIE \d/.test(I),x=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),d=/Edge\/(\d+)/.exec(I),b=v||x||d,S=b&&(v?document.documentMode||6:+(d||x)[1]),g=!d&&/WebKit\//.test(I),L=g&&/Qt\/\d+\.\d+/.test(I),D=!d&&/Chrome\//.test(I),B=/Opera\//.test(I),j=/Apple Computer/.test(navigator.vendor),q=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),W=/PhantomJS/.test(I),M=j&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),X=/Android/.test(I),R=M||X||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),C=M||/Mac/.test(a),V=/\bCrOS\b/.test(I),J=/win/i.test(a),_=B&&I.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(B=!1,g=!0);var Q=C&&(L||B&&(_==null||_<12.11)),Y=c||b&&S>=9;function ce(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ee=function(e,n){var u=e.className,l=ce(n).exec(u);if(l){var f=u.slice(l.index+l[0].length);e.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function ie(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function xe(e,n){return ie(e).appendChild(n)}function we(e,n,u,l){var f=document.createElement(e);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var m=0;m<n.length;++m)f.appendChild(n[m]);return f}function he(e,n,u,l){var f=we(e,n,u,l);return f.setAttribute("role","presentation"),f}var fe;document.createRange?fe=function(e,n,u,l){var f=document.createRange();return f.setEnd(l||e,u),f.setStart(e,n),f}:fe=function(e,n,u){var l=document.body.createTextRange();try{l.moveToElementText(e.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",n),l};function se(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function Fe(){var e;try{e=document.activeElement}catch(n){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Le(e,n){var u=e.className;ce(n).test(u)||(e.className+=(u?" ":"")+n)}function Me(e,n){for(var u=e.split(" "),l=0;l<u.length;l++)u[l]&&!ce(u[l]).test(n)&&(n+=" "+u[l]);return n}var Pe=function(e){e.select()};M?Pe=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:b&&(Pe=function(e){try{e.select()}catch(n){}});function rt(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function Ze(e,n,u){n||(n={});for(var l in e)e.hasOwnProperty(l)&&(u!==!1||!n.hasOwnProperty(l))&&(n[l]=e[l]);return n}function Xe(e,n,u,l,f){n==null&&(n=e.search(/[^\s\u00a0]/),n==-1&&(n=e.length));for(var m=l||0,k=f||0;;){var U=e.indexOf(" ",m);if(U<0||U>=n)return k+(n-m);k+=U-m,k+=u-k%u,m=U+1}}var ft=function(){this.id=null,this.f=null,this.time=0,this.handler=rt(this.onTimeout,this)};ft.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},ft.prototype.set=function(e,n){this.f=n;var u=+new Date+e;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=u)};function ht(e,n){for(var u=0;u<e.length;++u)if(e[u]==n)return u;return-1}var wt=50,nt={toString:function(){return"CodeMirror.Pass"}},ut={scroll:!1},mt={origin:"*mouse"},xt={origin:"+move"};function pt(e,n,u){for(var l=0,f=0;;){var m=e.indexOf(" ",l);m==-1&&(m=e.length);var k=m-l;if(m==e.length||f+k>=n)return l+Math.min(k,n-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=n)return l}}var Mt=[""];function kt(e){for(;Mt.length<=e;)Mt.push(Et(Mt)+" ");return Mt[e]}function Et(e){return e[e.length-1]}function zt(e,n){for(var u=[],l=0;l<e.length;l++)u[l]=n(e[l],l);return u}function jt(e,n,u){for(var l=0,f=u(n);l<e.length&&u(e[l])<=f;)l++;e.splice(l,0,n)}function Vt(){}function St(e,n){var u;return Object.create?u=Object.create(e):(Vt.prototype=e,u=new Vt),n&&Ze(n,u),u}var Dt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ve(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Dt.test(e))}function z(e,n){return n?n.source.indexOf("\\w")>-1&&ve(e)?!0:n.test(e):ve(e)}function $(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ie(e){return e.charCodeAt(0)>=768&&Se.test(e)}function Ge(e,n,u){for(;(u<0?n>0:n<e.length)&&Ie(e.charAt(n));)n+=u;return n}function Ke(e,n,u){for(var l=n>u?-1:1;;){if(n==u)return n;var f=(n+u)/2,m=l<0?Math.ceil(f):Math.floor(f);if(m==n)return e(m)?n:u;e(m)?u=m:n=m+l}}function P(e,n,u,l){if(!e)return l(n,u,"ltr",0);for(var f=!1,m=0;m<e.length;++m){var k=e[m];(k.from<u&&k.to>n||n==u&&k.to==n)&&(l(Math.max(k.from,n),Math.min(k.to,u),k.level==1?"rtl":"ltr",m),f=!0)}f||l(n,u,"ltr")}var Re=null;function K(e,n,u){var l;Re=null;for(var f=0;f<e.length;++f){var m=e[f];if(m.from<n&&m.to>n)return f;m.to==n&&(m.from!=m.to&&u=="before"?l=f:Re=f),m.from==n&&(m.from!=m.to&&u!="before"?l=f:Re=f)}return l!=null?l:Re}var T=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(Z){return Z<=247?e.charAt(Z):1424<=Z&&Z<=1524?"R":1536<=Z&&Z<=1785?n.charAt(Z-1536):1774<=Z&&Z<=2220?"r":8192<=Z&&Z<=8203?"w":Z==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,m=/[LRr]/,k=/[Lb1n]/,U=/[1n]/;function H(Z,be,Ce){this.level=Z,this.from=be,this.to=Ce}return function(Z,be){var Ce=be=="ltr"?"L":"R";if(Z.length==0||be=="ltr"&&!l.test(Z))return!1;for(var Ne=Z.length,ke=[],Ye=0;Ye<Ne;++Ye)ke.push(u(Z.charCodeAt(Ye)));for(var tt=0,ot=Ce;tt<Ne;++tt){var ct=ke[tt];ct=="m"?ke[tt]=ot:ot=ct}for(var yt=0,dt=Ce;yt<Ne;++yt){var bt=ke[yt];bt=="1"&&dt=="r"?ke[yt]="n":m.test(bt)&&(dt=bt,bt=="r"&&(ke[yt]="R"))}for(var Ft=1,It=ke[0];Ft<Ne-1;++Ft){var it=ke[Ft];it=="+"&&It=="1"&&ke[Ft+1]=="1"?ke[Ft]="1":it==","&&It==ke[Ft+1]&&(It=="1"||It=="n")&&(ke[Ft]=It),It=it}for(var Tt=0;Tt<Ne;++Tt){var Sr=ke[Tt];if(Sr==",")ke[Tt]="N";else if(Sr=="%"){var vr=void 0;for(vr=Tt+1;vr<Ne&&ke[vr]=="%";++vr);for(var wn=Tt&&ke[Tt-1]=="!"||vr<Ne&&ke[vr]=="1"?"1":"N",fn=Tt;fn<vr;++fn)ke[fn]=wn;Tt=vr-1}}for(var Ir=0,Yr=Ce;Ir<Ne;++Ir){var Vr=ke[Ir];Yr=="L"&&Vr=="1"?ke[Ir]="L":m.test(Vr)&&(Yr=Vr)}for(var Fr=0;Fr<Ne;++Fr)if(f.test(ke[Fr])){var Ar=void 0;for(Ar=Fr+1;Ar<Ne&&f.test(ke[Ar]);++Ar);for(var dr=(Fr?ke[Fr-1]:Ce)=="L",cn=(Ar<Ne?ke[Ar]:Ce)=="L",Ca=dr==cn?dr?"L":"R":Ce,gi=Fr;gi<Ar;++gi)ke[gi]=Ca;Fr=Ar-1}for(var Jr=[],ni,Wr=0;Wr<Ne;)if(k.test(ke[Wr])){var is=Wr;for(++Wr;Wr<Ne&&k.test(ke[Wr]);++Wr);Jr.push(new H(0,is,Wr))}else{var yi=Wr,Kn=Jr.length,Lr=be=="rtl"?1:0;for(++Wr;Wr<Ne&&ke[Wr]!="L";++Wr);for(var dn=yi;dn<Wr;)if(U.test(ke[dn])){yi<dn&&(Jr.splice(Kn,0,new H(1,yi,dn)),Kn+=Lr);var ii=dn;for(++dn;dn<Wr&&U.test(ke[dn]);++dn);Jr.splice(Kn,0,new H(2,ii,dn)),Kn+=Lr,yi=dn}else++dn;yi<Wr&&Jr.splice(Kn,0,new H(1,yi,Wr))}return be=="ltr"&&(Jr[0].level==1&&(ni=Z.match(/^\s+/))&&(Jr[0].from=ni[0].length,Jr.unshift(new H(0,0,ni[0].length))),Et(Jr).level==1&&(ni=Z.match(/\s+$/))&&(Et(Jr).to-=ni[0].length,Jr.push(new H(0,Ne-ni[0].length,Ne)))),be=="rtl"?Jr.reverse():Jr}}();function O(e,n){var u=e.order;return u==null&&(u=e.order=T(e.text,n)),u}var le=[],N=function(e,n,u){if(e.addEventListener)e.addEventListener(n,u,!1);else if(e.attachEvent)e.attachEvent("on"+n,u);else{var l=e._handlers||(e._handlers={});l[n]=(l[n]||le).concat(u)}};function re(e,n){return e._handlers&&e._handlers[n]||le}function de(e,n,u){if(e.removeEventListener)e.removeEventListener(n,u,!1);else if(e.detachEvent)e.detachEvent("on"+n,u);else{var l=e._handlers,f=l&&l[n];if(f){var m=ht(f,u);m>-1&&(l[n]=f.slice(0,m).concat(f.slice(m+1)))}}}function ae(e,n){var u=re(e,n);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function pe(e,n,u){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),ae(e,u||n.type,e,n),At(n)||n.codemirrorIgnore}function Ee(e){var n=e._handlers&&e._handlers.cursorActivity;if(!!n)for(var u=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),l=0;l<n.length;++l)ht(u,n[l])==-1&&u.push(n[l])}function Ue(e,n){return re(e,n).length>0}function je(e){e.prototype.on=function(n,u){N(this,n,u)},e.prototype.off=function(n,u){de(this,n,u)}}function Qe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function vt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function At(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Bt(e){Qe(e),vt(e)}function Pt(e){return e.target||e.srcElement}function hn(e){var n=e.which;return n==null&&(e.button&1?n=1:e.button&2?n=3:e.button&4&&(n=2)),C&&e.ctrlKey&&n==1&&(n=3),n}var Nr=function(){if(b&&S<9)return!1;var e=we("div");return"draggable"in e||"dragDrop"in e}(),Cr;function Ai(e){if(Cr==null){var n=we("span","\u200B");xe(e,we("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Cr=n.offsetWidth<=1&&n.offsetHeight>2&&!(b&&S<8))}var u=Cr?we("span","\u200B"):we("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var Gr;function Wi(e){if(Gr!=null)return Gr;var n=xe(e,document.createTextNode("A\u062EA")),u=fe(n,0,1).getBoundingClientRect(),l=fe(n,1,2).getBoundingClientRect();return ie(e),!u||u.left==u.right?!1:Gr=l.right-u.right<3}var Bn=`
|
|
19
19
|
|
|
20
|
-
b`.split(/\n/).length!=3?function(e){for(var
|
|
21
|
-
`,i);f==-1&&(f=e.length);var m=e.slice(i,e.charAt(f-1)=="\r"?f-1:f),F=m.indexOf("\r");F!=-1?(u.push(m.slice(0,F)),i+=F+1):(u.push(m),i=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},pn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(i){return!1}}:function(e){var i;try{i=e.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=e?!1:i.compareEndPoints("StartToEnd",i)!=0},On=function(){var e=be("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),$r=null;function wi(e){if($r!=null)return $r;var i=ye(e,be("span","x")),u=i.getBoundingClientRect(),l=ue(i,0,1).getBoundingClientRect();return $r=Math.abs(u.left-l.left)>1}var Si={},en={};function hn(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Si[e]=i}function Bn(e,i){en[e]=i}function Un(e){if(typeof e=="string"&&en.hasOwnProperty(e))e=en[e];else if(e&&typeof e.name=="string"&&en.hasOwnProperty(e.name)){var i=en[e.name];typeof i=="string"&&(i={name:i}),e=wt(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Un("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Un("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function vn(e,i){i=Un(i);var u=Si[i.name];if(!u)return vn(e,"text/plain");var l=u(e,i);if(Xn.hasOwnProperty(i.name)){var f=Xn[i.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var F in i.modeProps)l[F]=i.modeProps[F];return l}var Xn={};function Ai(e,i){var u=Xn.hasOwnProperty(e)?Xn[e]:Xn[e]={};Ze(i,u)}function Ur(e,i){if(i===!0)return i;if(e.copyState)return e.copyState(i);var u={};for(var l in i){var f=i[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function Kr(e,i){for(var u;e.innerMode&&(u=e.innerMode(i),!(!u||u.mode==e));)i=u.state,e=u.mode;return u||{mode:e,state:i}}function Qn(e,i,u){return e.startState?e.startState(i,u):!0}var fr=function(e,i,u){this.pos=this.start=0,this.string=e,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};fr.prototype.eol=function(){return this.pos>=this.string.length},fr.prototype.sol=function(){return this.pos==this.lineStart},fr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},fr.prototype.eat=function(e){var i=this.string.charAt(this.pos),u;if(typeof e=="string"?u=i==e:u=i&&(e.test?e.test(i):e(i)),u)return++this.pos,i},fr.prototype.eatWhile=function(e){for(var i=this.pos;this.eat(e););return this.pos>i},fr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},fr.prototype.skipToEnd=function(){this.pos=this.string.length},fr.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},fr.prototype.backUp=function(e){this.pos-=e},fr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},fr.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},fr.prototype.match=function(e,i,u){if(typeof e=="string"){var l=function(F){return u?F.toLowerCase():F},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return i!==!1&&(this.pos+=e.length),!0}else{var m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},fr.prototype.current=function(){return this.string.slice(this.start,this.pos)},fr.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},fr.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},fr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ot(e,i){if(i-=e.first,i<0||i>=e.size)throw new Error("There is no line "+(i+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],m=f.chunkSize();if(i<m){u=f;break}i-=m}return u.lines[i]}function ai(e,i,u){var l=[],f=i.line;return e.iter(i.line,u.line+1,function(m){var F=m.text;f==u.line&&(F=F.slice(0,u.ch)),f==i.line&&(F=F.slice(i.ch)),l.push(F),++f}),l}function Ei(e,i,u){var l=[];return e.iter(i,u,function(f){l.push(f.text)}),l}function Sn(e,i){var u=i-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function Zt(e){if(e.parent==null)return null;for(var i=e.parent,u=ht(i.lines,e),l=i.parent;l;i=l,l=l.parent)for(var f=0;l.children[f]!=i;++f)u+=l.children[f].chunkSize();return u+i.first}function jn(e,i){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],m=f.height;if(i<m){e=f;continue e}i-=m,u+=f.chunkSize()}return u}while(!e.lines);for(var F=0;F<e.lines.length;++F){var U=e.lines[F],H=U.height;if(i<H)break;i-=H}return u+F}function Zn(e,i){return i>=e.first&&i<e.first+e.size}function fa(e,i){return String(e.lineNumberFormatter(i+e.firstLineNumber))}function it(e,i,u){if(u===void 0&&(u=null),!(this instanceof it))return new it(e,i,u);this.line=e,this.ch=i,this.sticky=u}function Lt(e,i){return e.line-i.line||e.ch-i.ch}function oi(e,i){return e.sticky==i.sticky&&Lt(e,i)==0}function le(e){return it(e.line,e.ch)}function Oe(e,i){return Lt(e,i)<0?i:e}function qe(e,i){return Lt(e,i)<0?e:i}function st(e,i){return Math.max(e.first,Math.min(i,e.first+e.size-1))}function lt(e,i){if(i.line<e.first)return it(e.first,0);var u=e.first+e.size-1;return i.line>u?it(u,Ot(e,u).text.length):Kt(i,Ot(e,i.line).text.length)}function Kt(e,i){var u=e.ch;return u==null||u>i?it(e.line,i):u<0?it(e.line,0):e}function Xt(e,i){for(var u=[],l=0;l<i.length;l++)u[l]=lt(e,i[l]);return u}var Or=function(e,i){this.state=e,this.lookAhead=i},Tr=function(e,i,u,l){this.state=i,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Tr.prototype.lookAhead=function(e){var i=this.doc.getLine(this.line+e);return i!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),i},Tr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tr.fromSaved=function(e,i,u){return i instanceof Or?new Tr(e,Ur(e.mode,i.state),u,i.lookAhead):new Tr(e,Ur(e.mode,i),u)},Tr.prototype.save=function(e){var i=e!==!1?Ur(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Or(i,this.maxLookAhead):i};function _t(e,i,u,l){var f=[e.state.modeGen],m={};zl(e,i.text,e.doc.mode,u,function(Z,me){return f.push(Z,me)},m,l);for(var F=u.state,U=function(Z){u.baseTokens=f;var me=e.state.overlays[Z],Ce=1,De=0;u.state=!0,zl(e,i.text,me.mode,u,function(ke,Ye){for(var tt=Ce;De<ke;){var ot=f[Ce];ot>ke&&f.splice(Ce,1,ke,f[Ce+1],ot),Ce+=2,De=Math.min(ke,ot)}if(!!Ye)if(me.opaque)f.splice(tt,Ce-tt,ke,"overlay "+Ye),Ce=tt+2;else for(;tt<Ce;tt+=2){var ct=f[tt+1];f[tt+1]=(ct?ct+" ":"")+"overlay "+Ye}},m),u.state=F,u.baseTokens=null,u.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)U(H);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function Wl(e,i,u){if(!i.styles||i.styles[0]!=e.state.modeGen){var l=tn(e,Zt(i)),f=i.text.length>e.options.maxHighlightLength&&Ur(e.doc.mode,l.state),m=_t(e,i,l);f&&(l.state=f),i.stateAfter=l.save(!f),i.styles=m.styles,m.classes?i.styleClasses=m.classes:i.styleClasses&&(i.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return i.styles}function tn(e,i,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Tr(l,!0,i);var m=Mf(e,i,u),F=m>l.first&&Ot(l,m-1).stateAfter,U=F?Tr.fromSaved(l,F,m):new Tr(l,Qn(l.mode),m);return l.iter(m,i,function(H){ys(e,H.text,U);var Z=U.line;H.stateAfter=Z==i-1||Z%5==0||Z>=f.viewFrom&&Z<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function ys(e,i,u,l){var f=e.doc.mode,m=new fr(i,e.options.tabSize,u);for(m.start=m.pos=l||0,i==""&&xo(f,u.state);!m.eol();)ms(f,m,u.state),m.start=m.pos}function xo(e,i){if(e.blankLine)return e.blankLine(i);if(!!e.innerMode){var u=Kr(e,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function ms(e,i,u,l){for(var f=0;f<10;f++){l&&(l[0]=Kr(e,u).mode);var m=e.token(i,u);if(i.pos>i.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var xs=function(e,i,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=u};function bs(e,i,u,l){var f=e.doc,m=f.mode,F;i=lt(f,i);var U=Ot(f,i.line),H=tn(e,i.line,u),Z=new fr(U.text,e.options.tabSize,H),me;for(l&&(me=[]);(l||Z.pos<i.ch)&&!Z.eol();)Z.start=Z.pos,F=ms(m,Z,H.state),l&&me.push(new xs(Z,F,Ur(f.mode,H.state)));return l?me:new xs(Z,F,H.state)}function Hl(e,i){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";i[l]==null?i[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+u[2])}return e}function zl(e,i,u,l,f,m,F){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var H=0,Z=null,me=new fr(i,e.options.tabSize,l),Ce,De=e.options.addModeClass&&[null];for(i==""&&Hl(xo(u,l.state),m);!me.eol();){if(me.pos>e.options.maxHighlightLength?(U=!1,F&&ys(e,i,l,me.pos),me.pos=i.length,Ce=null):Ce=Hl(ms(u,me,l.state,De),m),De){var ke=De[0].name;ke&&(Ce="m-"+(Ce?ke+" "+Ce:ke))}if(!U||Z!=Ce){for(;H<me.start;)H=Math.min(me.start,H+5e3),f(H,Z);Z=Ce}me.start=me.pos}for(;H<me.pos;){var Ye=Math.min(me.pos,H+5e3);f(Ye,Z),H=Ye}}function Mf(e,i,u){for(var l,f,m=e.doc,F=u?-1:i-(e.doc.mode.innerMode?1e3:100),U=i;U>F;--U){if(U<=m.first)return m.first;var H=Ot(m,U-1),Z=H.stateAfter;if(Z&&(!u||U+(Z instanceof Or?Z.lookAhead:0)<=m.modeFrontier))return U;var me=Xe(H.text,null,e.options.tabSize);(f==null||l>me)&&(f=U-1,l=me)}return f}function Rf(e,i){if(e.modeFrontier=Math.min(e.modeFrontier,i),!(e.highlightFrontier<i-10)){for(var u=e.first,l=i-1;l>u;l--){var f=Ot(e,l).stateAfter;if(f&&(!(f instanceof Or)||l+f.lookAhead<i)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Lf=!1,Ci=!1;function Df(){Lf=!0}function Nf(){Ci=!0}function bo(e,i,u){this.marker=e,this.from=i,this.to=u}function Ia(e,i){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==i)return l}}function Bf(e,i){for(var u,l=0;l<e.length;++l)e[l]!=i&&(u||(u=[])).push(e[l]);return u}function Td(e,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(i):(e.markedSpans=e.markedSpans?e.markedSpans.concat([i]):[i],l&&l.add(e.markedSpans)),i.marker.attachLine(e)}function Pd(e,i,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.from==null||(F.inclusiveLeft?m.from<=i:m.from<i);if(U||m.from==i&&F.type=="bookmark"&&(!u||!m.marker.insertLeft)){var H=m.to==null||(F.inclusiveRight?m.to>=i:m.to>i);(l||(l=[])).push(new bo(F,m.from,H?null:m.to))}}return l}function Id(e,i,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],F=m.marker,U=m.to==null||(F.inclusiveRight?m.to>=i:m.to>i);if(U||m.from==i&&F.type=="bookmark"&&(!u||m.marker.insertLeft)){var H=m.from==null||(F.inclusiveLeft?m.from<=i:m.from<i);(l||(l=[])).push(new bo(F,H?null:m.from-i,m.to==null?null:m.to-i))}}return l}function Gl(e,i){if(i.full)return null;var u=Zn(e,i.from.line)&&Ot(e,i.from.line).markedSpans,l=Zn(e,i.to.line)&&Ot(e,i.to.line).markedSpans;if(!u&&!l)return null;var f=i.from.ch,m=i.to.ch,F=Lt(i.from,i.to)==0,U=Pd(u,f,F),H=Id(l,m,F),Z=i.text.length==1,me=Et(i.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var De=U[Ce];if(De.to==null){var ke=Ia(H,De.marker);ke?Z&&(De.to=ke.to==null?null:ke.to+me):De.to=f}}if(H)for(var Ye=0;Ye<H.length;++Ye){var tt=H[Ye];if(tt.to!=null&&(tt.to+=me),tt.from==null){var ot=Ia(U,tt.marker);ot||(tt.from=me,Z&&(U||(U=[])).push(tt))}else tt.from+=me,Z&&(U||(U=[])).push(tt)}U&&(U=$l(U)),H&&H!=U&&(H=$l(H));var ct=[U];if(!Z){var gt=i.text.length-2,dt;if(gt>0&&U)for(var xt=0;xt<U.length;++xt)U[xt].to==null&&(dt||(dt=[])).push(new bo(U[xt].marker,null,null));for(var Ft=0;Ft<gt;++Ft)ct.push(dt);ct.push(H)}return ct}function $l(e){for(var i=0;i<e.length;++i){var u=e[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(i--,1)}return e.length?e:null}function Kl(e,i,u){var l=null;if(e.iter(i.line,u.line+1,function(ke){if(ke.markedSpans)for(var Ye=0;Ye<ke.markedSpans.length;++Ye){var tt=ke.markedSpans[Ye].marker;tt.readOnly&&(!l||ht(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:i,to:u}],m=0;m<l.length;++m)for(var F=l[m],U=F.find(0),H=0;H<f.length;++H){var Z=f[H];if(!(Lt(Z.to,U.from)<0||Lt(Z.from,U.to)>0)){var me=[H,1],Ce=Lt(Z.from,U.from),De=Lt(Z.to,U.to);(Ce<0||!F.inclusiveLeft&&!Ce)&&me.push({from:Z.from,to:U.from}),(De>0||!F.inclusiveRight&&!De)&&me.push({from:U.to,to:Z.to}),f.splice.apply(f,me),H+=me.length-3}}return f}function Yl(e){var i=e.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(e);e.markedSpans=null}}function Uf(e,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(e);e.markedSpans=i}}function ws(e){return e.inclusiveLeft?-1:0}function Ss(e){return e.inclusiveRight?1:0}function Jl(e,i){var u=e.lines.length-i.lines.length;if(u!=0)return u;var l=e.find(),f=i.find(),m=Lt(l.from,f.from)||ws(e)-ws(i);if(m)return-m;var F=Lt(l.to,f.to)||Ss(e)-Ss(i);return F||i.id-e.id}function Fa(e,i){var u=Ci&&e.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(i?f.from:f.to)==null&&(!l||Jl(l,f.marker)<0)&&(l=f.marker);return l}function As(e){return Fa(e,!0)}function Vi(e){return Fa(e,!1)}function jf(e,i){var u=Ci&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<i)&&(m.to==null||m.to>i)&&(!l||Jl(l,m.marker)<0)&&(l=m.marker)}return l}function wo(e,i,u,l,f){var m=Ot(e,i),F=Ci&&m.markedSpans;if(F)for(var U=0;U<F.length;++U){var H=F[U];if(!!H.marker.collapsed){var Z=H.marker.find(0),me=Lt(Z.from,u)||ws(H.marker)-ws(f),Ce=Lt(Z.to,l)||Ss(H.marker)-Ss(f);if(!(me>=0&&Ce<=0||me<=0&&Ce>=0)&&(me<=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||me>=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function Vn(e){for(var i;i=As(e);)e=i.find(-1,!0).line;return e}function Xl(e){for(var i;i=Vi(e);)e=i.find(1,!0).line;return e}function Vf(e){for(var i,u;i=Vi(e);)e=i.find(1,!0).line,(u||(u=[])).push(e);return u}function ka(e,i){var u=Ot(e,i),l=Vn(u);return u==l?i:Zt(l)}function Es(e,i){if(i>e.lastLine())return i;var u=Ot(e,i),l;if(!si(e,u))return i;for(;l=Vi(u);)u=l.find(1,!0).line;return Zt(u)+1}function si(e,i){var u=Ci&&i.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&cr(e,i,l))return!0}}}function cr(e,i,u){if(u.to==null){var l=u.marker.find(1,!0);return cr(e,l.line,Ia(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var f=void 0,m=0;m<i.markedSpans.length;++m)if(f=i.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&cr(e,i,f))return!0}function li(e){e=Vn(e);for(var i=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;i+=f.height}for(var m=u.parent;m;u=m,m=u.parent)for(var F=0;F<m.children.length;++F){var U=m.children[F];if(U==u)break;i+=U.height}return i}function Wi(e){if(e.height==0)return 0;for(var i=e.text.length,u,l=e;u=As(l);){var f=u.find(0,!0);l=f.from.line,i+=f.from.ch-f.to.ch}for(l=e;u=Vi(l);){var m=u.find(0,!0);i-=l.text.length-m.from.ch,l=m.to.line,i+=l.text.length-m.to.ch}return i}function Cs(e){var i=e.display,u=e.doc;i.maxLine=Ot(u,u.first),i.maxLineLength=Wi(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var f=Wi(l);f>i.maxLineLength&&(i.maxLineLength=f,i.maxLine=l)})}var Hi=function(e,i,u){this.text=e,Uf(this,i),this.height=u?u(this):1};Hi.prototype.lineNo=function(){return Zt(this)},Ue(Hi);function Oi(e,i,u,l){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Yl(e),Uf(e,u);var f=l?l(e):1;f!=e.height&&Sn(e,f)}function zi(e){e.parent=null,Yl(e)}var Os={},Ts={};function Ql(e,i){if(!e||/^\s*$/.test(e))return null;var u=i.addModeClass?Ts:Os;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Ps(e,i){var u=he("span",null,null,g?"padding-right: .1px":null),l={pre:he("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};i.measure={};for(var f=0;f<=(i.rest?i.rest.length:0);f++){var m=f?i.rest[f-1]:i.line,F=void 0;l.pos=0,l.addToken=Fs,ji(e.display.measure)&&(F=O(m,e.doc.direction))&&(l.addToken=Wf(l.addToken,F)),l.map=[];var U=i!=e.display.externalMeasured&&Zt(m);Hf(m,l,Wl(e,m,U)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Me(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Me(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(bi(e.display.measure))),f==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(g){var H=l.content.lastChild;(/\bcm-tab\b/.test(H.className)||H.querySelector&&H.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return ae(e,"renderLine",e,i.line,l.pre),l.pre.className&&(l.textClass=Me(l.pre.className,l.textClass||"")),l}function Is(e){var i=be("span","\u2022","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Fs(e,i,u,l,f,m,F){if(!!i){var U=e.splitSpaces?Gi(i,e.trailingSpace):i,H=e.cm.state.specialChars,Z=!1,me;if(!H.test(i))e.col+=i.length,me=document.createTextNode(U),e.map.push(e.pos,e.pos+i.length,me),b&&S<9&&(Z=!0),e.pos+=i.length;else{me=document.createDocumentFragment();for(var Ce=0;;){H.lastIndex=Ce;var De=H.exec(i),ke=De?De.index-Ce:i.length-Ce;if(ke){var Ye=document.createTextNode(U.slice(Ce,Ce+ke));b&&S<9?me.appendChild(be("span",[Ye])):me.appendChild(Ye),e.map.push(e.pos,e.pos+ke,Ye),e.col+=ke,e.pos+=ke}if(!De)break;Ce+=ke+1;var tt=void 0;if(De[0]==" "){var ot=e.cm.options.tabSize,ct=ot-e.col%ot;tt=me.appendChild(be("span",kt(ct),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ct}else De[0]=="\r"||De[0]==`
|
|
22
|
-
`?(tt=me.appendChild(be("span",De[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),tt.setAttribute("cm-text",De[0]),e.col+=1):(tt=e.cm.options.specialCharPlaceholder(De[0]),tt.setAttribute("cm-text",De[0]),b&&S<9?me.appendChild(be("span",[tt])):me.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(i.length-1)==32,u||l||f||Z||m||F){var gt=u||"";l&&(gt+=l),f&&(gt+=f);var dt=be("span",[me],gt,m);if(F)for(var xt in F)F.hasOwnProperty(xt)&&xt!="style"&&xt!="class"&&dt.setAttribute(xt,F[xt]);return e.content.appendChild(dt)}e.content.appendChild(me)}}function Gi(e,i){if(e.length>1&&!/ /.test(e))return e;for(var u=i,l="",f=0;f<e.length;f++){var m=e.charAt(f);m==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function Wf(e,i){return function(u,l,f,m,F,U,H){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,me=Z+l.length;;){for(var Ce=void 0,De=0;De<i.length&&(Ce=i[De],!(Ce.to>Z&&Ce.from<=Z));De++);if(Ce.to>=me)return e(u,l,f,m,F,U,H);e(u,l.slice(0,Ce.to-Z),f,m,null,U,H),m=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function ir(e,i,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+i,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=i,e.trailingSpace=!1}function Hf(e,i,u){var l=e.markedSpans,f=e.text,m=0;if(!l){for(var F=1;F<u.length;F+=2)i.addToken(i,f.slice(m,m=u[F]),Ql(u[F+1],i.cm.options));return}for(var U=f.length,H=0,Z=1,me="",Ce,De,ke=0,Ye,tt,ot,ct,gt;;){if(ke==H){Ye=tt=ot=De="",gt=null,ct=null,ke=1/0;for(var dt=[],xt=void 0,Ft=0;Ft<l.length;++Ft){var It=l[Ft],at=It.marker;if(at.type=="bookmark"&&It.from==H&&at.widgetNode)dt.push(at);else if(It.from<=H&&(It.to==null||It.to>H||at.collapsed&&It.to==H&&It.from==H)){if(It.to!=null&&It.to!=H&&ke>It.to&&(ke=It.to,tt=""),at.className&&(Ye+=" "+at.className),at.css&&(De=(De?De+";":"")+at.css),at.startStyle&&It.from==H&&(ot+=" "+at.startStyle),at.endStyle&&It.to==ke&&(xt||(xt=[])).push(at.endStyle,It.to),at.title&&((gt||(gt={})).title=at.title),at.attributes)for(var Tt in at.attributes)(gt||(gt={}))[Tt]=at.attributes[Tt];at.collapsed&&(!ct||Jl(ct.marker,at)<0)&&(ct=It)}else It.from>H&&ke>It.from&&(ke=It.from)}if(xt)for(var Dr=0;Dr<xt.length;Dr+=2)xt[Dr+1]==ke&&(tt+=" "+xt[Dr]);if(!ct||ct.from==H)for(var br=0;br<dt.length;++br)ir(i,0,dt[br]);if(ct&&(ct.from||0)==H){if(ir(i,(ct.to==null?U+1:ct.to)-H,ct.marker,ct.from==null),ct.to==null)return;ct.to==H&&(ct=!1)}}if(H>=U)break;for(var xn=Math.min(U,ke);;){if(me){var un=H+me.length;if(!ct){var Ir=un>xn?me.slice(0,xn-H):me;i.addToken(i,Ir,Ce?Ce+Ye:Ye,ot,H+Ir.length==ke?tt:"",De,gt)}if(un>=xn){me=me.slice(xn-H),H=xn;break}H=un,ot=""}me=f.slice(m,m=u[Z++]),Ce=Ql(u[Z++],i.cm.options)}}}function Zl(e,i,u){this.line=i,this.rest=Vf(i),this.size=this.rest?Zt(Et(this.rest))-u+1:1,this.node=this.text=null,this.hidden=si(e,i)}function So(e,i,u){for(var l=[],f,m=i;m<u;m=f){var F=new Zl(e.doc,Ot(e.doc,m),m);f=m+F.size,l.push(F)}return l}var rn=null;function _l(e){rn?rn.ops.push(e):e.ownsGroup=rn={ops:[e],delayedCallbacks:[]}}function ql(e){var i=e.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<i.length)}function ks(e,i){var u=e.ownsGroup;if(!!u)try{ql(u)}finally{rn=null,i(u)}}var Ma=null;function ar(e,i){var u=te(e,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;rn?f=rn.delayedCallbacks:Ma?f=Ma:(f=Ma=[],setTimeout(zf,0));for(var m=function(U){f.push(function(){return u[U].apply(null,l)})},F=0;F<u.length;++F)m(F)}}function zf(){var e=Ma;Ma=null;for(var i=0;i<e.length;++i)e[i]()}function Ao(e,i,u,l){for(var f=0;f<i.changes.length;f++){var m=i.changes[f];m=="text"?Gf(e,i):m=="gutter"?La(e,i,u,l):m=="class"?Ms(e,i):m=="widget"&&$f(e,i,l)}i.changes=null}function Ra(e){return e.node==e.text&&(e.node=be("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&S<8&&(e.node.style.zIndex=2)),e.node}function eu(e,i){var u=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),i.background)u?i.background.className=u:(i.background.parentNode.removeChild(i.background),i.background=null);else if(u){var l=Ra(i);i.background=l.insertBefore(be("div",null,u),l.firstChild),e.display.input.setUneditable(i.background)}}function tu(e,i){var u=e.display.externalMeasured;return u&&u.line==i.line?(e.display.externalMeasured=null,i.measure=u.measure,u.built):Ps(e,i)}function Gf(e,i){var u=i.text.className,l=tu(e,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,Ms(e,i)):u&&(i.text.className=u)}function Ms(e,i){eu(e,i),i.line.wrapClass?Ra(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var u=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=u||""}function La(e,i,u,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var f=Ra(i);i.gutterBackground=be("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(i.gutterBackground),f.insertBefore(i.gutterBackground,i.text)}var m=i.line.gutterMarkers;if(e.options.lineNumbers||m){var F=Ra(i),U=i.gutter=be("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(U.setAttribute("aria-hidden","true"),e.display.input.setUneditable(U),F.insertBefore(U,i.text),i.line.gutterClass&&(U.className+=" "+i.line.gutterClass),e.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(i.lineNumber=U.appendChild(be("div",fa(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=e.display.gutterSpecs[H].className,me=m.hasOwnProperty(Z)&&m[Z];me&&U.appendChild(be("div",[me],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function $f(e,i,u){i.alignable&&(i.alignable=null);for(var l=fe("CodeMirror-linewidget"),f=i.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&i.node.removeChild(f);ru(e,i,u)}function qt(e,i,u,l){var f=tu(e,i);return i.text=i.node=f.pre,f.bgClass&&(i.bgClass=f.bgClass),f.textClass&&(i.textClass=f.textClass),Ms(e,i),La(e,i,u,l),ru(e,i,l),i.node}function ru(e,i,u){if(Qt(e,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)Qt(e,i.rest[l],i,u,!1)}function Qt(e,i,u,l,f){if(!!i.widgets)for(var m=Ra(u),F=0,U=i.widgets;F<U.length;++F){var H=U[F],Z=be("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),Kf(H,Z,u,l),e.display.input.setUneditable(Z),f&&H.above?m.insertBefore(Z,u.gutter||u.text):m.appendChild(Z),ar(H,"redraw")}}function Kf(e,i,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(i);var f=l.wrapperWidth;i.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=f+"px"}e.coverGutter&&(i.style.zIndex=5,i.style.position="relative",e.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ct(e){if(e.height!=null)return e.height;var i=e.doc.cm;if(!i)return 0;if(!oe(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),ye(i.display.measure,be("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function ui(e,i){for(var u=Pt(i);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function Da(e){return e.lineSpace.offsetTop}function Rs(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function sn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var i=ye(e.measure,be("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function fi(e){return bt-e.display.nativeBarWidth}function $i(e){return e.display.scroller.clientWidth-fi(e)-e.display.barWidth}function Na(e){return e.display.scroller.clientHeight-fi(e)-e.display.barHeight}function Yf(e,i,u){var l=e.options.lineWrapping,f=l&&$i(e);if(!i.measure.heights||l&&i.measure.width!=f){var m=i.measure.heights=[];if(l){i.measure.width=f;for(var F=i.text.firstChild.getClientRects(),U=0;U<F.length-1;U++){var H=F[U],Z=F[U+1];Math.abs(H.bottom-Z.bottom)>2&&m.push((H.bottom+Z.top)/2-u.top)}}m.push(u.bottom-u.top)}}function Ls(e,i,u){if(e.line==i)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var l=0;l<e.rest.length;l++)if(e.rest[l]==i)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(Zt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Jf(e,i){i=Vn(i);var u=Zt(i),l=e.display.externalMeasured=new Zl(e.doc,i,u);l.lineN=u;var f=l.built=Ps(e,l);return l.text=f.pre,ye(e.display.lineMeasure,f.pre),l}function Eo(e,i,u,l){return Wn(e,_n(e,i),u,l)}function Ds(e,i){if(i>=e.display.viewFrom&&i<e.display.viewTo)return e.display.view[Xi(e,i)];var u=e.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function _n(e,i){var u=Zt(i),l=Ds(e,u);l&&!l.text?l=null:l&&l.changes&&(Ao(e,l,u,Hs(e)),e.curOp.forceUpdate=!0),l||(l=Jf(e,i));var f=Ls(l,i,u);return{line:i,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Wn(e,i,u,l,f){i.before&&(u=-1);var m=u+(l||""),F;return i.cache.hasOwnProperty(m)?F=i.cache[m]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Yf(e,i.view,i.rect),i.hasHeights=!0),F=nu(e,i,u,l),F.bogus||(i.cache[m]=F)),{left:F.left,right:F.right,top:f?F.rtop:F.top,bottom:f?F.rbottom:F.bottom}}var Co={left:0,right:0,top:0,bottom:0};function Ns(e,i,u){for(var l,f,m,F,U,H,Z=0;Z<e.length;Z+=3)if(U=e[Z],H=e[Z+1],i<U?(f=0,m=1,F="left"):i<H?(f=i-U,m=f+1):(Z==e.length-3||i==H&&e[Z+3]>i)&&(m=H-U,f=m-1,i>=H&&(F="right")),f!=null){if(l=e[Z+2],U==H&&u==(l.insertLeft?"left":"right")&&(F=u),u=="left"&&f==0)for(;Z&&e[Z-2]==e[Z-3]&&e[Z-1].insertLeft;)l=e[(Z-=3)+2],F="left";if(u=="right"&&f==H-U)for(;Z<e.length-3&&e[Z+3]==e[Z+4]&&!e[Z+5].insertLeft;)l=e[(Z+=3)+2],F="right";break}return{node:l,start:f,end:m,collapse:F,coverStart:U,coverEnd:H}}function Bs(e,i){var u=Co;if(i=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function nu(e,i,u,l){var f=Ns(i.map,u,l),m=f.node,F=f.start,U=f.end,H=f.collapse,Z;if(m.nodeType==3){for(var me=0;me<4;me++){for(;F&&Ie(i.line.text.charAt(f.coverStart+F));)--F;for(;f.coverStart+U<f.coverEnd&&Ie(i.line.text.charAt(f.coverStart+U));)++U;if(b&&S<9&&F==0&&U==f.coverEnd-f.coverStart?Z=m.parentNode.getBoundingClientRect():Z=Bs(ue(m,F,U).getClientRects(),l),Z.left||Z.right||F==0)break;U=F,F=F-1,H="right"}b&&S<11&&(Z=iu(e.display.measure,Z))}else{F>0&&(H=l="right");var Ce;e.options.lineWrapping&&(Ce=m.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=m.getBoundingClientRect()}if(b&&S<9&&!F&&(!Z||!Z.left&&!Z.right)){var De=m.parentNode.getClientRects()[0];De?Z={left:De.left,right:De.left+Tn(e.display),top:De.top,bottom:De.bottom}:Z=Co}for(var ke=Z.top-i.rect.top,Ye=Z.bottom-i.rect.top,tt=(ke+Ye)/2,ot=i.view.measure.heights,ct=0;ct<ot.length-1&&!(tt<ot[ct]);ct++);var gt=ct?ot[ct-1]:0,dt=ot[ct],xt={left:(H=="right"?Z.right:Z.left)-i.rect.left,right:(H=="left"?Z.left:Z.right)-i.rect.left,top:gt,bottom:dt};return!Z.left&&!Z.right&&(xt.bogus=!0),e.options.singleCursorHeightPerLine||(xt.rtop=ke,xt.rbottom=Ye),xt}function iu(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!wi(e))return i;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*u,right:i.right*u,top:i.top*l,bottom:i.bottom*l}}function Us(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var i=0;i<e.rest.length;i++)e.measure.caches[i]={}}function Ki(e){e.display.externalMeasure=null,ie(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)Us(e.display.view[i])}function Ba(e){Ki(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ua(){return D&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function au(){return D&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ja(e){var i=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(i+=Ct(e.widgets[u]));return i}function Oo(e,i,u,l,f){if(!f){var m=ja(i);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var F=li(i);if(l=="local"?F+=Da(e.display):F-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();F+=U.top+(l=="window"?0:au());var H=U.left+(l=="window"?0:Ua());u.left+=H,u.right+=H}return u.top+=F,u.bottom+=F,u}function Va(e,i,u){if(u=="div")return i;var l=i.left,f=i.top;if(u=="page")l-=Ua(),f-=au();else if(u=="local"||!u){var m=e.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var F=e.display.lineSpace.getBoundingClientRect();return{left:l-F.left,top:f-F.top}}function To(e,i,u,l,f){return l||(l=Ot(e.doc,i.line)),Oo(e,l,Eo(e,l,i.ch,f),u)}function Hn(e,i,u,l,f,m){l=l||Ot(e.doc,i.line),f||(f=_n(e,l));function F(Ye,tt){var ot=Wn(e,f,Ye,tt?"right":"left",m);return tt?ot.left=ot.right:ot.right=ot.left,Oo(e,l,ot,u)}var U=O(l,e.doc.direction),H=i.ch,Z=i.sticky;if(H>=l.text.length?(H=l.text.length,Z="before"):H<=0&&(H=0,Z="after"),!U)return F(Z=="before"?H-1:H,Z=="before");function me(Ye,tt,ot){var ct=U[tt],gt=ct.level==1;return F(ot?Ye-1:Ye,gt!=ot)}var Ce=K(U,H,Z),De=Re,ke=me(H,Ce,Z=="before");return De!=null&&(ke.other=me(H,De,Z!="before")),ke}function ou(e,i){var u=0;i=lt(e.doc,i),e.options.lineWrapping||(u=Tn(e.display)*i.ch);var l=Ot(e.doc,i.line),f=li(l)+Da(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function js(e,i,u,l,f){var m=it(e,i,u);return m.xRel=f,l&&(m.outside=l),m}function Vs(e,i,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return js(l.first,0,null,-1,-1);var f=jn(l,u),m=l.first+l.size-1;if(f>m)return js(l.first+l.size-1,Ot(l,m).text.length,null,1,1);i<0&&(i=0);for(var F=Ot(l,f);;){var U=Xf(e,F,f,i,u),H=jf(F,U.ch+(U.xRel>0||U.outside>0?1:0));if(!H)return U;var Z=H.find(1);if(Z.line==f)return Z;F=Ot(l,f=Z.line)}}function su(e,i,u,l){l-=ja(i);var f=i.text.length,m=Ke(function(F){return Wn(e,u,F-1).bottom<=l},f,0);return f=Ke(function(F){return Wn(e,u,F).top>l},m,f),{begin:m,end:f}}function lu(e,i,u,l){u||(u=_n(e,i));var f=Oo(e,i,Wn(e,u,l),"line").top;return su(e,i,u,f)}function Ws(e,i,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>i}function Xf(e,i,u,l,f){f-=li(i);var m=_n(e,i),F=ja(i),U=0,H=i.text.length,Z=!0,me=O(i,e.doc.direction);if(me){var Ce=(e.options.lineWrapping?Zf:Qf)(e,i,u,m,me,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,H=Z?Ce.to:Ce.from-1}var De=null,ke=null,Ye=Ke(function(Ft){var It=Wn(e,m,Ft);return It.top+=F,It.bottom+=F,Ws(It,l,f,!1)?(It.top<=f&&It.left<=l&&(De=Ft,ke=It),!0):!1},U,H),tt,ot,ct=!1;if(ke){var gt=l-ke.left<ke.right-l,dt=gt==Z;Ye=De+(dt?0:1),ot=dt?"after":"before",tt=gt?ke.left:ke.right}else{!Z&&(Ye==H||Ye==U)&&Ye++,ot=Ye==0?"after":Ye==i.text.length?"before":Wn(e,m,Ye-(Z?1:0)).bottom+F<=f==Z?"after":"before";var xt=Hn(e,it(u,Ye,ot),"line",i,m);tt=xt.left,ct=f<xt.top?-1:f>=xt.bottom?1:0}return Ye=Ge(i.text,Ye,1),js(u,Ye,ot,ct,l-tt)}function Qf(e,i,u,l,f,m,F){var U=Ke(function(Ce){var De=f[Ce],ke=De.level!=1;return Ws(Hn(e,it(u,ke?De.to:De.from,ke?"before":"after"),"line",i,l),m,F,!0)},0,f.length-1),H=f[U];if(U>0){var Z=H.level!=1,me=Hn(e,it(u,Z?H.from:H.to,Z?"after":"before"),"line",i,l);Ws(me,m,F,!0)&&me.top>F&&(H=f[U-1])}return H}function Zf(e,i,u,l,f,m,F){var U=su(e,i,l,F),H=U.begin,Z=U.end;/\s/.test(i.text.charAt(Z-1))&&Z--;for(var me=null,Ce=null,De=0;De<f.length;De++){var ke=f[De];if(!(ke.from>=Z||ke.to<=H)){var Ye=ke.level!=1,tt=Wn(e,l,Ye?Math.min(Z,ke.to)-1:Math.max(H,ke.from)).right,ot=tt<m?m-tt+1e9:tt-m;(!me||Ce>ot)&&(me=ke,Ce=ot)}}return me||(me=f[f.length-1]),me.from<H&&(me={from:H,to:me.to,level:me.level}),me.to>Z&&(me={from:me.from,to:Z,level:me.level}),me}var Yi;function ca(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Yi==null){Yi=be("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Yi.appendChild(document.createTextNode("x")),Yi.appendChild(be("br"));Yi.appendChild(document.createTextNode("x"))}ye(e.measure,Yi);var u=Yi.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ie(e.measure),u||1}function Tn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=be("span","xxxxxxxxxx"),u=be("pre",[i],"CodeMirror-line-like");ye(e.measure,u);var l=i.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function Hs(e){for(var i=e.display,u={},l={},f=i.gutters.clientLeft,m=i.gutters.firstChild,F=0;m;m=m.nextSibling,++F){var U=e.display.gutterSpecs[F].className;u[U]=m.offsetLeft+m.clientLeft+f,l[U]=m.clientWidth}return{fixedPos:Pn(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Pn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function uu(e){var i=ca(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/Tn(e.display)-3);return function(f){if(si(e.doc,f))return 0;var m=0;if(f.widgets)for(var F=0;F<f.widgets.length;F++)f.widgets[F].height&&(m+=f.widgets[F].height);return u?m+(Math.ceil(f.text.length/l)||1)*i:m+i}}function zs(e){var i=e.doc,u=uu(e);i.iter(function(l){var f=u(l);f!=l.height&&Sn(l,f)})}function Ji(e,i,u,l){var f=e.display;if(!u&&Pt(i).getAttribute("cm-not-content")=="true")return null;var m,F,U=f.lineSpace.getBoundingClientRect();try{m=i.clientX-U.left,F=i.clientY-U.top}catch(Ce){return null}var H=Vs(e,m,F),Z;if(l&&H.xRel>0&&(Z=Ot(e.doc,H.line).text).length==H.ch){var me=Xe(Z,Z.length,e.options.tabSize)-Z.length;H=it(H.line,Math.max(0,Math.round((m-sn(e.display).left)/Tn(e.display))-me))}return H}function Xi(e,i){if(i>=e.display.viewTo||(i-=e.display.viewFrom,i<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function Rr(e,i,u,l){i==null&&(i=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>i)&&(f.updateLineNumbers=i),e.curOp.viewChanged=!0,i>=f.viewTo)Ci&&ka(e.doc,i)<f.viewTo&&Ti(e);else if(u<=f.viewFrom)Ci&&Es(e.doc,u+l)>f.viewFrom?Ti(e):(f.viewFrom+=l,f.viewTo+=l);else if(i<=f.viewFrom&&u>=f.viewTo)Ti(e);else if(i<=f.viewFrom){var m=Po(e,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):Ti(e)}else if(u>=f.viewTo){var F=Po(e,i,i,-1);F?(f.view=f.view.slice(0,F.index),f.viewTo=F.lineN):Ti(e)}else{var U=Po(e,i,i,-1),H=Po(e,u,u+l,1);U&&H?(f.view=f.view.slice(0,U.index).concat(So(e,U.lineN,H.lineN)).concat(f.view.slice(H.index)),f.viewTo+=l):Ti(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:i<Z.lineN+Z.size&&(f.externalMeasured=null))}function qn(e,i,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&i>=f.lineN&&i<f.lineN+f.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var m=l.view[Xi(e,i)];if(m.node!=null){var F=m.changes||(m.changes=[]);ht(F,u)==-1&&F.push(u)}}}function Ti(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Po(e,i,u,l){var f=Xi(e,i),m,F=e.display.view;if(!Ci||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,H=0;H<f;H++)U+=F[H].size;if(U!=i){if(l>0){if(f==F.length-1)return null;m=U+F[f].size-i,f++}else m=U-i;i+=m,u+=m}for(;ka(e.doc,u)!=u;){if(f==(l<0?0:F.length-1))return null;u+=l*F[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function _f(e,i,u){var l=e.display,f=l.view;f.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=So(e,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=So(e,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Xi(e,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(So(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Xi(e,u)))),l.viewTo=u}function Io(e){for(var i=e.display.view,u=0,l=0;l<i.length;l++){var f=i[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Pi(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Fo(e,i){i===void 0&&(i=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),F=e.options.$customCursor;F&&(i=!0);for(var U=0;U<u.sel.ranges.length;U++)if(!(!i&&U==u.sel.primIndex)){var H=u.sel.ranges[U];if(!(H.from().line>=e.display.viewTo||H.to().line<e.display.viewFrom)){var Z=H.empty();if(F){var me=F(e,H);me&&Gs(e,me,f)}else(Z||e.options.showCursorWhenSelecting)&&Gs(e,H.head,f);Z||fu(e,H,m)}}return l}function Gs(e,i,u){var l=Hn(e,i,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(be("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var m=To(e,i,"div",null,null),F=m.right-m.left;f.style.width=(F>0?F:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(be("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));U.style.display="",U.style.left=l.other.left+"px",U.style.top=l.other.top+"px",U.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function ko(e,i){return e.top-i.top||e.left-i.left}function fu(e,i,u){var l=e.display,f=e.doc,m=document.createDocumentFragment(),F=sn(e.display),U=F.left,H=Math.max(l.sizerWidth,$i(e)-l.sizer.offsetLeft)-F.right,Z=f.direction=="ltr";function me(dt,xt,Ft,It){xt<0&&(xt=0),xt=Math.round(xt),It=Math.round(It),m.appendChild(be("div",null,"CodeMirror-selected","position: absolute; left: "+dt+`px;
|
|
23
|
-
top: `+
|
|
24
|
-
height: `+(It-
|
|
25
|
-
top: `+(
|
|
26
|
-
height: `+(
|
|
27
|
-
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(f),e.display.lineSpace.removeChild(m)}}}function cu(e,i,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&i==u&&(u=i.sticky=="before"?it(i.line,i.ch+1,"before"):i,i=i.ch?it(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var F=!1,U=Hn(e,i),H=!u||u==i?U:Hn(e,u);f={left:Math.min(U.left,H.left),top:Math.min(U.top,H.top)-l,right:Math.max(U.left,H.left),bottom:Math.max(U.bottom,H.bottom)+l};var Z=Js(e,f),me=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(Ga(e,Z.scrollTop),Math.abs(e.doc.scrollTop-me)>1&&(F=!0)),Z.scrollLeft!=null&&(Zi(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(F=!0)),!F)break}return f}function du(e,i){var u=Js(e,i);u.scrollTop!=null&&Ga(e,u.scrollTop),u.scrollLeft!=null&&Zi(e,u.scrollLeft)}function Js(e,i){var u=e.display,l=ca(e.display);i.top<0&&(i.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,m=Na(e),F={};i.bottom-i.top>m&&(i.bottom=i.top+m);var U=e.doc.height+Rs(u),H=i.top<l,Z=i.bottom>U-l;if(i.top<f)F.scrollTop=H?0:i.top;else if(i.bottom>f+m){var me=Math.min(i.top,(Z?U:i.bottom)-m);me!=f&&(F.scrollTop=me)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,De=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,ke=$i(e)-u.gutters.offsetWidth,Ye=i.right-i.left>ke;return Ye&&(i.right=i.left+ke),i.left<10?F.scrollLeft=0:i.left<De?F.scrollLeft=Math.max(0,i.left+Ce-(Ye?0:10)):i.right>ke+De-3&&(F.scrollLeft=i.right+(Ye?0:10)-ke),F}function Xs(e,i){i!=null&&(Lo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function nn(e){Lo(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function za(e,i,u){(i!=null||u!=null)&&Lo(e),i!=null&&(e.curOp.scrollLeft=i),u!=null&&(e.curOp.scrollTop=u)}function Qi(e,i){Lo(e),e.curOp.scrollToPos=i}function Lo(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var u=ou(e,i.from),l=ou(e,i.to);pu(e,u,l,i.margin)}}function pu(e,i,u,l){var f=Js(e,{left:Math.min(i.left,u.left),top:Math.min(i.top,u.top)-l,right:Math.max(i.right,u.right),bottom:Math.max(i.bottom,u.bottom)+l});za(e,f.scrollLeft,f.scrollTop)}function Ga(e,i){Math.abs(e.doc.scrollTop-i)<2||(c||qs(e,{top:i}),hu(e,i,!0),c&&qs(e),zn(e,100))}function hu(e,i,u){i=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,i)),!(e.display.scroller.scrollTop==i&&!u)&&(e.doc.scrollTop=i,e.display.scrollbars.setScrollTop(i),e.display.scroller.scrollTop!=i&&(e.display.scroller.scrollTop=i))}function Zi(e,i,u,l){i=Math.max(0,Math.min(i,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?i==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-i)<2)&&!l)&&(e.doc.scrollLeft=i,xu(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function pa(e){var i=e.display,u=i.gutters.offsetWidth,l=Math.round(e.doc.height+Rs(e.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+fi(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var _i=function(e,i,u){this.cm=u;var l=this.vert=be("div",[be("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=be("div",[be("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),N(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),N(f,"scroll",function(){f.clientWidth&&i(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};_i.prototype.update=function(e){var i=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var f=e.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},_i.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},_i.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},_i.prototype.zeroWidthHack=function(){var e=C&&!q?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ft,this.disableVert=new ft},_i.prototype.enableZeroWidthBar=function(e,i,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=e?e.style.pointerEvents="none":i.set(1e3,l)}i.set(1e3,l)},_i.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $a=function(){};$a.prototype.update=function(){return{bottom:0,right:0}},$a.prototype.setScrollLeft=function(){},$a.prototype.setScrollTop=function(){},$a.prototype.clear=function(){};function ci(e,i){i||(i=pa(e));var u=e.display.barWidth,l=e.display.barHeight;Do(e,i);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&Ro(e),Do(e,pa(e)),u=e.display.barWidth,l=e.display.barHeight}function Do(e,i){var u=e.display,l=u.scrollbars.update(i);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=i.gutterWidth+"px"):u.gutterFiller.style.display=""}var gn={native:_i,null:$a};function No(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new gn[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),N(i,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?Zi(e,i):Ga(e,i)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var di=0;function Ii(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++di,markArrays:null},_l(e.curOp)}function Fi(e){var i=e.curOp;i&&ks(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Fd(u)})}function Fd(e){for(var i=e.ops,u=0;u<i.length;u++)Qs(i[u]);for(var l=0;l<i.length;l++)vu(i[l]);for(var f=0;f<i.length;f++)gu(i[f]);for(var m=0;m<i.length;m++)Pr(i[m]);for(var F=0;F<i.length;F++)ec(i[F])}function Qs(e){var i=e.cm,u=i.display;yu(i),e.updateMaxLine&&Cs(i),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,e.update=e.mustUpdate&&new qi(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function vu(e){e.updatedDisplay=e.mustUpdate&&_s(e.cm,e.update)}function gu(e){var i=e.cm,u=i.display;e.updatedDisplay&&Ro(i),e.barMeasure=pa(i),u.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Eo(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+fi(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-$i(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Pr(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<i.doc.scrollLeft&&Zi(i,Math.min(i.display.scroller.scrollLeft,e.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=e.focus&&e.focus==Fe();e.preparedSelection&&i.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=i.doc.height)&&ci(i,e.barMeasure),e.updatedDisplay&&tl(i,e.barMeasure),e.selectionChanged&&$s(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),u&&Ks(e.cm)}function ec(e){var i=e.cm,u=i.display,l=i.doc;if(e.updatedDisplay&&mu(i,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&hu(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Zi(i,e.scrollLeft,!0,!0),e.scrollToPos){var f=cu(i,lt(l,e.scrollToPos.from),lt(l,e.scrollToPos.to),e.scrollToPos.margin);qf(i,f)}var m=e.maybeHiddenMarkers,F=e.maybeUnhiddenMarkers;if(m)for(var U=0;U<m.length;++U)m[U].lines.length||ae(m[U],"hide");if(F)for(var H=0;H<F.length;++H)F[H].lines.length&&ae(F[H],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),e.changeObjs&&ae(i,"changes",i,e.changeObjs),e.update&&e.update.finish()}function jr(e,i){if(e.curOp)return i();Ii(e);try{return i()}finally{Fi(e)}}function Vr(e,i){return function(){if(e.curOp)return i.apply(e,arguments);Ii(e);try{return i.apply(e,arguments)}finally{Fi(e)}}}function Lr(e){return function(){if(this.curOp)return e.apply(this,arguments);Ii(this);try{return e.apply(this,arguments)}finally{Fi(this)}}}function dr(e){return function(){var i=this.cm;if(!i||i.curOp)return e.apply(this,arguments);Ii(i);try{return e.apply(this,arguments)}finally{Fi(i)}}}function zn(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,rt(tc,e))}function tc(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=tn(e,i.highlightFrontier),f=[];i.iter(l.line,Math.min(i.first+i.size,e.display.viewTo+500),function(m){if(l.line>=e.display.viewFrom){var F=m.styles,U=m.text.length>e.options.maxHighlightLength?Ur(i.mode,l.state):null,H=_t(e,m,l,!0);U&&(l.state=U),m.styles=H.styles;var Z=m.styleClasses,me=H.classes;me?m.styleClasses=me:Z&&(m.styleClasses=null);for(var Ce=!F||F.length!=m.styles.length||Z!=me&&(!Z||!me||Z.bgClass!=me.bgClass||Z.textClass!=me.textClass),De=0;!Ce&&De<F.length;++De)Ce=F[De]!=m.styles[De];Ce&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=e.options.maxHighlightLength&&ys(e,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return zn(e,e.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),f.length&&jr(e,function(){for(var m=0;m<f.length;m++)qn(e,f[m],"text")})}}var qi=function(e,i,u){var l=e.display;this.viewport=i,this.visible=Ha(l,e.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=$i(e),this.force=u,this.dims=Hs(e),this.events=[]};qi.prototype.signal=function(e,i){Be(e,i)&&this.events.push(arguments)},qi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ae.apply(null,this.events[e])};function yu(e){var i=e.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=fi(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=fi(e)+"px",i.scrollbarsClipped=!0)}function Ka(e){if(e.hasFocus())return null;var i=Fe();if(!i||!oe(e.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&oe(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Zs(e){if(!(!e||!e.activeElt||e.activeElt==Fe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&oe(document.body,e.anchorNode)&&oe(document.body,e.focusNode))){var i=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),i.removeAllRanges(),i.addRange(u),i.extend(e.focusNode,e.focusOffset)}}function _s(e,i){var u=e.display,l=e.doc;if(i.editorIsHidden)return Ti(e),!1;if(!i.force&&i.visible.from>=u.viewFrom&&i.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Io(e)==0)return!1;Bo(e)&&(Ti(e),i.dims=Hs(e));var f=l.first+l.size,m=Math.max(i.visible.from-e.options.viewportMargin,l.first),F=Math.min(f,i.visible.to+e.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>F&&u.viewTo-F<20&&(F=Math.min(f,u.viewTo)),Ci&&(m=ka(e.doc,m),F=Es(e.doc,F));var U=m!=u.viewFrom||F!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;_f(e,m,F),u.viewOffset=li(Ot(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var H=Io(e);if(!U&&H==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=Ka(e);return H>4&&(u.lineDiv.style.display="none"),rc(e,u.updateLineNumbers,i.dims),H>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Zs(Z),ie(u.cursorDiv),ie(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,zn(e,400)),u.updateLineNumbers=null,!0}function mu(e,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||i.oldDisplayWidth==$i(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Rs(e.display)-Na(e),u.top)}),i.visible=Ha(e.display,e.doc,u),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else l&&(i.visible=Ha(e.display,e.doc,u));if(!_s(e,i))break;Ro(e);var f=pa(e);Pi(e),ci(e,f),tl(e,f),i.force=!1}i.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(i.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function qs(e,i){var u=new qi(e,i);if(_s(e,u)){Ro(e),mu(e,u);var l=pa(e);Pi(e),ci(e,l),tl(e,l),u.finish()}}function rc(e,i,u){var l=e.display,f=e.options.lineNumbers,m=l.lineDiv,F=m.firstChild;function U(Ye){var tt=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),tt}for(var H=l.view,Z=l.viewFrom,me=0;me<H.length;me++){var Ce=H[me];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=m){var De=qt(e,Ce,Z,u);m.insertBefore(De,F)}else{for(;F!=Ce.node;)F=U(F);var ke=f&&i!=null&&i<=Z&&Ce.lineNumber;Ce.changes&&(ht(Ce.changes,"gutter")>-1&&(ke=!1),Ao(e,Ce,Z,u)),ke&&(ie(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(fa(e.options,Z)))),F=Ce.node.nextSibling}Z+=Ce.size}for(;F;)F=U(F)}function el(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px",ar(e,"gutterChanged",e)}function tl(e,i){e.display.sizer.style.minHeight=i.docHeight+"px",e.display.heightForcer.style.top=i.docHeight+"px",e.display.gutters.style.height=i.docHeight+e.display.barHeight+fi(e)+"px"}function xu(e){var i=e.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var l=Pn(i)-i.scroller.scrollLeft+e.doc.scrollLeft,f=i.gutters.offsetWidth,m=l+"px",F=0;F<u.length;F++)if(!u[F].hidden){e.options.fixedGutter&&(u[F].gutter&&(u[F].gutter.style.left=m),u[F].gutterBackground&&(u[F].gutterBackground.style.left=m));var U=u[F].alignable;if(U)for(var H=0;H<U.length;H++)U[H].style.left=m}e.options.fixedGutter&&(i.gutters.style.left=l+f+"px")}}function Bo(e){if(!e.options.lineNumbers)return!1;var i=e.doc,u=fa(e.options,i.first+i.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(be("div",[be("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,F=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-F)+1,l.lineNumWidth=l.lineNumInnerWidth+F,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",el(e.display),!0}return!1}function Ya(e,i){for(var u=[],l=!1,f=0;f<e.length;f++){var m=e[f],F=null;if(typeof m!="string"&&(F=m.style,m=m.className),m=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:m,style:F})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function bu(e){var i=e.gutters,u=e.gutterSpecs;ie(i),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],m=f.className,F=f.style,U=i.appendChild(be("div",null,"CodeMirror-gutter "+m));F&&(U.style.cssText=F),m=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",el(e)}function Uo(e){bu(e.display),Rr(e),xu(e)}function nc(e,i,u,l){var f=this;this.input=u,f.scrollbarFiller=be("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=be("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=he("div",null,"CodeMirror-code"),f.selectionDiv=be("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=be("div",null,"CodeMirror-cursors"),f.measure=be("div",null,"CodeMirror-measure"),f.lineMeasure=be("div",null,"CodeMirror-measure"),f.lineSpace=he("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=he("div",[f.lineSpace],"CodeMirror-lines");f.mover=be("div",[m],null,"position: relative"),f.sizer=be("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=be("div",null,null,"position: absolute; height: "+bt+"px; width: 1px;"),f.gutters=be("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=be("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=be("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&S<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(c&&R)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=i.first,f.reportedViewFrom=f.reportedViewTo=i.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Ya(l.gutters,l.lineNumbers),bu(f),u.init(f)}var jo=0,pi=null;b?pi=-.53:c?pi=15:D?pi=-.7:j&&(pi=-1/3);function wu(e){var i=e.wheelDeltaX,u=e.wheelDeltaY;return i==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(i=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:i,y:u}}function rr(e){var i=wu(e);return i.x*=pi,i.y*=pi,i}function Su(e,i){var u=wu(i),l=u.x,f=u.y,m=pi;i.deltaMode===0&&(l=i.deltaX,f=i.deltaY,m=1);var F=e.display,U=F.scroller,H=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&H||f&&Z)){if(f&&C&&g){e:for(var me=i.target,Ce=F.view;me!=U;me=me.parentNode)for(var De=0;De<Ce.length;De++)if(Ce[De].node==me){e.display.currentWheelTarget=me;break e}}if(l&&!c&&!B&&m!=null){f&&Z&&Ga(e,Math.max(0,U.scrollTop+f*m)),Zi(e,Math.max(0,U.scrollLeft+l*m)),(!f||f&&Z)&&Qe(i),F.wheelStartX=null;return}if(f&&m!=null){var ke=f*m,Ye=e.doc.scrollTop,tt=Ye+F.wrapper.clientHeight;ke<0?Ye=Math.max(0,Ye+ke-50):tt=Math.min(e.doc.height,tt+ke+50),qs(e,{top:Ye,bottom:tt})}jo<20&&i.deltaMode!==0&&(F.wheelStartX==null?(F.wheelStartX=U.scrollLeft,F.wheelStartY=U.scrollTop,F.wheelDX=l,F.wheelDY=f,setTimeout(function(){if(F.wheelStartX!=null){var ot=U.scrollLeft-F.wheelStartX,ct=U.scrollTop-F.wheelStartY,gt=ct&&F.wheelDY&&ct/F.wheelDY||ot&&F.wheelDX&&ot/F.wheelDX;F.wheelStartX=F.wheelStartY=null,!!gt&&(pi=(pi*jo+gt)/(jo+1),++jo)}},200)):(F.wheelDX+=l,F.wheelDY+=f))}}var yn=function(e,i){this.ranges=e,this.primIndex=i};yn.prototype.primary=function(){return this.ranges[this.primIndex]},yn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=e.ranges[i];if(!oi(u.anchor,l.anchor)||!oi(u.head,l.head))return!1}return!0},yn.prototype.deepCopy=function(){for(var e=[],i=0;i<this.ranges.length;i++)e[i]=new er(le(this.ranges[i].anchor),le(this.ranges[i].head));return new yn(e,this.primIndex)},yn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},yn.prototype.contains=function(e,i){i||(i=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Lt(i,l.from())>=0&&Lt(e,l.to())<=0)return u}return-1};var er=function(e,i){this.anchor=e,this.head=i};er.prototype.from=function(){return qe(this.anchor,this.head)},er.prototype.to=function(){return Oe(this.anchor,this.head)},er.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function An(e,i,u){var l=e&&e.options.selectionsMayTouch,f=i[u];i.sort(function(De,ke){return Lt(De.from(),ke.from())}),u=ht(i,f);for(var m=1;m<i.length;m++){var F=i[m],U=i[m-1],H=Lt(U.to(),F.from());if(l&&!F.empty()?H>0:H>=0){var Z=qe(U.from(),F.from()),me=Oe(U.to(),F.to()),Ce=U.empty()?F.from()==F.head:U.from()==U.head;m<=u&&--u,i.splice(--m,2,new er(Ce?me:Z,Ce?Z:me))}}return new yn(i,u)}function ki(e,i){return new yn([new er(e,i||e)],0)}function Mi(e){return e.text?it(e.from.line+e.text.length-1,Et(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Au(e,i){if(Lt(e,i.from)<0)return e;if(Lt(e,i.to)<=0)return Mi(i);var u=e.line+i.text.length-(i.to.line-i.from.line)-1,l=e.ch;return e.line==i.to.line&&(l+=Mi(i).ch-i.to.ch),it(u,l)}function rl(e,i){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new er(Au(f.anchor,i),Au(f.head,i)))}return An(e.cm,u,e.sel.primIndex)}function Eu(e,i,u){return e.line==i.line?it(u.line,e.ch-i.ch+u.ch):it(u.line+(e.line-i.line),e.ch)}function ic(e,i,u){for(var l=[],f=it(e.first,0),m=f,F=0;F<i.length;F++){var U=i[F],H=Eu(U.from,f,m),Z=Eu(Mi(U),f,m);if(f=U.to,m=Z,u=="around"){var me=e.sel.ranges[F],Ce=Lt(me.head,me.anchor)<0;l[F]=new er(Ce?Z:H,Ce?H:Z)}else l[F]=new er(H,H)}return new yn(l,e.sel.primIndex)}function Vo(e){e.doc.mode=vn(e.options,e.doc.modeOption),ea(e)}function ea(e){e.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,zn(e,100),e.state.modeGen++,e.curOp&&Rr(e)}function Wo(e,i){return i.from.ch==0&&i.to.ch==0&&Et(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function nl(e,i,u,l){function f(gt){return u?u[gt]:null}function m(gt,dt,xt){Oi(gt,dt,xt,l),ar(gt,"change",gt,i)}function F(gt,dt){for(var xt=[],Ft=gt;Ft<dt;++Ft)xt.push(new Hi(Z[Ft],f(Ft),l));return xt}var U=i.from,H=i.to,Z=i.text,me=Ot(e,U.line),Ce=Ot(e,H.line),De=Et(Z),ke=f(Z.length-1),Ye=H.line-U.line;if(i.full)e.insert(0,F(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(Wo(e,i)){var tt=F(0,Z.length-1);m(Ce,Ce.text,ke),Ye&&e.remove(U.line,Ye),tt.length&&e.insert(U.line,tt)}else if(me==Ce)if(Z.length==1)m(me,me.text.slice(0,U.ch)+De+me.text.slice(H.ch),ke);else{var ot=F(1,Z.length-1);ot.push(new Hi(De+me.text.slice(H.ch),ke,l)),m(me,me.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,ot)}else if(Z.length==1)m(me,me.text.slice(0,U.ch)+Z[0]+Ce.text.slice(H.ch),f(0)),e.remove(U.line+1,Ye);else{m(me,me.text.slice(0,U.ch)+Z[0],f(0)),m(Ce,De+Ce.text.slice(H.ch),ke);var ct=F(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ct)}ar(e,"change",e,i)}function Ri(e,i,u){function l(f,m,F){if(f.linked)for(var U=0;U<f.linked.length;++U){var H=f.linked[U];if(H.doc!=m){var Z=F&&H.sharedHist;u&&!Z||(i(H.doc,Z),l(H.doc,f,Z))}}}l(e,null,!0)}function Cu(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,zs(e),Vo(e),il(e),e.options.direction=i.direction,e.options.lineWrapping||Cs(e),e.options.mode=i.modeOption,Rr(e)}function il(e){(e.doc.direction=="rtl"?Le:ee)(e.display.lineDiv,"CodeMirror-rtl")}function Ja(e){jr(e,function(){il(e),Rr(e)})}function Xa(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ei(e,i){var u={from:le(i.from),to:Mi(i),text:ai(e,i.from,i.to)};return Za(e,u,i.from.line,i.to.line+1),Ri(e,function(l){return Za(l,u,i.from.line,i.to.line+1)},!0),u}function Ou(e){for(;e.length;){var i=Et(e);if(i.ranges)e.pop();else break}}function Tu(e,i){if(i)return Ou(e.done),Et(e.done);if(e.done.length&&!Et(e.done).ranges)return Et(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Et(e.done)}function Pu(e,i,u,l){var f=e.history;f.undone.length=0;var m=+new Date,F,U;if((f.lastOp==l||f.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&f.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(F=Tu(f,f.lastOp==l)))U=Et(F.changes),Lt(i.from,i.to)==0&&Lt(i.from,U.to)==0?U.to=Mi(i):F.changes.push(ei(e,i));else{var H=Et(f.done);for((!H||!H.ranges)&&Qa(e.sel,f.done),F={changes:[ei(e,i)],generation:f.generation},f.done.push(F);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=i.origin,U||ae(e,"historyAdded")}function Iu(e,i,u,l){var f=i.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ac(e,i,u,l){var f=e.history,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||Iu(e,m,Et(f.done),i))?f.done[f.done.length-1]=i:Qa(i,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&Ou(f.undone)}function Qa(e,i){var u=Et(i);u&&u.ranges&&u.equals(e)||i.push(e)}function Za(e,i,u,l){var f=i["spans_"+e.id],m=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(F){F.markedSpans&&((f||(f=i["spans_"+e.id]={}))[m]=F.markedSpans),++m})}function oc(e){if(!e)return null;for(var i,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?i||(i=e.slice(0,u)):i&&i.push(e[u]);return i?i.length?i:null:e}function Ho(e,i){var u=i["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<i.text.length;++f)l.push(oc(u[f]));return l}function zo(e,i){var u=Ho(e,i),l=Gl(e,i);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],F=l[f];if(m&&F){e:for(var U=0;U<F.length;++U){for(var H=F[U],Z=0;Z<m.length;++Z)if(m[Z].marker==H.marker)continue e;m.push(H)}}else F&&(u[f]=F)}return u}function ha(e,i,u){for(var l=[],f=0;f<e.length;++f){var m=e[f];if(m.ranges){l.push(u?yn.prototype.deepCopy.call(m):m);continue}var F=m.changes,U=[];l.push({changes:U});for(var H=0;H<F.length;++H){var Z=F[H],me=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),i)for(var Ce in Z)(me=Ce.match(/^spans_(\d+)$/))&&ht(i,Number(me[1]))>-1&&(Et(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function al(e,i,u,l){if(l){var f=e.anchor;if(u){var m=Lt(i,f)<0;m!=Lt(u,f)<0?(f=i,i=u):m!=Lt(i,u)<0&&(i=u)}return new er(f,i)}else return new er(u||i,i)}function Go(e,i,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Zr(e,new yn([al(e.sel.primary(),i,u,f)],0),l)}function Fu(e,i,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),m=0;m<e.sel.ranges.length;m++)l[m]=al(e.sel.ranges[m],i[m],null,f);var F=An(e.cm,l,e.sel.primIndex);Zr(e,F,u)}function $o(e,i,u,l){var f=e.sel.ranges.slice(0);f[i]=u,Zr(e,An(e.cm,f,e.sel.primIndex),l)}function ol(e,i,u,l){Zr(e,ki(i,u),l)}function sc(e,i,u){var l={ranges:i.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new er(lt(e,f[m].anchor),lt(e,f[m].head))},origin:u&&u.origin};return ae(e,"beforeSelectionChange",e,l),e.cm&&ae(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=i.ranges?An(e.cm,l.ranges,l.ranges.length-1):i}function ku(e,i,u){var l=e.history.done,f=Et(l);f&&f.ranges?(l[l.length-1]=i,Ko(e,i,u)):Zr(e,i,u)}function Zr(e,i,u){Ko(e,i,u),ac(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Ko(e,i,u){(Be(e,"beforeSelectionChange")||e.cm&&Be(e.cm,"beforeSelectionChange"))&&(i=sc(e,i,u));var l=u&&u.bias||(Lt(i.primary().head,e.sel.primary().head)<0?-1:1);Mu(e,Lu(e,i,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&nn(e.cm)}function Mu(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ae(e.cm)),ar(e,"cursorActivity",e))}function Ru(e){Mu(e,Lu(e,e.sel,null,!1))}function Lu(e,i,u,l){for(var f,m=0;m<i.ranges.length;m++){var F=i.ranges[m],U=i.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],H=_a(e,F.anchor,U&&U.anchor,u,l),Z=_a(e,F.head,U&&U.head,u,l);(f||H!=F.anchor||Z!=F.head)&&(f||(f=i.ranges.slice(0,m)),f[m]=new er(H,Z))}return f?An(e.cm,f,i.primIndex):i}function va(e,i,u,l,f){var m=Ot(e,i.line);if(m.markedSpans)for(var F=0;F<m.markedSpans.length;++F){var U=m.markedSpans[F],H=U.marker,Z="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,me="selectRight"in H?!H.selectRight:H.inclusiveRight;if((U.from==null||(Z?U.from<=i.ch:U.from<i.ch))&&(U.to==null||(me?U.to>=i.ch:U.to>i.ch))){if(f&&(ae(H,"beforeCursorEnter"),H.explicitlyCleared))if(m.markedSpans){--F;continue}else break;if(!H.atomic)continue;if(u){var Ce=H.find(l<0?1:-1),De=void 0;if((l<0?me:Z)&&(Ce=Du(e,Ce,-l,Ce&&Ce.line==i.line?m:null)),Ce&&Ce.line==i.line&&(De=Lt(Ce,u))&&(l<0?De<0:De>0))return va(e,Ce,i,l,f)}var ke=H.find(l<0?-1:1);return(l<0?Z:me)&&(ke=Du(e,ke,l,ke.line==i.line?m:null)),ke?va(e,ke,i,l,f):null}}return i}function _a(e,i,u,l,f){var m=l||1,F=va(e,i,u,m,f)||!f&&va(e,i,u,m,!0)||va(e,i,u,-m,f)||!f&&va(e,i,u,-m,!0);return F||(e.cantEdit=!0,it(e.first,0))}function Du(e,i,u,l){return u<0&&i.ch==0?i.line>e.first?lt(e,it(i.line-1)):null:u>0&&i.ch==(l||Ot(e,i.line)).text.length?i.line<e.first+e.size-1?it(i.line+1,0):null:new it(i.line,i.ch+u)}function Yo(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),ut)}function sl(e,i,u){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,m,F,U){f&&(l.from=lt(e,f)),m&&(l.to=lt(e,m)),F&&(l.text=F),U!==void 0&&(l.origin=U)}),ae(e,"beforeChange",e,l),e.cm&&ae(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function ga(e,i,u){if(e.cm){if(!e.cm.curOp)return Vr(e.cm,ga)(e,i,u);if(e.cm.state.suppressEdits)return}if(!((Be(e,"beforeChange")||e.cm&&Be(e.cm,"beforeChange"))&&(i=sl(e,i,!0),!i))){var l=Lf&&!u&&Kl(e,i.from,i.to);if(l)for(var f=l.length-1;f>=0;--f)ta(e,{from:l[f].from,to:l[f].to,text:f?[""]:i.text,origin:i.origin});else ta(e,i)}}function ta(e,i){if(!(i.text.length==1&&i.text[0]==""&&Lt(i.from,i.to)==0)){var u=rl(e,i);Pu(e,i,u,e.cm?e.cm.curOp.id:NaN),qa(e,i,u,Gl(e,i));var l=[];Ri(e,function(f,m){!m&&ht(l,f.history)==-1&&(fl(f.history,i),l.push(f.history)),qa(f,i,null,Gl(f,i))})}}function In(e,i,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,m,F=e.sel,U=i=="undo"?f.done:f.undone,H=i=="undo"?f.undone:f.done,Z=0;Z<U.length&&(m=U[Z],!(u?m.ranges&&!m.equals(e.sel):!m.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=U.pop(),m.ranges){if(Qa(m,H),u&&!m.equals(e.sel)){Zr(e,m,{clearRedo:!1});return}F=m}else if(l){U.push(m);return}else break;var me=[];Qa(F,H),H.push({changes:me,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var Ce=Be(e,"beforeChange")||e.cm&&Be(e.cm,"beforeChange"),De=function(tt){var ot=m.changes[tt];if(ot.origin=i,Ce&&!sl(e,ot,!1))return U.length=0,{};me.push(ei(e,ot));var ct=tt?rl(e,ot):Et(U);qa(e,ot,ct,zo(e,ot)),!tt&&e.cm&&e.cm.scrollIntoView({from:ot.from,to:Mi(ot)});var gt=[];Ri(e,function(dt,xt){!xt&&ht(gt,dt.history)==-1&&(fl(dt.history,ot),gt.push(dt.history)),qa(dt,ot,null,zo(dt,ot))})},ke=m.changes.length-1;ke>=0;--ke){var Ye=De(ke);if(Ye)return Ye.v}}}}function ll(e,i){if(i!=0&&(e.first+=i,e.sel=new yn(Ht(e.sel.ranges,function(f){return new er(it(f.anchor.line+i,f.anchor.ch),it(f.head.line+i,f.head.ch))}),e.sel.primIndex),e.cm)){Rr(e.cm,e.first,e.first-i,i);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)qn(e.cm,l,"gutter")}}function qa(e,i,u,l){if(e.cm&&!e.cm.curOp)return Vr(e.cm,qa)(e,i,u,l);if(i.to.line<e.first){ll(e,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>e.lastLine())){if(i.from.line<e.first){var f=i.text.length-1-(e.first-i.from.line);ll(e,f),i={from:it(e.first,0),to:it(i.to.line+f,i.to.ch),text:[Et(i.text)],origin:i.origin}}var m=e.lastLine();i.to.line>m&&(i={from:i.from,to:it(m,Ot(e,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ai(e,i.from,i.to),u||(u=rl(e,i)),e.cm?lc(e.cm,i,l):nl(e,i,l),Ko(e,u,ut),e.cantEdit&&_a(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function lc(e,i,u){var l=e.doc,f=e.display,m=i.from,F=i.to,U=!1,H=m.line;e.options.lineWrapping||(H=Zt(Vn(Ot(l,m.line))),l.iter(H,F.line+1,function(ke){if(ke==f.maxLine)return U=!0,!0})),l.sel.contains(i.from,i.to)>-1&&Ae(e),nl(l,i,u,uu(e)),e.options.lineWrapping||(l.iter(H,m.line+i.text.length,function(ke){var Ye=Wi(ke);Ye>f.maxLineLength&&(f.maxLine=ke,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),Rf(l,m.line),zn(e,400);var Z=i.text.length-(F.line-m.line)-1;i.full?Rr(e):m.line==F.line&&i.text.length==1&&!Wo(e.doc,i)?qn(e,m.line,"text"):Rr(e,m.line,F.line+1,Z);var me=Be(e,"changes"),Ce=Be(e,"change");if(Ce||me){var De={from:m,to:F,text:i.text,removed:i.removed,origin:i.origin};Ce&&ar(e,"change",e,De),me&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(De)}e.display.selForContextMenu=null}function ya(e,i,u,l,f){var m;l||(l=u),Lt(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof i=="string"&&(i=e.splitLines(i)),ga(e,{from:u,to:l,text:i,origin:f})}function ul(e,i,u,l){u<e.line?e.line+=l:i<e.line&&(e.line=i,e.ch=0)}function Nu(e,i,u,l){for(var f=0;f<e.length;++f){var m=e[f],F=!0;if(m.ranges){m.copied||(m=e[f]=m.deepCopy(),m.copied=!0);for(var U=0;U<m.ranges.length;U++)ul(m.ranges[U].anchor,i,u,l),ul(m.ranges[U].head,i,u,l);continue}for(var H=0;H<m.changes.length;++H){var Z=m.changes[H];if(u<Z.from.line)Z.from=it(Z.from.line+l,Z.from.ch),Z.to=it(Z.to.line+l,Z.to.ch);else if(i<=Z.to.line){F=!1;break}}F||(e.splice(0,f+1),f=0)}}function fl(e,i){var u=i.from.line,l=i.to.line,f=i.text.length-(l-u)-1;Nu(e.done,u,l,f),Nu(e.undone,u,l,f)}function ra(e,i,u,l){var f=i,m=i;return typeof i=="number"?m=Ot(e,st(e,i)):f=Zt(i),f==null?null:(l(m,f)&&e.cm&&qn(e.cm,f,u),m)}function ma(e){this.lines=e,this.parent=null;for(var i=0,u=0;u<e.length;++u)e[u].parent=this,i+=e[u].height;this.height=i}ma.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,i){for(var u=e,l=e+i;u<l;++u){var f=this.lines[u];this.height-=f.height,zi(f),ar(f,"delete")}this.lines.splice(e,i)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,i,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(i).concat(this.lines.slice(e));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(e,i,u){for(var l=e+i;e<l;++e)if(u(this.lines[e]))return!0}};function xa(e){this.children=e;for(var i=0,u=0,l=0;l<e.length;++l){var f=e[l];i+=f.chunkSize(),u+=f.height,f.parent=this}this.size=i,this.height=u,this.parent=null}xa.prototype={chunkSize:function(){return this.size},removeInner:function(e,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var m=Math.min(i,f-e),F=l.height;if(l.removeInner(e,m),this.height-=F-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(i-=m)==0)break;e=0}else e-=f}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof ma))){var U=[];this.collapse(U),this.children=[new ma(U)],this.children[0].parent=this}},collapse:function(e){for(var i=0;i<this.children.length;++i)this.children[i].collapse(e)},insertInner:function(e,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<=m){if(f.insertInner(e,i,u),f.lines&&f.lines.length>50){for(var F=f.lines.length%25+25,U=F;U<f.lines.length;){var H=new ma(f.lines.slice(U,U+=25));f.height-=H.height,this.children.splice(++l,0,H),H.parent=this}f.lines=f.lines.slice(0,F),this.maybeSpill()}break}e-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var i=e.children.splice(e.children.length-5,5),u=new xa(i);if(e.parent){e.size-=u.size,e.height-=u.height;var f=ht(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new xa(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,i,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<m){var F=Math.min(i,m-e);if(f.iterN(e,F,u))return!0;if((i-=F)==0)break;e=0}else e-=m}}};var eo=function(e,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=i};eo.prototype.clear=function(){var e=this.doc.cm,i=this.line.widgets,u=this.line,l=Zt(u);if(!(l==null||!i)){for(var f=0;f<i.length;++f)i[f]==this&&i.splice(f--,1);i.length||(u.widgets=null);var m=Ct(this);Sn(u,Math.max(0,u.height-m)),e&&(jr(e,function(){cl(e,u,-m),qn(e,l,"widget")}),ar(e,"lineWidgetCleared",e,this,l))}},eo.prototype.changed=function(){var e=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Ct(this)-i;!f||(si(this.doc,l)||Sn(l,l.height+f),u&&jr(u,function(){u.curOp.forceUpdate=!0,cl(u,l,f),ar(u,"lineWidgetChanged",u,e,Zt(l))}))},Ue(eo);function cl(e,i,u){li(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Xs(e,u)}function uc(e,i,u,l){var f=new eo(e,u,l),m=e.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),ra(e,i,"widget",function(F){var U=F.widgets||(F.widgets=[]);if(f.insertAt==null?U.push(f):U.splice(Math.min(U.length,Math.max(0,f.insertAt)),0,f),f.line=F,m&&!si(e,F)){var H=li(F)<e.scrollTop;Sn(F,F.height+Ct(f)),H&&Xs(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&ar(m,"lineWidgetAdded",m,f,typeof i=="number"?i:Zt(i)),f}var Jo=0,ti=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++Jo};ti.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Ii(e),Be(this,"clear")){var u=this.find();u&&ar(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var F=this.lines[m],U=Ia(F.markedSpans,this);e&&!this.collapsed?qn(e,Zt(F),"text"):e&&(U.to!=null&&(f=Zt(F)),U.from!=null&&(l=Zt(F))),F.markedSpans=Bf(F.markedSpans,U),U.from==null&&this.collapsed&&!si(this.doc,F)&&e&&Sn(F,ca(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var Z=Vn(this.lines[H]),me=Wi(Z);me>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=me,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Rr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ru(e.doc)),e&&ar(e,"markerCleared",e,this,l,f),i&&Fi(e),this.parent&&this.parent.clear()}},ti.prototype.find=function(e,i){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var m=this.lines[f],F=Ia(m.markedSpans,this);if(F.from!=null&&(u=it(i?m:Zt(m),F.from),e==-1))return u;if(F.to!=null&&(l=it(i?m:Zt(m),F.to),e==1))return l}return u&&{from:u,to:l}},ti.prototype.changed=function(){var e=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||jr(l,function(){var f=i.line,m=Zt(i.line),F=Ds(l,m);if(F&&(Us(F),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!si(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var H=Ct(u)-U;H&&Sn(f,f.height+H)}ar(l,"markerChanged",l,e)})},ti.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||ht(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ti.prototype.detachLine=function(e){if(this.lines.splice(ht(this.lines,e),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},Ue(ti);function na(e,i,u,l,f){if(l&&l.shared)return fc(e,i,u,l,f);if(e.cm&&!e.cm.curOp)return Vr(e.cm,na)(e,i,u,l,f);var m=new ti(e,f),F=Lt(i,u);if(l&&Ze(l,m,!1),F>0||F==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=he("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(wo(e,i.line,i,u,m)||i.line!=u.line&&wo(e,u.line,i,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");Nf()}m.addToHistory&&Pu(e,{from:i,to:u,origin:"markText"},e.sel,NaN);var U=i.line,H=e.cm,Z;if(e.iter(U,u.line+1,function(Ce){H&&m.collapsed&&!H.options.lineWrapping&&Vn(Ce)==H.display.maxLine&&(Z=!0),m.collapsed&&U!=i.line&&Sn(Ce,0),Td(Ce,new bo(m,U==i.line?i.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),m.collapsed&&e.iter(i.line,u.line+1,function(Ce){si(e,Ce)&&Sn(Ce,0)}),m.clearOnEnter&&N(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(Df(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++Jo,m.atomic=!0),H){if(Z&&(H.curOp.updateMaxLine=!0),m.collapsed)Rr(H,i.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var me=i.line;me<=u.line;me++)qn(H,me,"text");m.atomic&&Ru(H.doc),ar(H,"markerAdded",H,m)}return m}var ba=function(e,i){this.markers=e,this.primary=i;for(var u=0;u<e.length;++u)e[u].parent=this};ba.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ar(this,"clear")}},ba.prototype.find=function(e,i){return this.primary.find(e,i)},Ue(ba);function fc(e,i,u,l,f){l=Ze(l),l.shared=!1;var m=[na(e,i,u,l,f)],F=m[0],U=l.widgetNode;return Ri(e,function(H){U&&(l.widgetNode=U.cloneNode(!0)),m.push(na(H,lt(H,i),lt(H,u),l,f));for(var Z=0;Z<H.linked.length;++Z)if(H.linked[Z].isParent)return;F=Et(m)}),new ba(m,F)}function Bu(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),function(i){return i.parent})}function dl(e,i){for(var u=0;u<i.length;u++){var l=i[u],f=l.find(),m=e.clipPos(f.from),F=e.clipPos(f.to);if(Lt(m,F)){var U=na(e,m,F,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function cc(e){for(var i=function(l){var f=e[l],m=[f.primary.doc];Ri(f.primary.doc,function(H){return m.push(H)});for(var F=0;F<f.markers.length;F++){var U=f.markers[F];ht(m,U.doc)==-1&&(U.parent=null,f.markers.splice(F--,1))}},u=0;u<e.length;u++)i(u)}var dc=0,ln=function(e,i,u,l,f){if(!(this instanceof ln))return new ln(e,i,u,l,f);u==null&&(u=0),xa.call(this,[new ma([new Hi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=it(u,0);this.sel=ki(m),this.history=new Xa(null),this.id=++dc,this.modeOption=i,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),nl(this,{from:m,to:m,text:e}),Zr(this,ki(m),ut)};ln.prototype=wt(xa.prototype,{constructor:ln,iter:function(e,i,u){u?this.iterN(e-this.first,i-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(e-this.first,i,u)},remove:function(e,i){this.removeInner(e-this.first,i)},getValue:function(e){var i=Ei(this,this.first,this.first+this.size);return e===!1?i:i.join(e||this.lineSeparator())},setValue:dr(function(e){var i=it(this.first,0),u=this.first+this.size-1;ga(this,{from:i,to:it(u,Ot(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&za(this.cm,0,0),Zr(this,ki(i),ut)}),replaceRange:function(e,i,u,l){i=lt(this,i),u=u?lt(this,u):i,ya(this,e,i,u,l)},getRange:function(e,i,u){var l=ai(this,lt(this,e),lt(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(e){var i=this.getLineHandle(e);return i&&i.text},getLineHandle:function(e){if(Zn(this,e))return Ot(this,e)},getLineNumber:function(e){return Zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ot(this,e)),Vn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return lt(this,e)},getCursor:function(e){var i=this.sel.primary(),u;return e==null||e=="head"?u=i.head:e=="anchor"?u=i.anchor:e=="end"||e=="to"||e===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:dr(function(e,i,u){ol(this,lt(this,typeof e=="number"?it(e,i||0):e),null,u)}),setSelection:dr(function(e,i,u){ol(this,lt(this,e),lt(this,i||e),u)}),extendSelection:dr(function(e,i,u){Go(this,lt(this,e),i&<(this,i),u)}),extendSelections:dr(function(e,i){Fu(this,Xt(this,e),i)}),extendSelectionsBy:dr(function(e,i){var u=Ht(this.sel.ranges,e);Fu(this,Xt(this,u),i)}),setSelections:dr(function(e,i,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new er(lt(this,e[f].anchor),lt(this,e[f].head||e[f].anchor));i==null&&(i=Math.min(e.length-1,this.sel.primIndex)),Zr(this,An(this.cm,l,i),u)}}),addSelection:dr(function(e,i,u){var l=this.sel.ranges.slice(0);l.push(new er(lt(this,e),lt(this,i||e))),Zr(this,An(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var f=ai(this,i[l].from(),i[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=ai(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),i[l]=f}return i},replaceSelection:function(e,i,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,i,u||"+input")},replaceSelections:dr(function(e,i,u){for(var l=[],f=this.sel,m=0;m<f.ranges.length;m++){var F=f.ranges[m];l[m]={from:F.from(),to:F.to(),text:this.splitLines(e[m]),origin:u}}for(var U=i&&i!="end"&&ic(this,l,i),H=l.length-1;H>=0;H--)ga(this,l[H]);U?ku(this,U):this.cm&&nn(this.cm)}),undo:dr(function(){In(this,"undo")}),redo:dr(function(){In(this,"redo")}),undoSelection:dr(function(){In(this,"undo",!0)}),redoSelection:dr(function(){In(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,i=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++i;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var e=this;this.history=new Xa(this.history),Ri(this,function(i){return i.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:ha(this.history.done),undone:ha(this.history.undone)}},setHistory:function(e){var i=this.history=new Xa(this.history);i.done=ha(e.done.slice(0),null,!0),i.undone=ha(e.undone.slice(0),null,!0)},setGutterMarker:dr(function(e,i,u){return ra(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[i]=u,!u&&$(f)&&(l.gutterMarkers=null),!0})}),clearGutter:dr(function(e){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&ra(i,u,"gutter",function(){return u.gutterMarkers[e]=null,$(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var i;if(typeof e=="number"){if(!Zn(this,e)||(i=e,e=Ot(this,e),!e))return null}else if(i=Zt(e),i==null)return null;return{line:i,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:dr(function(e,i,u){return ra(this,e,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(fe(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:dr(function(e,i,u){return ra(this,e,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var F=m.match(fe(u));if(!F)return!1;var U=F.index+F[0].length;l[f]=m.slice(0,F.index)+(!F.index||U==m.length?"":" ")+m.slice(U)||null}else return!1;return!0})}),addLineWidget:dr(function(e,i,u){return uc(this,e,i,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,u){return na(this,lt(this,e),lt(this,i),u,u&&u.type||"range")},setBookmark:function(e,i){var u={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return e=lt(this,e),na(this,e,e,u,"bookmark")},findMarksAt:function(e){e=lt(this,e);var i=[],u=Ot(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&i.push(f.marker.parent||f.marker)}return i},findMarks:function(e,i,u){e=lt(this,e),i=lt(this,i);var l=[],f=e.line;return this.iter(e.line,i.line+1,function(m){var F=m.markedSpans;if(F)for(var U=0;U<F.length;U++){var H=F[U];!(H.to!=null&&f==e.line&&e.ch>=H.to||H.from==null&&f!=e.line||H.from!=null&&f==i.line&&H.from>=i.ch)&&(!u||u(H.marker))&&l.push(H.marker.parent||H.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var m=f.text.length+l;if(m>e)return i=e,!0;e-=m,++u}),lt(this,it(u,i))},indexFromPos:function(e){e=lt(this,e);var i=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){i+=l.text.length+u}),i},copy:function(e){var i=new ln(Ei(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,e&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(e){e||(e={});var i=this.first,u=this.first+this.size;e.from!=null&&e.from>i&&(i=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new ln(Ei(this,i,u),e.mode||this.modeOption,i,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],dl(l,Bu(this)),l},unlinkDoc:function(e){if(e instanceof pr&&(e=e.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==e){this.linked.splice(i,1),e.unlinkDoc(this),cc(Bu(this));break}}if(e.history==this.history){var l=[e.id];Ri(e,function(f){return l.push(f.id)},!0),e.history=new Xa(null),e.history.done=ha(this.history.done,l),e.history.undone=ha(this.history.undone,l)}},iterLinkedDocs:function(e){Ri(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Nn(e)},lineSeparator:function(){return this.lineSep||`
|
|
28
|
-
`},setDirection:dr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(i){return i.order=null}),this.cm&&Ja(this.cm))})}),ln.prototype.eachLine=ln.prototype.iter;var Uu=0;function pc(e){var i=this;if(ju(i),!(pe(i,e)||ui(i.display,e))){Qe(e),b&&(Uu=+new Date);var u=Ji(i,e,!0),l=e.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,m=Array(f),F=0,U=function(){++F==f&&Vr(i,function(){u=lt(i.doc,u);var ke={from:u,to:u,text:i.doc.splitLines(m.filter(function(Ye){return Ye!=null}).join(i.doc.lineSeparator())),origin:"paste"};ga(i.doc,ke),ku(i.doc,ki(lt(i.doc,u),lt(i.doc,Mi(ke))))})()},H=function(ke,Ye){if(i.options.allowDropFileTypes&&ht(i.options.allowDropFileTypes,ke.type)==-1){U();return}var tt=new FileReader;tt.onerror=function(){return U()},tt.onload=function(){var ot=tt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ot)){U();return}m[Ye]=ot,U()},tt.readAsText(ke)},Z=0;Z<l.length;Z++)H(l[Z],Z);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(e),setTimeout(function(){return i.display.input.focus()},20);return}try{var me=e.dataTransfer.getData("Text");if(me){var Ce;if(i.state.draggingText&&!i.state.draggingText.copy&&(Ce=i.listSelections()),Ko(i.doc,ki(u,u)),Ce)for(var De=0;De<Ce.length;++De)ya(i.doc,"",Ce[De].anchor,Ce[De].head,"drag");i.replaceSelection(me,"around","paste"),i.display.input.focus()}}catch(ke){}}}}function hc(e,i){if(b&&(!e.state.draggingText||+new Date-Uu<100)){Bt(i);return}if(!(pe(e,i)||ui(e.display,i))&&(i.dataTransfer.setData("Text",e.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!j)){var u=be("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),B&&u.parentNode.removeChild(u)}}function vc(e,i){var u=Ji(e,i);if(!!u){var l=document.createDocumentFragment();Gs(e,u,l),e.display.dragCursor||(e.display.dragCursor=be("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),ye(e.display.dragCursor,l)}}function ju(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Xo(e){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<i.length;l++){var f=i[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)e(u[m])})}}var to=!1;function Vu(){to||(gc(),to=!0)}function gc(){var e;N(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Xo(yc)},100))}),N(window,"blur",function(){return Xo(da)})}function yc(e){var i=e.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,e.setSize()}for(var mn={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ro=0;ro<10;ro++)mn[ro+48]=mn[ro+96]=String(ro);for(var no=65;no<=90;no++)mn[no]=String.fromCharCode(no);for(var wa=1;wa<=12;wa++)mn[wa+111]=mn[wa+63235]="F"+wa;var ri={};ri.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ri.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ri.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ri.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ri.default=C?ri.macDefault:ri.pcDefault;function Wu(e){var i=e.split(/-(?!$)/);e=i[i.length-1];for(var u,l,f,m,F=0;F<i.length-1;F++){var U=i[F];if(/^(cmd|meta|m)$/i.test(U))m=!0;else if(/^a(lt)?$/i.test(U))u=!0;else if(/^(c|ctrl|control)$/i.test(U))l=!0;else if(/^s(hift)?$/i.test(U))f=!0;else throw new Error("Unrecognized modifier name: "+U)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),m&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function kd(e){var i={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=Ht(u.split(" "),Wu),m=0;m<f.length;m++){var F=void 0,U=void 0;m==f.length-1?(U=f.join(" "),F=l):(U=f.slice(0,m+1).join(" "),F="...");var H=i[U];if(!H)i[U]=F;else if(H!=F)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var Z in i)e[Z]=i[Z];return e}function hi(e,i,u,l){i=Qo(i);var f=i.call?i.call(e,l):i[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return hi(e,i.fallthrough,u,l);for(var m=0;m<i.fallthrough.length;m++){var F=hi(e,i.fallthrough[m],u,l);if(F)return F}}}function Hu(e){var i=typeof e=="string"?e:mn[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function pl(e,i,u){var l=e;return i.altKey&&l!="Alt"&&(e="Alt-"+e),(Q?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Q?i.ctrlKey:i.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&i.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function zu(e,i){if(B&&e.keyCode==34&&e.char)return!1;var u=mn[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),pl(u,e,i))}function Qo(e){return typeof e=="string"?ri[e]:e}function ia(e,i){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=i(u[f]);l.length&&Lt(m.from,Et(l).to)<=0;){var F=l.pop();if(Lt(F.from,m.from)<0){m.from=F.from;break}}l.push(m)}jr(e,function(){for(var U=l.length-1;U>=0;U--)ya(e.doc,"",l[U].from,l[U].to,"+delete");nn(e)})}function Zo(e,i,u){var l=Ge(e.text,i+u,u);return l<0||l>e.text.length?null:l}function _o(e,i,u){var l=Zo(e,i.ch,u);return l==null?null:new it(i.line,l,u<0?"after":"before")}function hl(e,i,u,l,f){if(e){i.doc.direction=="rtl"&&(f=-f);var m=O(u,i.doc.direction);if(m){var F=f<0?Et(m):m[0],U=f<0==(F.level==1),H=U?"after":"before",Z;if(F.level>0||i.doc.direction=="rtl"){var me=_n(i,u);Z=f<0?u.text.length-1:0;var Ce=Wn(i,me,Z).top;Z=Ke(function(De){return Wn(i,me,De).top==Ce},f<0==(F.level==1)?F.from:F.to-1,Z),H=="before"&&(Z=Zo(u,Z,1))}else Z=f<0?F.to:F.from;return new it(l,Z,H)}}return new it(l,f<0?u.text.length:0,f<0?"before":"after")}function Gu(e,i,u,l){var f=O(i,e.doc.direction);if(!f)return _o(i,u,l);u.ch>=i.text.length?(u.ch=i.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=K(f,u.ch,u.sticky),F=f[m];if(e.doc.direction=="ltr"&&F.level%2==0&&(l>0?F.to>u.ch:F.from<u.ch))return _o(i,u,l);var U=function(ct,gt){return Zo(i,ct instanceof it?ct.ch:ct,gt)},H,Z=function(ct){return e.options.lineWrapping?(H=H||_n(e,i),lu(e,i,H,ct)):{begin:0,end:i.text.length}},me=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||F.level==1){var Ce=F.level==1==l<0,De=U(u,Ce?1:-1);if(De!=null&&(Ce?De<=F.to&&De<=me.end:De>=F.from&&De>=me.begin)){var ke=Ce?"before":"after";return new it(u.line,De,ke)}}var Ye=function(ct,gt,dt){for(var xt=function(Tt,Dr){return Dr?new it(u.line,U(Tt,1),"before"):new it(u.line,Tt,"after")};ct>=0&&ct<f.length;ct+=gt){var Ft=f[ct],It=gt>0==(Ft.level!=1),at=It?dt.begin:U(dt.end,-1);if(Ft.from<=at&&at<Ft.to||(at=It?Ft.from:U(Ft.to,-1),dt.begin<=at&&at<dt.end))return xt(at,It)}},tt=Ye(m+l,l,me);if(tt)return tt;var ot=l>0?me.end:U(me.begin,-1);return ot!=null&&!(l>0&&ot==i.text.length)&&(tt=Ye(l>0?0:f.length-1,l,Z(ot)),tt)?tt:null}var io={selectAll:Yo,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ut)},killLine:function(e){return ia(e,function(i){if(i.empty()){var u=Ot(e.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<e.lastLine()?{from:i.head,to:it(i.head.line+1,0)}:{from:i.head,to:it(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(e){return ia(e,function(i){return{from:it(i.from().line,0),to:lt(e.doc,it(i.to().line+1,0))}})},delLineLeft:function(e){return ia(e,function(i){return{from:it(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return ia(e,function(i){var u=e.charCoords(i.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(e){return ia(e,function(i){var u=e.charCoords(i.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(i){return Sa(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return qo(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return mc(e,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(i){var u=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},mt)},goLineLeft:function(e){return e.extendSelectionsBy(function(i){var u=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},mt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(i){var u=e.cursorCoords(i.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?qo(e,i.head):l},mt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var i=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var m=u[f].from(),F=Xe(e.getLine(m.line),m.ch,l);i.push(kt(l-F%l))}e.replaceSelections(i)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return jr(e,function(){for(var i=e.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var f=i[l].head,m=Ot(e.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new it(f.line,f.ch-1)),f.ch>0)f=new it(f.line,f.ch+1),e.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),it(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var F=Ot(e.doc,f.line-1).text;F&&(f=new it(f.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+F.charAt(F.length-1),it(f.line-1,F.length-1),f,"+transpose"))}}u.push(new er(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return jr(e,function(){for(var i=e.listSelections(),u=i.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=e.listSelections();for(var l=0;l<i.length;l++)e.indentLine(i[l].from().line,null,!0);nn(e)})},openLine:function(e){return e.replaceSelection(`
|
|
29
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Sa(e,i){var u=Ot(e.doc,i),l=Vn(u);return l!=u&&(i=Zt(l)),hl(!0,e,l,i,1)}function mc(e,i){var u=Ot(e.doc,i),l=Xl(u);return l!=u&&(i=Zt(l)),hl(!0,e,u,i,-1)}function qo(e,i){var u=Sa(e,i.line),l=Ot(e.doc,u.line),f=O(l,e.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),F=i.line==u.line&&i.ch<=m&&i.ch;return it(u.line,F?0:m,u.sticky)}return u}function es(e,i,u){if(typeof i=="string"&&(i=io[i],!i))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=i(e)!=nt}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function xc(e,i,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=hi(i,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&hi(i,e.options.extraKeys,u,e)||hi(i,e.options.keyMap,u,e)}var ts=new ft;function ao(e,i,u,l){var f=e.state.keySeq;if(f){if(Hu(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:ts.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),bc(e,f+" "+i,u,l))return!0}return bc(e,i,u,l)}function bc(e,i,u,l){var f=xc(e,i,l);return f=="multi"&&(e.state.keySeq=i),f=="handled"&&ar(e,"keyHandled",e,i,u),(f=="handled"||f=="multi")&&(Qe(u),$s(e)),!!f}function $u(e,i){var u=zu(i,!0);return u?i.shiftKey&&!e.state.keySeq?ao(e,"Shift-"+u,i,function(l){return es(e,l,!0)})||ao(e,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return es(e,l)}):ao(e,u,i,function(l){return es(e,l)}):!1}function wc(e,i,u){return ao(e,"'"+u+"'",i,function(l){return es(e,l,!0)})}var rs=null;function Ku(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&(i.curOp.focus=Fe(),!pe(i,e))){b&&S<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;i.display.shift=u==16||e.shiftKey;var l=$u(i,e);B&&(rs=l?u:null,!l&&u==88&&!On&&(C?e.metaKey:e.ctrlKey)&&i.replaceSelection("",null,"cut")),c&&!C&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&Sc(i)}}function Sc(e){var i=e.display.lineDiv;Le(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(ee(i,"CodeMirror-crosshair"),de(document,"keyup",u),de(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function Yu(e){e.keyCode==16&&(this.doc.sel.shift=!1),pe(this,e)}function vl(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&!(ui(i.display,e)||pe(i,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==rs){rs=null,Qe(e);return}if(!(B&&(!e.which||e.which<10)&&$u(i,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(wc(i,e,f)||i.display.input.onKeyPress(e))}}}var Ac=400,gl=function(e,i,u){this.time=e,this.pos=i,this.button=u};gl.prototype.compare=function(e,i,u){return this.time+Ac>e&&Lt(i,this.pos)==0&&u==this.button};var oo,so;function Ec(e,i){var u=+new Date;return so&&so.compare(u,e,i)?(oo=so=null,"triple"):oo&&oo.compare(u,e,i)?(so=new gl(u,e,i),oo=null,"double"):(oo=new gl(u,e,i),so=null,"single")}function Ju(e){var i=this,u=i.display;if(!(pe(i,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,ui(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!yl(i,e)){var l=Ji(i,e),f=dn(e),m=l?Ec(l,f):"single";window.focus(),f==1&&i.state.selectingText&&i.state.selectingText(e),!(l&&Cc(i,f,l,m,e))&&(f==1?l?Tc(i,l,m,e):Pt(e)==u.scroller&&Qe(e):f==2?(l&&Go(i.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?i.display.input.onContextMenu(e):Wa(i)))}}}function Cc(e,i,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,ao(e,pl(m,f),f,function(F){if(typeof F=="string"&&(F=io[F]),!F)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=F(e,u)!=nt}finally{e.state.suppressEdits=!1}return U})}function Oc(e,i,u){var l=e.getOption("configureMouse"),f=l?l(e,i,u):{};if(f.unit==null){var m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=C?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(C?u.altKey:u.ctrlKey)),f}function Tc(e,i,u,l){b?setTimeout(rt(Ks,e),0):e.curOp.focus=Fe();var f=Oc(e,u,l),m=e.doc.sel,F;e.options.dragDrop&&Br&&!e.isReadOnly()&&u=="single"&&(F=m.contains(i))>-1&&(Lt((F=m.ranges[F]).from(),i)<0||i.xRel>0)&&(Lt(F.to(),i)>0||i.xRel<0)?ns(e,l,i,f):Pc(e,l,i,f)}function ns(e,i,u,l){var f=e.display,m=!1,F=Vr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wa(e)),de(f.wrapper.ownerDocument,"mouseup",F),de(f.wrapper.ownerDocument,"mousemove",U),de(f.scroller,"dragstart",H),de(f.scroller,"drop",F),m||(Qe(Z),l.addNew||Go(e.doc,u,null,null,l.extend),g&&!j||b&&S==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),U=function(Z){m=m||Math.abs(i.clientX-Z.clientX)+Math.abs(i.clientY-Z.clientY)>=10},H=function(){return m=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=F,F.copy=!l.moveOnDrag,N(f.wrapper.ownerDocument,"mouseup",F),N(f.wrapper.ownerDocument,"mousemove",U),N(f.scroller,"dragstart",H),N(f.scroller,"drop",F),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Xu(e,i,u){if(u=="char")return new er(i,i);if(u=="word")return e.findWordAt(i);if(u=="line")return new er(it(i.line,0),lt(e.doc,it(i.line+1,0)));var l=u(e,i);return new er(l.from,l.to)}function Pc(e,i,u,l){b&&Wa(e);var f=e.display,m=e.doc;Qe(i);var F,U,H=m.sel,Z=H.ranges;if(l.addNew&&!l.extend?(U=m.sel.contains(u),U>-1?F=Z[U]:F=new er(u,u)):(F=m.sel.primary(),U=m.sel.primIndex),l.unit=="rectangle")l.addNew||(F=new er(u,u)),u=Ji(e,i,!0,!0),U=-1;else{var me=Xu(e,u,l.unit);l.extend?F=al(F,me.anchor,me.head,l.extend):F=me}l.addNew?U==-1?(U=Z.length,Zr(m,An(e,Z.concat([F]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(Zr(m,An(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),H=m.sel):$o(m,U,F,yt):(U=0,Zr(m,new yn([F],0),yt),H=m.sel);var Ce=u;function De(dt){if(Lt(Ce,dt)!=0)if(Ce=dt,l.unit=="rectangle"){for(var xt=[],Ft=e.options.tabSize,It=Xe(Ot(m,u.line).text,u.ch,Ft),at=Xe(Ot(m,dt.line).text,dt.ch,Ft),Tt=Math.min(It,at),Dr=Math.max(It,at),br=Math.min(u.line,dt.line),xn=Math.min(e.lastLine(),Math.max(u.line,dt.line));br<=xn;br++){var un=Ot(m,br).text,Ir=pt(un,Tt,Ft);Tt==Dr?xt.push(new er(it(br,Ir),it(br,Ir))):un.length>Ir&&xt.push(new er(it(br,Ir),it(br,pt(un,Dr,Ft))))}xt.length||xt.push(new er(u,u)),Zr(m,An(e,H.ranges.slice(0,U).concat(xt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(dt)}else{var fn=F,Fr=Xu(e,dt,l.unit),kr=fn.anchor,Ar;Lt(Fr.anchor,kr)>0?(Ar=Fr.head,kr=qe(fn.from(),Fr.anchor)):(Ar=Fr.anchor,kr=Oe(fn.to(),Fr.head));var vr=H.ranges.slice(0);vr[U]=Ic(e,new er(lt(m,kr),Ar)),Zr(m,An(e,vr,U),yt)}}var ke=f.wrapper.getBoundingClientRect(),Ye=0;function tt(dt){var xt=++Ye,Ft=Ji(e,dt,!0,l.unit=="rectangle");if(!!Ft)if(Lt(Ft,Ce)!=0){e.curOp.focus=Fe(),De(Ft);var It=Ha(f,m);(Ft.line>=It.to||Ft.line<It.from)&&setTimeout(Vr(e,function(){Ye==xt&&tt(dt)}),150)}else{var at=dt.clientY<ke.top?-20:dt.clientY>ke.bottom?20:0;at&&setTimeout(Vr(e,function(){Ye==xt&&(f.scroller.scrollTop+=at,tt(dt))}),50)}}function ot(dt){e.state.selectingText=!1,Ye=1/0,dt&&(Qe(dt),f.input.focus()),de(f.wrapper.ownerDocument,"mousemove",ct),de(f.wrapper.ownerDocument,"mouseup",gt),m.history.lastSelOrigin=null}var ct=Vr(e,function(dt){dt.buttons===0||!dn(dt)?ot(dt):tt(dt)}),gt=Vr(e,ot);e.state.selectingText=gt,N(f.wrapper.ownerDocument,"mousemove",ct),N(f.wrapper.ownerDocument,"mouseup",gt)}function Ic(e,i){var u=i.anchor,l=i.head,f=Ot(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return i;var m=O(f);if(!m)return i;var F=K(m,u.ch,u.sticky),U=m[F];if(U.from!=u.ch&&U.to!=u.ch)return i;var H=F+(U.from==u.ch==(U.level!=1)?0:1);if(H==0||H==m.length)return i;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var me=K(m,l.ch,l.sticky),Ce=me-F||(l.ch-u.ch)*(U.level==1?-1:1);me==H-1||me==H?Z=Ce<0:Z=Ce>0}var De=m[H+(Z?-1:0)],ke=Z==(De.level==1),Ye=ke?De.from:De.to,tt=ke?"after":"before";return u.ch==Ye&&u.sticky==tt?i:new er(new it(u.line,Ye,tt),l)}function Qu(e,i,u,l){var f,m;if(i.touches)f=i.touches[0].clientX,m=i.touches[0].clientY;else try{f=i.clientX,m=i.clientY}catch(De){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&Qe(i);var F=e.display,U=F.lineDiv.getBoundingClientRect();if(m>U.bottom||!Be(e,u))return At(i);m-=U.top-F.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=F.gutters.childNodes[H];if(Z&&Z.getBoundingClientRect().right>=f){var me=jn(e.doc,m),Ce=e.display.gutterSpecs[H];return ae(e,u,e,me,Ce.className,i),At(i)}}}function yl(e,i){return Qu(e,i,"gutterClick",!0)}function Zu(e,i){ui(e.display,i)||_u(e,i)||pe(e,i,"contextmenu")||Y||e.display.input.onContextMenu(i)}function _u(e,i){return Be(e,"gutterContextMenu")?Qu(e,i,"gutterContextMenu",!1):!1}function qu(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ba(e)}var Aa={toString:function(){return"CodeMirror.Init"}},ef={},is={};function tf(e){var i=e.optionHandlers;function u(l,f,m,F){e.defaults[l]=f,m&&(i[l]=F?function(U,H,Z){Z!=Aa&&m(U,H,Z)}:m)}e.defineOption=u,e.Init=Aa,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Vo(l)},!0),u("indentUnit",2,Vo,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){ea(l),Ba(l),Rr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],F=l.doc.first;l.doc.iter(function(H){for(var Z=0;;){var me=H.text.indexOf(f,Z);if(me==-1)break;Z=me+f.length,m.push(it(F,me))}F++});for(var U=m.length-1;U>=0;U--)ya(l.doc,f,m[U],it(m[U].line,m[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=Aa&&l.refresh()}),u("specialCharPlaceholder",Is,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",R?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){qu(l),Uo(l)},!0),u("keyMap","default",function(l,f,m){var F=Qo(f),U=m!=Aa&&Qo(m);U&&U.detach&&U.detach(l,F),F.attach&&F.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,kc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Ya(f,l.options.lineNumbers),Uo(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Pn(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return ci(l)},!0),u("scrollbarStyle","native",function(l){No(l),ci(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Ya(l.options.gutters,f),Uo(l)},!0),u("firstLineNumber",1,Uo,!0),u("lineNumberFormatter",function(l){return l},Uo,!0),u("showCursorWhenSelecting",!1,Pi,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(da(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,Fc),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Pi,!0),u("singleCursorHeightPerLine",!0,Pi,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,ea,!0),u("addModeClass",!1,ea,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,ea,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function Fc(e,i,u){var l=u&&u!=Aa;if(!i!=!l){var f=e.display.dragFunctions,m=i?N:de;m(e.display.scroller,"dragstart",f.start),m(e.display.scroller,"dragenter",f.enter),m(e.display.scroller,"dragover",f.over),m(e.display.scroller,"dragleave",f.leave),m(e.display.scroller,"drop",f.drop)}}function kc(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ee(e.display.wrapper,"CodeMirror-wrap"),Cs(e)),zs(e),Rr(e),Ba(e),setTimeout(function(){return ci(e)},100)}function pr(e,i){var u=this;if(!(this instanceof pr))return new pr(e,i);this.options=i=i?Ze(i):{},Ze(ef,i,!1);var l=i.value;typeof l=="string"?l=new ln(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var f=new pr.inputStyles[i.inputStyle](this),m=this.display=new nc(e,l,f,i);m.wrapper.CodeMirror=this,qu(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),No(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ft,keySeq:null,specialChars:null},i.autofocus&&!R&&m.input.focus(),b&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),Mc(this),Vu(),Ii(this),this.curOp.forceUpdate=!0,Cu(this,l),i.autofocus&&!R||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Mo(u)},20):da(this);for(var F in is)is.hasOwnProperty(F)&&is[F](this,i[F],Aa);Bo(this),i.finishInit&&i.finishInit(this);for(var U=0;U<ml.length;++U)ml[U](this);Fi(this),g&&i.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}pr.defaults=ef,pr.optionHandlers=is;function Mc(e){var i=e.display;N(i.scroller,"mousedown",Vr(e,Ju)),b&&S<11?N(i.scroller,"dblclick",Vr(e,function(H){if(!pe(e,H)){var Z=Ji(e,H);if(!(!Z||yl(e,H)||ui(e.display,H))){Qe(H);var me=e.findWordAt(Z);Go(e.doc,me.anchor,me.head)}}})):N(i.scroller,"dblclick",function(H){return pe(e,H)||Qe(H)}),N(i.scroller,"contextmenu",function(H){return Zu(e,H)}),N(i.input.getField(),"contextmenu",function(H){i.scroller.contains(H.target)||Zu(e,H)});var u,l={end:0};function f(){i.activeTouch&&(u=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function m(H){if(H.touches.length!=1)return!1;var Z=H.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function F(H,Z){if(Z.left==null)return!0;var me=Z.left-H.left,Ce=Z.top-H.top;return me*me+Ce*Ce>20*20}N(i.scroller,"touchstart",function(H){if(!pe(e,H)&&!m(H)&&!yl(e,H)){i.input.ensurePolled(),clearTimeout(u);var Z=+new Date;i.activeTouch={start:Z,moved:!1,prev:Z-l.end<=300?l:null},H.touches.length==1&&(i.activeTouch.left=H.touches[0].pageX,i.activeTouch.top=H.touches[0].pageY)}}),N(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),N(i.scroller,"touchend",function(H){var Z=i.activeTouch;if(Z&&!ui(i,H)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var me=e.coordsChar(i.activeTouch,"page"),Ce;!Z.prev||F(Z,Z.prev)?Ce=new er(me,me):!Z.prev.prev||F(Z,Z.prev.prev)?Ce=e.findWordAt(me):Ce=new er(it(me.line,0),lt(e.doc,it(me.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),Qe(H)}f()}),N(i.scroller,"touchcancel",f),N(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Ga(e,i.scroller.scrollTop),Zi(e,i.scroller.scrollLeft,!0),ae(e,"scroll",e))}),N(i.scroller,"mousewheel",function(H){return Su(e,H)}),N(i.scroller,"DOMMouseScroll",function(H){return Su(e,H)}),N(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(H){pe(e,H)||Bt(H)},over:function(H){pe(e,H)||(vc(e,H),Bt(H))},start:function(H){return hc(e,H)},drop:Vr(e,pc),leave:function(H){pe(e,H)||ju(e)}};var U=i.input.getField();N(U,"keyup",function(H){return Yu.call(e,H)}),N(U,"keydown",Vr(e,Ku)),N(U,"keypress",Vr(e,vl)),N(U,"focus",function(H){return Mo(e,H)}),N(U,"blur",function(H){return da(e,H)})}var ml=[];pr.defineInitHook=function(e){return ml.push(e)};function Ea(e,i,u,l){var f=e.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=tn(e,i).state:u="prev");var F=e.options.tabSize,U=Ot(f,i),H=Xe(U.text,null,F);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],me;if(!l&&!/\S/.test(U.text))me=0,u="not";else if(u=="smart"&&(me=f.mode.indent(m,U.text.slice(Z.length),U.text),me==nt||me>150)){if(!l)return;u="prev"}u=="prev"?i>f.first?me=Xe(Ot(f,i-1).text,null,F):me=0:u=="add"?me=H+e.options.indentUnit:u=="subtract"?me=H-e.options.indentUnit:typeof u=="number"&&(me=H+u),me=Math.max(0,me);var Ce="",De=0;if(e.options.indentWithTabs)for(var ke=Math.floor(me/F);ke;--ke)De+=F,Ce+=" ";if(De<me&&(Ce+=kt(me-De)),Ce!=Z)return ya(f,Ce,it(i,0),it(i,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var tt=f.sel.ranges[Ye];if(tt.head.line==i&&tt.head.ch<Z.length){var ot=it(i,Z.length);$o(f,Ye,new er(ot,ot));break}}}var En=null;function lo(e){En=e}function xl(e,i,u,l,f){var m=e.doc;e.display.shift=!1,l||(l=m.sel);var F=+new Date-200,U=f=="paste"||e.state.pasteIncoming>F,H=Nn(i),Z=null;if(U&&l.ranges.length>1)if(En&&En.text.join(`
|
|
30
|
-
`)==
|
|
20
|
+
b`.split(/\n/).length!=3?function(e){for(var n=0,u=[],l=e.length;n<=l;){var f=e.indexOf(`
|
|
21
|
+
`,n);f==-1&&(f=e.length);var m=e.slice(n,e.charAt(f-1)=="\r"?f-1:f),k=m.indexOf("\r");k!=-1?(u.push(m.slice(0,k)),n+=k+1):(u.push(m),n=f+1)}return u}:function(e){return e.split(/\r\n?|\n/)},vn=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(n){return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch(u){}return!n||n.parentElement()!=e?!1:n.compareEndPoints("StartToEnd",n)!=0},Pn=function(){var e=we("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),$r=null;function Ei(e){if($r!=null)return $r;var n=xe(e,we("span","x")),u=n.getBoundingClientRect(),l=fe(n,0,1).getBoundingClientRect();return $r=Math.abs(u.left-l.left)>1}var Ci={},en={};function gn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Ci[e]=n}function Un(e,n){en[e]=n}function jn(e){if(typeof e=="string"&&en.hasOwnProperty(e))e=en[e];else if(e&&typeof e.name=="string"&&en.hasOwnProperty(e.name)){var n=en[e.name];typeof n=="string"&&(n={name:n}),e=St(n,e),e.name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return jn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return jn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function yn(e,n){n=jn(n);var u=Ci[n.name];if(!u)return yn(e,"text/plain");var l=u(e,n);if(Xn.hasOwnProperty(n.name)){var f=Xn[n.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}if(l.name=n.name,n.helperType&&(l.helperType=n.helperType),n.modeProps)for(var k in n.modeProps)l[k]=n.modeProps[k];return l}var Xn={};function Oi(e,n){var u=Xn.hasOwnProperty(e)?Xn[e]:Xn[e]={};Ze(n,u)}function Br(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var u={};for(var l in n){var f=n[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function Kr(e,n){for(var u;e.innerMode&&(u=e.innerMode(n),!(!u||u.mode==e));)n=u.state,e=u.mode;return u||{mode:e,state:n}}function Qn(e,n,u){return e.startState?e.startState(n,u):!0}var fr=function(e,n,u){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};fr.prototype.eol=function(){return this.pos>=this.string.length},fr.prototype.sol=function(){return this.pos==this.lineStart},fr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},fr.prototype.eat=function(e){var n=this.string.charAt(this.pos),u;if(typeof e=="string"?u=n==e:u=n&&(e.test?e.test(n):e(n)),u)return++this.pos,n},fr.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},fr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},fr.prototype.skipToEnd=function(){this.pos=this.string.length},fr.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},fr.prototype.backUp=function(e){this.pos-=e},fr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Xe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},fr.prototype.indentation=function(){return Xe(this.string,null,this.tabSize)-(this.lineStart?Xe(this.string,this.lineStart,this.tabSize):0)},fr.prototype.match=function(e,n,u){if(typeof e=="string"){var l=function(k){return u?k.toLowerCase():k},f=this.string.substr(this.pos,e.length);if(l(f)==l(e))return n!==!1&&(this.pos+=e.length),!0}else{var m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&n!==!1&&(this.pos+=m[0].length),m)}},fr.prototype.current=function(){return this.string.slice(this.start,this.pos)},fr.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},fr.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},fr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function Ot(e,n){if(n-=e.first,n<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var u=e;!u.lines;)for(var l=0;;++l){var f=u.children[l],m=f.chunkSize();if(n<m){u=f;break}n-=m}return u.lines[n]}function oi(e,n,u){var l=[],f=n.line;return e.iter(n.line,u.line+1,function(m){var k=m.text;f==u.line&&(k=k.slice(0,u.ch)),f==n.line&&(k=k.slice(n.ch)),l.push(k),++f}),l}function Ti(e,n,u){var l=[];return e.iter(n,u,function(f){l.push(f.text)}),l}function En(e,n){var u=n-e.height;if(u)for(var l=e;l;l=l.parent)l.height+=u}function Zt(e){if(e.parent==null)return null;for(var n=e.parent,u=ht(n.lines,e),l=n.parent;l;n=l,l=l.parent)for(var f=0;l.children[f]!=n;++f)u+=l.children[f].chunkSize();return u+n.first}function Vn(e,n){var u=e.first;e:do{for(var l=0;l<e.children.length;++l){var f=e.children[l],m=f.height;if(n<m){e=f;continue e}n-=m,u+=f.chunkSize()}return u}while(!e.lines);for(var k=0;k<e.lines.length;++k){var U=e.lines[k],H=U.height;if(n<H)break;n-=H}return u+k}function Zn(e,n){return n>=e.first&&n<e.first+e.size}function fa(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function at(e,n,u){if(u===void 0&&(u=null),!(this instanceof at))return new at(e,n,u);this.line=e,this.ch=n,this.sticky=u}function Lt(e,n){return e.line-n.line||e.ch-n.ch}function si(e,n){return e.sticky==n.sticky&&Lt(e,n)==0}function ue(e){return at(e.line,e.ch)}function Oe(e,n){return Lt(e,n)<0?n:e}function qe(e,n){return Lt(e,n)<0?e:n}function st(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function lt(e,n){if(n.line<e.first)return at(e.first,0);var u=e.first+e.size-1;return n.line>u?at(u,Ot(e,u).text.length):Kt(n,Ot(e,n.line).text.length)}function Kt(e,n){var u=e.ch;return u==null||u>n?at(e.line,n):u<0?at(e.line,0):e}function Xt(e,n){for(var u=[],l=0;l<n.length;l++)u[l]=lt(e,n[l]);return u}var Or=function(e,n){this.state=e,this.lookAhead=n},Tr=function(e,n,u,l){this.state=n,this.doc=e,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Tr.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},Tr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Tr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tr.fromSaved=function(e,n,u){return n instanceof Or?new Tr(e,Br(e.mode,n.state),u,n.lookAhead):new Tr(e,Br(e.mode,n),u)},Tr.prototype.save=function(e){var n=e!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Or(n,this.maxLookAhead):n};function _t(e,n,u,l){var f=[e.state.modeGen],m={};zl(e,n.text,e.doc.mode,u,function(Z,be){return f.push(Z,be)},m,l);for(var k=u.state,U=function(Z){u.baseTokens=f;var be=e.state.overlays[Z],Ce=1,Ne=0;u.state=!0,zl(e,n.text,be.mode,u,function(ke,Ye){for(var tt=Ce;Ne<ke;){var ot=f[Ce];ot>ke&&f.splice(Ce,1,ke,f[Ce+1],ot),Ce+=2,Ne=Math.min(ke,ot)}if(!!Ye)if(be.opaque)f.splice(tt,Ce-tt,ke,"overlay "+Ye),Ce=tt+2;else for(;tt<Ce;tt+=2){var ct=f[tt+1];f[tt+1]=(ct?ct+" ":"")+"overlay "+Ye}},m),u.state=k,u.baseTokens=null,u.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)U(H);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function Wl(e,n,u){if(!n.styles||n.styles[0]!=e.state.modeGen){var l=tn(e,Zt(n)),f=n.text.length>e.options.maxHighlightLength&&Br(e.doc.mode,l.state),m=_t(e,n,l);f&&(l.state=f),n.stateAfter=l.save(!f),n.styles=m.styles,m.classes?n.styleClasses=m.classes:n.styleClasses&&(n.styleClasses=null),u===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function tn(e,n,u){var l=e.doc,f=e.display;if(!l.mode.startState)return new Tr(l,!0,n);var m=kf(e,n,u),k=m>l.first&&Ot(l,m-1).stateAfter,U=k?Tr.fromSaved(l,k,m):new Tr(l,Qn(l.mode),m);return l.iter(m,n,function(H){ys(e,H.text,U);var Z=U.line;H.stateAfter=Z==n-1||Z%5==0||Z>=f.viewFrom&&Z<f.viewTo?U.save():null,U.nextLine()}),u&&(l.modeFrontier=U.line),U}function ys(e,n,u,l){var f=e.doc.mode,m=new fr(n,e.options.tabSize,u);for(m.start=m.pos=l||0,n==""&&yo(f,u.state);!m.eol();)ms(f,m,u.state),m.start=m.pos}function yo(e,n){if(e.blankLine)return e.blankLine(n);if(!!e.innerMode){var u=Kr(e,n);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function ms(e,n,u,l){for(var f=0;f<10;f++){l&&(l[0]=Kr(e,u).mode);var m=e.token(n,u);if(n.pos>n.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var xs=function(e,n,u){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=u};function bs(e,n,u,l){var f=e.doc,m=f.mode,k;n=lt(f,n);var U=Ot(f,n.line),H=tn(e,n.line,u),Z=new fr(U.text,e.options.tabSize,H),be;for(l&&(be=[]);(l||Z.pos<n.ch)&&!Z.eol();)Z.start=Z.pos,k=ms(m,Z,H.state),l&&be.push(new xs(Z,k,Br(f.mode,H.state)));return l?be:new xs(Z,k,H.state)}function Hl(e,n){if(e)for(;;){var u=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;e=e.slice(0,u.index)+e.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";n[l]==null?n[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(n[l])||(n[l]+=" "+u[2])}return e}function zl(e,n,u,l,f,m,k){var U=u.flattenSpans;U==null&&(U=e.options.flattenSpans);var H=0,Z=null,be=new fr(n,e.options.tabSize,l),Ce,Ne=e.options.addModeClass&&[null];for(n==""&&Hl(yo(u,l.state),m);!be.eol();){if(be.pos>e.options.maxHighlightLength?(U=!1,k&&ys(e,n,l,be.pos),be.pos=n.length,Ce=null):Ce=Hl(ms(u,be,l.state,Ne),m),Ne){var ke=Ne[0].name;ke&&(Ce="m-"+(Ce?ke+" "+Ce:ke))}if(!U||Z!=Ce){for(;H<be.start;)H=Math.min(be.start,H+5e3),f(H,Z);Z=Ce}be.start=be.pos}for(;H<be.pos;){var Ye=Math.min(be.pos,H+5e3);f(Ye,Z),H=Ye}}function kf(e,n,u){for(var l,f,m=e.doc,k=u?-1:n-(e.doc.mode.innerMode?1e3:100),U=n;U>k;--U){if(U<=m.first)return m.first;var H=Ot(m,U-1),Z=H.stateAfter;if(Z&&(!u||U+(Z instanceof Or?Z.lookAhead:0)<=m.modeFrontier))return U;var be=Xe(H.text,null,e.options.tabSize);(f==null||l>be)&&(f=U-1,l=be)}return f}function Mf(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontier<n-10)){for(var u=e.first,l=n-1;l>u;l--){var f=Ot(e,l).stateAfter;if(f&&(!(f instanceof Or)||l+f.lookAhead<n)){u=l+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,u)}}var Rf=!1,Pi=!1;function Lf(){Rf=!0}function Df(){Pi=!0}function mo(e,n,u){this.marker=e,this.from=n,this.to=u}function Ia(e,n){if(e)for(var u=0;u<e.length;++u){var l=e[u];if(l.marker==n)return l}}function Nf(e,n){for(var u,l=0;l<e.length;++l)e[l]!=n&&(u||(u=[])).push(e[l]);return u}function Ad(e,n,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&l.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],l&&l.add(e.markedSpans)),n.marker.attachLine(e)}function Ed(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],k=m.marker,U=m.from==null||(k.inclusiveLeft?m.from<=n:m.from<n);if(U||m.from==n&&k.type=="bookmark"&&(!u||!m.marker.insertLeft)){var H=m.to==null||(k.inclusiveRight?m.to>=n:m.to>n);(l||(l=[])).push(new mo(k,m.from,H?null:m.to))}}return l}function Cd(e,n,u){var l;if(e)for(var f=0;f<e.length;++f){var m=e[f],k=m.marker,U=m.to==null||(k.inclusiveRight?m.to>=n:m.to>n);if(U||m.from==n&&k.type=="bookmark"&&(!u||m.marker.insertLeft)){var H=m.from==null||(k.inclusiveLeft?m.from<=n:m.from<n);(l||(l=[])).push(new mo(k,H?null:m.from-n,m.to==null?null:m.to-n))}}return l}function Gl(e,n){if(n.full)return null;var u=Zn(e,n.from.line)&&Ot(e,n.from.line).markedSpans,l=Zn(e,n.to.line)&&Ot(e,n.to.line).markedSpans;if(!u&&!l)return null;var f=n.from.ch,m=n.to.ch,k=Lt(n.from,n.to)==0,U=Ed(u,f,k),H=Cd(l,m,k),Z=n.text.length==1,be=Et(n.text).length+(Z?f:0);if(U)for(var Ce=0;Ce<U.length;++Ce){var Ne=U[Ce];if(Ne.to==null){var ke=Ia(H,Ne.marker);ke?Z&&(Ne.to=ke.to==null?null:ke.to+be):Ne.to=f}}if(H)for(var Ye=0;Ye<H.length;++Ye){var tt=H[Ye];if(tt.to!=null&&(tt.to+=be),tt.from==null){var ot=Ia(U,tt.marker);ot||(tt.from=be,Z&&(U||(U=[])).push(tt))}else tt.from+=be,Z&&(U||(U=[])).push(tt)}U&&(U=$l(U)),H&&H!=U&&(H=$l(H));var ct=[U];if(!Z){var yt=n.text.length-2,dt;if(yt>0&&U)for(var bt=0;bt<U.length;++bt)U[bt].to==null&&(dt||(dt=[])).push(new mo(U[bt].marker,null,null));for(var Ft=0;Ft<yt;++Ft)ct.push(dt);ct.push(H)}return ct}function $l(e){for(var n=0;n<e.length;++n){var u=e[n];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function Kl(e,n,u){var l=null;if(e.iter(n.line,u.line+1,function(ke){if(ke.markedSpans)for(var Ye=0;Ye<ke.markedSpans.length;++Ye){var tt=ke.markedSpans[Ye].marker;tt.readOnly&&(!l||ht(l,tt)==-1)&&(l||(l=[])).push(tt)}}),!l)return null;for(var f=[{from:n,to:u}],m=0;m<l.length;++m)for(var k=l[m],U=k.find(0),H=0;H<f.length;++H){var Z=f[H];if(!(Lt(Z.to,U.from)<0||Lt(Z.from,U.to)>0)){var be=[H,1],Ce=Lt(Z.from,U.from),Ne=Lt(Z.to,U.to);(Ce<0||!k.inclusiveLeft&&!Ce)&&be.push({from:Z.from,to:U.from}),(Ne>0||!k.inclusiveRight&&!Ne)&&be.push({from:U.to,to:Z.to}),f.splice.apply(f,be),H+=be.length-3}}return f}function Yl(e){var n=e.markedSpans;if(!!n){for(var u=0;u<n.length;++u)n[u].marker.detachLine(e);e.markedSpans=null}}function Bf(e,n){if(!!n){for(var u=0;u<n.length;++u)n[u].marker.attachLine(e);e.markedSpans=n}}function ws(e){return e.inclusiveLeft?-1:0}function Ss(e){return e.inclusiveRight?1:0}function Jl(e,n){var u=e.lines.length-n.lines.length;if(u!=0)return u;var l=e.find(),f=n.find(),m=Lt(l.from,f.from)||ws(e)-ws(n);if(m)return-m;var k=Lt(l.to,f.to)||Ss(e)-Ss(n);return k||n.id-e.id}function Fa(e,n){var u=Pi&&e.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(n?f.from:f.to)==null&&(!l||Jl(l,f.marker)<0)&&(l=f.marker);return l}function As(e){return Fa(e,!0)}function Hi(e){return Fa(e,!1)}function Uf(e,n){var u=Pi&&e.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<n)&&(m.to==null||m.to>n)&&(!l||Jl(l,m.marker)<0)&&(l=m.marker)}return l}function xo(e,n,u,l,f){var m=Ot(e,n),k=Pi&&m.markedSpans;if(k)for(var U=0;U<k.length;++U){var H=k[U];if(!!H.marker.collapsed){var Z=H.marker.find(0),be=Lt(Z.from,u)||ws(H.marker)-ws(f),Ce=Lt(Z.to,l)||Ss(H.marker)-Ss(f);if(!(be>=0&&Ce<=0||be<=0&&Ce>=0)&&(be<=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.to,u)>=0:Lt(Z.to,u)>0)||be>=0&&(H.marker.inclusiveRight&&f.inclusiveLeft?Lt(Z.from,l)<=0:Lt(Z.from,l)<0)))return!0}}}function Wn(e){for(var n;n=As(e);)e=n.find(-1,!0).line;return e}function Xl(e){for(var n;n=Hi(e);)e=n.find(1,!0).line;return e}function jf(e){for(var n,u;n=Hi(e);)e=n.find(1,!0).line,(u||(u=[])).push(e);return u}function ka(e,n){var u=Ot(e,n),l=Wn(u);return u==l?n:Zt(l)}function Es(e,n){if(n>e.lastLine())return n;var u=Ot(e,n),l;if(!li(e,u))return n;for(;l=Hi(u);)u=l.find(1,!0).line;return Zt(u)+1}function li(e,n){var u=Pi&&n.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&cr(e,n,l))return!0}}}function cr(e,n,u){if(u.to==null){var l=u.marker.find(1,!0);return cr(e,l.line,Ia(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==n.text.length)return!0;for(var f=void 0,m=0;m<n.markedSpans.length;++m)if(f=n.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&cr(e,n,f))return!0}function ui(e){e=Wn(e);for(var n=0,u=e.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==e)break;n+=f.height}for(var m=u.parent;m;u=m,m=u.parent)for(var k=0;k<m.children.length;++k){var U=m.children[k];if(U==u)break;n+=U.height}return n}function zi(e){if(e.height==0)return 0;for(var n=e.text.length,u,l=e;u=As(l);){var f=u.find(0,!0);l=f.from.line,n+=f.from.ch-f.to.ch}for(l=e;u=Hi(l);){var m=u.find(0,!0);n-=l.text.length-m.from.ch,l=m.to.line,n+=l.text.length-m.to.ch}return n}function Cs(e){var n=e.display,u=e.doc;n.maxLine=Ot(u,u.first),n.maxLineLength=zi(n.maxLine),n.maxLineChanged=!0,u.iter(function(l){var f=zi(l);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=l)})}var Gi=function(e,n,u){this.text=e,Bf(this,n),this.height=u?u(this):1};Gi.prototype.lineNo=function(){return Zt(this)},je(Gi);function Ii(e,n,u,l){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Yl(e),Bf(e,u);var f=l?l(e):1;f!=e.height&&En(e,f)}function $i(e){e.parent=null,Yl(e)}var Os={},Ts={};function Ql(e,n){if(!e||/^\s*$/.test(e))return null;var u=n.addModeClass?Ts:Os;return u[e]||(u[e]=e.replace(/\S+/g,"cm-$&"))}function Ps(e,n){var u=he("span",null,null,g?"padding-right: .1px":null),l={pre:he("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var m=f?n.rest[f-1]:n.line,k=void 0;l.pos=0,l.addToken=Fs,Wi(e.display.measure)&&(k=O(m,e.doc.direction))&&(l.addToken=Vf(l.addToken,k)),l.map=[];var U=n!=e.display.externalMeasured&&Zt(m);Wf(m,l,Wl(e,m,U)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Me(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Me(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ai(e.display.measure))),f==0?(n.measure.map=l.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(l.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(g){var H=l.content.lastChild;(/\bcm-tab\b/.test(H.className)||H.querySelector&&H.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return ae(e,"renderLine",e,n.line,l.pre),l.pre.className&&(l.textClass=Me(l.pre.className,l.textClass||"")),l}function Is(e){var n=we("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function Fs(e,n,u,l,f,m,k){if(!!n){var U=e.splitSpaces?Ki(n,e.trailingSpace):n,H=e.cm.state.specialChars,Z=!1,be;if(!H.test(n))e.col+=n.length,be=document.createTextNode(U),e.map.push(e.pos,e.pos+n.length,be),b&&S<9&&(Z=!0),e.pos+=n.length;else{be=document.createDocumentFragment();for(var Ce=0;;){H.lastIndex=Ce;var Ne=H.exec(n),ke=Ne?Ne.index-Ce:n.length-Ce;if(ke){var Ye=document.createTextNode(U.slice(Ce,Ce+ke));b&&S<9?be.appendChild(we("span",[Ye])):be.appendChild(Ye),e.map.push(e.pos,e.pos+ke,Ye),e.col+=ke,e.pos+=ke}if(!Ne)break;Ce+=ke+1;var tt=void 0;if(Ne[0]==" "){var ot=e.cm.options.tabSize,ct=ot-e.col%ot;tt=be.appendChild(we("span",kt(ct),"cm-tab")),tt.setAttribute("role","presentation"),tt.setAttribute("cm-text"," "),e.col+=ct}else Ne[0]=="\r"||Ne[0]==`
|
|
22
|
+
`?(tt=be.appendChild(we("span",Ne[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),tt.setAttribute("cm-text",Ne[0]),e.col+=1):(tt=e.cm.options.specialCharPlaceholder(Ne[0]),tt.setAttribute("cm-text",Ne[0]),b&&S<9?be.appendChild(we("span",[tt])):be.appendChild(tt),e.col+=1);e.map.push(e.pos,e.pos+1,tt),e.pos++}}if(e.trailingSpace=U.charCodeAt(n.length-1)==32,u||l||f||Z||m||k){var yt=u||"";l&&(yt+=l),f&&(yt+=f);var dt=we("span",[be],yt,m);if(k)for(var bt in k)k.hasOwnProperty(bt)&&bt!="style"&&bt!="class"&&dt.setAttribute(bt,k[bt]);return e.content.appendChild(dt)}e.content.appendChild(be)}}function Ki(e,n){if(e.length>1&&!/ /.test(e))return e;for(var u=n,l="",f=0;f<e.length;f++){var m=e.charAt(f);m==" "&&u&&(f==e.length-1||e.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function Vf(e,n){return function(u,l,f,m,k,U,H){f=f?f+" cm-force-border":"cm-force-border";for(var Z=u.pos,be=Z+l.length;;){for(var Ce=void 0,Ne=0;Ne<n.length&&(Ce=n[Ne],!(Ce.to>Z&&Ce.from<=Z));Ne++);if(Ce.to>=be)return e(u,l,f,m,k,U,H);e(u,l.slice(0,Ce.to-Z),f,m,null,U,H),m=null,l=l.slice(Ce.to-Z),Z=Ce.to}}}function ir(e,n,u,l){var f=!l&&u.widgetNode;f&&e.map.push(e.pos,e.pos+n,f),!l&&e.cm.display.input.needsContentAttribute&&(f||(f=e.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(e.cm.display.input.setUneditable(f),e.content.appendChild(f)),e.pos+=n,e.trailingSpace=!1}function Wf(e,n,u){var l=e.markedSpans,f=e.text,m=0;if(!l){for(var k=1;k<u.length;k+=2)n.addToken(n,f.slice(m,m=u[k]),Ql(u[k+1],n.cm.options));return}for(var U=f.length,H=0,Z=1,be="",Ce,Ne,ke=0,Ye,tt,ot,ct,yt;;){if(ke==H){Ye=tt=ot=Ne="",yt=null,ct=null,ke=1/0;for(var dt=[],bt=void 0,Ft=0;Ft<l.length;++Ft){var It=l[Ft],it=It.marker;if(it.type=="bookmark"&&It.from==H&&it.widgetNode)dt.push(it);else if(It.from<=H&&(It.to==null||It.to>H||it.collapsed&&It.to==H&&It.from==H)){if(It.to!=null&&It.to!=H&&ke>It.to&&(ke=It.to,tt=""),it.className&&(Ye+=" "+it.className),it.css&&(Ne=(Ne?Ne+";":"")+it.css),it.startStyle&&It.from==H&&(ot+=" "+it.startStyle),it.endStyle&&It.to==ke&&(bt||(bt=[])).push(it.endStyle,It.to),it.title&&((yt||(yt={})).title=it.title),it.attributes)for(var Tt in it.attributes)(yt||(yt={}))[Tt]=it.attributes[Tt];it.collapsed&&(!ct||Jl(ct.marker,it)<0)&&(ct=It)}else It.from>H&&ke>It.from&&(ke=It.from)}if(bt)for(var Sr=0;Sr<bt.length;Sr+=2)bt[Sr+1]==ke&&(tt+=" "+bt[Sr]);if(!ct||ct.from==H)for(var vr=0;vr<dt.length;++vr)ir(n,0,dt[vr]);if(ct&&(ct.from||0)==H){if(ir(n,(ct.to==null?U+1:ct.to)-H,ct.marker,ct.from==null),ct.to==null)return;ct.to==H&&(ct=!1)}}if(H>=U)break;for(var wn=Math.min(U,ke);;){if(be){var fn=H+be.length;if(!ct){var Ir=fn>wn?be.slice(0,wn-H):be;n.addToken(n,Ir,Ce?Ce+Ye:Ye,ot,H+Ir.length==ke?tt:"",Ne,yt)}if(fn>=wn){be=be.slice(wn-H),H=wn;break}H=fn,ot=""}be=f.slice(m,m=u[Z++]),Ce=Ql(u[Z++],n.cm.options)}}}function Zl(e,n,u){this.line=n,this.rest=jf(n),this.size=this.rest?Zt(Et(this.rest))-u+1:1,this.node=this.text=null,this.hidden=li(e,n)}function bo(e,n,u){for(var l=[],f,m=n;m<u;m=f){var k=new Zl(e.doc,Ot(e.doc,m),m);f=m+k.size,l.push(k)}return l}var rn=null;function _l(e){rn?rn.ops.push(e):e.ownsGroup=rn={ops:[e],delayedCallbacks:[]}}function ql(e){var n=e.delayedCallbacks,u=0;do{for(;u<n.length;u++)n[u].call(null);for(var l=0;l<e.ops.length;l++){var f=e.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<n.length)}function ks(e,n){var u=e.ownsGroup;if(!!u)try{ql(u)}finally{rn=null,n(u)}}var Ma=null;function ar(e,n){var u=re(e,n);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;rn?f=rn.delayedCallbacks:Ma?f=Ma:(f=Ma=[],setTimeout(Hf,0));for(var m=function(U){f.push(function(){return u[U].apply(null,l)})},k=0;k<u.length;++k)m(k)}}function Hf(){var e=Ma;Ma=null;for(var n=0;n<e.length;++n)e[n]()}function wo(e,n,u,l){for(var f=0;f<n.changes.length;f++){var m=n.changes[f];m=="text"?zf(e,n):m=="gutter"?La(e,n,u,l):m=="class"?Ms(e,n):m=="widget"&&Gf(e,n,l)}n.changes=null}function Ra(e){return e.node==e.text&&(e.node=we("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),b&&S<8&&(e.node.style.zIndex=2)),e.node}function eu(e,n){var u=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),n.background)u?n.background.className=u:(n.background.parentNode.removeChild(n.background),n.background=null);else if(u){var l=Ra(n);n.background=l.insertBefore(we("div",null,u),l.firstChild),e.display.input.setUneditable(n.background)}}function tu(e,n){var u=e.display.externalMeasured;return u&&u.line==n.line?(e.display.externalMeasured=null,n.measure=u.measure,u.built):Ps(e,n)}function zf(e,n){var u=n.text.className,l=tu(e,n);n.text==n.node&&(n.node=l.pre),n.text.parentNode.replaceChild(l.pre,n.text),n.text=l.pre,l.bgClass!=n.bgClass||l.textClass!=n.textClass?(n.bgClass=l.bgClass,n.textClass=l.textClass,Ms(e,n)):u&&(n.text.className=u)}function Ms(e,n){eu(e,n),n.line.wrapClass?Ra(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var u=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=u||""}function La(e,n,u,l){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var f=Ra(n);n.gutterBackground=we("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var m=n.line.gutterMarkers;if(e.options.lineNumbers||m){var k=Ra(n),U=n.gutter=we("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(U.setAttribute("aria-hidden","true"),e.display.input.setUneditable(U),k.insertBefore(U,n.text),n.line.gutterClass&&(U.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(n.lineNumber=U.appendChild(we("div",fa(e.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=e.display.gutterSpecs[H].className,be=m.hasOwnProperty(Z)&&m[Z];be&&U.appendChild(we("div",[be],"CodeMirror-gutter-elt","left: "+l.gutterLeft[Z]+"px; width: "+l.gutterWidth[Z]+"px"))}}}function Gf(e,n,u){n.alignable&&(n.alignable=null);for(var l=ce("CodeMirror-linewidget"),f=n.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&n.node.removeChild(f);ru(e,n,u)}function qt(e,n,u,l){var f=tu(e,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Ms(e,n),La(e,n,u,l),ru(e,n,l),n.node}function ru(e,n,u){if(Qt(e,n.line,n,u,!0),n.rest)for(var l=0;l<n.rest.length;l++)Qt(e,n.rest[l],n,u,!1)}function Qt(e,n,u,l,f){if(!!n.widgets)for(var m=Ra(u),k=0,U=n.widgets;k<U.length;++k){var H=U[k],Z=we("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||Z.setAttribute("cm-ignore-events","true"),$f(H,Z,u,l),e.display.input.setUneditable(Z),f&&H.above?m.insertBefore(Z,u.gutter||u.text):m.appendChild(Z),ar(H,"redraw")}}function $f(e,n,u,l){if(e.noHScroll){(u.alignable||(u.alignable=[])).push(n);var f=l.wrapperWidth;n.style.left=l.fixedPos+"px",e.coverGutter||(f-=l.gutterTotalWidth,n.style.paddingLeft=l.gutterTotalWidth+"px"),n.style.width=f+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-l.gutterTotalWidth+"px"))}function Ct(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!se(document.body,e.node)){var u="position: relative;";e.coverGutter&&(u+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(u+="width: "+n.display.wrapper.clientWidth+"px;"),xe(n.display.measure,we("div",[e.node],null,u))}return e.height=e.node.parentNode.offsetHeight}function fi(e,n){for(var u=Pt(n);u!=e.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==e.sizer&&u!=e.mover)return!0}function Da(e){return e.lineSpace.offsetTop}function Rs(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function ln(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=xe(e.measure,we("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(e.cachedPaddingH=l),l}function ci(e){return wt-e.display.nativeBarWidth}function Yi(e){return e.display.scroller.clientWidth-ci(e)-e.display.barWidth}function Na(e){return e.display.scroller.clientHeight-ci(e)-e.display.barHeight}function Kf(e,n,u){var l=e.options.lineWrapping,f=l&&Yi(e);if(!n.measure.heights||l&&n.measure.width!=f){var m=n.measure.heights=[];if(l){n.measure.width=f;for(var k=n.text.firstChild.getClientRects(),U=0;U<k.length-1;U++){var H=k[U],Z=k[U+1];Math.abs(H.bottom-Z.bottom)>2&&m.push((H.bottom+Z.top)/2-u.top)}}m.push(u.bottom-u.top)}}function Ls(e,n,u){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var l=0;l<e.rest.length;l++)if(e.rest[l]==n)return{map:e.measure.maps[l],cache:e.measure.caches[l]};for(var f=0;f<e.rest.length;f++)if(Zt(e.rest[f])>u)return{map:e.measure.maps[f],cache:e.measure.caches[f],before:!0}}}function Yf(e,n){n=Wn(n);var u=Zt(n),l=e.display.externalMeasured=new Zl(e.doc,n,u);l.lineN=u;var f=l.built=Ps(e,l);return l.text=f.pre,xe(e.display.lineMeasure,f.pre),l}function So(e,n,u,l){return Hn(e,_n(e,n),u,l)}function Ds(e,n){if(n>=e.display.viewFrom&&n<e.display.viewTo)return e.display.view[Zi(e,n)];var u=e.display.externalMeasured;if(u&&n>=u.lineN&&n<u.lineN+u.size)return u}function _n(e,n){var u=Zt(n),l=Ds(e,u);l&&!l.text?l=null:l&&l.changes&&(wo(e,l,u,Hs(e)),e.curOp.forceUpdate=!0),l||(l=Yf(e,n));var f=Ls(l,n,u);return{line:n,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Hn(e,n,u,l,f){n.before&&(u=-1);var m=u+(l||""),k;return n.cache.hasOwnProperty(m)?k=n.cache[m]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Kf(e,n.view,n.rect),n.hasHeights=!0),k=nu(e,n,u,l),k.bogus||(n.cache[m]=k)),{left:k.left,right:k.right,top:f?k.rtop:k.top,bottom:f?k.rbottom:k.bottom}}var Ao={left:0,right:0,top:0,bottom:0};function Ns(e,n,u){for(var l,f,m,k,U,H,Z=0;Z<e.length;Z+=3)if(U=e[Z],H=e[Z+1],n<U?(f=0,m=1,k="left"):n<H?(f=n-U,m=f+1):(Z==e.length-3||n==H&&e[Z+3]>n)&&(m=H-U,f=m-1,n>=H&&(k="right")),f!=null){if(l=e[Z+2],U==H&&u==(l.insertLeft?"left":"right")&&(k=u),u=="left"&&f==0)for(;Z&&e[Z-2]==e[Z-3]&&e[Z-1].insertLeft;)l=e[(Z-=3)+2],k="left";if(u=="right"&&f==H-U)for(;Z<e.length-3&&e[Z+3]==e[Z+4]&&!e[Z+5].insertLeft;)l=e[(Z+=3)+2],k="right";break}return{node:l,start:f,end:m,collapse:k,coverStart:U,coverEnd:H}}function Bs(e,n){var u=Ao;if(n=="left")for(var l=0;l<e.length&&(u=e[l]).left==u.right;l++);else for(var f=e.length-1;f>=0&&(u=e[f]).left==u.right;f--);return u}function nu(e,n,u,l){var f=Ns(n.map,u,l),m=f.node,k=f.start,U=f.end,H=f.collapse,Z;if(m.nodeType==3){for(var be=0;be<4;be++){for(;k&&Ie(n.line.text.charAt(f.coverStart+k));)--k;for(;f.coverStart+U<f.coverEnd&&Ie(n.line.text.charAt(f.coverStart+U));)++U;if(b&&S<9&&k==0&&U==f.coverEnd-f.coverStart?Z=m.parentNode.getBoundingClientRect():Z=Bs(fe(m,k,U).getClientRects(),l),Z.left||Z.right||k==0)break;U=k,k=k-1,H="right"}b&&S<11&&(Z=iu(e.display.measure,Z))}else{k>0&&(H=l="right");var Ce;e.options.lineWrapping&&(Ce=m.getClientRects()).length>1?Z=Ce[l=="right"?Ce.length-1:0]:Z=m.getBoundingClientRect()}if(b&&S<9&&!k&&(!Z||!Z.left&&!Z.right)){var Ne=m.parentNode.getClientRects()[0];Ne?Z={left:Ne.left,right:Ne.left+In(e.display),top:Ne.top,bottom:Ne.bottom}:Z=Ao}for(var ke=Z.top-n.rect.top,Ye=Z.bottom-n.rect.top,tt=(ke+Ye)/2,ot=n.view.measure.heights,ct=0;ct<ot.length-1&&!(tt<ot[ct]);ct++);var yt=ct?ot[ct-1]:0,dt=ot[ct],bt={left:(H=="right"?Z.right:Z.left)-n.rect.left,right:(H=="left"?Z.left:Z.right)-n.rect.left,top:yt,bottom:dt};return!Z.left&&!Z.right&&(bt.bogus=!0),e.options.singleCursorHeightPerLine||(bt.rtop=ke,bt.rbottom=Ye),bt}function iu(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ei(e))return n;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*u,right:n.right*u,top:n.top*l,bottom:n.bottom*l}}function Us(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function Ji(e){e.display.externalMeasure=null,ie(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)Us(e.display.view[n])}function Ba(e){Ji(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ua(){return D&&X?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function au(){return D&&X?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ja(e){var n=0;if(e.widgets)for(var u=0;u<e.widgets.length;++u)e.widgets[u].above&&(n+=Ct(e.widgets[u]));return n}function Eo(e,n,u,l,f){if(!f){var m=ja(n);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var k=ui(n);if(l=="local"?k+=Da(e.display):k-=e.display.viewOffset,l=="page"||l=="window"){var U=e.display.lineSpace.getBoundingClientRect();k+=U.top+(l=="window"?0:au());var H=U.left+(l=="window"?0:Ua());u.left+=H,u.right+=H}return u.top+=k,u.bottom+=k,u}function Va(e,n,u){if(u=="div")return n;var l=n.left,f=n.top;if(u=="page")l-=Ua(),f-=au();else if(u=="local"||!u){var m=e.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var k=e.display.lineSpace.getBoundingClientRect();return{left:l-k.left,top:f-k.top}}function Co(e,n,u,l,f){return l||(l=Ot(e.doc,n.line)),Eo(e,l,So(e,l,n.ch,f),u)}function zn(e,n,u,l,f,m){l=l||Ot(e.doc,n.line),f||(f=_n(e,l));function k(Ye,tt){var ot=Hn(e,f,Ye,tt?"right":"left",m);return tt?ot.left=ot.right:ot.right=ot.left,Eo(e,l,ot,u)}var U=O(l,e.doc.direction),H=n.ch,Z=n.sticky;if(H>=l.text.length?(H=l.text.length,Z="before"):H<=0&&(H=0,Z="after"),!U)return k(Z=="before"?H-1:H,Z=="before");function be(Ye,tt,ot){var ct=U[tt],yt=ct.level==1;return k(ot?Ye-1:Ye,yt!=ot)}var Ce=K(U,H,Z),Ne=Re,ke=be(H,Ce,Z=="before");return Ne!=null&&(ke.other=be(H,Ne,Z!="before")),ke}function ou(e,n){var u=0;n=lt(e.doc,n),e.options.lineWrapping||(u=In(e.display)*n.ch);var l=Ot(e.doc,n.line),f=ui(l)+Da(e.display);return{left:u,right:u,top:f,bottom:f+l.height}}function js(e,n,u,l,f){var m=at(e,n,u);return m.xRel=f,l&&(m.outside=l),m}function Vs(e,n,u){var l=e.doc;if(u+=e.display.viewOffset,u<0)return js(l.first,0,null,-1,-1);var f=Vn(l,u),m=l.first+l.size-1;if(f>m)return js(l.first+l.size-1,Ot(l,m).text.length,null,1,1);n<0&&(n=0);for(var k=Ot(l,f);;){var U=Jf(e,k,f,n,u),H=Uf(k,U.ch+(U.xRel>0||U.outside>0?1:0));if(!H)return U;var Z=H.find(1);if(Z.line==f)return Z;k=Ot(l,f=Z.line)}}function su(e,n,u,l){l-=ja(n);var f=n.text.length,m=Ke(function(k){return Hn(e,u,k-1).bottom<=l},f,0);return f=Ke(function(k){return Hn(e,u,k).top>l},m,f),{begin:m,end:f}}function lu(e,n,u,l){u||(u=_n(e,n));var f=Eo(e,n,Hn(e,u,l),"line").top;return su(e,n,u,f)}function Ws(e,n,u,l){return e.bottom<=u?!1:e.top>u?!0:(l?e.left:e.right)>n}function Jf(e,n,u,l,f){f-=ui(n);var m=_n(e,n),k=ja(n),U=0,H=n.text.length,Z=!0,be=O(n,e.doc.direction);if(be){var Ce=(e.options.lineWrapping?Qf:Xf)(e,n,u,m,be,l,f);Z=Ce.level!=1,U=Z?Ce.from:Ce.to-1,H=Z?Ce.to:Ce.from-1}var Ne=null,ke=null,Ye=Ke(function(Ft){var It=Hn(e,m,Ft);return It.top+=k,It.bottom+=k,Ws(It,l,f,!1)?(It.top<=f&&It.left<=l&&(Ne=Ft,ke=It),!0):!1},U,H),tt,ot,ct=!1;if(ke){var yt=l-ke.left<ke.right-l,dt=yt==Z;Ye=Ne+(dt?0:1),ot=dt?"after":"before",tt=yt?ke.left:ke.right}else{!Z&&(Ye==H||Ye==U)&&Ye++,ot=Ye==0?"after":Ye==n.text.length?"before":Hn(e,m,Ye-(Z?1:0)).bottom+k<=f==Z?"after":"before";var bt=zn(e,at(u,Ye,ot),"line",n,m);tt=bt.left,ct=f<bt.top?-1:f>=bt.bottom?1:0}return Ye=Ge(n.text,Ye,1),js(u,Ye,ot,ct,l-tt)}function Xf(e,n,u,l,f,m,k){var U=Ke(function(Ce){var Ne=f[Ce],ke=Ne.level!=1;return Ws(zn(e,at(u,ke?Ne.to:Ne.from,ke?"before":"after"),"line",n,l),m,k,!0)},0,f.length-1),H=f[U];if(U>0){var Z=H.level!=1,be=zn(e,at(u,Z?H.from:H.to,Z?"after":"before"),"line",n,l);Ws(be,m,k,!0)&&be.top>k&&(H=f[U-1])}return H}function Qf(e,n,u,l,f,m,k){var U=su(e,n,l,k),H=U.begin,Z=U.end;/\s/.test(n.text.charAt(Z-1))&&Z--;for(var be=null,Ce=null,Ne=0;Ne<f.length;Ne++){var ke=f[Ne];if(!(ke.from>=Z||ke.to<=H)){var Ye=ke.level!=1,tt=Hn(e,l,Ye?Math.min(Z,ke.to)-1:Math.max(H,ke.from)).right,ot=tt<m?m-tt+1e9:tt-m;(!be||Ce>ot)&&(be=ke,Ce=ot)}}return be||(be=f[f.length-1]),be.from<H&&(be={from:H,to:be.to,level:be.level}),be.to>Z&&(be={from:be.from,to:Z,level:be.level}),be}var Xi;function ca(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Xi==null){Xi=we("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)Xi.appendChild(document.createTextNode("x")),Xi.appendChild(we("br"));Xi.appendChild(document.createTextNode("x"))}xe(e.measure,Xi);var u=Xi.offsetHeight/50;return u>3&&(e.cachedTextHeight=u),ie(e.measure),u||1}function In(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=we("span","xxxxxxxxxx"),u=we("pre",[n],"CodeMirror-line-like");xe(e.measure,u);var l=n.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(e.cachedCharWidth=f),f||10}function Hs(e){for(var n=e.display,u={},l={},f=n.gutters.clientLeft,m=n.gutters.firstChild,k=0;m;m=m.nextSibling,++k){var U=e.display.gutterSpecs[k].className;u[U]=m.offsetLeft+m.clientLeft+f,l[U]=m.clientWidth}return{fixedPos:Fn(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:n.wrapper.clientWidth}}function Fn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function uu(e){var n=ca(e.display),u=e.options.lineWrapping,l=u&&Math.max(5,e.display.scroller.clientWidth/In(e.display)-3);return function(f){if(li(e.doc,f))return 0;var m=0;if(f.widgets)for(var k=0;k<f.widgets.length;k++)f.widgets[k].height&&(m+=f.widgets[k].height);return u?m+(Math.ceil(f.text.length/l)||1)*n:m+n}}function zs(e){var n=e.doc,u=uu(e);n.iter(function(l){var f=u(l);f!=l.height&&En(l,f)})}function Qi(e,n,u,l){var f=e.display;if(!u&&Pt(n).getAttribute("cm-not-content")=="true")return null;var m,k,U=f.lineSpace.getBoundingClientRect();try{m=n.clientX-U.left,k=n.clientY-U.top}catch(Ce){return null}var H=Vs(e,m,k),Z;if(l&&H.xRel>0&&(Z=Ot(e.doc,H.line).text).length==H.ch){var be=Xe(Z,Z.length,e.options.tabSize)-Z.length;H=at(H.line,Math.max(0,Math.round((m-ln(e.display).left)/In(e.display))-be))}return H}function Zi(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom,n<0))return null;for(var u=e.display.view,l=0;l<u.length;l++)if(n-=u[l].size,n<0)return l}function Mr(e,n,u,l){n==null&&(n=e.doc.first),u==null&&(u=e.doc.first+e.doc.size),l||(l=0);var f=e.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>n)&&(f.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=f.viewTo)Pi&&ka(e.doc,n)<f.viewTo&&Fi(e);else if(u<=f.viewFrom)Pi&&Es(e.doc,u+l)>f.viewFrom?Fi(e):(f.viewFrom+=l,f.viewTo+=l);else if(n<=f.viewFrom&&u>=f.viewTo)Fi(e);else if(n<=f.viewFrom){var m=Oo(e,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):Fi(e)}else if(u>=f.viewTo){var k=Oo(e,n,n,-1);k?(f.view=f.view.slice(0,k.index),f.viewTo=k.lineN):Fi(e)}else{var U=Oo(e,n,n,-1),H=Oo(e,u,u+l,1);U&&H?(f.view=f.view.slice(0,U.index).concat(bo(e,U.lineN,H.lineN)).concat(f.view.slice(H.index)),f.viewTo+=l):Fi(e)}var Z=f.externalMeasured;Z&&(u<Z.lineN?Z.lineN+=l:n<Z.lineN+Z.size&&(f.externalMeasured=null))}function qn(e,n,u){e.curOp.viewChanged=!0;var l=e.display,f=e.display.externalMeasured;if(f&&n>=f.lineN&&n<f.lineN+f.size&&(l.externalMeasured=null),!(n<l.viewFrom||n>=l.viewTo)){var m=l.view[Zi(e,n)];if(m.node!=null){var k=m.changes||(m.changes=[]);ht(k,u)==-1&&k.push(u)}}}function Fi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Oo(e,n,u,l){var f=Zi(e,n),m,k=e.display.view;if(!Pi||u==e.doc.first+e.doc.size)return{index:f,lineN:u};for(var U=e.display.viewFrom,H=0;H<f;H++)U+=k[H].size;if(U!=n){if(l>0){if(f==k.length-1)return null;m=U+k[f].size-n,f++}else m=U-n;n+=m,u+=m}for(;ka(e.doc,u)!=u;){if(f==(l<0?0:k.length-1))return null;u+=l*k[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function Zf(e,n,u){var l=e.display,f=l.view;f.length==0||n>=l.viewTo||u<=l.viewFrom?(l.view=bo(e,n,u),l.viewFrom=n):(l.viewFrom>n?l.view=bo(e,n,l.viewFrom).concat(l.view):l.viewFrom<n&&(l.view=l.view.slice(Zi(e,n))),l.viewFrom=n,l.viewTo<u?l.view=l.view.concat(bo(e,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Zi(e,u)))),l.viewTo=u}function To(e){for(var n=e.display.view,u=0,l=0;l<n.length;l++){var f=n[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function ki(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Po(e,n){n===void 0&&(n=!0);var u=e.doc,l={},f=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),k=e.options.$customCursor;k&&(n=!0);for(var U=0;U<u.sel.ranges.length;U++)if(!(!n&&U==u.sel.primIndex)){var H=u.sel.ranges[U];if(!(H.from().line>=e.display.viewTo||H.to().line<e.display.viewFrom)){var Z=H.empty();if(k){var be=k(e,H);be&&Gs(e,be,f)}else(Z||e.options.showCursorWhenSelecting)&&Gs(e,H.head,f);Z||fu(e,H,m)}}return l}function Gs(e,n,u){var l=zn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),f=u.appendChild(we("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var m=Co(e,n,"div",null,null),k=m.right-m.left;f.style.width=(k>0?k:e.defaultCharWidth())+"px"}if(l.other){var U=u.appendChild(we("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));U.style.display="",U.style.left=l.other.left+"px",U.style.top=l.other.top+"px",U.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function Io(e,n){return e.top-n.top||e.left-n.left}function fu(e,n,u){var l=e.display,f=e.doc,m=document.createDocumentFragment(),k=ln(e.display),U=k.left,H=Math.max(l.sizerWidth,Yi(e)-l.sizer.offsetLeft)-k.right,Z=f.direction=="ltr";function be(dt,bt,Ft,It){bt<0&&(bt=0),bt=Math.round(bt),It=Math.round(It),m.appendChild(we("div",null,"CodeMirror-selected","position: absolute; left: "+dt+`px;
|
|
23
|
+
top: `+bt+"px; width: "+(Ft==null?H-dt:Ft)+`px;
|
|
24
|
+
height: `+(It-bt)+"px"))}function Ce(dt,bt,Ft){var It=Ot(f,dt),it=It.text.length,Tt,Sr;function vr(Ir,Yr){return Co(e,at(dt,Ir),"div",It,Yr)}function wn(Ir,Yr,Vr){var Fr=lu(e,It,null,Ir),Ar=Yr=="ltr"==(Vr=="after")?"left":"right",dr=Vr=="after"?Fr.begin:Fr.end-(/\s/.test(It.text.charAt(Fr.end-1))?2:1);return vr(dr,Ar)[Ar]}var fn=O(It,f.direction);return P(fn,bt||0,Ft==null?it:Ft,function(Ir,Yr,Vr,Fr){var Ar=Vr=="ltr",dr=vr(Ir,Ar?"left":"right"),cn=vr(Yr-1,Ar?"right":"left"),Ca=bt==null&&Ir==0,gi=Ft==null&&Yr==it,Jr=Fr==0,ni=!fn||Fr==fn.length-1;if(cn.top-dr.top<=3){var Wr=(Z?Ca:gi)&&Jr,is=(Z?gi:Ca)&&ni,yi=Wr?U:(Ar?dr:cn).left,Kn=is?H:(Ar?cn:dr).right;be(yi,dr.top,Kn-yi,dr.bottom)}else{var Lr,dn,ii,an;Ar?(Lr=Z&&Ca&&Jr?U:dr.left,dn=Z?H:wn(Ir,Vr,"before"),ii=Z?U:wn(Yr,Vr,"after"),an=Z&&gi&&ni?H:cn.right):(Lr=Z?wn(Ir,Vr,"before"):U,dn=!Z&&Ca&&Jr?H:dr.right,ii=!Z&&gi&&ni?U:cn.left,an=Z?wn(Yr,Vr,"after"):H),be(Lr,dr.top,dn-Lr,dr.bottom),dr.bottom<cn.top&&be(U,dr.bottom,null,cn.top),be(ii,cn.top,an-ii,cn.bottom)}(!Tt||Io(dr,Tt)<0)&&(Tt=dr),Io(cn,Tt)<0&&(Tt=cn),(!Sr||Io(dr,Sr)<0)&&(Sr=dr),Io(cn,Sr)<0&&(Sr=cn)}),{start:Tt,end:Sr}}var Ne=n.from(),ke=n.to();if(Ne.line==ke.line)Ce(Ne.line,Ne.ch,ke.ch);else{var Ye=Ot(f,Ne.line),tt=Ot(f,ke.line),ot=Wn(Ye)==Wn(tt),ct=Ce(Ne.line,Ne.ch,ot?Ye.text.length+1:null).end,yt=Ce(ke.line,ot?0:null,ke.ch).start;ot&&(ct.top<yt.top-2?(be(ct.right,ct.top,null,ct.bottom),be(U,yt.top,yt.left,yt.bottom)):be(ct.right,ct.top,yt.left-ct.right,ct.bottom)),ct.bottom<yt.top&&be(U,ct.bottom,null,yt.top)}u.appendChild(m)}function $s(e){if(!!e.state.focused){var n=e.display;clearInterval(n.blinker);var u=!0;n.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?n.blinker=setInterval(function(){e.hasFocus()||da(e),n.cursorDiv.style.visibility=(u=!u)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function Ks(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Fo(e))}function Wa(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&da(e))},100)}function Fo(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(ae(e,"focus",e,n),e.state.focused=!0,Le(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),g&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),$s(e))}function da(e,n){e.state.delayingBlurEvent||(e.state.focused&&(ae(e,"blur",e,n),e.state.focused=!1,ee(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function ko(e){for(var n=e.display,u=n.lineDiv.offsetTop,l=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,m=0,k=0;k<n.view.length;k++){var U=n.view[k],H=e.options.lineWrapping,Z=void 0,be=0;if(!U.hidden){if(f+=U.line.height,b&&S<8){var Ce=U.node.offsetTop+U.node.offsetHeight;Z=Ce-u,u=Ce}else{var Ne=U.node.getBoundingClientRect();Z=Ne.bottom-Ne.top,!H&&U.text.firstChild&&(be=U.text.firstChild.getBoundingClientRect().right-Ne.left-1)}var ke=U.line.height-Z;if((ke>.005||ke<-.005)&&(f<l&&(m-=ke),En(U.line,Z),Ys(U.line),U.rest))for(var Ye=0;Ye<U.rest.length;Ye++)Ys(U.rest[Ye]);if(be>e.display.sizerWidth){var tt=Math.ceil(be/In(e.display));tt>e.display.maxLineLength&&(e.display.maxLineLength=tt,e.display.maxLine=U.line,e.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(n.scroller.scrollTop+=m)}function Ys(e){if(e.widgets)for(var n=0;n<e.widgets.length;++n){var u=e.widgets[n],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function Ha(e,n,u){var l=u&&u.top!=null?Math.max(0,u.top):e.scroller.scrollTop;l=Math.floor(l-Da(e));var f=u&&u.bottom!=null?u.bottom:l+e.wrapper.clientHeight,m=Vn(n,l),k=Vn(n,f);if(u&&u.ensure){var U=u.ensure.from.line,H=u.ensure.to.line;U<m?(m=U,k=Vn(n,ui(Ot(n,U))+e.wrapper.clientHeight)):Math.min(H,n.lastLine())>=k&&(m=Vn(n,ui(Ot(n,H))-e.wrapper.clientHeight),k=H)}return{from:m,to:Math.max(k,m+1)}}function _f(e,n){if(!pe(e,"scrollCursorIntoView")){var u=e.display,l=u.sizer.getBoundingClientRect(),f=null;if(n.top+l.top<0?f=!0:n.bottom+l.top>(window.innerHeight||document.documentElement.clientHeight)&&(f=!1),f!=null&&!W){var m=we("div","\u200B",null,`position: absolute;
|
|
25
|
+
top: `+(n.top-u.viewOffset-Da(e.display))+`px;
|
|
26
|
+
height: `+(n.bottom-n.top+ci(e)+u.barHeight)+`px;
|
|
27
|
+
left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(f),e.display.lineSpace.removeChild(m)}}}function cu(e,n,u,l){l==null&&(l=0);var f;!e.options.lineWrapping&&n==u&&(u=n.sticky=="before"?at(n.line,n.ch+1,"before"):n,n=n.ch?at(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var m=0;m<5;m++){var k=!1,U=zn(e,n),H=!u||u==n?U:zn(e,u);f={left:Math.min(U.left,H.left),top:Math.min(U.top,H.top)-l,right:Math.max(U.left,H.left),bottom:Math.max(U.bottom,H.bottom)+l};var Z=Js(e,f),be=e.doc.scrollTop,Ce=e.doc.scrollLeft;if(Z.scrollTop!=null&&(Ga(e,Z.scrollTop),Math.abs(e.doc.scrollTop-be)>1&&(k=!0)),Z.scrollLeft!=null&&(qi(e,Z.scrollLeft),Math.abs(e.doc.scrollLeft-Ce)>1&&(k=!0)),!k)break}return f}function du(e,n){var u=Js(e,n);u.scrollTop!=null&&Ga(e,u.scrollTop),u.scrollLeft!=null&&qi(e,u.scrollLeft)}function Js(e,n){var u=e.display,l=ca(e.display);n.top<0&&(n.top=0);var f=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:u.scroller.scrollTop,m=Na(e),k={};n.bottom-n.top>m&&(n.bottom=n.top+m);var U=e.doc.height+Rs(u),H=n.top<l,Z=n.bottom>U-l;if(n.top<f)k.scrollTop=H?0:n.top;else if(n.bottom>f+m){var be=Math.min(n.top,(Z?U:n.bottom)-m);be!=f&&(k.scrollTop=be)}var Ce=e.options.fixedGutter?0:u.gutters.offsetWidth,Ne=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:u.scroller.scrollLeft-Ce,ke=Yi(e)-u.gutters.offsetWidth,Ye=n.right-n.left>ke;return Ye&&(n.right=n.left+ke),n.left<10?k.scrollLeft=0:n.left<Ne?k.scrollLeft=Math.max(0,n.left+Ce-(Ye?0:10)):n.right>ke+Ne-3&&(k.scrollLeft=n.right+(Ye?0:10)-ke),k}function Xs(e,n){n!=null&&(Mo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function nn(e){Mo(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function za(e,n,u){(n!=null||u!=null)&&Mo(e),n!=null&&(e.curOp.scrollLeft=n),u!=null&&(e.curOp.scrollTop=u)}function _i(e,n){Mo(e),e.curOp.scrollToPos=n}function Mo(e){var n=e.curOp.scrollToPos;if(n){e.curOp.scrollToPos=null;var u=ou(e,n.from),l=ou(e,n.to);pu(e,u,l,n.margin)}}function pu(e,n,u,l){var f=Js(e,{left:Math.min(n.left,u.left),top:Math.min(n.top,u.top)-l,right:Math.max(n.right,u.right),bottom:Math.max(n.bottom,u.bottom)+l});za(e,f.scrollLeft,f.scrollTop)}function Ga(e,n){Math.abs(e.doc.scrollTop-n)<2||(c||qs(e,{top:n}),hu(e,n,!0),c&&qs(e),Gn(e,100))}function hu(e,n,u){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),!(e.display.scroller.scrollTop==n&&!u)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function qi(e,n,u,l){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((u?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)&&!l)&&(e.doc.scrollLeft=n,xu(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function pa(e){var n=e.display,u=n.gutters.offsetWidth,l=Math.round(e.doc.height+Rs(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+ci(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:u}}var ea=function(e,n,u){this.cm=u;var l=this.vert=we("div",[we("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=we("div",[we("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,e(l),e(f),N(l,"scroll",function(){l.clientHeight&&n(l.scrollTop,"vertical")}),N(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,b&&S<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ea.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,u=e.scrollHeight>e.clientHeight+1,l=e.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=n?l+"px":"0";var f=e.viewHeight-(n?l:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:n?l:0}},ea.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ea.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ea.prototype.zeroWidthHack=function(){var e=C&&!q?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ft,this.disableVert=new ft},ea.prototype.enableZeroWidthBar=function(e,n,u){e.style.pointerEvents="auto";function l(){var f=e.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=e?e.style.pointerEvents="none":n.set(1e3,l)}n.set(1e3,l)},ea.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var $a=function(){};$a.prototype.update=function(){return{bottom:0,right:0}},$a.prototype.setScrollLeft=function(){},$a.prototype.setScrollTop=function(){},$a.prototype.clear=function(){};function di(e,n){n||(n=pa(e));var u=e.display.barWidth,l=e.display.barHeight;Ro(e,n);for(var f=0;f<4&&u!=e.display.barWidth||l!=e.display.barHeight;f++)u!=e.display.barWidth&&e.options.lineWrapping&&ko(e),Ro(e,pa(e)),u=e.display.barWidth,l=e.display.barHeight}function Ro(e,n){var u=e.display,l=u.scrollbars.update(n);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=n.gutterWidth+"px"):u.gutterFiller.style.display=""}var mn={native:ea,null:$a};function Lo(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ee(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new mn[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),N(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,u){u=="horizontal"?qi(e,n):Ga(e,n)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var pi=0;function Mi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++pi,markArrays:null},_l(e.curOp)}function Ri(e){var n=e.curOp;n&&ks(n,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;Od(u)})}function Od(e){for(var n=e.ops,u=0;u<n.length;u++)Qs(n[u]);for(var l=0;l<n.length;l++)vu(n[l]);for(var f=0;f<n.length;f++)gu(n[f]);for(var m=0;m<n.length;m++)Pr(n[m]);for(var k=0;k<n.length;k++)qf(n[k])}function Qs(e){var n=e.cm,u=n.display;yu(n),e.updateMaxLine&&Cs(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<u.viewFrom||e.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new ta(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function vu(e){e.updatedDisplay=e.mustUpdate&&_s(e.cm,e.update)}function gu(e){var n=e.cm,u=n.display;e.updatedDisplay&&ko(n),e.barMeasure=pa(n),u.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=So(n,u.maxLine,u.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+e.adjustWidthTo+ci(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+e.adjustWidthTo-Yi(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=u.input.prepareSelection())}function Pr(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<n.doc.scrollLeft&&qi(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var u=e.focus&&e.focus==Fe();e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,u),(e.updatedDisplay||e.startHeight!=n.doc.height)&&di(n,e.barMeasure),e.updatedDisplay&&tl(n,e.barMeasure),e.selectionChanged&&$s(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),u&&Ks(e.cm)}function qf(e){var n=e.cm,u=n.display,l=n.doc;if(e.updatedDisplay&&mu(n,e.update),u.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),e.scrollTop!=null&&hu(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&qi(n,e.scrollLeft,!0,!0),e.scrollToPos){var f=cu(n,lt(l,e.scrollToPos.from),lt(l,e.scrollToPos.to),e.scrollToPos.margin);_f(n,f)}var m=e.maybeHiddenMarkers,k=e.maybeUnhiddenMarkers;if(m)for(var U=0;U<m.length;++U)m[U].lines.length||ae(m[U],"hide");if(k)for(var H=0;H<k.length;++H)k[H].lines.length&&ae(k[H],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&ae(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function Ur(e,n){if(e.curOp)return n();Mi(e);try{return n()}finally{Ri(e)}}function jr(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Mi(e);try{return n.apply(e,arguments)}finally{Ri(e)}}}function Rr(e){return function(){if(this.curOp)return e.apply(this,arguments);Mi(this);try{return e.apply(this,arguments)}finally{Ri(this)}}}function pr(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Mi(n);try{return e.apply(this,arguments)}finally{Ri(n)}}}function Gn(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,rt(ec,e))}function ec(e){var n=e.doc;if(!(n.highlightFrontier>=e.display.viewTo)){var u=+new Date+e.options.workTime,l=tn(e,n.highlightFrontier),f=[];n.iter(l.line,Math.min(n.first+n.size,e.display.viewTo+500),function(m){if(l.line>=e.display.viewFrom){var k=m.styles,U=m.text.length>e.options.maxHighlightLength?Br(n.mode,l.state):null,H=_t(e,m,l,!0);U&&(l.state=U),m.styles=H.styles;var Z=m.styleClasses,be=H.classes;be?m.styleClasses=be:Z&&(m.styleClasses=null);for(var Ce=!k||k.length!=m.styles.length||Z!=be&&(!Z||!be||Z.bgClass!=be.bgClass||Z.textClass!=be.textClass),Ne=0;!Ce&&Ne<k.length;++Ne)Ce=k[Ne]!=m.styles[Ne];Ce&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=e.options.maxHighlightLength&&ys(e,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Gn(e,e.options.workDelay),!0}),n.highlightFrontier=l.line,n.modeFrontier=Math.max(n.modeFrontier,l.line),f.length&&Ur(e,function(){for(var m=0;m<f.length;m++)qn(e,f[m],"text")})}}var ta=function(e,n,u){var l=e.display;this.viewport=n,this.visible=Ha(l,e.doc,n),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=Yi(e),this.force=u,this.dims=Hs(e),this.events=[]};ta.prototype.signal=function(e,n){Ue(e,n)&&this.events.push(arguments)},ta.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ae.apply(null,this.events[e])};function yu(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=ci(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=ci(e)+"px",n.scrollbarsClipped=!0)}function Ka(e){if(e.hasFocus())return null;var n=Fe();if(!n||!se(e.display.lineDiv,n))return null;var u={activeElt:n};if(window.getSelection){var l=window.getSelection();l.anchorNode&&l.extend&&se(e.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Zs(e){if(!(!e||!e.activeElt||e.activeElt==Fe())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&se(document.body,e.anchorNode)&&se(document.body,e.focusNode))){var n=window.getSelection(),u=document.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),n.removeAllRanges(),n.addRange(u),n.extend(e.focusNode,e.focusOffset)}}function _s(e,n){var u=e.display,l=e.doc;if(n.editorIsHidden)return Fi(e),!1;if(!n.force&&n.visible.from>=u.viewFrom&&n.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&To(e)==0)return!1;Do(e)&&(Fi(e),n.dims=Hs(e));var f=l.first+l.size,m=Math.max(n.visible.from-e.options.viewportMargin,l.first),k=Math.min(f,n.visible.to+e.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>k&&u.viewTo-k<20&&(k=Math.min(f,u.viewTo)),Pi&&(m=ka(e.doc,m),k=Es(e.doc,k));var U=m!=u.viewFrom||k!=u.viewTo||u.lastWrapHeight!=n.wrapperHeight||u.lastWrapWidth!=n.wrapperWidth;Zf(e,m,k),u.viewOffset=ui(Ot(e.doc,u.viewFrom)),e.display.mover.style.top=u.viewOffset+"px";var H=To(e);if(!U&&H==0&&!n.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var Z=Ka(e);return H>4&&(u.lineDiv.style.display="none"),tc(e,u.updateLineNumbers,n.dims),H>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Zs(Z),ie(u.cursorDiv),ie(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,U&&(u.lastWrapHeight=n.wrapperHeight,u.lastWrapWidth=n.wrapperWidth,Gn(e,400)),u.updateLineNumbers=null,!0}function mu(e,n){for(var u=n.viewport,l=!0;;l=!1){if(!l||!e.options.lineWrapping||n.oldDisplayWidth==Yi(e)){if(u&&u.top!=null&&(u={top:Math.min(e.doc.height+Rs(e.display)-Na(e),u.top)}),n.visible=Ha(e.display,e.doc,u),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break}else l&&(n.visible=Ha(e.display,e.doc,u));if(!_s(e,n))break;ko(e);var f=pa(e);ki(e),di(e,f),tl(e,f),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function qs(e,n){var u=new ta(e,n);if(_s(e,u)){ko(e),mu(e,u);var l=pa(e);ki(e),di(e,l),tl(e,l),u.finish()}}function tc(e,n,u){var l=e.display,f=e.options.lineNumbers,m=l.lineDiv,k=m.firstChild;function U(Ye){var tt=Ye.nextSibling;return g&&C&&e.display.currentWheelTarget==Ye?Ye.style.display="none":Ye.parentNode.removeChild(Ye),tt}for(var H=l.view,Z=l.viewFrom,be=0;be<H.length;be++){var Ce=H[be];if(!Ce.hidden)if(!Ce.node||Ce.node.parentNode!=m){var Ne=qt(e,Ce,Z,u);m.insertBefore(Ne,k)}else{for(;k!=Ce.node;)k=U(k);var ke=f&&n!=null&&n<=Z&&Ce.lineNumber;Ce.changes&&(ht(Ce.changes,"gutter")>-1&&(ke=!1),wo(e,Ce,Z,u)),ke&&(ie(Ce.lineNumber),Ce.lineNumber.appendChild(document.createTextNode(fa(e.options,Z)))),k=Ce.node.nextSibling}Z+=Ce.size}for(;k;)k=U(k)}function el(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",ar(e,"gutterChanged",e)}function tl(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+ci(e)+"px"}function xu(e){var n=e.display,u=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!e.options.fixedGutter))){for(var l=Fn(n)-n.scroller.scrollLeft+e.doc.scrollLeft,f=n.gutters.offsetWidth,m=l+"px",k=0;k<u.length;k++)if(!u[k].hidden){e.options.fixedGutter&&(u[k].gutter&&(u[k].gutter.style.left=m),u[k].gutterBackground&&(u[k].gutterBackground.style.left=m));var U=u[k].alignable;if(U)for(var H=0;H<U.length;H++)U[H].style.left=m}e.options.fixedGutter&&(n.gutters.style.left=l+f+"px")}}function Do(e){if(!e.options.lineNumbers)return!1;var n=e.doc,u=fa(e.options,n.first+n.size-1),l=e.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(we("div",[we("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,k=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-k)+1,l.lineNumWidth=l.lineNumInnerWidth+k,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",el(e.display),!0}return!1}function Ya(e,n){for(var u=[],l=!1,f=0;f<e.length;f++){var m=e[f],k=null;if(typeof m!="string"&&(k=m.style,m=m.className),m=="CodeMirror-linenumbers")if(n)l=!0;else continue;u.push({className:m,style:k})}return n&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function bu(e){var n=e.gutters,u=e.gutterSpecs;ie(n),e.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],m=f.className,k=f.style,U=n.appendChild(we("div",null,"CodeMirror-gutter "+m));k&&(U.style.cssText=k),m=="CodeMirror-linenumbers"&&(e.lineGutter=U,U.style.width=(e.lineNumWidth||1)+"px")}n.style.display=u.length?"":"none",el(e)}function No(e){bu(e.display),Mr(e),xu(e)}function rc(e,n,u,l){var f=this;this.input=u,f.scrollbarFiller=we("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=we("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=he("div",null,"CodeMirror-code"),f.selectionDiv=we("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=we("div",null,"CodeMirror-cursors"),f.measure=we("div",null,"CodeMirror-measure"),f.lineMeasure=we("div",null,"CodeMirror-measure"),f.lineSpace=he("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=he("div",[f.lineSpace],"CodeMirror-lines");f.mover=we("div",[m],null,"position: relative"),f.sizer=we("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=we("div",null,null,"position: absolute; height: "+wt+"px; width: 1px;"),f.gutters=we("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=we("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=we("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),f.wrapper.setAttribute("translate","no"),b&&S<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!g&&!(c&&R)&&(f.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(f.wrapper):e(f.wrapper)),f.viewFrom=f.viewTo=n.first,f.reportedViewFrom=f.reportedViewTo=n.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Ya(l.gutters,l.lineNumbers),bu(f),u.init(f)}var Bo=0,hi=null;b?hi=-.53:c?hi=15:D?hi=-.7:j&&(hi=-1/3);function wu(e){var n=e.wheelDeltaX,u=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),u==null&&e.detail&&e.axis==e.VERTICAL_AXIS?u=e.detail:u==null&&(u=e.wheelDelta),{x:n,y:u}}function rr(e){var n=wu(e);return n.x*=hi,n.y*=hi,n}function Su(e,n){var u=wu(n),l=u.x,f=u.y,m=hi;n.deltaMode===0&&(l=n.deltaX,f=n.deltaY,m=1);var k=e.display,U=k.scroller,H=U.scrollWidth>U.clientWidth,Z=U.scrollHeight>U.clientHeight;if(!!(l&&H||f&&Z)){if(f&&C&&g){e:for(var be=n.target,Ce=k.view;be!=U;be=be.parentNode)for(var Ne=0;Ne<Ce.length;Ne++)if(Ce[Ne].node==be){e.display.currentWheelTarget=be;break e}}if(l&&!c&&!B&&m!=null){f&&Z&&Ga(e,Math.max(0,U.scrollTop+f*m)),qi(e,Math.max(0,U.scrollLeft+l*m)),(!f||f&&Z)&&Qe(n),k.wheelStartX=null;return}if(f&&m!=null){var ke=f*m,Ye=e.doc.scrollTop,tt=Ye+k.wrapper.clientHeight;ke<0?Ye=Math.max(0,Ye+ke-50):tt=Math.min(e.doc.height,tt+ke+50),qs(e,{top:Ye,bottom:tt})}Bo<20&&n.deltaMode!==0&&(k.wheelStartX==null?(k.wheelStartX=U.scrollLeft,k.wheelStartY=U.scrollTop,k.wheelDX=l,k.wheelDY=f,setTimeout(function(){if(k.wheelStartX!=null){var ot=U.scrollLeft-k.wheelStartX,ct=U.scrollTop-k.wheelStartY,yt=ct&&k.wheelDY&&ct/k.wheelDY||ot&&k.wheelDX&&ot/k.wheelDX;k.wheelStartX=k.wheelStartY=null,!!yt&&(hi=(hi*Bo+yt)/(Bo+1),++Bo)}},200)):(k.wheelDX+=l,k.wheelDY+=f))}}var xn=function(e,n){this.ranges=e,this.primIndex=n};xn.prototype.primary=function(){return this.ranges[this.primIndex]},xn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var u=this.ranges[n],l=e.ranges[n];if(!si(u.anchor,l.anchor)||!si(u.head,l.head))return!1}return!0},xn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new er(ue(this.ranges[n].anchor),ue(this.ranges[n].head));return new xn(e,this.primIndex)},xn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},xn.prototype.contains=function(e,n){n||(n=e);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(Lt(n,l.from())>=0&&Lt(e,l.to())<=0)return u}return-1};var er=function(e,n){this.anchor=e,this.head=n};er.prototype.from=function(){return qe(this.anchor,this.head)},er.prototype.to=function(){return Oe(this.anchor,this.head)},er.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Cn(e,n,u){var l=e&&e.options.selectionsMayTouch,f=n[u];n.sort(function(Ne,ke){return Lt(Ne.from(),ke.from())}),u=ht(n,f);for(var m=1;m<n.length;m++){var k=n[m],U=n[m-1],H=Lt(U.to(),k.from());if(l&&!k.empty()?H>0:H>=0){var Z=qe(U.from(),k.from()),be=Oe(U.to(),k.to()),Ce=U.empty()?k.from()==k.head:U.from()==U.head;m<=u&&--u,n.splice(--m,2,new er(Ce?be:Z,Ce?Z:be))}}return new xn(n,u)}function Li(e,n){return new xn([new er(e,n||e)],0)}function Di(e){return e.text?at(e.from.line+e.text.length-1,Et(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Au(e,n){if(Lt(e,n.from)<0)return e;if(Lt(e,n.to)<=0)return Di(n);var u=e.line+n.text.length-(n.to.line-n.from.line)-1,l=e.ch;return e.line==n.to.line&&(l+=Di(n).ch-n.to.ch),at(u,l)}function rl(e,n){for(var u=[],l=0;l<e.sel.ranges.length;l++){var f=e.sel.ranges[l];u.push(new er(Au(f.anchor,n),Au(f.head,n)))}return Cn(e.cm,u,e.sel.primIndex)}function Eu(e,n,u){return e.line==n.line?at(u.line,e.ch-n.ch+u.ch):at(u.line+(e.line-n.line),e.ch)}function nc(e,n,u){for(var l=[],f=at(e.first,0),m=f,k=0;k<n.length;k++){var U=n[k],H=Eu(U.from,f,m),Z=Eu(Di(U),f,m);if(f=U.to,m=Z,u=="around"){var be=e.sel.ranges[k],Ce=Lt(be.head,be.anchor)<0;l[k]=new er(Ce?Z:H,Ce?H:Z)}else l[k]=new er(H,H)}return new xn(l,e.sel.primIndex)}function Uo(e){e.doc.mode=yn(e.options,e.doc.modeOption),ra(e)}function ra(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Gn(e,100),e.state.modeGen++,e.curOp&&Mr(e)}function jo(e,n){return n.from.ch==0&&n.to.ch==0&&Et(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function nl(e,n,u,l){function f(yt){return u?u[yt]:null}function m(yt,dt,bt){Ii(yt,dt,bt,l),ar(yt,"change",yt,n)}function k(yt,dt){for(var bt=[],Ft=yt;Ft<dt;++Ft)bt.push(new Gi(Z[Ft],f(Ft),l));return bt}var U=n.from,H=n.to,Z=n.text,be=Ot(e,U.line),Ce=Ot(e,H.line),Ne=Et(Z),ke=f(Z.length-1),Ye=H.line-U.line;if(n.full)e.insert(0,k(0,Z.length)),e.remove(Z.length,e.size-Z.length);else if(jo(e,n)){var tt=k(0,Z.length-1);m(Ce,Ce.text,ke),Ye&&e.remove(U.line,Ye),tt.length&&e.insert(U.line,tt)}else if(be==Ce)if(Z.length==1)m(be,be.text.slice(0,U.ch)+Ne+be.text.slice(H.ch),ke);else{var ot=k(1,Z.length-1);ot.push(new Gi(Ne+be.text.slice(H.ch),ke,l)),m(be,be.text.slice(0,U.ch)+Z[0],f(0)),e.insert(U.line+1,ot)}else if(Z.length==1)m(be,be.text.slice(0,U.ch)+Z[0]+Ce.text.slice(H.ch),f(0)),e.remove(U.line+1,Ye);else{m(be,be.text.slice(0,U.ch)+Z[0],f(0)),m(Ce,Ne+Ce.text.slice(H.ch),ke);var ct=k(1,Z.length-1);Ye>1&&e.remove(U.line+1,Ye-1),e.insert(U.line+1,ct)}ar(e,"change",e,n)}function Ni(e,n,u){function l(f,m,k){if(f.linked)for(var U=0;U<f.linked.length;++U){var H=f.linked[U];if(H.doc!=m){var Z=k&&H.sharedHist;u&&!Z||(n(H.doc,Z),l(H.doc,f,Z))}}}l(e,null,!0)}function Cu(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,zs(e),Uo(e),il(e),e.options.direction=n.direction,e.options.lineWrapping||Cs(e),e.options.mode=n.modeOption,Mr(e)}function il(e){(e.doc.direction=="rtl"?Le:ee)(e.display.lineDiv,"CodeMirror-rtl")}function Ja(e){Ur(e,function(){il(e),Mr(e)})}function Xa(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function ei(e,n){var u={from:ue(n.from),to:Di(n),text:oi(e,n.from,n.to)};return Za(e,u,n.from.line,n.to.line+1),Ni(e,function(l){return Za(l,u,n.from.line,n.to.line+1)},!0),u}function Ou(e){for(;e.length;){var n=Et(e);if(n.ranges)e.pop();else break}}function Tu(e,n){if(n)return Ou(e.done),Et(e.done);if(e.done.length&&!Et(e.done).ranges)return Et(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Et(e.done)}function Pu(e,n,u,l){var f=e.history;f.undone.length=0;var m=+new Date,k,U;if((f.lastOp==l||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(k=Tu(f,f.lastOp==l)))U=Et(k.changes),Lt(n.from,n.to)==0&&Lt(n.from,U.to)==0?U.to=Di(n):k.changes.push(ei(e,n));else{var H=Et(f.done);for((!H||!H.ranges)&&Qa(e.sel,f.done),k={changes:[ei(e,n)],generation:f.generation},f.done.push(k);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=n.origin,U||ae(e,"historyAdded")}function Iu(e,n,u,l){var f=n.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ic(e,n,u,l){var f=e.history,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||Iu(e,m,Et(f.done),n))?f.done[f.done.length-1]=n:Qa(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&Ou(f.undone)}function Qa(e,n){var u=Et(n);u&&u.ranges&&u.equals(e)||n.push(e)}function Za(e,n,u,l){var f=n["spans_"+e.id],m=0;e.iter(Math.max(e.first,u),Math.min(e.first+e.size,l),function(k){k.markedSpans&&((f||(f=n["spans_"+e.id]={}))[m]=k.markedSpans),++m})}function ac(e){if(!e)return null;for(var n,u=0;u<e.length;++u)e[u].marker.explicitlyCleared?n||(n=e.slice(0,u)):n&&n.push(e[u]);return n?n.length?n:null:e}function Vo(e,n){var u=n["spans_"+e.id];if(!u)return null;for(var l=[],f=0;f<n.text.length;++f)l.push(ac(u[f]));return l}function Wo(e,n){var u=Vo(e,n),l=Gl(e,n);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],k=l[f];if(m&&k){e:for(var U=0;U<k.length;++U){for(var H=k[U],Z=0;Z<m.length;++Z)if(m[Z].marker==H.marker)continue e;m.push(H)}}else k&&(u[f]=k)}return u}function ha(e,n,u){for(var l=[],f=0;f<e.length;++f){var m=e[f];if(m.ranges){l.push(u?xn.prototype.deepCopy.call(m):m);continue}var k=m.changes,U=[];l.push({changes:U});for(var H=0;H<k.length;++H){var Z=k[H],be=void 0;if(U.push({from:Z.from,to:Z.to,text:Z.text}),n)for(var Ce in Z)(be=Ce.match(/^spans_(\d+)$/))&&ht(n,Number(be[1]))>-1&&(Et(U)[Ce]=Z[Ce],delete Z[Ce])}}return l}function al(e,n,u,l){if(l){var f=e.anchor;if(u){var m=Lt(n,f)<0;m!=Lt(u,f)<0?(f=n,n=u):m!=Lt(n,u)<0&&(n=u)}return new er(f,n)}else return new er(u||n,n)}function Ho(e,n,u,l,f){f==null&&(f=e.cm&&(e.cm.display.shift||e.extend)),Zr(e,new xn([al(e.sel.primary(),n,u,f)],0),l)}function Fu(e,n,u){for(var l=[],f=e.cm&&(e.cm.display.shift||e.extend),m=0;m<e.sel.ranges.length;m++)l[m]=al(e.sel.ranges[m],n[m],null,f);var k=Cn(e.cm,l,e.sel.primIndex);Zr(e,k,u)}function zo(e,n,u,l){var f=e.sel.ranges.slice(0);f[n]=u,Zr(e,Cn(e.cm,f,e.sel.primIndex),l)}function ol(e,n,u,l){Zr(e,Li(n,u),l)}function oc(e,n,u){var l={ranges:n.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new er(lt(e,f[m].anchor),lt(e,f[m].head))},origin:u&&u.origin};return ae(e,"beforeSelectionChange",e,l),e.cm&&ae(e.cm,"beforeSelectionChange",e.cm,l),l.ranges!=n.ranges?Cn(e.cm,l.ranges,l.ranges.length-1):n}function ku(e,n,u){var l=e.history.done,f=Et(l);f&&f.ranges?(l[l.length-1]=n,Go(e,n,u)):Zr(e,n,u)}function Zr(e,n,u){Go(e,n,u),ic(e,e.sel,e.cm?e.cm.curOp.id:NaN,u)}function Go(e,n,u){(Ue(e,"beforeSelectionChange")||e.cm&&Ue(e.cm,"beforeSelectionChange"))&&(n=oc(e,n,u));var l=u&&u.bias||(Lt(n.primary().head,e.sel.primary().head)<0?-1:1);Mu(e,Lu(e,n,l,!0)),!(u&&u.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&nn(e.cm)}function Mu(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Ee(e.cm)),ar(e,"cursorActivity",e))}function Ru(e){Mu(e,Lu(e,e.sel,null,!1))}function Lu(e,n,u,l){for(var f,m=0;m<n.ranges.length;m++){var k=n.ranges[m],U=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],H=_a(e,k.anchor,U&&U.anchor,u,l),Z=_a(e,k.head,U&&U.head,u,l);(f||H!=k.anchor||Z!=k.head)&&(f||(f=n.ranges.slice(0,m)),f[m]=new er(H,Z))}return f?Cn(e.cm,f,n.primIndex):n}function va(e,n,u,l,f){var m=Ot(e,n.line);if(m.markedSpans)for(var k=0;k<m.markedSpans.length;++k){var U=m.markedSpans[k],H=U.marker,Z="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,be="selectRight"in H?!H.selectRight:H.inclusiveRight;if((U.from==null||(Z?U.from<=n.ch:U.from<n.ch))&&(U.to==null||(be?U.to>=n.ch:U.to>n.ch))){if(f&&(ae(H,"beforeCursorEnter"),H.explicitlyCleared))if(m.markedSpans){--k;continue}else break;if(!H.atomic)continue;if(u){var Ce=H.find(l<0?1:-1),Ne=void 0;if((l<0?be:Z)&&(Ce=Du(e,Ce,-l,Ce&&Ce.line==n.line?m:null)),Ce&&Ce.line==n.line&&(Ne=Lt(Ce,u))&&(l<0?Ne<0:Ne>0))return va(e,Ce,n,l,f)}var ke=H.find(l<0?-1:1);return(l<0?Z:be)&&(ke=Du(e,ke,l,ke.line==n.line?m:null)),ke?va(e,ke,n,l,f):null}}return n}function _a(e,n,u,l,f){var m=l||1,k=va(e,n,u,m,f)||!f&&va(e,n,u,m,!0)||va(e,n,u,-m,f)||!f&&va(e,n,u,-m,!0);return k||(e.cantEdit=!0,at(e.first,0))}function Du(e,n,u,l){return u<0&&n.ch==0?n.line>e.first?lt(e,at(n.line-1)):null:u>0&&n.ch==(l||Ot(e,n.line)).text.length?n.line<e.first+e.size-1?at(n.line+1,0):null:new at(n.line,n.ch+u)}function $o(e){e.setSelection(at(e.firstLine(),0),at(e.lastLine()),ut)}function sl(e,n,u){var l={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,m,k,U){f&&(l.from=lt(e,f)),m&&(l.to=lt(e,m)),k&&(l.text=k),U!==void 0&&(l.origin=U)}),ae(e,"beforeChange",e,l),e.cm&&ae(e.cm,"beforeChange",e.cm,l),l.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function ga(e,n,u){if(e.cm){if(!e.cm.curOp)return jr(e.cm,ga)(e,n,u);if(e.cm.state.suppressEdits)return}if(!((Ue(e,"beforeChange")||e.cm&&Ue(e.cm,"beforeChange"))&&(n=sl(e,n,!0),!n))){var l=Rf&&!u&&Kl(e,n.from,n.to);if(l)for(var f=l.length-1;f>=0;--f)na(e,{from:l[f].from,to:l[f].to,text:f?[""]:n.text,origin:n.origin});else na(e,n)}}function na(e,n){if(!(n.text.length==1&&n.text[0]==""&&Lt(n.from,n.to)==0)){var u=rl(e,n);Pu(e,n,u,e.cm?e.cm.curOp.id:NaN),qa(e,n,u,Gl(e,n));var l=[];Ni(e,function(f,m){!m&&ht(l,f.history)==-1&&(fl(f.history,n),l.push(f.history)),qa(f,n,null,Gl(f,n))})}}function kn(e,n,u){var l=e.cm&&e.cm.state.suppressEdits;if(!(l&&!u)){for(var f=e.history,m,k=e.sel,U=n=="undo"?f.done:f.undone,H=n=="undo"?f.undone:f.done,Z=0;Z<U.length&&(m=U[Z],!(u?m.ranges&&!m.equals(e.sel):!m.ranges));Z++);if(Z!=U.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=U.pop(),m.ranges){if(Qa(m,H),u&&!m.equals(e.sel)){Zr(e,m,{clearRedo:!1});return}k=m}else if(l){U.push(m);return}else break;var be=[];Qa(k,H),H.push({changes:be,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var Ce=Ue(e,"beforeChange")||e.cm&&Ue(e.cm,"beforeChange"),Ne=function(tt){var ot=m.changes[tt];if(ot.origin=n,Ce&&!sl(e,ot,!1))return U.length=0,{};be.push(ei(e,ot));var ct=tt?rl(e,ot):Et(U);qa(e,ot,ct,Wo(e,ot)),!tt&&e.cm&&e.cm.scrollIntoView({from:ot.from,to:Di(ot)});var yt=[];Ni(e,function(dt,bt){!bt&&ht(yt,dt.history)==-1&&(fl(dt.history,ot),yt.push(dt.history)),qa(dt,ot,null,Wo(dt,ot))})},ke=m.changes.length-1;ke>=0;--ke){var Ye=Ne(ke);if(Ye)return Ye.v}}}}function ll(e,n){if(n!=0&&(e.first+=n,e.sel=new xn(zt(e.sel.ranges,function(f){return new er(at(f.anchor.line+n,f.anchor.ch),at(f.head.line+n,f.head.ch))}),e.sel.primIndex),e.cm)){Mr(e.cm,e.first,e.first-n,n);for(var u=e.cm.display,l=u.viewFrom;l<u.viewTo;l++)qn(e.cm,l,"gutter")}}function qa(e,n,u,l){if(e.cm&&!e.cm.curOp)return jr(e.cm,qa)(e,n,u,l);if(n.to.line<e.first){ll(e,n.text.length-1-(n.to.line-n.from.line));return}if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var f=n.text.length-1-(e.first-n.from.line);ll(e,f),n={from:at(e.first,0),to:at(n.to.line+f,n.to.ch),text:[Et(n.text)],origin:n.origin}}var m=e.lastLine();n.to.line>m&&(n={from:n.from,to:at(m,Ot(e,m).text.length),text:[n.text[0]],origin:n.origin}),n.removed=oi(e,n.from,n.to),u||(u=rl(e,n)),e.cm?sc(e.cm,n,l):nl(e,n,l),Go(e,u,ut),e.cantEdit&&_a(e,at(e.firstLine(),0))&&(e.cantEdit=!1)}}function sc(e,n,u){var l=e.doc,f=e.display,m=n.from,k=n.to,U=!1,H=m.line;e.options.lineWrapping||(H=Zt(Wn(Ot(l,m.line))),l.iter(H,k.line+1,function(ke){if(ke==f.maxLine)return U=!0,!0})),l.sel.contains(n.from,n.to)>-1&&Ee(e),nl(l,n,u,uu(e)),e.options.lineWrapping||(l.iter(H,m.line+n.text.length,function(ke){var Ye=zi(ke);Ye>f.maxLineLength&&(f.maxLine=ke,f.maxLineLength=Ye,f.maxLineChanged=!0,U=!1)}),U&&(e.curOp.updateMaxLine=!0)),Mf(l,m.line),Gn(e,400);var Z=n.text.length-(k.line-m.line)-1;n.full?Mr(e):m.line==k.line&&n.text.length==1&&!jo(e.doc,n)?qn(e,m.line,"text"):Mr(e,m.line,k.line+1,Z);var be=Ue(e,"changes"),Ce=Ue(e,"change");if(Ce||be){var Ne={from:m,to:k,text:n.text,removed:n.removed,origin:n.origin};Ce&&ar(e,"change",e,Ne),be&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(Ne)}e.display.selForContextMenu=null}function ya(e,n,u,l,f){var m;l||(l=u),Lt(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof n=="string"&&(n=e.splitLines(n)),ga(e,{from:u,to:l,text:n,origin:f})}function ul(e,n,u,l){u<e.line?e.line+=l:n<e.line&&(e.line=n,e.ch=0)}function Nu(e,n,u,l){for(var f=0;f<e.length;++f){var m=e[f],k=!0;if(m.ranges){m.copied||(m=e[f]=m.deepCopy(),m.copied=!0);for(var U=0;U<m.ranges.length;U++)ul(m.ranges[U].anchor,n,u,l),ul(m.ranges[U].head,n,u,l);continue}for(var H=0;H<m.changes.length;++H){var Z=m.changes[H];if(u<Z.from.line)Z.from=at(Z.from.line+l,Z.from.ch),Z.to=at(Z.to.line+l,Z.to.ch);else if(n<=Z.to.line){k=!1;break}}k||(e.splice(0,f+1),f=0)}}function fl(e,n){var u=n.from.line,l=n.to.line,f=n.text.length-(l-u)-1;Nu(e.done,u,l,f),Nu(e.undone,u,l,f)}function ia(e,n,u,l){var f=n,m=n;return typeof n=="number"?m=Ot(e,st(e,n)):f=Zt(n),f==null?null:(l(m,f)&&e.cm&&qn(e.cm,f,u),m)}function ma(e){this.lines=e,this.parent=null;for(var n=0,u=0;u<e.length;++u)e[u].parent=this,n+=e[u].height;this.height=n}ma.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var u=e,l=e+n;u<l;++u){var f=this.lines[u];this.height-=f.height,$i(f),ar(f,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,u){this.height+=u,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var l=0;l<n.length;++l)n[l].parent=this},iterN:function(e,n,u){for(var l=e+n;e<l;++e)if(u(this.lines[e]))return!0}};function xa(e){this.children=e;for(var n=0,u=0,l=0;l<e.length;++l){var f=e[l];n+=f.chunkSize(),u+=f.height,f.parent=this}this.size=n,this.height=u,this.parent=null}xa.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(e<f){var m=Math.min(n,f-e),k=l.height;if(l.removeInner(e,m),this.height-=k-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(n-=m)==0)break;e=0}else e-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof ma))){var U=[];this.collapse(U),this.children=[new ma(U)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,u){this.size+=n.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<=m){if(f.insertInner(e,n,u),f.lines&&f.lines.length>50){for(var k=f.lines.length%25+25,U=k;U<f.lines.length;){var H=new ma(f.lines.slice(U,U+=25));f.height-=H.height,this.children.splice(++l,0,H),H.parent=this}f.lines=f.lines.slice(0,k),this.maybeSpill()}break}e-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=e.children.splice(e.children.length-5,5),u=new xa(n);if(e.parent){e.size-=u.size,e.height-=u.height;var f=ht(e.parent.children,e);e.parent.children.splice(f+1,0,u)}else{var l=new xa(e.children);l.parent=e,e.children=[l,u],e=l}u.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(e<m){var k=Math.min(n,m-e);if(f.iterN(e,k,u))return!0;if((n-=k)==0)break;e=0}else e-=m}}};var eo=function(e,n,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=e,this.node=n};eo.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,u=this.line,l=Zt(u);if(!(l==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(u.widgets=null);var m=Ct(this);En(u,Math.max(0,u.height-m)),e&&(Ur(e,function(){cl(e,u,-m),qn(e,l,"widget")}),ar(e,"lineWidgetCleared",e,this,l))}},eo.prototype.changed=function(){var e=this,n=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=Ct(this)-n;!f||(li(this.doc,l)||En(l,l.height+f),u&&Ur(u,function(){u.curOp.forceUpdate=!0,cl(u,l,f),ar(u,"lineWidgetChanged",u,e,Zt(l))}))},je(eo);function cl(e,n,u){ui(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Xs(e,u)}function lc(e,n,u,l){var f=new eo(e,u,l),m=e.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),ia(e,n,"widget",function(k){var U=k.widgets||(k.widgets=[]);if(f.insertAt==null?U.push(f):U.splice(Math.min(U.length,Math.max(0,f.insertAt)),0,f),f.line=k,m&&!li(e,k)){var H=ui(k)<e.scrollTop;En(k,k.height+Ct(f)),H&&Xs(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&ar(m,"lineWidgetAdded",m,f,typeof n=="number"?n:Zt(n)),f}var Ko=0,ti=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Ko};ti.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Mi(e),Ue(this,"clear")){var u=this.find();u&&ar(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var k=this.lines[m],U=Ia(k.markedSpans,this);e&&!this.collapsed?qn(e,Zt(k),"text"):e&&(U.to!=null&&(f=Zt(k)),U.from!=null&&(l=Zt(k))),k.markedSpans=Nf(k.markedSpans,U),U.from==null&&this.collapsed&&!li(this.doc,k)&&e&&En(k,ca(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var Z=Wn(this.lines[H]),be=zi(Z);be>e.display.maxLineLength&&(e.display.maxLine=Z,e.display.maxLineLength=be,e.display.maxLineChanged=!0)}l!=null&&e&&this.collapsed&&Mr(e,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ru(e.doc)),e&&ar(e,"markerCleared",e,this,l,f),n&&Ri(e),this.parent&&this.parent.clear()}},ti.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var u,l,f=0;f<this.lines.length;++f){var m=this.lines[f],k=Ia(m.markedSpans,this);if(k.from!=null&&(u=at(n?m:Zt(m),k.from),e==-1))return u;if(k.to!=null&&(l=at(n?m:Zt(m),k.to),e==1))return l}return u&&{from:u,to:l}},ti.prototype.changed=function(){var e=this,n=this.find(-1,!0),u=this,l=this.doc.cm;!n||!l||Ur(l,function(){var f=n.line,m=Zt(n.line),k=Ds(l,m);if(k&&(Us(k),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!li(u.doc,f)&&u.height!=null){var U=u.height;u.height=null;var H=Ct(u)-U;H&&En(f,f.height+H)}ar(l,"markerChanged",l,e)})},ti.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||ht(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},ti.prototype.detachLine=function(e){if(this.lines.splice(ht(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},je(ti);function aa(e,n,u,l,f){if(l&&l.shared)return uc(e,n,u,l,f);if(e.cm&&!e.cm.curOp)return jr(e.cm,aa)(e,n,u,l,f);var m=new ti(e,f),k=Lt(n,u);if(l&&Ze(l,m,!1),k>0||k==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=he("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(xo(e,n.line,n,u,m)||n.line!=u.line&&xo(e,u.line,n,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");Df()}m.addToHistory&&Pu(e,{from:n,to:u,origin:"markText"},e.sel,NaN);var U=n.line,H=e.cm,Z;if(e.iter(U,u.line+1,function(Ce){H&&m.collapsed&&!H.options.lineWrapping&&Wn(Ce)==H.display.maxLine&&(Z=!0),m.collapsed&&U!=n.line&&En(Ce,0),Ad(Ce,new mo(m,U==n.line?n.ch:null,U==u.line?u.ch:null),e.cm&&e.cm.curOp),++U}),m.collapsed&&e.iter(n.line,u.line+1,function(Ce){li(e,Ce)&&En(Ce,0)}),m.clearOnEnter&&N(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(Lf(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++Ko,m.atomic=!0),H){if(Z&&(H.curOp.updateMaxLine=!0),m.collapsed)Mr(H,n.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var be=n.line;be<=u.line;be++)qn(H,be,"text");m.atomic&&Ru(H.doc),ar(H,"markerAdded",H,m)}return m}var ba=function(e,n){this.markers=e,this.primary=n;for(var u=0;u<e.length;++u)e[u].parent=this};ba.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();ar(this,"clear")}},ba.prototype.find=function(e,n){return this.primary.find(e,n)},je(ba);function uc(e,n,u,l,f){l=Ze(l),l.shared=!1;var m=[aa(e,n,u,l,f)],k=m[0],U=l.widgetNode;return Ni(e,function(H){U&&(l.widgetNode=U.cloneNode(!0)),m.push(aa(H,lt(H,n),lt(H,u),l,f));for(var Z=0;Z<H.linked.length;++Z)if(H.linked[Z].isParent)return;k=Et(m)}),new ba(m,k)}function Bu(e){return e.findMarks(at(e.first,0),e.clipPos(at(e.lastLine())),function(n){return n.parent})}function dl(e,n){for(var u=0;u<n.length;u++){var l=n[u],f=l.find(),m=e.clipPos(f.from),k=e.clipPos(f.to);if(Lt(m,k)){var U=aa(e,m,k,l.primary,l.primary.type);l.markers.push(U),U.parent=l}}}function fc(e){for(var n=function(l){var f=e[l],m=[f.primary.doc];Ni(f.primary.doc,function(H){return m.push(H)});for(var k=0;k<f.markers.length;k++){var U=f.markers[k];ht(m,U.doc)==-1&&(U.parent=null,f.markers.splice(k--,1))}},u=0;u<e.length;u++)n(u)}var cc=0,un=function(e,n,u,l,f){if(!(this instanceof un))return new un(e,n,u,l,f);u==null&&(u=0),xa.call(this,[new ma([new Gi("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=at(u,0);this.sel=Li(m),this.history=new Xa(null),this.id=++cc,this.modeOption=n,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),nl(this,{from:m,to:m,text:e}),Zr(this,Li(m),ut)};un.prototype=St(xa.prototype,{constructor:un,iter:function(e,n,u){u?this.iterN(e-this.first,n-e,u):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var u=0,l=0;l<n.length;++l)u+=n[l].height;this.insertInner(e-this.first,n,u)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=Ti(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:pr(function(e){var n=at(this.first,0),u=this.first+this.size-1;ga(this,{from:n,to:at(u,Ot(this,u).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&za(this.cm,0,0),Zr(this,Li(n),ut)}),replaceRange:function(e,n,u,l){n=lt(this,n),u=u?lt(this,u):n,ya(this,e,n,u,l)},getRange:function(e,n,u){var l=oi(this,lt(this,e),lt(this,n));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(Zn(this,e))return Ot(this,e)},getLineNumber:function(e){return Zt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ot(this,e)),Wn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return lt(this,e)},getCursor:function(e){var n=this.sel.primary(),u;return e==null||e=="head"?u=n.head:e=="anchor"?u=n.anchor:e=="end"||e=="to"||e===!1?u=n.to():u=n.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:pr(function(e,n,u){ol(this,lt(this,typeof e=="number"?at(e,n||0):e),null,u)}),setSelection:pr(function(e,n,u){ol(this,lt(this,e),lt(this,n||e),u)}),extendSelection:pr(function(e,n,u){Ho(this,lt(this,e),n&<(this,n),u)}),extendSelections:pr(function(e,n){Fu(this,Xt(this,e),n)}),extendSelectionsBy:pr(function(e,n){var u=zt(this.sel.ranges,e);Fu(this,Xt(this,u),n)}),setSelections:pr(function(e,n,u){if(!!e.length){for(var l=[],f=0;f<e.length;f++)l[f]=new er(lt(this,e[f].anchor),lt(this,e[f].head||e[f].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),Zr(this,Cn(this.cm,l,n),u)}}),addSelection:pr(function(e,n,u){var l=this.sel.ranges.slice(0);l.push(new er(lt(this,e),lt(this,n||e))),Zr(this,Cn(this.cm,l,l.length-1),u)}),getSelection:function(e){for(var n=this.sel.ranges,u,l=0;l<n.length;l++){var f=oi(this,n[l].from(),n[l].to());u=u?u.concat(f):f}return e===!1?u:u.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=oi(this,u[l].from(),u[l].to());e!==!1&&(f=f.join(e||this.lineSeparator())),n[l]=f}return n},replaceSelection:function(e,n,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=e;this.replaceSelections(l,n,u||"+input")},replaceSelections:pr(function(e,n,u){for(var l=[],f=this.sel,m=0;m<f.ranges.length;m++){var k=f.ranges[m];l[m]={from:k.from(),to:k.to(),text:this.splitLines(e[m]),origin:u}}for(var U=n&&n!="end"&&nc(this,l,n),H=l.length-1;H>=0;H--)ga(this,l[H]);U?ku(this,U):this.cm&&nn(this.cm)}),undo:pr(function(){kn(this,"undo")}),redo:pr(function(){kn(this,"redo")}),undoSelection:pr(function(){kn(this,"undo",!0)}),redoSelection:pr(function(){kn(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,u=0,l=0;l<e.done.length;l++)e.done[l].ranges||++n;for(var f=0;f<e.undone.length;f++)e.undone[f].ranges||++u;return{undo:n,redo:u}},clearHistory:function(){var e=this;this.history=new Xa(this.history),Ni(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:ha(this.history.done),undone:ha(this.history.undone)}},setHistory:function(e){var n=this.history=new Xa(this.history);n.done=ha(e.done.slice(0),null,!0),n.undone=ha(e.undone.slice(0),null,!0)},setGutterMarker:pr(function(e,n,u){return ia(this,e,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[n]=u,!u&&$(f)&&(l.gutterMarkers=null),!0})}),clearGutter:pr(function(e){var n=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[e]&&ia(n,u,"gutter",function(){return u.gutterMarkers[e]=null,$(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!Zn(this,e)||(n=e,e=Ot(this,e),!e))return null}else if(n=Zt(e),n==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:pr(function(e,n,u){return ia(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(ce(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:pr(function(e,n,u){return ia(this,e,n=="gutter"?"gutter":"class",function(l){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var k=m.match(ce(u));if(!k)return!1;var U=k.index+k[0].length;l[f]=m.slice(0,k.index)+(!k.index||U==m.length?"":" ")+m.slice(U)||null}else return!1;return!0})}),addLineWidget:pr(function(e,n,u){return lc(this,e,n,u)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,u){return aa(this,lt(this,e),lt(this,n),u,u&&u.type||"range")},setBookmark:function(e,n){var u={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return e=lt(this,e),aa(this,e,e,u,"bookmark")},findMarksAt:function(e){e=lt(this,e);var n=[],u=Ot(this,e.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=e.ch)&&(f.to==null||f.to>=e.ch)&&n.push(f.marker.parent||f.marker)}return n},findMarks:function(e,n,u){e=lt(this,e),n=lt(this,n);var l=[],f=e.line;return this.iter(e.line,n.line+1,function(m){var k=m.markedSpans;if(k)for(var U=0;U<k.length;U++){var H=k[U];!(H.to!=null&&f==e.line&&e.ch>=H.to||H.from==null&&f!=e.line||H.from!=null&&f==n.line&&H.from>=n.ch)&&(!u||u(H.marker))&&l.push(H.marker.parent||H.marker)}++f}),l},getAllMarks:function(){var e=[];return this.iter(function(n){var u=n.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&e.push(u[l].marker)}),e},posFromIndex:function(e){var n,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var m=f.text.length+l;if(m>e)return n=e,!0;e-=m,++u}),lt(this,at(u,n))},indexFromPos:function(e){e=lt(this,e);var n=e.ch;if(e.line<this.first||e.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,e.line,function(l){n+=l.text.length+u}),n},copy:function(e){var n=new un(Ti(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,u=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<u&&(u=e.to);var l=new un(Ti(this,n,u),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:e.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],dl(l,Bu(this)),l},unlinkDoc:function(e){if(e instanceof hr&&(e=e.doc),this.linked)for(var n=0;n<this.linked.length;++n){var u=this.linked[n];if(u.doc==e){this.linked.splice(n,1),e.unlinkDoc(this),fc(Bu(this));break}}if(e.history==this.history){var l=[e.id];Ni(e,function(f){return l.push(f.id)},!0),e.history=new Xa(null),e.history.done=ha(this.history.done,l),e.history.undone=ha(this.history.undone,l)}},iterLinkedDocs:function(e){Ni(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Bn(e)},lineSeparator:function(){return this.lineSep||`
|
|
28
|
+
`},setDirection:pr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&Ja(this.cm))})}),un.prototype.eachLine=un.prototype.iter;var Uu=0;function dc(e){var n=this;if(ju(n),!(pe(n,e)||fi(n.display,e))){Qe(e),b&&(Uu=+new Date);var u=Qi(n,e,!0),l=e.dataTransfer.files;if(!(!u||n.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,m=Array(f),k=0,U=function(){++k==f&&jr(n,function(){u=lt(n.doc,u);var ke={from:u,to:u,text:n.doc.splitLines(m.filter(function(Ye){return Ye!=null}).join(n.doc.lineSeparator())),origin:"paste"};ga(n.doc,ke),ku(n.doc,Li(lt(n.doc,u),lt(n.doc,Di(ke))))})()},H=function(ke,Ye){if(n.options.allowDropFileTypes&&ht(n.options.allowDropFileTypes,ke.type)==-1){U();return}var tt=new FileReader;tt.onerror=function(){return U()},tt.onload=function(){var ot=tt.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ot)){U();return}m[Ye]=ot,U()},tt.readAsText(ke)},Z=0;Z<l.length;Z++)H(l[Z],Z);else{if(n.state.draggingText&&n.doc.sel.contains(u)>-1){n.state.draggingText(e),setTimeout(function(){return n.display.input.focus()},20);return}try{var be=e.dataTransfer.getData("Text");if(be){var Ce;if(n.state.draggingText&&!n.state.draggingText.copy&&(Ce=n.listSelections()),Go(n.doc,Li(u,u)),Ce)for(var Ne=0;Ne<Ce.length;++Ne)ya(n.doc,"",Ce[Ne].anchor,Ce[Ne].head,"drag");n.replaceSelection(be,"around","paste"),n.display.input.focus()}}catch(ke){}}}}function pc(e,n){if(b&&(!e.state.draggingText||+new Date-Uu<100)){Bt(n);return}if(!(pe(e,n)||fi(e.display,n))&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!j)){var u=we("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",B&&(u.width=u.height=1,e.display.wrapper.appendChild(u),u._top=u.offsetTop),n.dataTransfer.setDragImage(u,0,0),B&&u.parentNode.removeChild(u)}}function hc(e,n){var u=Qi(e,n);if(!!u){var l=document.createDocumentFragment();Gs(e,u,l),e.display.dragCursor||(e.display.dragCursor=we("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),xe(e.display.dragCursor,l)}}function ju(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Yo(e){if(!!document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<n.length;l++){var f=n[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)e(u[m])})}}var to=!1;function Vu(){to||(vc(),to=!0)}function vc(){var e;N(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Yo(gc)},100))}),N(window,"blur",function(){return Yo(da)})}function gc(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var bn={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ro=0;ro<10;ro++)bn[ro+48]=bn[ro+96]=String(ro);for(var no=65;no<=90;no++)bn[no]=String.fromCharCode(no);for(var wa=1;wa<=12;wa++)bn[wa+111]=bn[wa+63235]="F"+wa;var ri={};ri.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ri.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ri.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ri.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ri.default=C?ri.macDefault:ri.pcDefault;function Wu(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var u,l,f,m,k=0;k<n.length-1;k++){var U=n[k];if(/^(cmd|meta|m)$/i.test(U))m=!0;else if(/^a(lt)?$/i.test(U))u=!0;else if(/^(c|ctrl|control)$/i.test(U))l=!0;else if(/^s(hift)?$/i.test(U))f=!0;else throw new Error("Unrecognized modifier name: "+U)}return u&&(e="Alt-"+e),l&&(e="Ctrl-"+e),m&&(e="Cmd-"+e),f&&(e="Shift-"+e),e}function Td(e){var n={};for(var u in e)if(e.hasOwnProperty(u)){var l=e[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete e[u];continue}for(var f=zt(u.split(" "),Wu),m=0;m<f.length;m++){var k=void 0,U=void 0;m==f.length-1?(U=f.join(" "),k=l):(U=f.slice(0,m+1).join(" "),k="...");var H=n[U];if(!H)n[U]=k;else if(H!=k)throw new Error("Inconsistent bindings for "+U)}delete e[u]}for(var Z in n)e[Z]=n[Z];return e}function vi(e,n,u,l){n=Jo(n);var f=n.call?n.call(e,l):n[e];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return vi(e,n.fallthrough,u,l);for(var m=0;m<n.fallthrough.length;m++){var k=vi(e,n.fallthrough[m],u,l);if(k)return k}}}function Hu(e){var n=typeof e=="string"?e:bn[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function pl(e,n,u){var l=e;return n.altKey&&l!="Alt"&&(e="Alt-"+e),(Q?n.metaKey:n.ctrlKey)&&l!="Ctrl"&&(e="Ctrl-"+e),(Q?n.ctrlKey:n.metaKey)&&l!="Mod"&&(e="Cmd-"+e),!u&&n.shiftKey&&l!="Shift"&&(e="Shift-"+e),e}function zu(e,n){if(B&&e.keyCode==34&&e.char)return!1;var u=bn[e.keyCode];return u==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(u=e.code),pl(u,e,n))}function Jo(e){return typeof e=="string"?ri[e]:e}function oa(e,n){for(var u=e.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=n(u[f]);l.length&&Lt(m.from,Et(l).to)<=0;){var k=l.pop();if(Lt(k.from,m.from)<0){m.from=k.from;break}}l.push(m)}Ur(e,function(){for(var U=l.length-1;U>=0;U--)ya(e.doc,"",l[U].from,l[U].to,"+delete");nn(e)})}function Xo(e,n,u){var l=Ge(e.text,n+u,u);return l<0||l>e.text.length?null:l}function Qo(e,n,u){var l=Xo(e,n.ch,u);return l==null?null:new at(n.line,l,u<0?"after":"before")}function hl(e,n,u,l,f){if(e){n.doc.direction=="rtl"&&(f=-f);var m=O(u,n.doc.direction);if(m){var k=f<0?Et(m):m[0],U=f<0==(k.level==1),H=U?"after":"before",Z;if(k.level>0||n.doc.direction=="rtl"){var be=_n(n,u);Z=f<0?u.text.length-1:0;var Ce=Hn(n,be,Z).top;Z=Ke(function(Ne){return Hn(n,be,Ne).top==Ce},f<0==(k.level==1)?k.from:k.to-1,Z),H=="before"&&(Z=Xo(u,Z,1))}else Z=f<0?k.to:k.from;return new at(l,Z,H)}}return new at(l,f<0?u.text.length:0,f<0?"before":"after")}function Gu(e,n,u,l){var f=O(n,e.doc.direction);if(!f)return Qo(n,u,l);u.ch>=n.text.length?(u.ch=n.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=K(f,u.ch,u.sticky),k=f[m];if(e.doc.direction=="ltr"&&k.level%2==0&&(l>0?k.to>u.ch:k.from<u.ch))return Qo(n,u,l);var U=function(ct,yt){return Xo(n,ct instanceof at?ct.ch:ct,yt)},H,Z=function(ct){return e.options.lineWrapping?(H=H||_n(e,n),lu(e,n,H,ct)):{begin:0,end:n.text.length}},be=Z(u.sticky=="before"?U(u,-1):u.ch);if(e.doc.direction=="rtl"||k.level==1){var Ce=k.level==1==l<0,Ne=U(u,Ce?1:-1);if(Ne!=null&&(Ce?Ne<=k.to&&Ne<=be.end:Ne>=k.from&&Ne>=be.begin)){var ke=Ce?"before":"after";return new at(u.line,Ne,ke)}}var Ye=function(ct,yt,dt){for(var bt=function(Tt,Sr){return Sr?new at(u.line,U(Tt,1),"before"):new at(u.line,Tt,"after")};ct>=0&&ct<f.length;ct+=yt){var Ft=f[ct],It=yt>0==(Ft.level!=1),it=It?dt.begin:U(dt.end,-1);if(Ft.from<=it&&it<Ft.to||(it=It?Ft.from:U(Ft.to,-1),dt.begin<=it&&it<dt.end))return bt(it,It)}},tt=Ye(m+l,l,be);if(tt)return tt;var ot=l>0?be.end:U(be.begin,-1);return ot!=null&&!(l>0&&ot==n.text.length)&&(tt=Ye(l>0?0:f.length-1,l,Z(ot)),tt)?tt:null}var io={selectAll:$o,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),ut)},killLine:function(e){return oa(e,function(n){if(n.empty()){var u=Ot(e.doc,n.head.line).text.length;return n.head.ch==u&&n.head.line<e.lastLine()?{from:n.head,to:at(n.head.line+1,0)}:{from:n.head,to:at(n.head.line,u)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(e){return oa(e,function(n){return{from:at(n.from().line,0),to:lt(e.doc,at(n.to().line+1,0))}})},delLineLeft:function(e){return oa(e,function(n){return{from:at(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return oa(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return{from:l,to:n.from()}})},delWrappedLineRight:function(e){return oa(e,function(n){var u=e.charCoords(n.head,"div").top+5,l=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div");return{from:n.from(),to:l}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(at(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(at(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Sa(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Zo(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return yc(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:u},"div")},xt)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:u},"div")},xt)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var u=e.cursorCoords(n.head,"div").top+5,l=e.coordsChar({left:0,top:u},"div");return l.ch<e.getLine(l.line).search(/\S/)?Zo(e,n.head):l},xt)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],u=e.listSelections(),l=e.options.tabSize,f=0;f<u.length;f++){var m=u[f].from(),k=Xe(e.getLine(m.line),m.ch,l);n.push(kt(l-k%l))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ur(e,function(){for(var n=e.listSelections(),u=[],l=0;l<n.length;l++)if(!!n[l].empty()){var f=n[l].head,m=Ot(e.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new at(f.line,f.ch-1)),f.ch>0)f=new at(f.line,f.ch+1),e.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),at(f.line,f.ch-2),f,"+transpose");else if(f.line>e.doc.first){var k=Ot(e.doc,f.line-1).text;k&&(f=new at(f.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+k.charAt(k.length-1),at(f.line-1,k.length-1),f,"+transpose"))}}u.push(new er(f,f))}e.setSelections(u)})},newlineAndIndent:function(e){return Ur(e,function(){for(var n=e.listSelections(),u=n.length-1;u>=0;u--)e.replaceRange(e.doc.lineSeparator(),n[u].anchor,n[u].head,"+input");n=e.listSelections();for(var l=0;l<n.length;l++)e.indentLine(n[l].from().line,null,!0);nn(e)})},openLine:function(e){return e.replaceSelection(`
|
|
29
|
+
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Sa(e,n){var u=Ot(e.doc,n),l=Wn(u);return l!=u&&(n=Zt(l)),hl(!0,e,l,n,1)}function yc(e,n){var u=Ot(e.doc,n),l=Xl(u);return l!=u&&(n=Zt(l)),hl(!0,e,u,n,-1)}function Zo(e,n){var u=Sa(e,n.line),l=Ot(e.doc,u.line),f=O(l,e.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),k=n.line==u.line&&n.ch<=m&&n.ch;return at(u.line,k?0:m,u.sticky)}return u}function _o(e,n,u){if(typeof n=="string"&&(n=io[n],!n))return!1;e.display.input.ensurePolled();var l=e.display.shift,f=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),u&&(e.display.shift=!1),f=n(e)!=nt}finally{e.display.shift=l,e.state.suppressEdits=!1}return f}function mc(e,n,u){for(var l=0;l<e.state.keyMaps.length;l++){var f=vi(n,e.state.keyMaps[l],u,e);if(f)return f}return e.options.extraKeys&&vi(n,e.options.extraKeys,u,e)||vi(n,e.options.keyMap,u,e)}var qo=new ft;function ao(e,n,u,l){var f=e.state.keySeq;if(f){if(Hu(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:qo.set(50,function(){e.state.keySeq==f&&(e.state.keySeq=null,e.display.input.reset())}),xc(e,f+" "+n,u,l))return!0}return xc(e,n,u,l)}function xc(e,n,u,l){var f=mc(e,n,l);return f=="multi"&&(e.state.keySeq=n),f=="handled"&&ar(e,"keyHandled",e,n,u),(f=="handled"||f=="multi")&&(Qe(u),$s(e)),!!f}function $u(e,n){var u=zu(n,!0);return u?n.shiftKey&&!e.state.keySeq?ao(e,"Shift-"+u,n,function(l){return _o(e,l,!0)})||ao(e,u,n,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return _o(e,l)}):ao(e,u,n,function(l){return _o(e,l)}):!1}function bc(e,n,u){return ao(e,"'"+u+"'",n,function(l){return _o(e,l,!0)})}var es=null;function Ku(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&(n.curOp.focus=Fe(),!pe(n,e))){b&&S<11&&e.keyCode==27&&(e.returnValue=!1);var u=e.keyCode;n.display.shift=u==16||e.shiftKey;var l=$u(n,e);B&&(es=l?u:null,!l&&u==88&&!Pn&&(C?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),c&&!C&&!l&&u==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&wc(n)}}function wc(e){var n=e.display.lineDiv;Le(n,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(ee(n,"CodeMirror-crosshair"),de(document,"keyup",u),de(document,"mouseover",u))}N(document,"keyup",u),N(document,"mouseover",u)}function Yu(e){e.keyCode==16&&(this.doc.sel.shift=!1),pe(this,e)}function vl(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField())&&!(fi(n.display,e)||pe(n,e)||e.ctrlKey&&!e.altKey||C&&e.metaKey)){var u=e.keyCode,l=e.charCode;if(B&&u==es){es=null,Qe(e);return}if(!(B&&(!e.which||e.which<10)&&$u(n,e))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(bc(n,e,f)||n.display.input.onKeyPress(e))}}}var Sc=400,gl=function(e,n,u){this.time=e,this.pos=n,this.button=u};gl.prototype.compare=function(e,n,u){return this.time+Sc>e&&Lt(n,this.pos)==0&&u==this.button};var oo,so;function Ac(e,n){var u=+new Date;return so&&so.compare(u,e,n)?(oo=so=null,"triple"):oo&&oo.compare(u,e,n)?(so=new gl(u,e,n),oo=null,"double"):(oo=new gl(u,e,n),so=null,"single")}function Ju(e){var n=this,u=n.display;if(!(pe(n,e)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=e.shiftKey,fi(u,e)){g||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!yl(n,e)){var l=Qi(n,e),f=hn(e),m=l?Ac(l,f):"single";window.focus(),f==1&&n.state.selectingText&&n.state.selectingText(e),!(l&&Ec(n,f,l,m,e))&&(f==1?l?Oc(n,l,m,e):Pt(e)==u.scroller&&Qe(e):f==2?(l&&Ho(n.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(Y?n.display.input.onContextMenu(e):Wa(n)))}}}function Ec(e,n,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(n==1?"Left":n==2?"Middle":"Right")+m,ao(e,pl(m,f),f,function(k){if(typeof k=="string"&&(k=io[k]),!k)return!1;var U=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),U=k(e,u)!=nt}finally{e.state.suppressEdits=!1}return U})}function Cc(e,n,u){var l=e.getOption("configureMouse"),f=l?l(e,n,u):{};if(f.unit==null){var m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||e.doc.extend)&&(f.extend=e.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=C?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(C?u.altKey:u.ctrlKey)),f}function Oc(e,n,u,l){b?setTimeout(rt(Ks,e),0):e.curOp.focus=Fe();var f=Cc(e,u,l),m=e.doc.sel,k;e.options.dragDrop&&Nr&&!e.isReadOnly()&&u=="single"&&(k=m.contains(n))>-1&&(Lt((k=m.ranges[k]).from(),n)<0||n.xRel>0)&&(Lt(k.to(),n)>0||n.xRel<0)?ts(e,l,n,f):Tc(e,l,n,f)}function ts(e,n,u,l){var f=e.display,m=!1,k=jr(e,function(Z){g&&(f.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Wa(e)),de(f.wrapper.ownerDocument,"mouseup",k),de(f.wrapper.ownerDocument,"mousemove",U),de(f.scroller,"dragstart",H),de(f.scroller,"drop",k),m||(Qe(Z),l.addNew||Ho(e.doc,u,null,null,l.extend),g&&!j||b&&S==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),U=function(Z){m=m||Math.abs(n.clientX-Z.clientX)+Math.abs(n.clientY-Z.clientY)>=10},H=function(){return m=!0};g&&(f.scroller.draggable=!0),e.state.draggingText=k,k.copy=!l.moveOnDrag,N(f.wrapper.ownerDocument,"mouseup",k),N(f.wrapper.ownerDocument,"mousemove",U),N(f.scroller,"dragstart",H),N(f.scroller,"drop",k),e.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function Xu(e,n,u){if(u=="char")return new er(n,n);if(u=="word")return e.findWordAt(n);if(u=="line")return new er(at(n.line,0),lt(e.doc,at(n.line+1,0)));var l=u(e,n);return new er(l.from,l.to)}function Tc(e,n,u,l){b&&Wa(e);var f=e.display,m=e.doc;Qe(n);var k,U,H=m.sel,Z=H.ranges;if(l.addNew&&!l.extend?(U=m.sel.contains(u),U>-1?k=Z[U]:k=new er(u,u)):(k=m.sel.primary(),U=m.sel.primIndex),l.unit=="rectangle")l.addNew||(k=new er(u,u)),u=Qi(e,n,!0,!0),U=-1;else{var be=Xu(e,u,l.unit);l.extend?k=al(k,be.anchor,be.head,l.extend):k=be}l.addNew?U==-1?(U=Z.length,Zr(m,Cn(e,Z.concat([k]),U),{scroll:!1,origin:"*mouse"})):Z.length>1&&Z[U].empty()&&l.unit=="char"&&!l.extend?(Zr(m,Cn(e,Z.slice(0,U).concat(Z.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),H=m.sel):zo(m,U,k,mt):(U=0,Zr(m,new xn([k],0),mt),H=m.sel);var Ce=u;function Ne(dt){if(Lt(Ce,dt)!=0)if(Ce=dt,l.unit=="rectangle"){for(var bt=[],Ft=e.options.tabSize,It=Xe(Ot(m,u.line).text,u.ch,Ft),it=Xe(Ot(m,dt.line).text,dt.ch,Ft),Tt=Math.min(It,it),Sr=Math.max(It,it),vr=Math.min(u.line,dt.line),wn=Math.min(e.lastLine(),Math.max(u.line,dt.line));vr<=wn;vr++){var fn=Ot(m,vr).text,Ir=pt(fn,Tt,Ft);Tt==Sr?bt.push(new er(at(vr,Ir),at(vr,Ir))):fn.length>Ir&&bt.push(new er(at(vr,Ir),at(vr,pt(fn,Sr,Ft))))}bt.length||bt.push(new er(u,u)),Zr(m,Cn(e,H.ranges.slice(0,U).concat(bt),U),{origin:"*mouse",scroll:!1}),e.scrollIntoView(dt)}else{var Yr=k,Vr=Xu(e,dt,l.unit),Fr=Yr.anchor,Ar;Lt(Vr.anchor,Fr)>0?(Ar=Vr.head,Fr=qe(Yr.from(),Vr.anchor)):(Ar=Vr.anchor,Fr=Oe(Yr.to(),Vr.head));var dr=H.ranges.slice(0);dr[U]=Pc(e,new er(lt(m,Fr),Ar)),Zr(m,Cn(e,dr,U),mt)}}var ke=f.wrapper.getBoundingClientRect(),Ye=0;function tt(dt){var bt=++Ye,Ft=Qi(e,dt,!0,l.unit=="rectangle");if(!!Ft)if(Lt(Ft,Ce)!=0){e.curOp.focus=Fe(),Ne(Ft);var It=Ha(f,m);(Ft.line>=It.to||Ft.line<It.from)&&setTimeout(jr(e,function(){Ye==bt&&tt(dt)}),150)}else{var it=dt.clientY<ke.top?-20:dt.clientY>ke.bottom?20:0;it&&setTimeout(jr(e,function(){Ye==bt&&(f.scroller.scrollTop+=it,tt(dt))}),50)}}function ot(dt){e.state.selectingText=!1,Ye=1/0,dt&&(Qe(dt),f.input.focus()),de(f.wrapper.ownerDocument,"mousemove",ct),de(f.wrapper.ownerDocument,"mouseup",yt),m.history.lastSelOrigin=null}var ct=jr(e,function(dt){dt.buttons===0||!hn(dt)?ot(dt):tt(dt)}),yt=jr(e,ot);e.state.selectingText=yt,N(f.wrapper.ownerDocument,"mousemove",ct),N(f.wrapper.ownerDocument,"mouseup",yt)}function Pc(e,n){var u=n.anchor,l=n.head,f=Ot(e.doc,u.line);if(Lt(u,l)==0&&u.sticky==l.sticky)return n;var m=O(f);if(!m)return n;var k=K(m,u.ch,u.sticky),U=m[k];if(U.from!=u.ch&&U.to!=u.ch)return n;var H=k+(U.from==u.ch==(U.level!=1)?0:1);if(H==0||H==m.length)return n;var Z;if(l.line!=u.line)Z=(l.line-u.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var be=K(m,l.ch,l.sticky),Ce=be-k||(l.ch-u.ch)*(U.level==1?-1:1);be==H-1||be==H?Z=Ce<0:Z=Ce>0}var Ne=m[H+(Z?-1:0)],ke=Z==(Ne.level==1),Ye=ke?Ne.from:Ne.to,tt=ke?"after":"before";return u.ch==Ye&&u.sticky==tt?n:new er(new at(u.line,Ye,tt),l)}function Qu(e,n,u,l){var f,m;if(n.touches)f=n.touches[0].clientX,m=n.touches[0].clientY;else try{f=n.clientX,m=n.clientY}catch(Ne){return!1}if(f>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;l&&Qe(n);var k=e.display,U=k.lineDiv.getBoundingClientRect();if(m>U.bottom||!Ue(e,u))return At(n);m-=U.top-k.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var Z=k.gutters.childNodes[H];if(Z&&Z.getBoundingClientRect().right>=f){var be=Vn(e.doc,m),Ce=e.display.gutterSpecs[H];return ae(e,u,e,be,Ce.className,n),At(n)}}}function yl(e,n){return Qu(e,n,"gutterClick",!0)}function Zu(e,n){fi(e.display,n)||_u(e,n)||pe(e,n,"contextmenu")||Y||e.display.input.onContextMenu(n)}function _u(e,n){return Ue(e,"gutterContextMenu")?Qu(e,n,"gutterContextMenu",!1):!1}function qu(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ba(e)}var Aa={toString:function(){return"CodeMirror.Init"}},ef={},rs={};function tf(e){var n=e.optionHandlers;function u(l,f,m,k){e.defaults[l]=f,m&&(n[l]=k?function(U,H,Z){Z!=Aa&&m(U,H,Z)}:m)}e.defineOption=u,e.Init=Aa,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Uo(l)},!0),u("indentUnit",2,Uo,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){ra(l),Ba(l),Mr(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],k=l.doc.first;l.doc.iter(function(H){for(var Z=0;;){var be=H.text.indexOf(f,Z);if(be==-1)break;Z=be+f.length,m.push(at(k,be))}k++});for(var U=m.length-1;U>=0;U--)ya(l.doc,f,m[U],at(m[U].line,m[U].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=Aa&&l.refresh()}),u("specialCharPlaceholder",Is,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",R?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!J),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){qu(l),No(l)},!0),u("keyMap","default",function(l,f,m){var k=Jo(f),U=m!=Aa&&Jo(m);U&&U.detach&&U.detach(l,k),k.attach&&k.attach(l,U||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,Fc,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=Ya(f,l.options.lineNumbers),No(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?Fn(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return di(l)},!0),u("scrollbarStyle","native",function(l){Lo(l),di(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=Ya(l.options.gutters,f),No(l)},!0),u("firstLineNumber",1,No,!0),u("lineNumberFormatter",function(l){return l},No,!0),u("showCursorWhenSelecting",!1,ki,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(da(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,Ic),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,ki,!0),u("singleCursorHeightPerLine",!0,ki,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,ra,!0),u("addModeClass",!1,ra,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,ra,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function Ic(e,n,u){var l=u&&u!=Aa;if(!n!=!l){var f=e.display.dragFunctions,m=n?N:de;m(e.display.scroller,"dragstart",f.start),m(e.display.scroller,"dragenter",f.enter),m(e.display.scroller,"dragover",f.over),m(e.display.scroller,"dragleave",f.leave),m(e.display.scroller,"drop",f.drop)}}function Fc(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ee(e.display.wrapper,"CodeMirror-wrap"),Cs(e)),zs(e),Mr(e),Ba(e),setTimeout(function(){return di(e)},100)}function hr(e,n){var u=this;if(!(this instanceof hr))return new hr(e,n);this.options=n=n?Ze(n):{},Ze(ef,n,!1);var l=n.value;typeof l=="string"?l=new un(l,n.mode,null,n.lineSeparator,n.direction):n.mode&&(l.modeOption=n.mode),this.doc=l;var f=new hr.inputStyles[n.inputStyle](this),m=this.display=new rc(e,l,f,n);m.wrapper.CodeMirror=this,qu(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Lo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ft,keySeq:null,specialChars:null},n.autofocus&&!R&&m.input.focus(),b&&S<11&&setTimeout(function(){return u.display.input.reset(!0)},20),kc(this),Vu(),Mi(this),this.curOp.forceUpdate=!0,Cu(this,l),n.autofocus&&!R||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&Fo(u)},20):da(this);for(var k in rs)rs.hasOwnProperty(k)&&rs[k](this,n[k],Aa);Do(this),n.finishInit&&n.finishInit(this);for(var U=0;U<ml.length;++U)ml[U](this);Ri(this),g&&n.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}hr.defaults=ef,hr.optionHandlers=rs;function kc(e){var n=e.display;N(n.scroller,"mousedown",jr(e,Ju)),b&&S<11?N(n.scroller,"dblclick",jr(e,function(H){if(!pe(e,H)){var Z=Qi(e,H);if(!(!Z||yl(e,H)||fi(e.display,H))){Qe(H);var be=e.findWordAt(Z);Ho(e.doc,be.anchor,be.head)}}})):N(n.scroller,"dblclick",function(H){return pe(e,H)||Qe(H)}),N(n.scroller,"contextmenu",function(H){return Zu(e,H)}),N(n.input.getField(),"contextmenu",function(H){n.scroller.contains(H.target)||Zu(e,H)});var u,l={end:0};function f(){n.activeTouch&&(u=setTimeout(function(){return n.activeTouch=null},1e3),l=n.activeTouch,l.end=+new Date)}function m(H){if(H.touches.length!=1)return!1;var Z=H.touches[0];return Z.radiusX<=1&&Z.radiusY<=1}function k(H,Z){if(Z.left==null)return!0;var be=Z.left-H.left,Ce=Z.top-H.top;return be*be+Ce*Ce>20*20}N(n.scroller,"touchstart",function(H){if(!pe(e,H)&&!m(H)&&!yl(e,H)){n.input.ensurePolled(),clearTimeout(u);var Z=+new Date;n.activeTouch={start:Z,moved:!1,prev:Z-l.end<=300?l:null},H.touches.length==1&&(n.activeTouch.left=H.touches[0].pageX,n.activeTouch.top=H.touches[0].pageY)}}),N(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),N(n.scroller,"touchend",function(H){var Z=n.activeTouch;if(Z&&!fi(n,H)&&Z.left!=null&&!Z.moved&&new Date-Z.start<300){var be=e.coordsChar(n.activeTouch,"page"),Ce;!Z.prev||k(Z,Z.prev)?Ce=new er(be,be):!Z.prev.prev||k(Z,Z.prev.prev)?Ce=e.findWordAt(be):Ce=new er(at(be.line,0),lt(e.doc,at(be.line+1,0))),e.setSelection(Ce.anchor,Ce.head),e.focus(),Qe(H)}f()}),N(n.scroller,"touchcancel",f),N(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Ga(e,n.scroller.scrollTop),qi(e,n.scroller.scrollLeft,!0),ae(e,"scroll",e))}),N(n.scroller,"mousewheel",function(H){return Su(e,H)}),N(n.scroller,"DOMMouseScroll",function(H){return Su(e,H)}),N(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(H){pe(e,H)||Bt(H)},over:function(H){pe(e,H)||(hc(e,H),Bt(H))},start:function(H){return pc(e,H)},drop:jr(e,dc),leave:function(H){pe(e,H)||ju(e)}};var U=n.input.getField();N(U,"keyup",function(H){return Yu.call(e,H)}),N(U,"keydown",jr(e,Ku)),N(U,"keypress",jr(e,vl)),N(U,"focus",function(H){return Fo(e,H)}),N(U,"blur",function(H){return da(e,H)})}var ml=[];hr.defineInitHook=function(e){return ml.push(e)};function Ea(e,n,u,l){var f=e.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=tn(e,n).state:u="prev");var k=e.options.tabSize,U=Ot(f,n),H=Xe(U.text,null,k);U.stateAfter&&(U.stateAfter=null);var Z=U.text.match(/^\s*/)[0],be;if(!l&&!/\S/.test(U.text))be=0,u="not";else if(u=="smart"&&(be=f.mode.indent(m,U.text.slice(Z.length),U.text),be==nt||be>150)){if(!l)return;u="prev"}u=="prev"?n>f.first?be=Xe(Ot(f,n-1).text,null,k):be=0:u=="add"?be=H+e.options.indentUnit:u=="subtract"?be=H-e.options.indentUnit:typeof u=="number"&&(be=H+u),be=Math.max(0,be);var Ce="",Ne=0;if(e.options.indentWithTabs)for(var ke=Math.floor(be/k);ke;--ke)Ne+=k,Ce+=" ";if(Ne<be&&(Ce+=kt(be-Ne)),Ce!=Z)return ya(f,Ce,at(n,0),at(n,Z.length),"+input"),U.stateAfter=null,!0;for(var Ye=0;Ye<f.sel.ranges.length;Ye++){var tt=f.sel.ranges[Ye];if(tt.head.line==n&&tt.head.ch<Z.length){var ot=at(n,Z.length);zo(f,Ye,new er(ot,ot));break}}}var On=null;function lo(e){On=e}function xl(e,n,u,l,f){var m=e.doc;e.display.shift=!1,l||(l=m.sel);var k=+new Date-200,U=f=="paste"||e.state.pasteIncoming>k,H=Bn(n),Z=null;if(U&&l.ranges.length>1)if(On&&On.text.join(`
|
|
30
|
+
`)==n){if(l.ranges.length%On.text.length==0){Z=[];for(var be=0;be<On.text.length;be++)Z.push(m.splitLines(On.text[be]))}}else H.length==l.ranges.length&&e.options.pasteLinesPerSelection&&(Z=zt(H,function(ct){return[ct]}));for(var Ce=e.curOp.updateInput,Ne=l.ranges.length-1;Ne>=0;Ne--){var ke=l.ranges[Ne],Ye=ke.from(),tt=ke.to();ke.empty()&&(u&&u>0?Ye=at(Ye.line,Ye.ch-u):e.state.overwrite&&!U?tt=at(tt.line,Math.min(Ot(m,tt.line).text.length,tt.ch+Et(H).length)):U&&On&&On.lineWise&&On.text.join(`
|
|
31
31
|
`)==H.join(`
|
|
32
|
-
`)&&(Ye=tt=it(Ye.line,0)));var ot={from:Ye,to:tt,text:Z?Z[De%Z.length]:H,origin:f||(U?"paste":e.state.cutIncoming>F?"cut":"+input")};ga(e.doc,ot),ar(e,"inputRead",e,ot)}i&&!U&&nf(e,i),nn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function rf(e,i){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&jr(i,function(){return xl(i,u,0,null,"paste")}),!0}function nf(e,i){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var m=e.getModeAt(f.head),F=!1;if(m.electricChars){for(var U=0;U<m.electricChars.length;U++)if(i.indexOf(m.electricChars.charAt(U))>-1){F=Ea(e,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Ot(e.doc,f.head.line).text.slice(0,f.head.ch))&&(F=Ea(e,f.head.line,"smart"));F&&ar(e,"electricInput",e,f.head.line)}}}function af(e){for(var i=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,m={anchor:it(f,0),head:it(f+1,0)};u.push(m),i.push(e.getRange(m.anchor,m.head))}return{text:i,ranges:u}}function xr(e,i,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!i)}function Rc(){var e=be("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=be("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),xr(e),i}function Lc(e){var i=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var m=this.options,F=m[l];m[l]==f&&l!="mode"||(m[l]=f,i.hasOwnProperty(l)&&Vr(this,i[l])(this,f,F),ae(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](Qo(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:Lr(function(l,f){var m=l.token?l:e.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");jt(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(F){return F.priority}),this.state.modeGen++,Rr(this)}),removeOverlay:Lr(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var F=f[m].modeSpec;if(F==l||typeof l=="string"&&F.name==l){f.splice(m,1),this.state.modeGen++,Rr(this);return}}}),indentLine:Lr(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Zn(this.doc,l)&&Ea(this,l,f,m)}),indentSelection:Lr(function(l){for(var f=this.doc.sel.ranges,m=-1,F=0;F<f.length;F++){var U=f[F];if(U.empty())U.head.line>m&&(Ea(this,U.head.line,l,!0),m=U.head.line,F==this.doc.sel.primIndex&&nn(this));else{var H=U.from(),Z=U.to(),me=Math.max(m,H.line);m=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=me;Ce<m;++Ce)Ea(this,Ce,l);var De=this.doc.sel.ranges;H.ch==0&&f.length==De.length&&De[F].from().ch>0&&$o(this.doc,F,new er(H,De[F].to()),ut)}}}),getTokenAt:function(l,f){return bs(this,l,f)},getLineTokens:function(l,f){return bs(this,it(l),f,!0)},getTokenTypeAt:function(l){l=lt(this.doc,l);var f=Wl(this,Ot(this.doc,l.line)),m=0,F=(f.length-1)/2,U=l.ch,H;if(U==0)H=f[2];else for(;;){var Z=m+F>>1;if((Z?f[Z*2-1]:0)>=U)F=Z;else if(f[Z*2+1]<U)m=Z+1;else{H=f[Z*2+2];break}}var me=H?H.indexOf("overlay "):-1;return me<0?H:me==0?null:H.slice(0,me-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var m=[];if(!u.hasOwnProperty(f))return m;var F=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")F[U[f]]&&m.push(F[U[f]]);else if(U[f])for(var H=0;H<U[f].length;H++){var Z=F[U[f][H]];Z&&m.push(Z)}else U.helperType&&F[U.helperType]?m.push(F[U.helperType]):F[U.name]&&m.push(F[U.name]);for(var me=0;me<F._global.length;me++){var Ce=F._global[me];Ce.pred(U,this)&&ht(m,Ce.val)==-1&&m.push(Ce.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=st(m,l==null?m.first+m.size-1:l),tn(this,l+1,f).state},cursorCoords:function(l,f){var m,F=this.doc.sel.primary();return l==null?m=F.head:typeof l=="object"?m=lt(this.doc,l):m=l?F.from():F.to(),Hn(this,m,f||"page")},charCoords:function(l,f){return To(this,lt(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Va(this,l,f||"page"),Vs(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Va(this,{top:l,left:0},f||"page").top,jn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){var F=!1,U;if(typeof l=="number"){var H=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>H&&(l=H,F=!0),U=Ot(this.doc,l)}else U=l;return Oo(this,U,{top:0,left:0},f||"page",m||F).top+(F?this.doc.height-li(U):0)},defaultTextHeight:function(){return ca(this.display)},defaultCharWidth:function(){return Tn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,F,U){var H=this.display;l=Hn(this,lt(this.doc,l));var Z=l.bottom,me=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),H.sizer.appendChild(f),F=="over")Z=l.top;else if(F=="above"||F=="near"){var Ce=Math.max(H.wrapper.clientHeight,this.doc.height),De=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(F=="above"||l.bottom+f.offsetHeight>Ce)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ce&&(Z=l.bottom),me+f.offsetWidth>De&&(me=De-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(me=H.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?me=0:U=="middle"&&(me=(H.sizer.clientWidth-f.offsetWidth)/2),f.style.left=me+"px"),m&&du(this,{left:me,top:Z,right:me+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Lr(Ku),triggerOnKeyPress:Lr(vl),triggerOnKeyUp:Yu,triggerOnMouseDown:Lr(Ju),execCommand:function(l){if(io.hasOwnProperty(l))return io[l].call(null,this)},triggerElectric:Lr(function(l){nf(this,l)}),findPosH:function(l,f,m,F){var U=1;f<0&&(U=-1,f=-f);for(var H=lt(this.doc,l),Z=0;Z<f&&(H=Gt(this.doc,H,U,m,F),!H.hitSide);++Z);return H},moveH:Lr(function(l,f){var m=this;this.extendSelectionsBy(function(F){return m.display.shift||m.doc.extend||F.empty()?Gt(m.doc,F.head,l,f,m.options.rtlMoveVisually):l<0?F.from():F.to()},mt)}),deleteH:Lr(function(l,f){var m=this.doc.sel,F=this.doc;m.somethingSelected()?F.replaceSelection("",null,"+delete"):ia(this,function(U){var H=Gt(F,U.head,l,f,!1);return l<0?{from:H,to:U.head}:{from:U.head,to:H}})}),findPosV:function(l,f,m,F){var U=1,H=F;f<0&&(U=-1,f=-f);for(var Z=lt(this.doc,l),me=0;me<f;++me){var Ce=Hn(this,Z,"div");if(H==null?H=Ce.left:Ce.left=H,Z=bl(this,Ce,U,m),Z.hitSide)break}return Z},moveV:Lr(function(l,f){var m=this,F=this.doc,U=[],H=!this.display.shift&&!F.extend&&F.sel.somethingSelected();if(F.extendSelectionsBy(function(me){if(H)return l<0?me.from():me.to();var Ce=Hn(m,me.head,"div");me.goalColumn!=null&&(Ce.left=me.goalColumn),U.push(Ce.left);var De=bl(m,Ce,l,f);return f=="page"&&me==F.sel.primary()&&Xs(m,To(m,De,"div").top-Ce.top),De},mt),U.length)for(var Z=0;Z<F.sel.ranges.length;Z++)F.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,m=Ot(f,l.line).text,F=l.ch,U=l.ch;if(m){var H=this.getHelper(l,"wordChars");(l.sticky=="before"||U==m.length)&&F?--F:++U;for(var Z=m.charAt(F),me=z(Z,H)?function(Ce){return z(Ce,H)}:/\s/.test(Z)?function(Ce){return/\s/.test(Ce)}:function(Ce){return!/\s/.test(Ce)&&!z(Ce)};F>0&&me(m.charAt(F-1));)--F;for(;U<m.length&&me(m.charAt(U));)++U}return new er(it(l.line,F),it(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ee(this.display.cursorDiv,"CodeMirror-overwrite"),ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Fe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Lr(function(l,f){za(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-fi(this)-this.display.barHeight,width:l.scrollWidth-fi(this)-this.display.barWidth,clientHeight:Na(this),clientWidth:$i(this)}},scrollIntoView:Lr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:it(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?Qi(this,l):pu(this,l.from,l.to,l.margin)}),setSize:Lr(function(l,f){var m=this,F=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};l!=null&&(this.display.wrapper.style.width=F(l)),f!=null&&(this.display.wrapper.style.height=F(f)),this.options.lineWrapping&&Ki(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(H){if(H.widgets){for(var Z=0;Z<H.widgets.length;Z++)if(H.widgets[Z].noHScroll){qn(m,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,ae(this,"refresh",this)}),operation:function(l){return jr(this,l)},startOperation:function(){return Ii(this)},endOperation:function(){return Fi(this)},refresh:Lr(function(){var l=this.display.cachedTextHeight;Rr(this),this.curOp.forceUpdate=!0,Ba(this),za(this,this.doc.scrollLeft,this.doc.scrollTop),el(this.display),(l==null||Math.abs(l-ca(this.display))>.5||this.options.lineWrapping)&&zs(this),ae(this,"refresh",this)}),swapDoc:Lr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Cu(this,l),Ba(this),this.display.input.reset(),za(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,ar(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ue(e),e.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=m},e.registerGlobalHelper=function(l,f,m,F){e.registerHelper(l,f,F),u[l]._global.push({pred:m,val:F})}}function Gt(e,i,u,l,f){var m=i,F=u,U=Ot(e,i.line),H=f&&e.direction=="rtl"?-u:u;function Z(){var gt=i.line+H;return gt<e.first||gt>=e.first+e.size?!1:(i=new it(gt,i.ch,i.sticky),U=Ot(e,gt))}function me(gt){var dt;if(l=="codepoint"){var xt=U.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(xt))dt=null;else{var Ft=u>0?xt>=55296&&xt<56320:xt>=56320&&xt<57343;dt=new it(i.line,Math.max(0,Math.min(U.text.length,i.ch+u*(Ft?2:1))),-u)}}else f?dt=Gu(e.cm,U,i,u):dt=_o(U,i,u);if(dt==null)if(!gt&&Z())i=hl(f,e.cm,U,i.line,H);else return!1;else i=dt;return!0}if(l=="char"||l=="codepoint")me();else if(l=="column")me(!0);else if(l=="word"||l=="group")for(var Ce=null,De=l=="group",ke=e.cm&&e.cm.getHelper(i,"wordChars"),Ye=!0;!(u<0&&!me(!Ye));Ye=!1){var tt=U.text.charAt(i.ch)||`
|
|
33
|
-
`,ot=z(tt,ke)?"w":
|
|
34
|
-
`?"n":!
|
|
35
|
-
`);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var
|
|
36
|
-
`);var
|
|
37
|
-
`),Pe(f))}else return;
|
|
38
|
-
`)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=
|
|
39
|
-
top: `+(e.clientY-
|
|
32
|
+
`)&&(Ye=tt=at(Ye.line,0)));var ot={from:Ye,to:tt,text:Z?Z[Ne%Z.length]:H,origin:f||(U?"paste":e.state.cutIncoming>k?"cut":"+input")};ga(e.doc,ot),ar(e,"inputRead",e,ot)}n&&!U&&nf(e,n),nn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Ce),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function rf(e,n){var u=e.clipboardData&&e.clipboardData.getData("Text");if(u)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&Ur(n,function(){return xl(n,u,0,null,"paste")}),!0}function nf(e,n){if(!(!e.options.electricChars||!e.options.smartIndent))for(var u=e.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var m=e.getModeAt(f.head),k=!1;if(m.electricChars){for(var U=0;U<m.electricChars.length;U++)if(n.indexOf(m.electricChars.charAt(U))>-1){k=Ea(e,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(Ot(e.doc,f.head.line).text.slice(0,f.head.ch))&&(k=Ea(e,f.head.line,"smart"));k&&ar(e,"electricInput",e,f.head.line)}}}function af(e){for(var n=[],u=[],l=0;l<e.doc.sel.ranges.length;l++){var f=e.doc.sel.ranges[l].head.line,m={anchor:at(f,0),head:at(f+1,0)};u.push(m),n.push(e.getRange(m.anchor,m.head))}return{text:n,ranges:u}}function xr(e,n,u,l){e.setAttribute("autocorrect",u?"":"off"),e.setAttribute("autocapitalize",l?"":"off"),e.setAttribute("spellcheck",!!n)}function Mc(){var e=we("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=we("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?e.style.width="1000px":e.setAttribute("wrap","off"),M&&(e.style.border="1px solid black"),xr(e),n}function Rc(e){var n=e.optionHandlers,u=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(l,f){var m=this.options,k=m[l];m[l]==f&&l!="mode"||(m[l]=f,n.hasOwnProperty(l)&&jr(this,n[l])(this,f,k),ae(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](Jo(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:Rr(function(l,f){var m=l.token?l:e.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");jt(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(k){return k.priority}),this.state.modeGen++,Mr(this)}),removeOverlay:Rr(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var k=f[m].modeSpec;if(k==l||typeof l=="string"&&k.name==l){f.splice(m,1),this.state.modeGen++,Mr(this);return}}}),indentLine:Rr(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),Zn(this.doc,l)&&Ea(this,l,f,m)}),indentSelection:Rr(function(l){for(var f=this.doc.sel.ranges,m=-1,k=0;k<f.length;k++){var U=f[k];if(U.empty())U.head.line>m&&(Ea(this,U.head.line,l,!0),m=U.head.line,k==this.doc.sel.primIndex&&nn(this));else{var H=U.from(),Z=U.to(),be=Math.max(m,H.line);m=Math.min(this.lastLine(),Z.line-(Z.ch?0:1))+1;for(var Ce=be;Ce<m;++Ce)Ea(this,Ce,l);var Ne=this.doc.sel.ranges;H.ch==0&&f.length==Ne.length&&Ne[k].from().ch>0&&zo(this.doc,k,new er(H,Ne[k].to()),ut)}}}),getTokenAt:function(l,f){return bs(this,l,f)},getLineTokens:function(l,f){return bs(this,at(l),f,!0)},getTokenTypeAt:function(l){l=lt(this.doc,l);var f=Wl(this,Ot(this.doc,l.line)),m=0,k=(f.length-1)/2,U=l.ch,H;if(U==0)H=f[2];else for(;;){var Z=m+k>>1;if((Z?f[Z*2-1]:0)>=U)k=Z;else if(f[Z*2+1]<U)m=Z+1;else{H=f[Z*2+2];break}}var be=H?H.indexOf("overlay "):-1;return be<0?H:be==0?null:H.slice(0,be-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?e.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var m=[];if(!u.hasOwnProperty(f))return m;var k=u[f],U=this.getModeAt(l);if(typeof U[f]=="string")k[U[f]]&&m.push(k[U[f]]);else if(U[f])for(var H=0;H<U[f].length;H++){var Z=k[U[f][H]];Z&&m.push(Z)}else U.helperType&&k[U.helperType]?m.push(k[U.helperType]):k[U.name]&&m.push(k[U.name]);for(var be=0;be<k._global.length;be++){var Ce=k._global[be];Ce.pred(U,this)&&ht(m,Ce.val)==-1&&m.push(Ce.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=st(m,l==null?m.first+m.size-1:l),tn(this,l+1,f).state},cursorCoords:function(l,f){var m,k=this.doc.sel.primary();return l==null?m=k.head:typeof l=="object"?m=lt(this.doc,l):m=l?k.from():k.to(),zn(this,m,f||"page")},charCoords:function(l,f){return Co(this,lt(this.doc,l),f||"page")},coordsChar:function(l,f){return l=Va(this,l,f||"page"),Vs(this,l.left,l.top)},lineAtHeight:function(l,f){return l=Va(this,{top:l,left:0},f||"page").top,Vn(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){var k=!1,U;if(typeof l=="number"){var H=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>H&&(l=H,k=!0),U=Ot(this.doc,l)}else U=l;return Eo(this,U,{top:0,left:0},f||"page",m||k).top+(k?this.doc.height-ui(U):0)},defaultTextHeight:function(){return ca(this.display)},defaultCharWidth:function(){return In(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,k,U){var H=this.display;l=zn(this,lt(this.doc,l));var Z=l.bottom,be=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),H.sizer.appendChild(f),k=="over")Z=l.top;else if(k=="above"||k=="near"){var Ce=Math.max(H.wrapper.clientHeight,this.doc.height),Ne=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(k=="above"||l.bottom+f.offsetHeight>Ce)&&l.top>f.offsetHeight?Z=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=Ce&&(Z=l.bottom),be+f.offsetWidth>Ne&&(be=Ne-f.offsetWidth)}f.style.top=Z+"px",f.style.left=f.style.right="",U=="right"?(be=H.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(U=="left"?be=0:U=="middle"&&(be=(H.sizer.clientWidth-f.offsetWidth)/2),f.style.left=be+"px"),m&&du(this,{left:be,top:Z,right:be+f.offsetWidth,bottom:Z+f.offsetHeight})},triggerOnKeyDown:Rr(Ku),triggerOnKeyPress:Rr(vl),triggerOnKeyUp:Yu,triggerOnMouseDown:Rr(Ju),execCommand:function(l){if(io.hasOwnProperty(l))return io[l].call(null,this)},triggerElectric:Rr(function(l){nf(this,l)}),findPosH:function(l,f,m,k){var U=1;f<0&&(U=-1,f=-f);for(var H=lt(this.doc,l),Z=0;Z<f&&(H=Ht(this.doc,H,U,m,k),!H.hitSide);++Z);return H},moveH:Rr(function(l,f){var m=this;this.extendSelectionsBy(function(k){return m.display.shift||m.doc.extend||k.empty()?Ht(m.doc,k.head,l,f,m.options.rtlMoveVisually):l<0?k.from():k.to()},xt)}),deleteH:Rr(function(l,f){var m=this.doc.sel,k=this.doc;m.somethingSelected()?k.replaceSelection("",null,"+delete"):oa(this,function(U){var H=Ht(k,U.head,l,f,!1);return l<0?{from:H,to:U.head}:{from:U.head,to:H}})}),findPosV:function(l,f,m,k){var U=1,H=k;f<0&&(U=-1,f=-f);for(var Z=lt(this.doc,l),be=0;be<f;++be){var Ce=zn(this,Z,"div");if(H==null?H=Ce.left:Ce.left=H,Z=bl(this,Ce,U,m),Z.hitSide)break}return Z},moveV:Rr(function(l,f){var m=this,k=this.doc,U=[],H=!this.display.shift&&!k.extend&&k.sel.somethingSelected();if(k.extendSelectionsBy(function(be){if(H)return l<0?be.from():be.to();var Ce=zn(m,be.head,"div");be.goalColumn!=null&&(Ce.left=be.goalColumn),U.push(Ce.left);var Ne=bl(m,Ce,l,f);return f=="page"&&be==k.sel.primary()&&Xs(m,Co(m,Ne,"div").top-Ce.top),Ne},xt),U.length)for(var Z=0;Z<k.sel.ranges.length;Z++)k.sel.ranges[Z].goalColumn=U[Z]}),findWordAt:function(l){var f=this.doc,m=Ot(f,l.line).text,k=l.ch,U=l.ch;if(m){var H=this.getHelper(l,"wordChars");(l.sticky=="before"||U==m.length)&&k?--k:++U;for(var Z=m.charAt(k),be=z(Z,H)?function(Ce){return z(Ce,H)}:/\s/.test(Z)?function(Ce){return/\s/.test(Ce)}:function(Ce){return!/\s/.test(Ce)&&!z(Ce)};k>0&&be(m.charAt(k-1));)--k;for(;U<m.length&&be(m.charAt(U));)++U}return new er(at(l.line,k),at(l.line,U))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ee(this.display.cursorDiv,"CodeMirror-overwrite"),ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Fe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Rr(function(l,f){za(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-ci(this)-this.display.barHeight,width:l.scrollWidth-ci(this)-this.display.barWidth,clientHeight:Na(this),clientWidth:Yi(this)}},scrollIntoView:Rr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:at(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?_i(this,l):pu(this,l.from,l.to,l.margin)}),setSize:Rr(function(l,f){var m=this,k=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};l!=null&&(this.display.wrapper.style.width=k(l)),f!=null&&(this.display.wrapper.style.height=k(f)),this.options.lineWrapping&&Ji(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(H){if(H.widgets){for(var Z=0;Z<H.widgets.length;Z++)if(H.widgets[Z].noHScroll){qn(m,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,ae(this,"refresh",this)}),operation:function(l){return Ur(this,l)},startOperation:function(){return Mi(this)},endOperation:function(){return Ri(this)},refresh:Rr(function(){var l=this.display.cachedTextHeight;Mr(this),this.curOp.forceUpdate=!0,Ba(this),za(this,this.doc.scrollLeft,this.doc.scrollTop),el(this.display),(l==null||Math.abs(l-ca(this.display))>.5||this.options.lineWrapping)&&zs(this),ae(this,"refresh",this)}),swapDoc:Rr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),Cu(this,l),Ba(this),this.display.input.reset(),za(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,ar(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},je(e),e.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=e[l]={_global:[]}),u[l][f]=m},e.registerGlobalHelper=function(l,f,m,k){e.registerHelper(l,f,k),u[l]._global.push({pred:m,val:k})}}function Ht(e,n,u,l,f){var m=n,k=u,U=Ot(e,n.line),H=f&&e.direction=="rtl"?-u:u;function Z(){var yt=n.line+H;return yt<e.first||yt>=e.first+e.size?!1:(n=new at(yt,n.ch,n.sticky),U=Ot(e,yt))}function be(yt){var dt;if(l=="codepoint"){var bt=U.text.charCodeAt(n.ch+(u>0?0:-1));if(isNaN(bt))dt=null;else{var Ft=u>0?bt>=55296&&bt<56320:bt>=56320&&bt<57343;dt=new at(n.line,Math.max(0,Math.min(U.text.length,n.ch+u*(Ft?2:1))),-u)}}else f?dt=Gu(e.cm,U,n,u):dt=Qo(U,n,u);if(dt==null)if(!yt&&Z())n=hl(f,e.cm,U,n.line,H);else return!1;else n=dt;return!0}if(l=="char"||l=="codepoint")be();else if(l=="column")be(!0);else if(l=="word"||l=="group")for(var Ce=null,Ne=l=="group",ke=e.cm&&e.cm.getHelper(n,"wordChars"),Ye=!0;!(u<0&&!be(!Ye));Ye=!1){var tt=U.text.charAt(n.ch)||`
|
|
33
|
+
`,ot=z(tt,ke)?"w":Ne&&tt==`
|
|
34
|
+
`?"n":!Ne||/\s/.test(tt)?null:"p";if(Ne&&!Ye&&!ot&&(ot="s"),Ce&&Ce!=ot){u<0&&(u=1,be(),n.sticky="after");break}if(ot&&(Ce=ot),u>0&&!be(!Ye))break}var ct=_a(e,n,m,k,!0);return si(m,ct)&&(ct.hitSide=!0),ct}function bl(e,n,u,l){var f=e.doc,m=n.left,k;if(l=="page"){var U=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),H=Math.max(U-.5*ca(e.display),3);k=(u>0?n.bottom:n.top)+u*H}else l=="line"&&(k=u>0?n.bottom+3:n.top-3);for(var Z;Z=Vs(e,m,k),!!Z.outside;){if(u<0?k<=0:k>=f.height){Z.hitSide=!0;break}k+=u*5}return Z}var Wt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ft,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Wt.prototype.init=function(e){var n=this,u=this,l=u.cm,f=u.div=e.lineDiv;f.contentEditable=!0,xr(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(U){for(var H=U.target;H;H=H.parentNode){if(H==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(H.className))break}return!1}N(f,"paste",function(U){!m(U)||pe(l,U)||rf(U,l)||S<=11&&setTimeout(jr(l,function(){return n.updateFromDOM()}),20)}),N(f,"compositionstart",function(U){n.composing={data:U.data,done:!1}}),N(f,"compositionupdate",function(U){n.composing||(n.composing={data:U.data,done:!1})}),N(f,"compositionend",function(U){n.composing&&(U.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),N(f,"touchstart",function(){return u.forceCompositionEnd()}),N(f,"input",function(){n.composing||n.readFromDOMSoon()});function k(U){if(!(!m(U)||pe(l,U))){if(l.somethingSelected())lo({lineWise:!1,text:l.getSelections()}),U.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var H=af(l);lo({lineWise:!0,text:H.text}),U.type=="cut"&&l.operation(function(){l.setSelections(H.ranges,0,ut),l.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var Z=On.text.join(`
|
|
35
|
+
`);if(U.clipboardData.setData("Text",Z),U.clipboardData.getData("Text")==Z){U.preventDefault();return}}var be=Mc(),Ce=be.firstChild;l.display.lineSpace.insertBefore(be,l.display.lineSpace.firstChild),Ce.value=On.text.join(`
|
|
36
|
+
`);var Ne=Fe();Pe(Ce),setTimeout(function(){l.display.lineSpace.removeChild(be),Ne.focus(),Ne==f&&u.showPrimarySelection()},50)}}N(f,"copy",k),N(f,"cut",k)},Wt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var e=Po(this.cm,!1);return e.focus=Fe()==this.div,e},Wt.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Wt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Wt.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,u=n.doc.sel.primary(),l=u.from(),f=u.to();if(n.display.viewTo==n.display.viewFrom||l.line>=n.display.viewTo||f.line<n.display.viewFrom){e.removeAllRanges();return}var m=$n(n,e.anchorNode,e.anchorOffset),k=$n(n,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&k&&!k.bad&&Lt(qe(m,k),l)==0&&Lt(Oe(m,k),f)==0)){var U=n.display.view,H=l.line>=n.display.viewFrom&&of(n,l)||{node:U[0].measure.map[2],offset:0},Z=f.line<n.display.viewTo&&of(n,f);if(!Z){var be=U[U.length-1].measure,Ce=be.maps?be.maps[be.maps.length-1]:be.map;Z={node:Ce[Ce.length-1],offset:Ce[Ce.length-2]-Ce[Ce.length-3]}}if(!H||!Z){e.removeAllRanges();return}var Ne=e.rangeCount&&e.getRangeAt(0),ke;try{ke=fe(H.node,H.offset,Z.offset,Z.node)}catch(Ye){}ke&&(!c&&n.state.focused?(e.collapse(H.node,H.offset),ke.collapsed||(e.removeAllRanges(),e.addRange(ke))):(e.removeAllRanges(),e.addRange(ke)),Ne&&e.anchorNode==null?e.addRange(Ne):c&&this.startGracePeriod()),this.rememberSelection()}},Wt.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Wt.prototype.showMultipleSelections=function(e){xe(this.cm.display.cursorDiv,e.cursors),xe(this.cm.display.selectionDiv,e.selection)},Wt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Wt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return se(this.div,n)},Wt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Fe()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Wt.prototype.blur=function(){this.div.blur()},Wt.prototype.getField=function(){return this.div},Wt.prototype.supportsTouch=function(){return!0},Wt.prototype.receivedFocus=function(){var e=this,n=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Ur(this.cm,function(){return n.cm.curOp.selectionChanged=!0});function u(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},Wt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Wt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),n=this.cm;if(X&&D&&this.cm.display.gutterSpecs.length&&uo(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=$n(n,e.anchorNode,e.anchorOffset),l=$n(n,e.focusNode,e.focusOffset);u&&l&&Ur(n,function(){Zr(n.doc,Li(u,l),ut),(u.bad||l.bad)&&(n.curOp.selectionChanged=!0)})}}},Wt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,n=e.display,u=e.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>e.firstLine()&&(l=at(l.line-1,Ot(e.doc,l.line-1).length)),f.ch==Ot(e.doc,f.line).text.length&&f.line<e.lastLine()&&(f=at(f.line+1,0)),l.line<n.viewFrom||f.line>n.viewTo-1)return!1;var m,k,U;l.line==n.viewFrom||(m=Zi(e,l.line))==0?(k=Zt(n.view[0].line),U=n.view[0].node):(k=Zt(n.view[m].line),U=n.view[m-1].node.nextSibling);var H=Zi(e,f.line),Z,be;if(H==n.view.length-1?(Z=n.viewTo-1,be=n.lineDiv.lastChild):(Z=Zt(n.view[H+1].line)-1,be=n.view[H+1].node.previousSibling),!U)return!1;for(var Ce=e.doc.splitLines(sf(e,U,be,k,Z)),Ne=oi(e.doc,at(k,0),at(Z,Ot(e.doc,Z).text.length));Ce.length>1&&Ne.length>1;)if(Et(Ce)==Et(Ne))Ce.pop(),Ne.pop(),Z--;else if(Ce[0]==Ne[0])Ce.shift(),Ne.shift(),k++;else break;for(var ke=0,Ye=0,tt=Ce[0],ot=Ne[0],ct=Math.min(tt.length,ot.length);ke<ct&&tt.charCodeAt(ke)==ot.charCodeAt(ke);)++ke;for(var yt=Et(Ce),dt=Et(Ne),bt=Math.min(yt.length-(Ce.length==1?ke:0),dt.length-(Ne.length==1?ke:0));Ye<bt&&yt.charCodeAt(yt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)++Ye;if(Ce.length==1&&Ne.length==1&&k==l.line)for(;ke&&ke>l.ch&&yt.charCodeAt(yt.length-Ye-1)==dt.charCodeAt(dt.length-Ye-1);)ke--,Ye++;Ce[Ce.length-1]=yt.slice(0,yt.length-Ye).replace(/^\u200b+/,""),Ce[0]=Ce[0].slice(ke).replace(/\u200b+$/,"");var Ft=at(k,ke),It=at(Z,Ne.length?Et(Ne).length-Ye:0);if(Ce.length>1||Ce[0]||Lt(Ft,It))return ya(e.doc,Ce,Ft,It,"+input"),!0},Wt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Wt.prototype.reset=function(){this.forceCompositionEnd()},Wt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Wt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Wt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ur(this.cm,function(){return Mr(e.cm)})},Wt.prototype.setUneditable=function(e){e.contentEditable="false"},Wt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||jr(this.cm,xl)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Wt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Wt.prototype.onContextMenu=function(){},Wt.prototype.resetPosition=function(){},Wt.prototype.needsContentAttribute=!0;function of(e,n){var u=Ds(e,n.line);if(!u||u.hidden)return null;var l=Ot(e.doc,n.line),f=Ls(u,l,n.line),m=O(l,e.doc.direction),k="left";if(m){var U=K(m,n.ch);k=U%2?"right":"left"}var H=Ns(f.map,n.ch,k);return H.offset=H.collapse=="right"?H.end:H.start,H}function uo(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function Tn(e,n){return n&&(e.bad=!0),e}function sf(e,n,u,l,f){var m="",k=!1,U=e.doc.lineSeparator(),H=!1;function Z(ke){return function(Ye){return Ye.id==ke}}function be(){k&&(m+=U,H&&(m+=U),k=H=!1)}function Ce(ke){ke&&(be(),m+=ke)}function Ne(ke){if(ke.nodeType==1){var Ye=ke.getAttribute("cm-text");if(Ye){Ce(Ye);return}var tt=ke.getAttribute("cm-marker"),ot;if(tt){var ct=e.findMarks(at(l,0),at(f+1,0),Z(+tt));ct.length&&(ot=ct[0].find(0))&&Ce(oi(e.doc,ot.from,ot.to).join(U));return}if(ke.getAttribute("contenteditable")=="false")return;var yt=/^(pre|div|p|li|table|br)$/i.test(ke.nodeName);if(!/^br$/i.test(ke.nodeName)&&ke.textContent.length==0)return;yt&&be();for(var dt=0;dt<ke.childNodes.length;dt++)Ne(ke.childNodes[dt]);/^(pre|p)$/i.test(ke.nodeName)&&(H=!0),yt&&(k=!0)}else ke.nodeType==3&&Ce(ke.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ne(n),n!=u;)n=n.nextSibling,H=!1;return m}function $n(e,n,u){var l;if(n==e.display.lineDiv){if(l=e.display.lineDiv.childNodes[u],!l)return Tn(e.clipPos(at(e.display.viewTo-1)),!0);n=null,u=0}else for(l=n;;l=l.parentNode){if(!l||l==e.display.lineDiv)return null;if(l.parentNode&&l.parentNode==e.display.lineDiv)break}for(var f=0;f<e.display.view.length;f++){var m=e.display.view[f];if(m.node==l)return Lc(m,n,u)}}function Lc(e,n,u){var l=e.text.firstChild,f=!1;if(!n||!se(l,n))return Tn(at(Zt(e.line),0),!0);if(n==l&&(f=!0,n=l.childNodes[u],u=0,!n)){var m=e.rest?Et(e.rest):e.line;return Tn(at(Zt(m),m.text.length),f)}var k=n.nodeType==3?n:null,U=n;for(!k&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(k=n.firstChild,u&&(u=k.nodeValue.length));U.parentNode!=l;)U=U.parentNode;var H=e.measure,Z=H.maps;function be(ot,ct,yt){for(var dt=-1;dt<(Z?Z.length:0);dt++)for(var bt=dt<0?H.map:Z[dt],Ft=0;Ft<bt.length;Ft+=3){var It=bt[Ft+2];if(It==ot||It==ct){var it=Zt(dt<0?e.line:e.rest[dt]),Tt=bt[Ft]+yt;return(yt<0||It!=ot)&&(Tt=bt[Ft+(yt?1:0)]),at(it,Tt)}}}var Ce=be(k,U,u);if(Ce)return Tn(Ce,f);for(var Ne=U.nextSibling,ke=k?k.nodeValue.length-u:0;Ne;Ne=Ne.nextSibling){if(Ce=be(Ne,Ne.firstChild,0),Ce)return Tn(at(Ce.line,Ce.ch-ke),f);ke+=Ne.textContent.length}for(var Ye=U.previousSibling,tt=u;Ye;Ye=Ye.previousSibling){if(Ce=be(Ye,Ye.firstChild,-1),Ce)return Tn(at(Ce.line,Ce.ch+tt),f);tt+=Ye.textContent.length}}var wr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new ft,this.hasSelection=!1,this.composing=null};wr.prototype.init=function(e){var n=this,u=this,l=this.cm;this.createField(e);var f=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),M&&(f.style.width="0px"),N(f,"input",function(){b&&S>=9&&n.hasSelection&&(n.hasSelection=null),u.poll()}),N(f,"paste",function(k){pe(l,k)||rf(k,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(k){if(!pe(l,k)){if(l.somethingSelected())lo({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var U=af(l);lo({lineWise:!0,text:U.text}),k.type=="cut"?l.setSelections(U.ranges,null,ut):(u.prevInput="",f.value=U.text.join(`
|
|
37
|
+
`),Pe(f))}else return;k.type=="cut"&&(l.state.cutIncoming=+new Date)}}N(f,"cut",m),N(f,"copy",m),N(e.scroller,"paste",function(k){if(!(fi(e,k)||pe(l,k))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var U=new Event("paste");U.clipboardData=k.clipboardData,f.dispatchEvent(U)}}),N(e.lineSpace,"selectstart",function(k){fi(e,k)||Qe(k)}),N(f,"compositionstart",function(){var k=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:k,range:l.markText(k,l.getCursor("to"),{className:"CodeMirror-composing"})}}),N(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},wr.prototype.createField=function(e){this.wrapper=Mc(),this.textarea=this.wrapper.firstChild},wr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},wr.prototype.prepareSelection=function(){var e=this.cm,n=e.display,u=e.doc,l=Po(e);if(e.options.moveInputWithCursor){var f=zn(e,u.sel.primary().head,"div"),m=n.wrapper.getBoundingClientRect(),k=n.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+k.top-m.top)),l.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+k.left-m.left))}return l},wr.prototype.showSelection=function(e){var n=this.cm,u=n.display;xe(u.cursorDiv,e.cursors),xe(u.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},wr.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var n=this.cm;if(n.somethingSelected()){this.prevInput="";var u=n.getSelection();this.textarea.value=u,n.state.focused&&Pe(this.textarea),b&&S>=9&&(this.hasSelection=u)}else e||(this.prevInput=this.textarea.value="",b&&S>=9&&(this.hasSelection=null))}},wr.prototype.getField=function(){return this.textarea},wr.prototype.supportsTouch=function(){return!1},wr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!R||Fe()!=this.textarea))try{this.textarea.focus()}catch(e){}},wr.prototype.blur=function(){this.textarea.blur()},wr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},wr.prototype.receivedFocus=function(){this.slowPoll()},wr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},wr.prototype.fastPoll=function(){var e=!1,n=this;n.pollingFast=!0;function u(){var l=n.poll();!l&&!e?(e=!0,n.polling.set(60,u)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,u)},wr.prototype.poll=function(){var e=this,n=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||!n.state.focused||vn(u)&&!l&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var f=u.value;if(f==l&&!n.somethingSelected())return!1;if(b&&S>=9&&this.hasSelection===f||C&&/[\uf700-\uf7ff]/.test(f))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var m=f.charCodeAt(0);if(m==8203&&!l&&(l="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var k=0,U=Math.min(l.length,f.length);k<U&&l.charCodeAt(k)==f.charCodeAt(k);)++k;return Ur(n,function(){xl(n,f.slice(k),l.length-k,null,e.composing?"*compose":null),f.length>1e3||f.indexOf(`
|
|
38
|
+
`)>-1?u.value=e.prevInput="":e.prevInput=f,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},wr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},wr.prototype.onKeyPress=function(){b&&S>=9&&(this.hasSelection=null),this.fastPoll()},wr.prototype.onContextMenu=function(e){var n=this,u=n.cm,l=u.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var m=Qi(u,e),k=l.scroller.scrollTop;if(!m||B)return;var U=u.options.resetSelectionOnContextMenu;U&&u.doc.sel.contains(m)==-1&&jr(u,Zr)(u.doc,Li(m),ut);var H=f.style.cssText,Z=n.wrapper.style.cssText,be=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
39
|
+
top: `+(e.clientY-be.top-5)+"px; left: "+(e.clientX-be.left-5)+`px;
|
|
40
40
|
z-index: 1000; background: `+(b?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
41
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ce;g&&(Ce=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ce),l.input.reset(),u.somethingSelected()||(f.value=i.prevInput=" "),i.contextMenuPending=ke,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function De(){if(f.selectionStart!=null){var tt=u.somethingSelected(),ot="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=ot,i.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=ot.length,l.selForContextMenu=u.doc.sel}}function ke(){if(i.contextMenuPending==ke&&(i.contextMenuPending=!1,i.wrapper.style.cssText=Z,f.style.cssText=H,b&&S<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=F),f.selectionStart!=null)){(!b||b&&S<9)&&De();var tt=0,ot=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&i.prevInput=="\u200B"?Vr(u,Yo)(u):tt++<10?l.detectingSelectAll=setTimeout(ot,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ot,200)}}if(b&&S>=9&&De(),Y){Bt(e);var Ye=function(){de(window,"mouseup",Ye),setTimeout(ke,20)};N(window,"mouseup",Ye)}else setTimeout(ke,50)},Sr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Sr.prototype.setUneditable=function(){},Sr.prototype.needsContentAttribute=!1;function Nc(e,i){if(i=i?Ze(i):{},i.value=e.value,!i.tabindex&&e.tabIndex&&(i.tabindex=e.tabIndex),!i.placeholder&&e.placeholder&&(i.placeholder=e.placeholder),i.autofocus==null){var u=Fe();i.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(N(e.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=e.form;f=m.submit;try{var F=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=F}}catch(H){}}i.finishInit=function(H){H.save=l,H.getTextArea=function(){return e},H.toTextArea=function(){H.toTextArea=isNaN,l(),e.parentNode.removeChild(H.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=pr(function(H){return e.parentNode.insertBefore(H,e.nextSibling)},i);return U}function lf(e){e.off=de,e.on=N,e.wheelEventPixels=rr,e.Doc=ln,e.splitLines=Nn,e.countColumn=Xe,e.findColumn=pt,e.isWordChar=ve,e.Pass=nt,e.signal=ae,e.Line=Hi,e.changeEnd=Mi,e.scrollbarModel=gn,e.Pos=it,e.cmpPos=Lt,e.modes=Si,e.mimeModes=en,e.resolveMode=Un,e.getMode=vn,e.modeExtensions=Xn,e.extendMode=Ai,e.copyState=Ur,e.startState=Qn,e.innerMode=Kr,e.commands=io,e.keyMap=ri,e.keyName=zu,e.isModifierKey=Hu,e.lookupKey=hi,e.normalizeKeyMap=kd,e.StringStream=fr,e.SharedTextMarker=ba,e.TextMarker=ti,e.LineWidget=eo,e.e_preventDefault=Qe,e.e_stopPropagation=vt,e.e_stop=Bt,e.addClass=Le,e.contains=oe,e.rmClass=ee,e.keyNames=mn}tf(pr),Lc(pr);var Bc="iter insert remove copy getEditor constructor".split(" ");for(var as in ln.prototype)ln.prototype.hasOwnProperty(as)&&ht(Bc,as)<0&&(pr.prototype[as]=function(e){return function(){return e.apply(this.doc,arguments)}}(ln.prototype[as]));return Ue(ln),pr.inputStyles={textarea:Sr,contenteditable:Wt},pr.defineMode=function(e){!pr.defaults.mode&&e!="null"&&(pr.defaults.mode=e),hn.apply(this,arguments)},pr.defineMIME=Bn,pr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),pr.defineMIME("text/plain","null"),pr.defineExtension=function(e,i){pr.prototype[e]=i},pr.defineDocExtension=function(e,i){ln.prototype[e]=i},pr.fromTextArea=Nc,lf(pr),pr.version="5.65.0",pr})},96876:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,S=x.jsonld,g=x.json||S,L=x.trackScope!==!1,D=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function le(Or){return{type:Or,style:"keyword"}}var Oe=le("keyword a"),qe=le("keyword b"),st=le("keyword c"),lt=le("keyword d"),Kt=le("operator"),Xt={type:"atom",style:"atom"};return{if:le("if"),while:Oe,with:Oe,else:qe,do:qe,try:qe,finally:qe,return:lt,break:lt,continue:lt,new:le("new"),delete:st,void:st,throw:st,debugger:le("debugger"),var:le("var"),const:le("var"),let:le("var"),function:le("function"),catch:le("catch"),for:le("for"),switch:le("switch"),case:le("case"),default:le("default"),in:Kt,typeof:Kt,instanceof:Kt,true:Xt,false:Xt,null:Xt,undefined:Xt,NaN:Xt,Infinity:Xt,this:le("this"),class:le("class"),super:le("atom"),yield:st,export:le("export"),import:le("import"),extends:st,await:st}}(),q=/[+\-*&%=<>!?|~^@]/,W=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(le){for(var Oe=!1,qe,st=!1;(qe=le.next())!=null;){if(!Oe){if(qe=="/"&&!st)return;qe=="["?st=!0:st&&qe=="]"&&(st=!1)}Oe=!Oe&&qe=="\\"}}var X,R;function C(le,Oe,qe){return X=le,R=qe,Oe}function V(le,Oe){var qe=le.next();if(qe=='"'||qe=="'")return Oe.tokenize=J(qe),Oe.tokenize(le,Oe);if(qe=="."&&le.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(qe=="."&&le.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(qe))return C(qe);if(qe=="="&&le.eat(">"))return C("=>","operator");if(qe=="0"&&le.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(qe))return le.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(qe=="/")return le.eat("*")?(Oe.tokenize=_,_(le,Oe)):le.eat("/")?(le.skipToEnd(),C("comment","comment")):oi(le,Oe,1)?(M(le),le.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(le.eat("="),C("operator","operator",le.current()));if(qe=="`")return Oe.tokenize=Q,Q(le,Oe);if(qe=="#"&&le.peek()=="!")return le.skipToEnd(),C("meta","meta");if(qe=="#"&&le.eatWhile(B))return C("variable","property");if(qe=="<"&&le.match("!--")||qe=="-"&&le.match("->")&&!/\S/.test(le.string.slice(0,le.start)))return le.skipToEnd(),C("comment","comment");if(q.test(qe))return(qe!=">"||!Oe.lexical||Oe.lexical.type!=">")&&(le.eat("=")?(qe=="!"||qe=="=")&&le.eat("="):/[<>*+\-|&?]/.test(qe)&&(le.eat(qe),qe==">"&&le.eat(qe))),qe=="?"&&le.eat(".")?C("."):C("operator","operator",le.current());if(B.test(qe)){le.eatWhile(B);var st=le.current();if(Oe.lastType!="."){if(j.propertyIsEnumerable(st)){var lt=j[st];return C(lt.type,lt.style,st)}if(st=="async"&&le.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",st)}return C("variable","variable",st)}}function J(le){return function(Oe,qe){var st=!1,lt;if(S&&Oe.peek()=="@"&&Oe.match(W))return qe.tokenize=V,C("jsonld-keyword","meta");for(;(lt=Oe.next())!=null&&!(lt==le&&!st);)st=!st&<=="\\";return st||(qe.tokenize=V),C("string","string")}}function _(le,Oe){for(var qe=!1,st;st=le.next();){if(st=="/"&&qe){Oe.tokenize=V;break}qe=st=="*"}return C("comment","comment")}function Q(le,Oe){for(var qe=!1,st;(st=le.next())!=null;){if(!qe&&(st=="`"||st=="$"&&le.eat("{"))){Oe.tokenize=V;break}qe=!qe&&st=="\\"}return C("quasi","string-2",le.current())}var Y="([{}])";function fe(le,Oe){Oe.fatArrowAt&&(Oe.fatArrowAt=null);var qe=le.string.indexOf("=>",le.start);if(!(qe<0)){if(D){var st=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(le.string.slice(le.start,qe));st&&(qe=st.index)}for(var lt=0,Kt=!1,Xt=qe-1;Xt>=0;--Xt){var Or=le.string.charAt(Xt),Tr=Y.indexOf(Or);if(Tr>=0&&Tr<3){if(!lt){++Xt;break}if(--lt==0){Or=="("&&(Kt=!0);break}}else if(Tr>=3&&Tr<6)++lt;else if(B.test(Or))Kt=!0;else if(/["'\/`]/.test(Or))for(;;--Xt){if(Xt==0)return;var _t=le.string.charAt(Xt-1);if(_t==Or&&le.string.charAt(Xt-2)!="\\"){Xt--;break}}else if(Kt&&!lt){++Xt;break}}Kt&&!lt&&(Oe.fatArrowAt=Xt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(le,Oe,qe,st,lt,Kt){this.indented=le,this.column=Oe,this.type=qe,this.prev=lt,this.info=Kt,st!=null&&(this.align=st)}function ye(le,Oe){if(!L)return!1;for(var qe=le.localVars;qe;qe=qe.next)if(qe.name==Oe)return!0;for(var st=le.context;st;st=st.prev)for(var qe=st.vars;qe;qe=qe.next)if(qe.name==Oe)return!0}function be(le,Oe,qe,st,lt){var Kt=le.cc;for(he.state=le,he.stream=lt,he.marked=null,he.cc=Kt,he.style=Oe,le.lexical.hasOwnProperty("align")||(le.lexical.align=!0);;){var Xt=Kt.length?Kt.pop():g?Mt:mt;if(Xt(qe,st)){for(;Kt.length&&Kt[Kt.length-1].lex;)Kt.pop()();return he.marked?he.marked:qe=="variable"&&ye(le,st)?"variable-2":Oe}}}var he={state:null,column:null,marked:null,cc:null};function ue(){for(var le=arguments.length-1;le>=0;le--)he.cc.push(arguments[le])}function oe(){return ue.apply(null,arguments),!0}function Fe(le,Oe){for(var qe=Oe;qe;qe=qe.next)if(qe.name==le)return!0;return!1}function Le(le){var Oe=he.state;if(he.marked="def",!!L){if(Oe.context){if(Oe.lexical.info=="var"&&Oe.context&&Oe.context.block){var qe=Me(le,Oe.context);if(qe!=null){Oe.context=qe;return}}else if(!Fe(le,Oe.localVars)){Oe.localVars=new Ze(le,Oe.localVars);return}}x.globalVars&&!Fe(le,Oe.globalVars)&&(Oe.globalVars=new Ze(le,Oe.globalVars))}}function Me(le,Oe){if(Oe)if(Oe.block){var qe=Me(le,Oe.prev);return qe?qe==Oe.prev?Oe:new rt(qe,Oe.vars,!0):null}else return Fe(le,Oe.vars)?Oe:new rt(Oe.prev,new Ze(le,Oe.vars),!1);else return null}function Pe(le){return le=="public"||le=="private"||le=="protected"||le=="abstract"||le=="readonly"}function rt(le,Oe,qe){this.prev=le,this.vars=Oe,this.block=qe}function Ze(le,Oe){this.name=le,this.next=Oe}var Xe=new Ze("this",new Ze("arguments",null));function ft(){he.state.context=new rt(he.state.context,he.state.localVars,!1),he.state.localVars=Xe}function ht(){he.state.context=new rt(he.state.context,he.state.localVars,!0),he.state.localVars=null}function bt(){he.state.localVars=he.state.context.vars,he.state.context=he.state.context.prev}bt.lex=!0;function nt(le,Oe){var qe=function(){var st=he.state,lt=st.indented;if(st.lexical.type=="stat")lt=st.lexical.indented;else for(var Kt=st.lexical;Kt&&Kt.type==")"&&Kt.align;Kt=Kt.prev)lt=Kt.indented;st.lexical=new ie(lt,he.stream.column(),le,null,st.lexical,Oe)};return qe.lex=!0,qe}function ut(){var le=he.state;le.lexical.prev&&(le.lexical.type==")"&&(le.indented=le.lexical.indented),le.lexical=le.lexical.prev)}ut.lex=!0;function yt(le){function Oe(qe){return qe==le?oe():le==";"||qe=="}"||qe==")"||qe=="]"?ue():oe(Oe)}return Oe}function mt(le,Oe){return le=="var"?oe(nt("vardef",Oe),bi,yt(";"),ut):le=="keyword a"?oe(nt("form"),Et,mt,ut):le=="keyword b"?oe(nt("form"),mt,ut):le=="keyword d"?he.stream.match(/^\s*$/,!1)?oe():oe(nt("stat"),jt,yt(";"),ut):le=="debugger"?oe(yt(";")):le=="{"?oe(nt("}"),ht,N,ut,bt):le==";"?oe():le=="if"?(he.state.lexical.info=="else"&&he.state.cc[he.state.cc.length-1]==ut&&he.state.cc.pop()(),oe(nt("form"),Et,mt,ut,$r)):le=="function"?oe(hn):le=="for"?oe(nt("form"),ht,wi,mt,bt,ut):le=="class"||D&&Oe=="interface"?(he.marked="keyword",oe(nt("form",le=="class"?le:Oe),Ai,ut)):le=="variable"?D&&Oe=="declare"?(he.marked="keyword",oe(mt)):D&&(Oe=="module"||Oe=="enum"||Oe=="type")&&he.stream.match(/^\s*\w/,!1)?(he.marked="keyword",Oe=="enum"?oe(fa):Oe=="type"?oe(Un,yt("operator"),Ae,yt(";")):oe(nt("form"),Gr,yt("{"),nt("}"),N,ut,ut)):D&&Oe=="namespace"?(he.marked="keyword",oe(nt("form"),Mt,mt,ut)):D&&Oe=="abstract"?(he.marked="keyword",oe(mt)):oe(nt("stat"),Ke):le=="switch"?oe(nt("form"),Et,yt("{"),nt("}","switch"),ht,N,ut,ut,bt):le=="case"?oe(Mt,yt(":")):le=="default"?oe(yt(":")):le=="catch"?oe(nt("form"),ft,pt,mt,ut,bt):le=="export"?oe(nt("stat"),fr,ut):le=="import"?oe(nt("stat"),ai,ut):le=="async"?oe(mt):Oe=="@"?oe(Mt,mt):ue(nt("stat"),Mt,yt(";"),ut)}function pt(le){if(le=="(")return oe(vn,yt(")"))}function Mt(le,Oe){return Ht(le,Oe,!1)}function kt(le,Oe){return Ht(le,Oe,!0)}function Et(le){return le!="("?ue():oe(nt(")"),jt,yt(")"),ut)}function Ht(le,Oe,qe){if(he.state.fatArrowAt==he.stream.start){var st=qe?$:z;if(le=="(")return oe(ft,nt(")"),O(vn,")"),ut,yt("=>"),st,bt);if(le=="variable")return ue(ft,Gr,yt("=>"),st,bt)}var lt=qe?wt:Vt;return ee.hasOwnProperty(le)?oe(lt):le=="function"?oe(hn,lt):le=="class"||D&&Oe=="interface"?(he.marked="keyword",oe(nt("form"),Xn,ut)):le=="keyword c"||le=="async"?oe(qe?kt:Mt):le=="("?oe(nt(")"),jt,yt(")"),ut,lt):le=="operator"||le=="spread"?oe(qe?kt:Mt):le=="["?oe(nt("]"),Zn,ut,lt):le=="{"?se(Re,"}",null,lt):le=="quasi"?ue(Dt,lt):le=="new"?oe(Se(qe)):oe()}function jt(le){return le.match(/[;\}\)\],]/)?ue():ue(Mt)}function Vt(le,Oe){return le==","?oe(jt):wt(le,Oe,!1)}function wt(le,Oe,qe){var st=qe==!1?Vt:wt,lt=qe==!1?Mt:kt;if(le=="=>")return oe(ft,qe?$:z,bt);if(le=="operator")return/\+\+|--/.test(Oe)||D&&Oe=="!"?oe(st):D&&Oe=="<"&&he.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?oe(nt(">"),O(Ae,">"),ut,st):Oe=="?"?oe(Mt,yt(":"),lt):oe(lt);if(le=="quasi")return ue(Dt,st);if(le!=";"){if(le=="(")return se(kt,")","call",st);if(le==".")return oe(P,st);if(le=="[")return oe(nt("]"),jt,yt("]"),ut,st);if(D&&Oe=="as")return he.marked="keyword",oe(Ae,st);if(le=="regexp")return he.state.lastType=he.marked="operator",he.stream.backUp(he.stream.pos-he.stream.start-1),oe(lt)}}function Dt(le,Oe){return le!="quasi"?ue():Oe.slice(Oe.length-2)!="${"?oe(Dt):oe(jt,ve)}function ve(le){if(le=="}")return he.marked="string-2",he.state.tokenize=Q,oe(Dt)}function z(le){return fe(he.stream,he.state),ue(le=="{"?mt:Mt)}function $(le){return fe(he.stream,he.state),ue(le=="{"?mt:kt)}function Se(le){return function(Oe){return Oe=="."?oe(le?Ge:Ie):Oe=="variable"&&D?oe(dn,le?wt:Vt):ue(le?kt:Mt)}}function Ie(le,Oe){if(Oe=="target")return he.marked="keyword",oe(Vt)}function Ge(le,Oe){if(Oe=="target")return he.marked="keyword",oe(wt)}function Ke(le){return le==":"?oe(ut,mt):ue(Vt,yt(";"),ut)}function P(le){if(le=="variable")return he.marked="property",oe()}function Re(le,Oe){if(le=="async")return he.marked="property",oe(Re);if(le=="variable"||he.style=="keyword"){if(he.marked="property",Oe=="get"||Oe=="set")return oe(K);var qe;return D&&he.state.fatArrowAt==he.stream.start&&(qe=he.stream.match(/^\s*:\s*/,!1))&&(he.state.fatArrowAt=he.stream.pos+qe[0].length),oe(T)}else{if(le=="number"||le=="string")return he.marked=S?"property":he.style+" property",oe(T);if(le=="jsonld-keyword")return oe(T);if(D&&Pe(Oe))return he.marked="keyword",oe(Re);if(le=="[")return oe(Mt,te,yt("]"),T);if(le=="spread")return oe(kt,T);if(Oe=="*")return he.marked="keyword",oe(Re);if(le==":")return ue(T)}}function K(le){return le!="variable"?ue(T):(he.marked="property",oe(hn))}function T(le){if(le==":")return oe(kt);if(le=="(")return ue(hn)}function O(le,Oe,qe){function st(lt,Kt){if(qe?qe.indexOf(lt)>-1:lt==","){var Xt=he.state.lexical;return Xt.info=="call"&&(Xt.pos=(Xt.pos||0)+1),oe(function(Or,Tr){return Or==Oe||Tr==Oe?ue():ue(le)},st)}return lt==Oe||Kt==Oe?oe():qe&&qe.indexOf(";")>-1?ue(le):oe(yt(Oe))}return function(lt,Kt){return lt==Oe||Kt==Oe?oe():ue(le,st)}}function se(le,Oe,qe){for(var st=3;st<arguments.length;st++)he.cc.push(arguments[st]);return oe(nt(Oe,qe),O(le,Oe),ut)}function N(le){return le=="}"?oe():ue(mt,N)}function te(le,Oe){if(D){if(le==":")return oe(Ae);if(Oe=="?")return oe(te)}}function de(le,Oe){if(D&&(le==":"||Oe=="in"))return oe(Ae)}function ae(le){if(D&&le==":")return he.stream.match(/^\s*\w+\s+is\b/,!1)?oe(Mt,pe,Ae):oe(Ae)}function pe(le,Oe){if(Oe=="is")return he.marked="keyword",oe()}function Ae(le,Oe){if(Oe=="keyof"||Oe=="typeof"||Oe=="infer"||Oe=="readonly")return he.marked="keyword",oe(Oe=="typeof"?kt:Ae);if(le=="variable"||Oe=="void")return he.marked="type",oe(Pt);if(Oe=="|"||Oe=="&")return oe(Ae);if(le=="string"||le=="number"||le=="atom")return oe(Pt);if(le=="[")return oe(nt("]"),O(Ae,"]",","),ut,Pt);if(le=="{")return oe(nt("}"),Ue,ut,Pt);if(le=="(")return oe(O(Bt,")"),Be,Pt);if(le=="<")return oe(O(Ae,">"),Ae);if(le=="quasi")return ue(vt,Pt)}function Be(le){if(le=="=>")return oe(Ae)}function Ue(le){return le.match(/[\}\)\]]/)?oe():le==","||le==";"?oe(Ue):ue(Qe,Ue)}function Qe(le,Oe){if(le=="variable"||he.style=="keyword")return he.marked="property",oe(Qe);if(Oe=="?"||le=="number"||le=="string")return oe(Qe);if(le==":")return oe(Ae);if(le=="[")return oe(yt("variable"),de,yt("]"),Qe);if(le=="(")return ue(Bn,Qe);if(!le.match(/[;\}\)\],]/))return oe()}function vt(le,Oe){return le!="quasi"?ue():Oe.slice(Oe.length-2)!="${"?oe(vt):oe(Ae,At)}function At(le){if(le=="}")return he.marked="string-2",he.state.tokenize=Q,oe(vt)}function Bt(le,Oe){return le=="variable"&&he.stream.match(/^\s*[?:]/,!1)||Oe=="?"?oe(Bt):le==":"?oe(Ae):le=="spread"?oe(Bt):ue(Ae)}function Pt(le,Oe){if(Oe=="<")return oe(nt(">"),O(Ae,">"),ut,Pt);if(Oe=="|"||le=="."||Oe=="&")return oe(Ae);if(le=="[")return oe(Ae,yt("]"),Pt);if(Oe=="extends"||Oe=="implements")return he.marked="keyword",oe(Ae);if(Oe=="?")return oe(Ae,yt(":"),Ae)}function dn(le,Oe){if(Oe=="<")return oe(nt(">"),O(Ae,">"),ut,Pt)}function Br(){return ue(Ae,Cr)}function Cr(le,Oe){if(Oe=="=")return oe(Ae)}function bi(le,Oe){return Oe=="enum"?(he.marked="keyword",oe(fa)):ue(Gr,te,pn,On)}function Gr(le,Oe){if(D&&Pe(Oe))return he.marked="keyword",oe(Gr);if(le=="variable")return Le(Oe),oe();if(le=="spread")return oe(Gr);if(le=="[")return se(Nn,"]");if(le=="{")return se(ji,"}")}function ji(le,Oe){return le=="variable"&&!he.stream.match(/^\s*:/,!1)?(Le(Oe),oe(pn)):(le=="variable"&&(he.marked="property"),le=="spread"?oe(Gr):le=="}"?ue():le=="["?oe(Mt,yt("]"),yt(":"),ji):oe(yt(":"),Gr,pn))}function Nn(){return ue(Gr,pn)}function pn(le,Oe){if(Oe=="=")return oe(kt)}function On(le){if(le==",")return oe(bi)}function $r(le,Oe){if(le=="keyword b"&&Oe=="else")return oe(nt("form","else"),mt,ut)}function wi(le,Oe){if(Oe=="await")return oe(wi);if(le=="(")return oe(nt(")"),Si,ut)}function Si(le){return le=="var"?oe(bi,en):le=="variable"?oe(en):ue(en)}function en(le,Oe){return le==")"?oe():le==";"?oe(en):Oe=="in"||Oe=="of"?(he.marked="keyword",oe(Mt,en)):ue(Mt,en)}function hn(le,Oe){if(Oe=="*")return he.marked="keyword",oe(hn);if(le=="variable")return Le(Oe),oe(hn);if(le=="(")return oe(ft,nt(")"),O(vn,")"),ut,ae,mt,bt);if(D&&Oe=="<")return oe(nt(">"),O(Br,">"),ut,hn)}function Bn(le,Oe){if(Oe=="*")return he.marked="keyword",oe(Bn);if(le=="variable")return Le(Oe),oe(Bn);if(le=="(")return oe(ft,nt(")"),O(vn,")"),ut,ae,bt);if(D&&Oe=="<")return oe(nt(">"),O(Br,">"),ut,Bn)}function Un(le,Oe){if(le=="keyword"||le=="variable")return he.marked="type",oe(Un);if(Oe=="<")return oe(nt(">"),O(Br,">"),ut)}function vn(le,Oe){return Oe=="@"&&oe(Mt,vn),le=="spread"?oe(vn):D&&Pe(Oe)?(he.marked="keyword",oe(vn)):D&&le=="this"?oe(te,pn):ue(Gr,te,pn)}function Xn(le,Oe){return le=="variable"?Ai(le,Oe):Ur(le,Oe)}function Ai(le,Oe){if(le=="variable")return Le(Oe),oe(Ur)}function Ur(le,Oe){if(Oe=="<")return oe(nt(">"),O(Br,">"),ut,Ur);if(Oe=="extends"||Oe=="implements"||D&&le==",")return Oe=="implements"&&(he.marked="keyword"),oe(D?Ae:Mt,Ur);if(le=="{")return oe(nt("}"),Kr,ut)}function Kr(le,Oe){if(le=="async"||le=="variable"&&(Oe=="static"||Oe=="get"||Oe=="set"||D&&Pe(Oe))&&he.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return he.marked="keyword",oe(Kr);if(le=="variable"||he.style=="keyword")return he.marked="property",oe(Qn,Kr);if(le=="number"||le=="string")return oe(Qn,Kr);if(le=="[")return oe(Mt,te,yt("]"),Qn,Kr);if(Oe=="*")return he.marked="keyword",oe(Kr);if(D&&le=="(")return ue(Bn,Kr);if(le==";"||le==",")return oe(Kr);if(le=="}")return oe();if(Oe=="@")return oe(Mt,Kr)}function Qn(le,Oe){if(Oe=="!"||Oe=="?")return oe(Qn);if(le==":")return oe(Ae,pn);if(Oe=="=")return oe(kt);var qe=he.state.lexical.prev,st=qe&&qe.info=="interface";return ue(st?Bn:hn)}function fr(le,Oe){return Oe=="*"?(he.marked="keyword",oe(jn,yt(";"))):Oe=="default"?(he.marked="keyword",oe(Mt,yt(";"))):le=="{"?oe(O(Ot,"}"),jn,yt(";")):ue(mt)}function Ot(le,Oe){if(Oe=="as")return he.marked="keyword",oe(yt("variable"));if(le=="variable")return ue(kt,Ot)}function ai(le){return le=="string"?oe():le=="("?ue(Mt):le=="."?ue(Vt):ue(Ei,Sn,jn)}function Ei(le,Oe){return le=="{"?se(Ei,"}"):(le=="variable"&&Le(Oe),Oe=="*"&&(he.marked="keyword"),oe(Zt))}function Sn(le){if(le==",")return oe(Ei,Sn)}function Zt(le,Oe){if(Oe=="as")return he.marked="keyword",oe(Ei)}function jn(le,Oe){if(Oe=="from")return he.marked="keyword",oe(Mt)}function Zn(le){return le=="]"?oe():ue(O(kt,"]"))}function fa(){return ue(nt("form"),Gr,yt("{"),nt("}"),O(it,"}"),ut,ut)}function it(){return ue(Gr,pn)}function Lt(le,Oe){return le.lastType=="operator"||le.lastType==","||q.test(Oe.charAt(0))||/[,.]/.test(Oe.charAt(0))}function oi(le,Oe,qe){return Oe.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Oe.lastType)||Oe.lastType=="quasi"&&/\{\s*$/.test(le.string.slice(0,le.pos-(qe||0)))}return{startState:function(le){var Oe={tokenize:V,lastType:"sof",cc:[],lexical:new ie((le||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:le||0};return x.globalVars&&typeof x.globalVars=="object"&&(Oe.globalVars=x.globalVars),Oe},token:function(le,Oe){if(le.sol()&&(Oe.lexical.hasOwnProperty("align")||(Oe.lexical.align=!1),Oe.indented=le.indentation(),fe(le,Oe)),Oe.tokenize!=_&&le.eatSpace())return null;var qe=Oe.tokenize(le,Oe);return X=="comment"?qe:(Oe.lastType=X=="operator"&&(R=="++"||R=="--")?"incdec":X,be(Oe,qe,X,R,le))},indent:function(le,Oe){if(le.tokenize==_||le.tokenize==Q)return c.Pass;if(le.tokenize!=V)return 0;var qe=Oe&&Oe.charAt(0),st=le.lexical,lt;if(!/^\s*else\b/.test(Oe))for(var Kt=le.cc.length-1;Kt>=0;--Kt){var Xt=le.cc[Kt];if(Xt==ut)st=st.prev;else if(Xt!=$r&&Xt!=bt)break}for(;(st.type=="stat"||st.type=="form")&&(qe=="}"||(lt=le.cc[le.cc.length-1])&&(lt==Vt||lt==wt)&&!/^[,\.=+\-*:?[\(]/.test(Oe));)st=st.prev;b&&st.type==")"&&st.prev.type=="stat"&&(st=st.prev);var Or=st.type,Tr=qe==Or;return Or=="vardef"?st.indented+(le.lastType=="operator"||le.lastType==","?st.info.length+1:0):Or=="form"&&qe=="{"?st.indented:Or=="form"?st.indented+d:Or=="stat"?st.indented+(Lt(le,Oe)?b||d:0):st.info=="switch"&&!Tr&&x.doubleIndentSwitch!=!1?st.indented+(/^(?:case|default)\b/.test(Oe)?d:2*d):st.align?st.column+(Tr?0:1):st.indented+(Tr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:S,jsonMode:g,expressionAllowed:oi,skipExpression:function(le){be(le,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(h,I)=>{"use strict";/*!
|
|
41
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ce;g&&(Ce=window.scrollY),l.input.focus(),g&&window.scrollTo(null,Ce),l.input.reset(),u.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=ke,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function Ne(){if(f.selectionStart!=null){var tt=u.somethingSelected(),ot="\u200B"+(tt?f.value:"");f.value="\u21DA",f.value=ot,n.prevInput=tt?"":"\u200B",f.selectionStart=1,f.selectionEnd=ot.length,l.selForContextMenu=u.doc.sel}}function ke(){if(n.contextMenuPending==ke&&(n.contextMenuPending=!1,n.wrapper.style.cssText=Z,f.style.cssText=H,b&&S<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=k),f.selectionStart!=null)){(!b||b&&S<9)&&Ne();var tt=0,ot=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?jr(u,$o)(u):tt++<10?l.detectingSelectAll=setTimeout(ot,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ot,200)}}if(b&&S>=9&&Ne(),Y){Bt(e);var Ye=function(){de(window,"mouseup",Ye),setTimeout(ke,20)};N(window,"mouseup",Ye)}else setTimeout(ke,50)},wr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},wr.prototype.setUneditable=function(){},wr.prototype.needsContentAttribute=!1;function Dc(e,n){if(n=n?Ze(n):{},n.value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var u=Fe();n.autofocus=u==e||e.getAttribute("autofocus")!=null&&u==document.body}function l(){e.value=U.getValue()}var f;if(e.form&&(N(e.form,"submit",l),!n.leaveSubmitMethodAlone)){var m=e.form;f=m.submit;try{var k=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=k}}catch(H){}}n.finishInit=function(H){H.save=l,H.getTextArea=function(){return e},H.toTextArea=function(){H.toTextArea=isNaN,l(),e.parentNode.removeChild(H.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",l),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=f))}},e.style.display="none";var U=hr(function(H){return e.parentNode.insertBefore(H,e.nextSibling)},n);return U}function lf(e){e.off=de,e.on=N,e.wheelEventPixels=rr,e.Doc=un,e.splitLines=Bn,e.countColumn=Xe,e.findColumn=pt,e.isWordChar=ve,e.Pass=nt,e.signal=ae,e.Line=Gi,e.changeEnd=Di,e.scrollbarModel=mn,e.Pos=at,e.cmpPos=Lt,e.modes=Ci,e.mimeModes=en,e.resolveMode=jn,e.getMode=yn,e.modeExtensions=Xn,e.extendMode=Oi,e.copyState=Br,e.startState=Qn,e.innerMode=Kr,e.commands=io,e.keyMap=ri,e.keyName=zu,e.isModifierKey=Hu,e.lookupKey=vi,e.normalizeKeyMap=Td,e.StringStream=fr,e.SharedTextMarker=ba,e.TextMarker=ti,e.LineWidget=eo,e.e_preventDefault=Qe,e.e_stopPropagation=vt,e.e_stop=Bt,e.addClass=Le,e.contains=se,e.rmClass=ee,e.keyNames=bn}tf(hr),Rc(hr);var Nc="iter insert remove copy getEditor constructor".split(" ");for(var ns in un.prototype)un.prototype.hasOwnProperty(ns)&&ht(Nc,ns)<0&&(hr.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(un.prototype[ns]));return je(un),hr.inputStyles={textarea:wr,contenteditable:Wt},hr.defineMode=function(e){!hr.defaults.mode&&e!="null"&&(hr.defaults.mode=e),gn.apply(this,arguments)},hr.defineMIME=Un,hr.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),hr.defineMIME("text/plain","null"),hr.defineExtension=function(e,n){hr.prototype[e]=n},hr.defineDocExtension=function(e,n){un.prototype[e]=n},hr.fromTextArea=Dc,lf(hr),hr.version="5.65.0",hr})},96876:(h,I,a)=>{(function(c){c(a(4631))})(function(c){"use strict";c.defineMode("javascript",function(v,x){var d=v.indentUnit,b=x.statementIndent,S=x.jsonld,g=x.json||S,L=x.trackScope!==!1,D=x.typescript,B=x.wordCharacters||/[\w$\xa1-\uffff]/,j=function(){function ue(Or){return{type:Or,style:"keyword"}}var Oe=ue("keyword a"),qe=ue("keyword b"),st=ue("keyword c"),lt=ue("keyword d"),Kt=ue("operator"),Xt={type:"atom",style:"atom"};return{if:ue("if"),while:Oe,with:Oe,else:qe,do:qe,try:qe,finally:qe,return:lt,break:lt,continue:lt,new:ue("new"),delete:st,void:st,throw:st,debugger:ue("debugger"),var:ue("var"),const:ue("var"),let:ue("var"),function:ue("function"),catch:ue("catch"),for:ue("for"),switch:ue("switch"),case:ue("case"),default:ue("default"),in:Kt,typeof:Kt,instanceof:Kt,true:Xt,false:Xt,null:Xt,undefined:Xt,NaN:Xt,Infinity:Xt,this:ue("this"),class:ue("class"),super:ue("atom"),yield:st,export:ue("export"),import:ue("import"),extends:st,await:st}}(),q=/[+\-*&%=<>!?|~^@]/,W=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function M(ue){for(var Oe=!1,qe,st=!1;(qe=ue.next())!=null;){if(!Oe){if(qe=="/"&&!st)return;qe=="["?st=!0:st&&qe=="]"&&(st=!1)}Oe=!Oe&&qe=="\\"}}var X,R;function C(ue,Oe,qe){return X=ue,R=qe,Oe}function V(ue,Oe){var qe=ue.next();if(qe=='"'||qe=="'")return Oe.tokenize=J(qe),Oe.tokenize(ue,Oe);if(qe=="."&&ue.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return C("number","number");if(qe=="."&&ue.match(".."))return C("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(qe))return C(qe);if(qe=="="&&ue.eat(">"))return C("=>","operator");if(qe=="0"&&ue.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return C("number","number");if(/\d/.test(qe))return ue.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),C("number","number");if(qe=="/")return ue.eat("*")?(Oe.tokenize=_,_(ue,Oe)):ue.eat("/")?(ue.skipToEnd(),C("comment","comment")):si(ue,Oe,1)?(M(ue),ue.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),C("regexp","string-2")):(ue.eat("="),C("operator","operator",ue.current()));if(qe=="`")return Oe.tokenize=Q,Q(ue,Oe);if(qe=="#"&&ue.peek()=="!")return ue.skipToEnd(),C("meta","meta");if(qe=="#"&&ue.eatWhile(B))return C("variable","property");if(qe=="<"&&ue.match("!--")||qe=="-"&&ue.match("->")&&!/\S/.test(ue.string.slice(0,ue.start)))return ue.skipToEnd(),C("comment","comment");if(q.test(qe))return(qe!=">"||!Oe.lexical||Oe.lexical.type!=">")&&(ue.eat("=")?(qe=="!"||qe=="=")&&ue.eat("="):/[<>*+\-|&?]/.test(qe)&&(ue.eat(qe),qe==">"&&ue.eat(qe))),qe=="?"&&ue.eat(".")?C("."):C("operator","operator",ue.current());if(B.test(qe)){ue.eatWhile(B);var st=ue.current();if(Oe.lastType!="."){if(j.propertyIsEnumerable(st)){var lt=j[st];return C(lt.type,lt.style,st)}if(st=="async"&&ue.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return C("async","keyword",st)}return C("variable","variable",st)}}function J(ue){return function(Oe,qe){var st=!1,lt;if(S&&Oe.peek()=="@"&&Oe.match(W))return qe.tokenize=V,C("jsonld-keyword","meta");for(;(lt=Oe.next())!=null&&!(lt==ue&&!st);)st=!st&<=="\\";return st||(qe.tokenize=V),C("string","string")}}function _(ue,Oe){for(var qe=!1,st;st=ue.next();){if(st=="/"&&qe){Oe.tokenize=V;break}qe=st=="*"}return C("comment","comment")}function Q(ue,Oe){for(var qe=!1,st;(st=ue.next())!=null;){if(!qe&&(st=="`"||st=="$"&&ue.eat("{"))){Oe.tokenize=V;break}qe=!qe&&st=="\\"}return C("quasi","string-2",ue.current())}var Y="([{}])";function ce(ue,Oe){Oe.fatArrowAt&&(Oe.fatArrowAt=null);var qe=ue.string.indexOf("=>",ue.start);if(!(qe<0)){if(D){var st=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ue.string.slice(ue.start,qe));st&&(qe=st.index)}for(var lt=0,Kt=!1,Xt=qe-1;Xt>=0;--Xt){var Or=ue.string.charAt(Xt),Tr=Y.indexOf(Or);if(Tr>=0&&Tr<3){if(!lt){++Xt;break}if(--lt==0){Or=="("&&(Kt=!0);break}}else if(Tr>=3&&Tr<6)++lt;else if(B.test(Or))Kt=!0;else if(/["'\/`]/.test(Or))for(;;--Xt){if(Xt==0)return;var _t=ue.string.charAt(Xt-1);if(_t==Or&&ue.string.charAt(Xt-2)!="\\"){Xt--;break}}else if(Kt&&!lt){++Xt;break}}Kt&&!lt&&(Oe.fatArrowAt=Xt)}}var ee={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ie(ue,Oe,qe,st,lt,Kt){this.indented=ue,this.column=Oe,this.type=qe,this.prev=lt,this.info=Kt,st!=null&&(this.align=st)}function xe(ue,Oe){if(!L)return!1;for(var qe=ue.localVars;qe;qe=qe.next)if(qe.name==Oe)return!0;for(var st=ue.context;st;st=st.prev)for(var qe=st.vars;qe;qe=qe.next)if(qe.name==Oe)return!0}function we(ue,Oe,qe,st,lt){var Kt=ue.cc;for(he.state=ue,he.stream=lt,he.marked=null,he.cc=Kt,he.style=Oe,ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!0);;){var Xt=Kt.length?Kt.pop():g?Mt:xt;if(Xt(qe,st)){for(;Kt.length&&Kt[Kt.length-1].lex;)Kt.pop()();return he.marked?he.marked:qe=="variable"&&xe(ue,st)?"variable-2":Oe}}}var he={state:null,column:null,marked:null,cc:null};function fe(){for(var ue=arguments.length-1;ue>=0;ue--)he.cc.push(arguments[ue])}function se(){return fe.apply(null,arguments),!0}function Fe(ue,Oe){for(var qe=Oe;qe;qe=qe.next)if(qe.name==ue)return!0;return!1}function Le(ue){var Oe=he.state;if(he.marked="def",!!L){if(Oe.context){if(Oe.lexical.info=="var"&&Oe.context&&Oe.context.block){var qe=Me(ue,Oe.context);if(qe!=null){Oe.context=qe;return}}else if(!Fe(ue,Oe.localVars)){Oe.localVars=new Ze(ue,Oe.localVars);return}}x.globalVars&&!Fe(ue,Oe.globalVars)&&(Oe.globalVars=new Ze(ue,Oe.globalVars))}}function Me(ue,Oe){if(Oe)if(Oe.block){var qe=Me(ue,Oe.prev);return qe?qe==Oe.prev?Oe:new rt(qe,Oe.vars,!0):null}else return Fe(ue,Oe.vars)?Oe:new rt(Oe.prev,new Ze(ue,Oe.vars),!1);else return null}function Pe(ue){return ue=="public"||ue=="private"||ue=="protected"||ue=="abstract"||ue=="readonly"}function rt(ue,Oe,qe){this.prev=ue,this.vars=Oe,this.block=qe}function Ze(ue,Oe){this.name=ue,this.next=Oe}var Xe=new Ze("this",new Ze("arguments",null));function ft(){he.state.context=new rt(he.state.context,he.state.localVars,!1),he.state.localVars=Xe}function ht(){he.state.context=new rt(he.state.context,he.state.localVars,!0),he.state.localVars=null}function wt(){he.state.localVars=he.state.context.vars,he.state.context=he.state.context.prev}wt.lex=!0;function nt(ue,Oe){var qe=function(){var st=he.state,lt=st.indented;if(st.lexical.type=="stat")lt=st.lexical.indented;else for(var Kt=st.lexical;Kt&&Kt.type==")"&&Kt.align;Kt=Kt.prev)lt=Kt.indented;st.lexical=new ie(lt,he.stream.column(),ue,null,st.lexical,Oe)};return qe.lex=!0,qe}function ut(){var ue=he.state;ue.lexical.prev&&(ue.lexical.type==")"&&(ue.indented=ue.lexical.indented),ue.lexical=ue.lexical.prev)}ut.lex=!0;function mt(ue){function Oe(qe){return qe==ue?se():ue==";"||qe=="}"||qe==")"||qe=="]"?fe():se(Oe)}return Oe}function xt(ue,Oe){return ue=="var"?se(nt("vardef",Oe),Ai,mt(";"),ut):ue=="keyword a"?se(nt("form"),Et,xt,ut):ue=="keyword b"?se(nt("form"),xt,ut):ue=="keyword d"?he.stream.match(/^\s*$/,!1)?se():se(nt("stat"),jt,mt(";"),ut):ue=="debugger"?se(mt(";")):ue=="{"?se(nt("}"),ht,N,ut,wt):ue==";"?se():ue=="if"?(he.state.lexical.info=="else"&&he.state.cc[he.state.cc.length-1]==ut&&he.state.cc.pop()(),se(nt("form"),Et,xt,ut,$r)):ue=="function"?se(gn):ue=="for"?se(nt("form"),ht,Ei,xt,wt,ut):ue=="class"||D&&Oe=="interface"?(he.marked="keyword",se(nt("form",ue=="class"?ue:Oe),Oi,ut)):ue=="variable"?D&&Oe=="declare"?(he.marked="keyword",se(xt)):D&&(Oe=="module"||Oe=="enum"||Oe=="type")&&he.stream.match(/^\s*\w/,!1)?(he.marked="keyword",Oe=="enum"?se(fa):Oe=="type"?se(jn,mt("operator"),Ee,mt(";")):se(nt("form"),Gr,mt("{"),nt("}"),N,ut,ut)):D&&Oe=="namespace"?(he.marked="keyword",se(nt("form"),Mt,xt,ut)):D&&Oe=="abstract"?(he.marked="keyword",se(xt)):se(nt("stat"),Ke):ue=="switch"?se(nt("form"),Et,mt("{"),nt("}","switch"),ht,N,ut,ut,wt):ue=="case"?se(Mt,mt(":")):ue=="default"?se(mt(":")):ue=="catch"?se(nt("form"),ft,pt,xt,ut,wt):ue=="export"?se(nt("stat"),fr,ut):ue=="import"?se(nt("stat"),oi,ut):ue=="async"?se(xt):Oe=="@"?se(Mt,xt):fe(nt("stat"),Mt,mt(";"),ut)}function pt(ue){if(ue=="(")return se(yn,mt(")"))}function Mt(ue,Oe){return zt(ue,Oe,!1)}function kt(ue,Oe){return zt(ue,Oe,!0)}function Et(ue){return ue!="("?fe():se(nt(")"),jt,mt(")"),ut)}function zt(ue,Oe,qe){if(he.state.fatArrowAt==he.stream.start){var st=qe?$:z;if(ue=="(")return se(ft,nt(")"),O(yn,")"),ut,mt("=>"),st,wt);if(ue=="variable")return fe(ft,Gr,mt("=>"),st,wt)}var lt=qe?St:Vt;return ee.hasOwnProperty(ue)?se(lt):ue=="function"?se(gn,lt):ue=="class"||D&&Oe=="interface"?(he.marked="keyword",se(nt("form"),Xn,ut)):ue=="keyword c"||ue=="async"?se(qe?kt:Mt):ue=="("?se(nt(")"),jt,mt(")"),ut,lt):ue=="operator"||ue=="spread"?se(qe?kt:Mt):ue=="["?se(nt("]"),Zn,ut,lt):ue=="{"?le(Re,"}",null,lt):ue=="quasi"?fe(Dt,lt):ue=="new"?se(Se(qe)):se()}function jt(ue){return ue.match(/[;\}\)\],]/)?fe():fe(Mt)}function Vt(ue,Oe){return ue==","?se(jt):St(ue,Oe,!1)}function St(ue,Oe,qe){var st=qe==!1?Vt:St,lt=qe==!1?Mt:kt;if(ue=="=>")return se(ft,qe?$:z,wt);if(ue=="operator")return/\+\+|--/.test(Oe)||D&&Oe=="!"?se(st):D&&Oe=="<"&&he.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?se(nt(">"),O(Ee,">"),ut,st):Oe=="?"?se(Mt,mt(":"),lt):se(lt);if(ue=="quasi")return fe(Dt,st);if(ue!=";"){if(ue=="(")return le(kt,")","call",st);if(ue==".")return se(P,st);if(ue=="[")return se(nt("]"),jt,mt("]"),ut,st);if(D&&Oe=="as")return he.marked="keyword",se(Ee,st);if(ue=="regexp")return he.state.lastType=he.marked="operator",he.stream.backUp(he.stream.pos-he.stream.start-1),se(lt)}}function Dt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?se(Dt):se(jt,ve)}function ve(ue){if(ue=="}")return he.marked="string-2",he.state.tokenize=Q,se(Dt)}function z(ue){return ce(he.stream,he.state),fe(ue=="{"?xt:Mt)}function $(ue){return ce(he.stream,he.state),fe(ue=="{"?xt:kt)}function Se(ue){return function(Oe){return Oe=="."?se(ue?Ge:Ie):Oe=="variable"&&D?se(hn,ue?St:Vt):fe(ue?kt:Mt)}}function Ie(ue,Oe){if(Oe=="target")return he.marked="keyword",se(Vt)}function Ge(ue,Oe){if(Oe=="target")return he.marked="keyword",se(St)}function Ke(ue){return ue==":"?se(ut,xt):fe(Vt,mt(";"),ut)}function P(ue){if(ue=="variable")return he.marked="property",se()}function Re(ue,Oe){if(ue=="async")return he.marked="property",se(Re);if(ue=="variable"||he.style=="keyword"){if(he.marked="property",Oe=="get"||Oe=="set")return se(K);var qe;return D&&he.state.fatArrowAt==he.stream.start&&(qe=he.stream.match(/^\s*:\s*/,!1))&&(he.state.fatArrowAt=he.stream.pos+qe[0].length),se(T)}else{if(ue=="number"||ue=="string")return he.marked=S?"property":he.style+" property",se(T);if(ue=="jsonld-keyword")return se(T);if(D&&Pe(Oe))return he.marked="keyword",se(Re);if(ue=="[")return se(Mt,re,mt("]"),T);if(ue=="spread")return se(kt,T);if(Oe=="*")return he.marked="keyword",se(Re);if(ue==":")return fe(T)}}function K(ue){return ue!="variable"?fe(T):(he.marked="property",se(gn))}function T(ue){if(ue==":")return se(kt);if(ue=="(")return fe(gn)}function O(ue,Oe,qe){function st(lt,Kt){if(qe?qe.indexOf(lt)>-1:lt==","){var Xt=he.state.lexical;return Xt.info=="call"&&(Xt.pos=(Xt.pos||0)+1),se(function(Or,Tr){return Or==Oe||Tr==Oe?fe():fe(ue)},st)}return lt==Oe||Kt==Oe?se():qe&&qe.indexOf(";")>-1?fe(ue):se(mt(Oe))}return function(lt,Kt){return lt==Oe||Kt==Oe?se():fe(ue,st)}}function le(ue,Oe,qe){for(var st=3;st<arguments.length;st++)he.cc.push(arguments[st]);return se(nt(Oe,qe),O(ue,Oe),ut)}function N(ue){return ue=="}"?se():fe(xt,N)}function re(ue,Oe){if(D){if(ue==":")return se(Ee);if(Oe=="?")return se(re)}}function de(ue,Oe){if(D&&(ue==":"||Oe=="in"))return se(Ee)}function ae(ue){if(D&&ue==":")return he.stream.match(/^\s*\w+\s+is\b/,!1)?se(Mt,pe,Ee):se(Ee)}function pe(ue,Oe){if(Oe=="is")return he.marked="keyword",se()}function Ee(ue,Oe){if(Oe=="keyof"||Oe=="typeof"||Oe=="infer"||Oe=="readonly")return he.marked="keyword",se(Oe=="typeof"?kt:Ee);if(ue=="variable"||Oe=="void")return he.marked="type",se(Pt);if(Oe=="|"||Oe=="&")return se(Ee);if(ue=="string"||ue=="number"||ue=="atom")return se(Pt);if(ue=="[")return se(nt("]"),O(Ee,"]",","),ut,Pt);if(ue=="{")return se(nt("}"),je,ut,Pt);if(ue=="(")return se(O(Bt,")"),Ue,Pt);if(ue=="<")return se(O(Ee,">"),Ee);if(ue=="quasi")return fe(vt,Pt)}function Ue(ue){if(ue=="=>")return se(Ee)}function je(ue){return ue.match(/[\}\)\]]/)?se():ue==","||ue==";"?se(je):fe(Qe,je)}function Qe(ue,Oe){if(ue=="variable"||he.style=="keyword")return he.marked="property",se(Qe);if(Oe=="?"||ue=="number"||ue=="string")return se(Qe);if(ue==":")return se(Ee);if(ue=="[")return se(mt("variable"),de,mt("]"),Qe);if(ue=="(")return fe(Un,Qe);if(!ue.match(/[;\}\)\],]/))return se()}function vt(ue,Oe){return ue!="quasi"?fe():Oe.slice(Oe.length-2)!="${"?se(vt):se(Ee,At)}function At(ue){if(ue=="}")return he.marked="string-2",he.state.tokenize=Q,se(vt)}function Bt(ue,Oe){return ue=="variable"&&he.stream.match(/^\s*[?:]/,!1)||Oe=="?"?se(Bt):ue==":"?se(Ee):ue=="spread"?se(Bt):fe(Ee)}function Pt(ue,Oe){if(Oe=="<")return se(nt(">"),O(Ee,">"),ut,Pt);if(Oe=="|"||ue=="."||Oe=="&")return se(Ee);if(ue=="[")return se(Ee,mt("]"),Pt);if(Oe=="extends"||Oe=="implements")return he.marked="keyword",se(Ee);if(Oe=="?")return se(Ee,mt(":"),Ee)}function hn(ue,Oe){if(Oe=="<")return se(nt(">"),O(Ee,">"),ut,Pt)}function Nr(){return fe(Ee,Cr)}function Cr(ue,Oe){if(Oe=="=")return se(Ee)}function Ai(ue,Oe){return Oe=="enum"?(he.marked="keyword",se(fa)):fe(Gr,re,vn,Pn)}function Gr(ue,Oe){if(D&&Pe(Oe))return he.marked="keyword",se(Gr);if(ue=="variable")return Le(Oe),se();if(ue=="spread")return se(Gr);if(ue=="[")return le(Bn,"]");if(ue=="{")return le(Wi,"}")}function Wi(ue,Oe){return ue=="variable"&&!he.stream.match(/^\s*:/,!1)?(Le(Oe),se(vn)):(ue=="variable"&&(he.marked="property"),ue=="spread"?se(Gr):ue=="}"?fe():ue=="["?se(Mt,mt("]"),mt(":"),Wi):se(mt(":"),Gr,vn))}function Bn(){return fe(Gr,vn)}function vn(ue,Oe){if(Oe=="=")return se(kt)}function Pn(ue){if(ue==",")return se(Ai)}function $r(ue,Oe){if(ue=="keyword b"&&Oe=="else")return se(nt("form","else"),xt,ut)}function Ei(ue,Oe){if(Oe=="await")return se(Ei);if(ue=="(")return se(nt(")"),Ci,ut)}function Ci(ue){return ue=="var"?se(Ai,en):ue=="variable"?se(en):fe(en)}function en(ue,Oe){return ue==")"?se():ue==";"?se(en):Oe=="in"||Oe=="of"?(he.marked="keyword",se(Mt,en)):fe(Mt,en)}function gn(ue,Oe){if(Oe=="*")return he.marked="keyword",se(gn);if(ue=="variable")return Le(Oe),se(gn);if(ue=="(")return se(ft,nt(")"),O(yn,")"),ut,ae,xt,wt);if(D&&Oe=="<")return se(nt(">"),O(Nr,">"),ut,gn)}function Un(ue,Oe){if(Oe=="*")return he.marked="keyword",se(Un);if(ue=="variable")return Le(Oe),se(Un);if(ue=="(")return se(ft,nt(")"),O(yn,")"),ut,ae,wt);if(D&&Oe=="<")return se(nt(">"),O(Nr,">"),ut,Un)}function jn(ue,Oe){if(ue=="keyword"||ue=="variable")return he.marked="type",se(jn);if(Oe=="<")return se(nt(">"),O(Nr,">"),ut)}function yn(ue,Oe){return Oe=="@"&&se(Mt,yn),ue=="spread"?se(yn):D&&Pe(Oe)?(he.marked="keyword",se(yn)):D&&ue=="this"?se(re,vn):fe(Gr,re,vn)}function Xn(ue,Oe){return ue=="variable"?Oi(ue,Oe):Br(ue,Oe)}function Oi(ue,Oe){if(ue=="variable")return Le(Oe),se(Br)}function Br(ue,Oe){if(Oe=="<")return se(nt(">"),O(Nr,">"),ut,Br);if(Oe=="extends"||Oe=="implements"||D&&ue==",")return Oe=="implements"&&(he.marked="keyword"),se(D?Ee:Mt,Br);if(ue=="{")return se(nt("}"),Kr,ut)}function Kr(ue,Oe){if(ue=="async"||ue=="variable"&&(Oe=="static"||Oe=="get"||Oe=="set"||D&&Pe(Oe))&&he.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return he.marked="keyword",se(Kr);if(ue=="variable"||he.style=="keyword")return he.marked="property",se(Qn,Kr);if(ue=="number"||ue=="string")return se(Qn,Kr);if(ue=="[")return se(Mt,re,mt("]"),Qn,Kr);if(Oe=="*")return he.marked="keyword",se(Kr);if(D&&ue=="(")return fe(Un,Kr);if(ue==";"||ue==",")return se(Kr);if(ue=="}")return se();if(Oe=="@")return se(Mt,Kr)}function Qn(ue,Oe){if(Oe=="!"||Oe=="?")return se(Qn);if(ue==":")return se(Ee,vn);if(Oe=="=")return se(kt);var qe=he.state.lexical.prev,st=qe&&qe.info=="interface";return fe(st?Un:gn)}function fr(ue,Oe){return Oe=="*"?(he.marked="keyword",se(Vn,mt(";"))):Oe=="default"?(he.marked="keyword",se(Mt,mt(";"))):ue=="{"?se(O(Ot,"}"),Vn,mt(";")):fe(xt)}function Ot(ue,Oe){if(Oe=="as")return he.marked="keyword",se(mt("variable"));if(ue=="variable")return fe(kt,Ot)}function oi(ue){return ue=="string"?se():ue=="("?fe(Mt):ue=="."?fe(Vt):fe(Ti,En,Vn)}function Ti(ue,Oe){return ue=="{"?le(Ti,"}"):(ue=="variable"&&Le(Oe),Oe=="*"&&(he.marked="keyword"),se(Zt))}function En(ue){if(ue==",")return se(Ti,En)}function Zt(ue,Oe){if(Oe=="as")return he.marked="keyword",se(Ti)}function Vn(ue,Oe){if(Oe=="from")return he.marked="keyword",se(Mt)}function Zn(ue){return ue=="]"?se():fe(O(kt,"]"))}function fa(){return fe(nt("form"),Gr,mt("{"),nt("}"),O(at,"}"),ut,ut)}function at(){return fe(Gr,vn)}function Lt(ue,Oe){return ue.lastType=="operator"||ue.lastType==","||q.test(Oe.charAt(0))||/[,.]/.test(Oe.charAt(0))}function si(ue,Oe,qe){return Oe.tokenize==V&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Oe.lastType)||Oe.lastType=="quasi"&&/\{\s*$/.test(ue.string.slice(0,ue.pos-(qe||0)))}return{startState:function(ue){var Oe={tokenize:V,lastType:"sof",cc:[],lexical:new ie((ue||0)-d,0,"block",!1),localVars:x.localVars,context:x.localVars&&new rt(null,null,!1),indented:ue||0};return x.globalVars&&typeof x.globalVars=="object"&&(Oe.globalVars=x.globalVars),Oe},token:function(ue,Oe){if(ue.sol()&&(Oe.lexical.hasOwnProperty("align")||(Oe.lexical.align=!1),Oe.indented=ue.indentation(),ce(ue,Oe)),Oe.tokenize!=_&&ue.eatSpace())return null;var qe=Oe.tokenize(ue,Oe);return X=="comment"?qe:(Oe.lastType=X=="operator"&&(R=="++"||R=="--")?"incdec":X,we(Oe,qe,X,R,ue))},indent:function(ue,Oe){if(ue.tokenize==_||ue.tokenize==Q)return c.Pass;if(ue.tokenize!=V)return 0;var qe=Oe&&Oe.charAt(0),st=ue.lexical,lt;if(!/^\s*else\b/.test(Oe))for(var Kt=ue.cc.length-1;Kt>=0;--Kt){var Xt=ue.cc[Kt];if(Xt==ut)st=st.prev;else if(Xt!=$r&&Xt!=wt)break}for(;(st.type=="stat"||st.type=="form")&&(qe=="}"||(lt=ue.cc[ue.cc.length-1])&&(lt==Vt||lt==St)&&!/^[,\.=+\-*:?[\(]/.test(Oe));)st=st.prev;b&&st.type==")"&&st.prev.type=="stat"&&(st=st.prev);var Or=st.type,Tr=qe==Or;return Or=="vardef"?st.indented+(ue.lastType=="operator"||ue.lastType==","?st.info.length+1:0):Or=="form"&&qe=="{"?st.indented:Or=="form"?st.indented+d:Or=="stat"?st.indented+(Lt(ue,Oe)?b||d:0):st.info=="switch"&&!Tr&&x.doubleIndentSwitch!=!1?st.indented+(/^(?:case|default)\b/.test(Oe)?d:2*d):st.align?st.column+(Tr?0:1):st.indented+(Tr?0:d)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:g?null:"/*",blockCommentEnd:g?null:"*/",blockCommentContinue:g?null:" * ",lineComment:g?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:g?"json":"javascript",jsonldMode:S,jsonMode:g,expressionAllowed:si,skipExpression:function(ue){we(ue,"atom","atom","true",new c.StringStream("",2,null))}}}),c.registerHelper("wordChars","javascript",/[\w$]/),c.defineMIME("text/javascript","javascript"),c.defineMIME("text/ecmascript","javascript"),c.defineMIME("application/javascript","javascript"),c.defineMIME("application/x-javascript","javascript"),c.defineMIME("application/ecmascript","javascript"),c.defineMIME("application/json",{name:"javascript",json:!0}),c.defineMIME("application/x-json",{name:"javascript",json:!0}),c.defineMIME("application/manifest+json",{name:"javascript",json:!0}),c.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),c.defineMIME("text/typescript",{name:"javascript",typescript:!0}),c.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},76489:(h,I)=>{"use strict";/*!
|
|
42
42
|
* cookie
|
|
43
43
|
* Copyright(c) 2012-2014 Roman Shtylman
|
|
44
44
|
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
45
45
|
* MIT Licensed
|
|
46
|
-
*/I.parse=d,I.serialize=b;var a=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var D={},B=L||{},j=g.split(v),q=B.decode||a,W=0;W<j.length;W++){var M=j[W],X=M.indexOf("=");if(!(X<0)){var R=M.substr(0,X).trim(),C=M.substr(++X,M.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),D[R]==null&&(D[R]=S(C,q))}}return D}function b(g,L,D){var B=D||{},j=B.encode||c;if(typeof j!="function")throw new TypeError("option encode is invalid");if(!x.test(g))throw new TypeError("argument name is invalid");var q=j(L);if(q&&!x.test(q))throw new TypeError("argument val is invalid");var W=g+"="+q;if(B.maxAge!=null){var M=B.maxAge-0;if(isNaN(M)||!isFinite(M))throw new TypeError("option maxAge is invalid");W+="; Max-Age="+Math.floor(M)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");W+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");W+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");W+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(W+="; HttpOnly"),B.secure&&(W+="; Secure"),B.sameSite){var X=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(X){case!0:W+="; SameSite=Strict";break;case"lax":W+="; SameSite=Lax";break;case"strict":W+="; SameSite=Strict";break;case"none":W+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return W}function S(g,L){try{return L(g)}catch(D){return g}}},54493:(h,I,a)=>{a(77971),a(53242);var c=a(54058);h.exports=c.Array.from},24034:(h,I,a)=>{a(92737);var c=a(54058);h.exports=c.Array.isArray},15367:(h,I,a)=>{a(85906);var c=a(35703);h.exports=c("Array").concat},12710:(h,I,a)=>{a(66274);var c=a(35703);h.exports=c("Array").entries},62383:(h,I,a)=>{a(21501);var c=a(35703);h.exports=c("Array").filter},17671:(h,I,a)=>{a(80833);var c=a(35703);h.exports=c("Array").find},99324:(h,I,a)=>{a(2437);var c=a(35703);h.exports=c("Array").forEach},80991:(h,I,a)=>{a(97690);var c=a(35703);h.exports=c("Array").includes},8700:(h,I,a)=>{a(99076);var c=a(35703);h.exports=c("Array").indexOf},23866:(h,I,a)=>{a(68787);var c=a(35703);h.exports=c("Array").map},24900:(h,I,a)=>{a(60186);var c=a(35703);h.exports=c("Array").slice},78209:(h,I,a)=>{a(98611);var c=a(35703);h.exports=c("Array").splice},56043:(h,I,a)=>{var c=a(15367),v=Array.prototype;h.exports=function(x){var d=x.concat;return x===v||x instanceof Array&&d===v.concat?c:d}},2480:(h,I,a)=>{var c=a(62383),v=Array.prototype;h.exports=function(x){var d=x.filter;return x===v||x instanceof Array&&d===v.filter?c:d}},32236:(h,I,a)=>{var c=a(17671),v=Array.prototype;h.exports=function(x){var d=x.find;return x===v||x instanceof Array&&d===v.find?c:d}},58557:(h,I,a)=>{var c=a(80991),v=a(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var S=b.includes;return b===x||b instanceof Array&&S===x.includes?c:typeof b=="string"||b===d||b instanceof String&&S===d.includes?v:S}},34570:(h,I,a)=>{var c=a(8700),v=Array.prototype;h.exports=function(x){var d=x.indexOf;return x===v||x instanceof Array&&d===v.indexOf?c:d}},88287:(h,I,a)=>{var c=a(23866),v=Array.prototype;h.exports=function(x){var d=x.map;return x===v||x instanceof Array&&d===v.map?c:d}},69601:(h,I,a)=>{var c=a(24900),v=Array.prototype;h.exports=function(x){var d=x.slice;return x===v||x instanceof Array&&d===v.slice?c:d}},18339:(h,I,a)=>{var c=a(78209),v=Array.prototype;h.exports=function(x){var d=x.splice;return x===v||x instanceof Array&&d===v.splice?c:d}},84426:(h,I,a)=>{a(32619);var c=a(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,a)=>{a(49221);var c=a(54058);h.exports=c.Object.assign},35254:(h,I,a)=>{a(53882);var c=a(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,a)=>{a(74979);var c=a(54058),v=c.Object,x=h.exports=function(b,S){return v.defineProperties(b,S)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,a)=>{a(86450);var c=a(54058),v=c.Object,x=h.exports=function(b,S,g){return v.defineProperty(b,S,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,a)=>{a(21078);var c=a(54058);h.exports=c.Object.entries},286:(h,I,a)=>{a(46924);var c=a(54058),v=c.Object,x=h.exports=function(b,S){return v.getOwnPropertyDescriptor(b,S)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,a)=>{a(88482);var c=a(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,a)=>{a(35824);var c=a(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,a)=>{a(17405);var c=a(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,a)=>{a(21724);var c=a(54058);h.exports=c.Object.keys},3065:(h,I,a)=>{a(90108);var c=a(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,a)=>{a(47627),a(55967),a(98881),a(4560),a(91302),a(4808),a(77971),a(7634);var c=a(54058);h.exports=c.Promise},14983:(h,I,a)=>{a(7453);var c=a(54058);h.exports=c.Reflect.construct},37095:(h,I,a)=>{a(42355);var c=a(54058);h.exports=c.Reflect.get},21631:(h,I,a)=>{a(11035);var c=a(35703);h.exports=c("String").includes},57473:(h,I,a)=>{a(85906),a(55967),a(35824),a(8555),a(52615),a(21732),a(35903),a(1825),a(28394),a(45915),a(61766),a(62737),a(89911),a(74315),a(63131),a(64714),a(70659),a(69120),a(79413),a(1502);var c=a(54058);h.exports=c.Symbol},24227:(h,I,a)=>{a(1825),a(77971),a(7634);var c=a(11477);h.exports=c.f("iterator")},32304:(h,I,a)=>{a(55967),a(54334),a(7634);var c=a(54058);h.exports=c.WeakMap},27385:(h,I,a)=>{var c=a(54493);h.exports=c},81522:(h,I,a)=>{var c=a(24034);h.exports=c},32209:(h,I,a)=>{a(7634),a(77971);var c=a(22902);h.exports=c},44442:(h,I,a)=>{var c=a(2480);h.exports=c},57152:(h,I,a)=>{var c=a(46279);h.exports=c},69447:(h,I,a)=>{var c=a(34570);h.exports=c},81493:(h,I,a)=>{var c=a(69601);h.exports=c},76094:(h,I,a)=>{var c=a(35254);h.exports=c},70573:(h,I,a)=>{var c=a(7702);h.exports=c},73685:(h,I,a)=>{var c=a(48171);h.exports=c},27533:(h,I,a)=>{var c=a(286);h.exports=c},39057:(h,I,a)=>{var c=a(92766);h.exports=c},84710:(h,I,a)=>{var c=a(30498);h.exports=c},74303:(h,I,a)=>{var c=a(13966);h.exports=c},93799:(h,I,a)=>{var c=a(48494);h.exports=c},55122:(h,I,a)=>{var c=a(3065);h.exports=c},29531:(h,I,a)=>{var c=a(52956);a(89731),a(55708),a(30014),a(88731),h.exports=c},10856:(h,I,a)=>{var c=a(14983);h.exports=c},31524:(h,I,a)=>{var c=a(37095);h.exports=c},86600:(h,I,a)=>{var c=a(57473);a(28783),a(43975),a(65799),a(45414),a(46774),a(80620),a(36172),h.exports=c},9759:(h,I,a)=>{var c=a(24227);h.exports=c},33916:h=>{h.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:h=>{h.exports=function(){}},5743:h=>{h.exports=function(I,a,c){if(!(I instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,a)=>{"use strict";var c=a(3610).forEach,v=a(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,a)=>{"use strict";var c=a(86843),v=a(89678),x=a(75196),d=a(6782),b=a(43057),S=a(55449),g=a(22902);h.exports=function(D){var B=v(D),j=typeof this=="function"?this:Array,q=arguments.length,W=q>1?arguments[1]:void 0,M=W!==void 0,X=g(B),R=0,C,V,J,_,Q,Y;if(M&&(W=c(W,q>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&d(X)))for(_=X.call(B),Q=_.next,V=new j;!(J=Q.call(_)).done;R++)Y=M?x(_,W,[J.value,R],!0):J.value,S(V,R,Y);else for(C=b(B.length),V=new j(C);C>R;R++)Y=M?W(B[R],R):B[R],S(V,R,Y);return V.length=R,V}},31692:(h,I,a)=>{var c=a(74529),v=a(43057),x=a(59413),d=function(b){return function(S,g,L){var D=c(S),B=v(D.length),j=x(L,B),q;if(b&&g!=g){for(;B>j;)if(q=D[j++],q!=q)return!0}else for(;B>j;j++)if((b||j in D)&&D[j]===g)return b||j||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,a)=>{var c=a(86843),v=a(37026),x=a(89678),d=a(43057),b=a(64692),S=[].push,g=function(L){var D=L==1,B=L==2,j=L==3,q=L==4,W=L==6,M=L==7,X=L==5||W;return function(R,C,V,J){for(var _=x(R),Q=v(_),Y=c(C,V,3),fe=d(Q.length),ee=0,ie=J||b,ye=D?ie(R,fe):B||M?ie(R,0):void 0,be,he;fe>ee;ee++)if((X||ee in Q)&&(be=Q[ee],he=Y(be,ee,_),L))if(D)ye[ee]=he;else if(he)switch(L){case 3:return!0;case 5:return be;case 6:return ee;case 2:S.call(ye,be)}else switch(L){case 4:return!1;case 7:S.call(ye,be)}return W?-1:j||q?q:ye}};h.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},50568:(h,I,a)=>{var c=a(95981),v=a(99813),x=a(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var S=[],g=S.constructor={};return g[d]=function(){return{foo:1}},S[b](Boolean).foo!==1})}},34194:(h,I,a)=>{"use strict";var c=a(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,a)=>{var c=a(10941),v=a(1052),x=a(99813),d=x("species");h.exports=function(b,S){var g;return v(b)&&(g=b.constructor,typeof g=="function"&&(g===Array||v(g.prototype))?g=void 0:c(g)&&(g=g[d],g===null&&(g=void 0))),new(g===void 0?Array:g)(S===0?0:S)}},75196:(h,I,a)=>{var c=a(96059),v=a(7609);h.exports=function(x,d,b,S){try{return S?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,a)=>{var c=a(99813),v=c("iterator"),x=!1;try{var d=0,b={next:function(){return{done:!!d++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(S){}h.exports=function(S,g){if(!g&&!x)return!1;var L=!1;try{var D={};D[v]=function(){return{next:function(){return{done:L=!0}}}},S(D)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(a){return I.call(a).slice(8,-1)}},9697:(h,I,a)=>{var c=a(22885),v=a(82532),x=a(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",S=function(g,L){try{return g[L]}catch(D){}};h.exports=c?v:function(g){var L,D,B;return g===void 0?"Undefined":g===null?"Null":typeof(D=S(L=Object(g),d))=="string"?D:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,a)=>{"use strict";var c=a(87524),v=a(21647).getWeakData,x=a(96059),d=a(10941),b=a(5743),S=a(93091),g=a(3610),L=a(47457),D=a(45402),B=D.set,j=D.getterFor,q=g.find,W=g.findIndex,M=0,X=function(V){return V.frozen||(V.frozen=new R)},R=function(){this.entries=[]},C=function(V,J){return q(V.entries,function(_){return _[0]===J})};R.prototype={get:function(V){var J=C(this,V);if(J)return J[1]},has:function(V){return!!C(this,V)},set:function(V,J){var _=C(this,V);_?_[1]=J:this.entries.push([V,J])},delete:function(V){var J=W(this.entries,function(_){return _[0]===V});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(V,J,_,Q){var Y=V(function(ie,ye){b(ie,Y,J),B(ie,{type:J,id:M++,frozen:void 0}),ye!=null&&S(ye,ie[Q],{that:ie,AS_ENTRIES:_})}),fe=j(J),ee=function(ie,ye,be){var he=fe(ie),ue=v(x(ye),!0);return ue===!0?X(he).set(ye,be):ue[he.id]=be,ie};return c(Y.prototype,{delete:function(ie){var ye=fe(this);if(!d(ie))return!1;var be=v(ie);return be===!0?X(ye).delete(ie):be&&L(be,ye.id)&&delete be[ye.id]},has:function(ye){var be=fe(this);if(!d(ye))return!1;var he=v(ye);return he===!0?X(be).has(ye):he&&L(he,be.id)}}),c(Y.prototype,_?{get:function(ye){var be=fe(this);if(d(ye)){var he=v(ye);return he===!0?X(be).get(ye):he?he[be.id]:void 0}},set:function(ye,be){return ee(this,ye,be)}}:{add:function(ye){return ee(this,ye,!0)}}),Y}}},24683:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(21647),d=a(95981),b=a(32029),S=a(93091),g=a(5743),L=a(10941),D=a(90904),B=a(65988).f,j=a(3610).forEach,q=a(55746),W=a(45402),M=W.set,X=W.getterFor;h.exports=function(R,C,V){var J=R.indexOf("Map")!==-1,_=R.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[R],fe=Y&&Y.prototype,ee={},ie;if(!q||typeof Y!="function"||!(_||fe.forEach&&!d(function(){new Y().entries().next()})))ie=V.getConstructor(C,R,J,Q),x.REQUIRED=!0;else{ie=C(function(be,he){M(g(be,ie,R),{type:R,collection:new Y}),he!=null&&S(he,be[Q],{that:be,AS_ENTRIES:J})});var ye=X(R);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(be){var he=be=="add"||be=="set";be in fe&&!(_&&be=="clear")&&b(ie.prototype,be,function(ue,oe){var Fe=ye(this).collection;if(!he&&_&&!L(ue))return be=="get"?void 0:!1;var Le=Fe[be](ue===0?0:ue,oe);return he?this:Le})}),_||B(ie.prototype,"size",{configurable:!0,get:function(){return ye(this).collection.size}})}return D(ie,R,!1,!0),ee[R]=ie,c({global:!0,forced:!0},ee),_||V.setStrong(ie,R,J),ie}},67772:(h,I,a)=>{var c=a(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(S){}}return!1}},64160:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,a)=>{"use strict";var c=a(35143).IteratorPrototype,v=a(29290),x=a(31887),d=a(90904),b=a(12077),S=function(){return this};h.exports=function(g,L,D){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,D)}),d(g,B,!1,!0),b[B]=S,g}},32029:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(31887);h.exports=c?function(d,b,S){return v.f(d,b,x(1,S))}:function(d,b,S){return d[b]=S,d}},31887:h=>{h.exports=function(I,a){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:a}}},55449:(h,I,a)=>{"use strict";var c=a(46935),v=a(65988),x=a(31887);h.exports=function(d,b,S){var g=c(b);g in d?v.f(d,g,x(0,S)):d[g]=S}},47771:(h,I,a)=>{"use strict";var c=a(76887),v=a(31046),x=a(249),d=a(88929),b=a(90904),S=a(32029),g=a(99754),L=a(99813),D=a(82529),B=a(12077),j=a(35143),q=j.IteratorPrototype,W=j.BUGGY_SAFARI_ITERATORS,M=L("iterator"),X="keys",R="values",C="entries",V=function(){return this};h.exports=function(J,_,Q,Y,fe,ee,ie){v(Q,_,Y);var ye=function(Ze){if(Ze===fe&&Fe)return Fe;if(!W&&Ze in ue)return ue[Ze];switch(Ze){case X:return function(){return new Q(this,Ze)};case R:return function(){return new Q(this,Ze)};case C:return function(){return new Q(this,Ze)}}return function(){return new Q(this)}},be=_+" Iterator",he=!1,ue=J.prototype,oe=ue[M]||ue["@@iterator"]||fe&&ue[fe],Fe=!W&&oe||ye(fe),Le=_=="Array"&&ue.entries||oe,Me,Pe,rt;if(Le&&(Me=x(Le.call(new J)),q!==Object.prototype&&Me.next&&(!D&&x(Me)!==q&&(d?d(Me,q):typeof Me[M]!="function"&&S(Me,M,V)),b(Me,be,!0,!0),D&&(B[be]=V))),fe==R&&oe&&oe.name!==R&&(he=!0,Fe=function(){return oe.call(this)}),(!D||ie)&&ue[M]!==Fe&&S(ue,M,Fe),B[_]=Fe,fe)if(Pe={values:ye(R),keys:ee?Fe:ye(X),entries:ye(C)},ie)for(rt in Pe)(W||he||!(rt in ue))&&g(ue,rt,Pe[rt]);else c({target:_,proto:!0,forced:W||he},Pe);return Pe}},66349:(h,I,a)=>{var c=a(54058),v=a(47457),x=a(11477),d=a(65988).f;h.exports=function(b){var S=c.Symbol||(c.Symbol={});v(S,b)||d(S,b,{value:x.f(b)})}},55746:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,a)=>{var c=a(21899),v=a(10941),x=c.document,d=v(x)&&v(x.createElement);h.exports=function(b){return d?x.createElement(b):{}}},63281:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:h=>{h.exports=typeof window=="object"},22749:(h,I,a)=>{var c=a(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,a)=>{var c=a(82532),v=a(21899);h.exports=c(v.process)=="process"},58045:(h,I,a)=>{var c=a(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,a)=>{var c=a(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,a)=>{var c=a(21899),v=a(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,S,g;b?(S=b.split("."),g=S[0]<4?1:S[0]+S[1]):v&&(S=v.match(/Edge\/(\d+)/),(!S||S[1]>=74)&&(S=v.match(/Chrome\/(\d+)/),S&&(g=S[1]))),h.exports=g&&+g},35703:(h,I,a)=>{var c=a(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,a)=>{"use strict";var c=a(21899),v=a(49677).f,x=a(37252),d=a(54058),b=a(86843),S=a(32029),g=a(47457),L=function(D){var B=function(j,q,W){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(j);case 2:return new D(j,q)}return new D(j,q,W)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};h.exports=function(D,B){var j=D.target,q=D.global,W=D.stat,M=D.proto,X=q?c:W?c[j]:(c[j]||{}).prototype,R=q?d:d[j]||(d[j]={}),C=R.prototype,V,J,_,Q,Y,fe,ee,ie,ye;for(Q in B)V=x(q?Q:j+(W?".":"#")+Q,D.forced),J=!V&&X&&g(X,Q),fe=R[Q],J&&(D.noTargetGet?(ye=v(X,Q),ee=ye&&ye.value):ee=X[Q]),Y=J&&ee?ee:B[Q],!(J&&typeof fe==typeof Y)&&(D.bind&&J?ie=b(Y,c):D.wrap&&J?ie=L(Y):M&&typeof Y=="function"?ie=b(Function.call,Y):ie=Y,(D.sham||Y&&Y.sham||fe&&fe.sham)&&S(ie,"sham",!0),R[Q]=ie,M&&(_=j+"Prototype",g(d,_)||S(d,_,{}),d[_][Q]=Y,D.real&&C&&!C[Q]&&S(C,Q,Y)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(a){return!0}}},45602:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,a)=>{var c=a(33916);h.exports=function(v,x,d){if(c(v),x===void 0)return v;switch(d){case 0:return function(){return v.call(x)};case 1:return function(b){return v.call(x,b)};case 2:return function(b,S){return v.call(x,b,S)};case 3:return function(b,S,g){return v.call(x,b,S,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,a)=>{"use strict";var c=a(33916),v=a(10941),x=[].slice,d={},b=function(S,g,L){if(!(g in d)){for(var D=[],B=0;B<g;B++)D[B]="a["+B+"]";d[g]=Function("C,a","return new C("+D.join(",")+")")}return d[g](S,L)};h.exports=Function.bind||function(g){var L=c(this),D=x.call(arguments,1),B=function(){var q=D.concat(x.call(arguments));return this instanceof B?b(L,q.length,q):L.apply(g,q)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,a)=>{var c=a(54058),v=a(21899),x=function(d){return typeof d=="function"?d:void 0};h.exports=function(d,b){return arguments.length<2?x(c[d])||x(v[d]):c[d]&&c[d][b]||v[d]&&v[d][b]}},22902:(h,I,a)=>{var c=a(9697),v=a(12077),x=a(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,a)=>{var c=function(v){return v&&v.Math==Math&&v};h.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},47457:(h,I,a)=>{var c=a(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,a)=>{var c=a(21899);h.exports=function(v,x){var d=c.console;d&&d.error&&(arguments.length===1?d.error(v):d.error(v,x))}},15463:(h,I,a)=>{var c=a(626);h.exports=c("document","documentElement")},2840:(h,I,a)=>{var c=a(55746),v=a(95981),x=a(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,a)=>{var c=a(95981),v=a(82532),x="".split;h.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return v(d)=="String"?x.call(d,""):Object(d)}:Object},81302:(h,I,a)=>{var c=a(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,a)=>{var c=a(27748),v=a(10941),x=a(47457),d=a(65988).f,b=a(99418),S=a(45602),g=b("meta"),L=0,D=Object.isExtensible||function(){return!0},B=function(X){d(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,R){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!D(X))return"F";if(!R)return"E";B(X)}return X[g].objectID},q=function(X,R){if(!x(X,g)){if(!D(X))return!0;if(!R)return!1;B(X)}return X[g].weakData},W=function(X){return S&&M.REQUIRED&&D(X)&&!x(X,g)&&B(X),X},M=h.exports={REQUIRED:!1,fastKey:j,getWeakData:q,onFreeze:W};c[g]=!0},45402:(h,I,a)=>{var c=a(38019),v=a(21899),x=a(10941),d=a(32029),b=a(47457),S=a(63030),g=a(44262),L=a(27748),D="Object already initialized",B=v.WeakMap,j,q,W,M=function(Q){return W(Q)?q(Q):j(Q,{})},X=function(Q){return function(Y){var fe;if(!x(Y)||(fe=q(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return fe}};if(c||S.state){var R=S.state||(S.state=new B),C=R.get,V=R.has,J=R.set;j=function(Q,Y){if(V.call(R,Q))throw new TypeError(D);return Y.facade=Q,J.call(R,Q,Y),Y},q=function(Q){return C.call(R,Q)||{}},W=function(Q){return V.call(R,Q)}}else{var _=g("state");L[_]=!0,j=function(Q,Y){if(b(Q,_))throw new TypeError(D);return Y.facade=Q,d(Q,_,Y),Y},q=function(Q){return b(Q,_)?Q[_]:{}},W=function(Q){return b(Q,_)}}h.exports={set:j,get:q,has:W,enforce:M,getterFor:X}},6782:(h,I,a)=>{var c=a(99813),v=a(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,a)=>{var c=a(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,a)=>{var c=a(95981),v=/#|\.prototype\./,x=function(L,D){var B=b[d(L)];return B==g?!0:B==S?!1:typeof D=="function"?c(D):!!D},d=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},S=x.NATIVE="N",g=x.POLYFILL="P";h.exports=x},10941:h=>{h.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:h=>{h.exports=!0},60685:(h,I,a)=>{var c=a(10941),v=a(82532),x=a(99813),d=x("match");h.exports=function(b){var S;return c(b)&&((S=b[d])!==void 0?!!S:v(b)=="RegExp")}},93091:(h,I,a)=>{var c=a(96059),v=a(6782),x=a(43057),d=a(86843),b=a(22902),S=a(7609),g=function(L,D){this.stopped=L,this.result=D};h.exports=function(L,D,B){var j=B&&B.that,q=!!(B&&B.AS_ENTRIES),W=!!(B&&B.IS_ITERATOR),M=!!(B&&B.INTERRUPTED),X=d(D,j,1+q+M),R,C,V,J,_,Q,Y,fe=function(ie){return R&&S(R),new g(!0,ie)},ee=function(ie){return q?(c(ie),M?X(ie[0],ie[1],fe):X(ie[0],ie[1])):M?X(ie,fe):X(ie)};if(W)R=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,J=x(L.length);J>V;V++)if(_=ee(L[V]),_&&_ instanceof g)return _;return new g(!1)}R=C.call(L)}for(Q=R.next;!(Y=Q.call(R)).done;){try{_=ee(Y.value)}catch(ie){throw S(R),ie}if(typeof _=="object"&&_&&_ instanceof g)return _}return new g(!1)}},7609:(h,I,a)=>{var c=a(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,a)=>{"use strict";var c=a(95981),v=a(249),x=a(32029),d=a(47457),b=a(99813),S=a(82529),g=b("iterator"),L=!1,D=function(){return this},B,j,q;[].keys&&(q=[].keys(),"next"in q?(j=v(v(q)),j!==Object.prototype&&(B=j)):L=!0);var W=B==null||c(function(){var M={};return B[g].call(M)!==M});W&&(B={}),(!S||W)&&!d(B,g)&&x(B,g,D),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,a)=>{var c=a(21899),v=a(49677).f,x=a(42941).set,d=a(22749),b=a(58045),S=a(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,D=c.process,B=c.Promise,j=v(c,"queueMicrotask"),q=j&&j.value,W,M,X,R,C,V,J,_;q||(W=function(){var Q,Y;for(S&&(Q=D.domain)&&Q.exit();M;){Y=M.fn,M=M.next;try{Y()}catch(fe){throw M?R():X=void 0,fe}}X=void 0,Q&&Q.enter()},!d&&!S&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(W).observe(V,{characterData:!0}),R=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,_=J.then,R=function(){_.call(J,W)}):S?R=function(){D.nextTick(W)}:R=function(){x.call(c,W)}),h.exports=q||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),M||(M=Y,R()),X=Y}},19297:(h,I,a)=>{var c=a(21899);h.exports=c.Promise},72497:(h,I,a)=>{var c=a(53385),v=a(95981);h.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(h,I,a)=>{var c=a(21899),v=a(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,a)=>{"use strict";var c=a(33916),v=function(x){var d,b;this.promise=new x(function(S,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=S,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,a)=>{var c=a(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,a)=>{"use strict";var c=a(55746),v=a(95981),x=a(14771),d=a(87857),b=a(36760),S=a(89678),g=a(37026),L=Object.assign,D=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(D({},"a",{enumerable:!0,get:function(){D(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},j={},q=Symbol(),W="abcdefghijklmnopqrst";return B[q]=7,W.split("").forEach(function(M){j[M]=M}),L({},B)[q]!=7||x(L({},j)).join("")!=W})?function(j,q){for(var W=S(j),M=arguments.length,X=1,R=d.f,C=b.f;M>X;)for(var V=g(arguments[X++]),J=R?x(V).concat(R(V)):x(V),_=J.length,Q=0,Y;_>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(W[Y]=V[Y]);return W}:L},29290:(h,I,a)=>{var c=a(96059),v=a(59938),x=a(56759),d=a(27748),b=a(15463),S=a(61333),g=a(44262),L=">",D="<",B="prototype",j="script",q=g("IE_PROTO"),W=function(){},M=function(J){return D+j+L+J+D+"/"+j+L},X=function(J){J.write(M("")),J.close();var _=J.parentWindow.Object;return J=null,_},R=function(){var J=S("iframe"),_="java"+j+":",Q;return J.style.display="none",b.appendChild(J),J.src=String(_),Q=J.contentWindow.document,Q.open(),Q.write(M("document.F=Object")),Q.close(),Q.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(_){}V=C?X(C):R();for(var J=x.length;J--;)delete V[B][x[J]];return V()};d[q]=!0,h.exports=Object.create||function(_,Q){var Y;return _!==null?(W[B]=c(_),Y=new W,W[B]=null,Y[q]=_):Y=V(),Q===void 0?Y:v(Y,Q)}},59938:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(96059),d=a(14771);h.exports=c?Object.defineProperties:function(S,g){x(S);for(var L=d(g),D=L.length,B=0,j;D>B;)v.f(S,j=L[B++],g[j]);return S}},65988:(h,I,a)=>{var c=a(55746),v=a(2840),x=a(96059),d=a(46935),b=Object.defineProperty;I.f=c?b:function(g,L,D){if(x(g),L=d(L,!0),x(D),v)try{return b(g,L,D)}catch(B){}if("get"in D||"set"in D)throw TypeError("Accessors not supported");return"value"in D&&(g[L]=D.value),g}},49677:(h,I,a)=>{var c=a(55746),v=a(36760),x=a(31887),d=a(74529),b=a(46935),S=a(47457),g=a(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,j){if(B=d(B),j=b(j,!0),g)try{return L(B,j)}catch(q){}if(S(B,j))return x(!v.f.call(B,j),B[j])}},684:(h,I,a)=>{var c=a(74529),v=a(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return v(S)}catch(g){return d.slice()}};h.exports.f=function(g){return d&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(h,I,a)=>{var c=a(55629),v=a(56759),x=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,x)}},87857:(h,I)=>{I.f=Object.getOwnPropertySymbols},249:(h,I,a)=>{var c=a(47457),v=a(89678),x=a(44262),d=a(64160),b=x("IE_PROTO"),S=Object.prototype;h.exports=d?Object.getPrototypeOf:function(g){return g=v(g),c(g,b)?g[b]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?S:null}},55629:(h,I,a)=>{var c=a(47457),v=a(74529),x=a(31692).indexOf,d=a(27748);h.exports=function(b,S){var g=v(b),L=0,D=[],B;for(B in g)!c(d,B)&&c(g,B)&&D.push(B);for(;S.length>L;)c(g,B=S[L++])&&(~x(D,B)||D.push(B));return D}},14771:(h,I,a)=>{var c=a(55629),v=a(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!a.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:a},88929:(h,I,a)=>{var c=a(96059),v=a(42488);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,d={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(d,[]),x=d instanceof Array}catch(S){}return function(g,L){return c(g),v(L),x?b.call(g,L):g.__proto__=L,g}}():void 0)},88810:(h,I,a)=>{var c=a(55746),v=a(14771),x=a(74529),d=a(36760).f,b=function(S){return function(g){for(var L=x(g),D=v(L),B=D.length,j=0,q=[],W;B>j;)W=D[j++],(!c||d.call(L,W))&&q.push(S?[W,L[W]]:L[W]);return q}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,a)=>{"use strict";var c=a(22885),v=a(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,a)=>{var c=a(626),v=a(10946),x=a(87857),d=a(96059);h.exports=c("Reflect","ownKeys")||function(S){var g=v.f(d(S)),L=x.f;return L?g.concat(L(S)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(a){return{error:!0,value:a}}}},56584:(h,I,a)=>{var c=a(96059),v=a(10941),x=a(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var S=x.f(d),g=S.resolve;return g(b),S.promise}},87524:(h,I,a)=>{var c=a(99754);h.exports=function(v,x,d){for(var b in x)d&&d.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],d);return v}},99754:(h,I,a)=>{var c=a(32029);h.exports=function(v,x,d,b){b&&b.enumerable?v[x]=d:c(v,x,d)}},48219:h=>{h.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(h,I,a)=>{var c=a(21899),v=a(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,a)=>{"use strict";var c=a(626),v=a(65988),x=a(99813),d=a(55746),b=x("species");h.exports=function(S){var g=c(S),L=v.f;d&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,a)=>{var c=a(22885),v=a(65988).f,x=a(32029),d=a(47457),b=a(95623),S=a(99813),g=S("toStringTag");h.exports=function(L,D,B,j){if(L){var q=B?L:L.prototype;d(q,g)||v(q,g,{configurable:!0,value:D}),j&&!c&&x(q,"toString",b)}}},44262:(h,I,a)=>{var c=a(68726),v=a(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,a)=>{var c=a(21899),v=a(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,a)=>{var c=a(82529),v=a(63030);(h.exports=function(x,d){return v[x]||(v[x]=d!==void 0?d:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(h,I,a)=>{var c=a(96059),v=a(33916),x=a(99813),d=x("species");h.exports=function(b,S){var g=c(b).constructor,L;return g===void 0||(L=c(g)[d])==null?S:v(L)}},64620:(h,I,a)=>{var c=a(68459),v=a(48219),x=function(d){return function(b,S){var g=String(v(b)),L=c(S),D=g.length,B,j;return L<0||L>=D?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===D||(j=g.charCodeAt(L+1))<56320||j>57343?d?g.charAt(L):B:d?g.slice(L,L+2):(B-55296<<10)+(j-56320)+65536)}};h.exports={codeAt:x(!1),charAt:x(!0)}},42941:(h,I,a)=>{var c=a(21899),v=a(95981),x=a(86843),d=a(15463),b=a(61333),S=a(22749),g=a(6049),L=c.location,D=c.setImmediate,B=c.clearImmediate,j=c.process,q=c.MessageChannel,W=c.Dispatch,M=0,X={},R="onreadystatechange",C,V,J,_=function(ee){if(X.hasOwnProperty(ee)){var ie=X[ee];delete X[ee],ie()}},Q=function(ee){return function(){_(ee)}},Y=function(ee){_(ee.data)},fe=function(ee){c.postMessage(ee+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ie){for(var ye=[],be=1;arguments.length>be;)ye.push(arguments[be++]);return X[++M]=function(){(typeof ie=="function"?ie:Function(ie)).apply(void 0,ye)},C(M),M},B=function(ie){delete X[ie]},g?C=function(ee){j.nextTick(Q(ee))}:W&&W.now?C=function(ee){W.now(Q(ee))}:q&&!S?(V=new q,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(fe)?(C=fe,c.addEventListener("message",Y,!1)):R in b("script")?C=function(ee){d.appendChild(b("script"))[R]=function(){d.removeChild(this),_(ee)}}:C=function(ee){setTimeout(Q(ee),0)}),h.exports={set:D,clear:B}},59413:(h,I,a)=>{var c=a(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var S=c(d);return S<0?v(S+b,0):x(S,b)}},74529:(h,I,a)=>{var c=a(37026),v=a(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,a=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?a:I)(c)}},43057:(h,I,a)=>{var c=a(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,a)=>{var c=a(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,a)=>{var c=a(10941);h.exports=function(v,x){if(!c(v))return v;var d,b;if(x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v))||typeof(d=v.valueOf)=="function"&&!c(b=d.call(v))||!x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(h,I,a)=>{var c=a(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,a=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+a).toString(36)}},32302:(h,I,a)=>{var c=a(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,a)=>{var c=a(99813);I.f=c},99813:(h,I,a)=>{var c=a(21899),v=a(68726),x=a(47457),d=a(99418),b=a(72497),S=a(32302),g=v("wks"),L=c.Symbol,D=S?L:L&&L.withoutSetter||d;h.exports=function(B){return(!x(g,B)||!(b||typeof g[B]=="string"))&&(b&&x(L,B)?g[B]=L[B]:g[B]=D("Symbol."+B)),g[B]}},47627:(h,I,a)=>{"use strict";var c=a(76887),v=a(249),x=a(88929),d=a(29290),b=a(32029),S=a(31887),g=a(93091),L=function(B,j){var q=this;if(!(q instanceof L))return new L(B,j);x&&(q=x(new Error(void 0),v(q))),j!==void 0&&b(q,"message",String(j));var W=[];return g(B,W.push,{that:W}),b(q,"errors",W),q};L.prototype=d(Error.prototype,{constructor:S(5,L),message:S(5,""),name:S(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,a)=>{"use strict";var c=a(76887),v=a(95981),x=a(1052),d=a(10941),b=a(89678),S=a(43057),g=a(55449),L=a(64692),D=a(50568),B=a(99813),j=a(53385),q=B("isConcatSpreadable"),W=9007199254740991,M="Maximum allowed index exceeded",X=j>=51||!v(function(){var J=[];return J[q]=!1,J.concat()[0]!==J}),R=D("concat"),C=function(J){if(!d(J))return!1;var _=J[q];return _!==void 0?!!_:x(J)},V=!X||!R;c({target:"Array",proto:!0,forced:V},{concat:function(_){var Q=b(this),Y=L(Q,0),fe=0,ee,ie,ye,be,he;for(ee=-1,ye=arguments.length;ee<ye;ee++)if(he=ee===-1?Q:arguments[ee],C(he)){if(be=S(he.length),fe+be>W)throw TypeError(M);for(ie=0;ie<be;ie++,fe++)ie in he&&g(Y,fe,he[ie])}else{if(fe>=W)throw TypeError(M);g(Y,fe++,he)}return Y.length=fe,Y}})},21501:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).filter,x=a(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).find,x=a(18479),d="find",b=!0;d in[]&&Array(1)[d](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),x(d)},2437:(h,I,a)=>{"use strict";var c=a(76887),v=a(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,a)=>{var c=a(76887),v=a(11354),x=a(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).includes,x=a(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),x("includes")},99076:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).indexOf,x=a(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,S=x("indexOf");c({target:"Array",proto:!0,forced:b||!S},{indexOf:function(L){return b?d.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,a)=>{var c=a(76887),v=a(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,a)=>{"use strict";var c=a(74529),v=a(18479),x=a(12077),d=a(45402),b=a(47771),S="Array Iterator",g=d.set,L=d.getterFor(S);h.exports=b(Array,"Array",function(D,B){g(this,{type:S,target:c(D),index:0,kind:B})},function(){var D=L(this),B=D.target,j=D.kind,q=D.index++;return!B||q>=B.length?(D.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:q,done:!1}:j=="values"?{value:B[q],done:!1}:{value:[q,B[q]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).map,x=a(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,a)=>{"use strict";var c=a(76887),v=a(10941),x=a(1052),d=a(59413),b=a(43057),S=a(74529),g=a(55449),L=a(99813),D=a(50568),B=D("slice"),j=L("species"),q=[].slice,W=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,R){var C=S(this),V=b(C.length),J=d(X,V),_=d(R===void 0?V:R,V),Q,Y,fe;if(x(C)&&(Q=C.constructor,typeof Q=="function"&&(Q===Array||x(Q.prototype))?Q=void 0:v(Q)&&(Q=Q[j],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return q.call(C,J,_);for(Y=new(Q===void 0?Array:Q)(W(_-J,0)),fe=0;J<_;J++,fe++)J in C&&g(Y,fe,C[J]);return Y.length=fe,Y}})},98611:(h,I,a)=>{"use strict";var c=a(76887),v=a(59413),x=a(68459),d=a(43057),b=a(89678),S=a(64692),g=a(55449),L=a(50568),D=L("splice"),B=Math.max,j=Math.min,q=9007199254740991,W="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(X,R){var C=b(this),V=d(C.length),J=v(X,V),_=arguments.length,Q,Y,fe,ee,ie,ye;if(_===0?Q=Y=0:_===1?(Q=0,Y=V-J):(Q=_-2,Y=j(B(x(R),0),V-J)),V+Q-Y>q)throw TypeError(W);for(fe=S(C,Y),ee=0;ee<Y;ee++)ie=J+ee,ie in C&&g(fe,ee,C[ie]);if(fe.length=Y,Q<Y){for(ee=J;ee<V-Y;ee++)ie=ee+Y,ye=ee+Q,ie in C?C[ye]=C[ie]:delete C[ye];for(ee=V;ee>V-Y+Q;ee--)delete C[ee-1]}else if(Q>Y)for(ee=V-Y;ee>J;ee--)ie=ee+Y-1,ye=ee+Q-1,ie in C?C[ye]=C[ie]:delete C[ye];for(ee=0;ee<Q;ee++)C[ee+J]=arguments[ee+2];return C.length=V-Y+Q,fe}})},32619:(h,I,a)=>{var c=a(76887),v=a(626),x=a(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,j,q){var W=q.charAt(j-1),M=q.charAt(j+1);return S.test(B)&&!g.test(M)||g.test(B)&&!S.test(W)?"\\u"+B.charCodeAt(0).toString(16):B},D=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:D},{stringify:function(j,q,W){var M=d.apply(null,arguments);return typeof M=="string"?M.replace(b,L):M}})},69120:(h,I,a)=>{var c=a(21899),v=a(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,a)=>{var c=a(76887),v=a(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,a)=>{var c=a(76887),v=a(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(74529),d=a(49677).f,b=a(55746),S=v(function(){d(1)}),g=!b||S;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(D,B){return d(x(D),B)}})},88482:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(31136),d=a(74529),b=a(49677),S=a(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var D=d(L),B=b.f,j=x(D),q={},W=0,M,X;j.length>W;)X=B(D,M=j[W++]),X!==void 0&&S(q,M,X);return q}})},17405:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(89678),d=a(249),b=a(64160),S=v(function(){d(1)});c({target:"Object",stat:!0,forced:S,sham:!b},{getPrototypeOf:function(L){return d(x(L))}})},21724:(h,I,a)=>{var c=a(76887),v=a(89678),x=a(14771),d=a(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,a)=>{var c=a(76887),v=a(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(69520),d=a(40002),b=a(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,D=x.f(L),B=D.resolve,j=D.reject,q=d(function(){var W=v(L.resolve),M=[],X=0,R=1;b(g,function(C){var V=X++,J=!1;M.push(void 0),R++,W.call(L,C).then(function(_){J||(J=!0,M[V]={status:"fulfilled",value:_},--R||B(M))},function(_){J||(J=!0,M[V]={status:"rejected",reason:_},--R||B(M))})}),--R||B(M)});return q.error&&j(q.value),D.promise}})},91302:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(626),d=a(69520),b=a(40002),S=a(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(D){var B=this,j=d.f(B),q=j.resolve,W=j.reject,M=b(function(){var X=v(B.resolve),R=[],C=0,V=1,J=!1;S(D,function(_){var Q=C++,Y=!1;R.push(void 0),V++,X.call(B,_).then(function(fe){Y||J||(J=!0,q(fe))},function(fe){Y||J||(Y=!0,R[Q]=fe,--V||W(new(x("AggregateError"))(R,g)))})}),--V||W(new(x("AggregateError"))(R,g))});return M.error&&W(M.value),j.promise}})},4808:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(19297),d=a(95981),b=a(626),S=a(70487),g=a(56584),L=a(99754),D=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:D},{finally:function(j){var q=S(this,b("Promise")),W=typeof j=="function";return this.then(W?function(M){return g(q,j()).then(function(){return M})}:j,W?function(M){return g(q,j()).then(function(){throw M})}:j)}}),!v&&typeof x=="function"){var B=b("Promise").prototype.finally;x.prototype.finally!==B&&L(x.prototype,"finally",B,{unsafe:!0})}},98881:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(21899),d=a(626),b=a(19297),S=a(99754),g=a(87524),L=a(88929),D=a(90904),B=a(94431),j=a(10941),q=a(33916),W=a(5743),M=a(81302),X=a(93091),R=a(21385),C=a(70487),V=a(42941).set,J=a(66132),_=a(56584),Q=a(34845),Y=a(69520),fe=a(40002),ee=a(45402),ie=a(37252),ye=a(99813),be=a(23321),he=a(6049),ue=a(53385),oe=ye("species"),Fe="Promise",Le=ee.get,Me=ee.set,Pe=ee.getterFor(Fe),rt=b&&b.prototype,Ze=b,Xe=rt,ft=x.TypeError,ht=x.document,bt=x.process,nt=Y.f,ut=nt,yt=!!(ht&&ht.createEvent&&x.dispatchEvent),mt=typeof PromiseRejectionEvent=="function",pt="unhandledrejection",Mt="rejectionhandled",kt=0,Et=1,Ht=2,jt=1,Vt=2,wt=!1,Dt,ve,z,$,Se=ie(Fe,function(){var te=M(Ze)!==String(Ze);if(!te&&ue===66||v&&!Xe.finally)return!0;if(ue>=51&&/native code/.test(Ze))return!1;var de=new Ze(function(Ae){Ae(1)}),ae=function(Ae){Ae(function(){},function(){})},pe=de.constructor={};return pe[oe]=ae,wt=de.then(function(){})instanceof ae,wt?!te&&be&&!mt:!0}),Ie=Se||!R(function(te){Ze.all(te).catch(function(){})}),Ge=function(te){var de;return j(te)&&typeof(de=te.then)=="function"?de:!1},Ke=function(te,de){if(!te.notified){te.notified=!0;var ae=te.reactions;J(function(){for(var pe=te.value,Ae=te.state==Et,Be=0;ae.length>Be;){var Ue=ae[Be++],Qe=Ae?Ue.ok:Ue.fail,vt=Ue.resolve,At=Ue.reject,Bt=Ue.domain,Pt,dn,Br;try{Qe?(Ae||(te.rejection===Vt&&T(te),te.rejection=jt),Qe===!0?Pt=pe:(Bt&&Bt.enter(),Pt=Qe(pe),Bt&&(Bt.exit(),Br=!0)),Pt===Ue.promise?At(ft("Promise-chain cycle")):(dn=Ge(Pt))?dn.call(Pt,vt,At):vt(Pt)):At(pe)}catch(Cr){Bt&&!Br&&Bt.exit(),At(Cr)}}te.reactions=[],te.notified=!1,de&&!te.rejection&&Re(te)})}},P=function(te,de,ae){var pe,Ae;yt?(pe=ht.createEvent("Event"),pe.promise=de,pe.reason=ae,pe.initEvent(te,!1,!0),x.dispatchEvent(pe)):pe={promise:de,reason:ae},!mt&&(Ae=x["on"+te])?Ae(pe):te===pt&&Q("Unhandled promise rejection",ae)},Re=function(te){V.call(x,function(){var de=te.facade,ae=te.value,pe=K(te),Ae;if(pe&&(Ae=fe(function(){he?bt.emit("unhandledRejection",ae,de):P(pt,de,ae)}),te.rejection=he||K(te)?Vt:jt,Ae.error))throw Ae.value})},K=function(te){return te.rejection!==jt&&!te.parent},T=function(te){V.call(x,function(){var de=te.facade;he?bt.emit("rejectionHandled",de):P(Mt,de,te.value)})},O=function(te,de,ae){return function(pe){te(de,pe,ae)}},se=function(te,de,ae){te.done||(te.done=!0,ae&&(te=ae),te.value=de,te.state=Ht,Ke(te,!0))},N=function(te,de,ae){if(!te.done){te.done=!0,ae&&(te=ae);try{if(te.facade===de)throw ft("Promise can't be resolved itself");var pe=Ge(de);pe?J(function(){var Ae={done:!1};try{pe.call(de,O(N,Ae,te),O(se,Ae,te))}catch(Be){se(Ae,Be,te)}}):(te.value=de,te.state=Et,Ke(te,!1))}catch(Ae){se({done:!1},Ae,te)}}};if(Se&&(Ze=function(de){W(this,Ze,Fe),q(de),Dt.call(this);var ae=Le(this);try{de(O(N,ae),O(se,ae))}catch(pe){se(ae,pe)}},Xe=Ze.prototype,Dt=function(de){Me(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:kt,value:void 0})},Dt.prototype=g(Xe,{then:function(de,ae){var pe=Pe(this),Ae=nt(C(this,Ze));return Ae.ok=typeof de=="function"?de:!0,Ae.fail=typeof ae=="function"&&ae,Ae.domain=he?bt.domain:void 0,pe.parent=!0,pe.reactions.push(Ae),pe.state!=kt&&Ke(pe,!1),Ae.promise},catch:function(te){return this.then(void 0,te)}}),ve=function(){var te=new Dt,de=Le(te);this.promise=te,this.resolve=O(N,de),this.reject=O(se,de)},Y.f=nt=function(te){return te===Ze||te===z?new ve(te):ut(te)},!v&&typeof b=="function"&&rt!==Object.prototype)){$=rt.then,wt||(S(rt,"then",function(de,ae){var pe=this;return new Ze(function(Ae,Be){$.call(pe,Ae,Be)}).then(de,ae)},{unsafe:!0}),S(rt,"catch",Xe.catch,{unsafe:!0}));try{delete rt.constructor}catch(te){}L&&L(rt,Xe)}c({global:!0,wrap:!0,forced:Se},{Promise:Ze}),D(Ze,Fe,!1,!0),B(Fe),z=d(Fe),c({target:Fe,stat:!0,forced:Se},{reject:function(de){var ae=nt(this);return ae.reject.call(void 0,de),ae.promise}}),c({target:Fe,stat:!0,forced:v||Se},{resolve:function(de){return _(v&&this===z?Ze:this,de)}}),c({target:Fe,stat:!0,forced:Ie},{all:function(de){var ae=this,pe=nt(ae),Ae=pe.resolve,Be=pe.reject,Ue=fe(function(){var Qe=q(ae.resolve),vt=[],At=0,Bt=1;X(de,function(Pt){var dn=At++,Br=!1;vt.push(void 0),Bt++,Qe.call(ae,Pt).then(function(Cr){Br||(Br=!0,vt[dn]=Cr,--Bt||Ae(vt))},Be)}),--Bt||Ae(vt)});return Ue.error&&Be(Ue.value),pe.promise},race:function(de){var ae=this,pe=nt(ae),Ae=pe.reject,Be=fe(function(){var Ue=q(ae.resolve);X(de,function(Qe){Ue.call(ae,Qe).then(pe.resolve,Ae)})});return Be.error&&Ae(Be.value),pe.promise}})},7453:(h,I,a)=>{var c=a(76887),v=a(626),x=a(33916),d=a(96059),b=a(10941),S=a(29290),g=a(98308),L=a(95981),D=v("Reflect","construct"),B=L(function(){function W(){}return!(D(function(){},[],W)instanceof W)}),j=!L(function(){D(function(){})}),q=B||j;c({target:"Reflect",stat:!0,forced:q,sham:q},{construct:function(M,X){x(M),d(X);var R=arguments.length<3?M:x(arguments[2]);if(j&&!B)return D(M,X,R);if(M==R){switch(X.length){case 0:return new M;case 1:return new M(X[0]);case 2:return new M(X[0],X[1]);case 3:return new M(X[0],X[1],X[2]);case 4:return new M(X[0],X[1],X[2],X[3])}var C=[null];return C.push.apply(C,X),new(g.apply(M,C))}var V=R.prototype,J=S(b(V)?V:Object.prototype),_=Function.apply.call(M,J,X);return b(_)?_:J}})},42355:(h,I,a)=>{var c=a(76887),v=a(10941),x=a(96059),d=a(47457),b=a(49677),S=a(249);function g(L,D){var B=arguments.length<3?L:arguments[2],j,q;if(x(L)===B)return L[D];if(j=b.f(L,D))return d(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(q=S(L)))return g(q,D,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,a)=>{"use strict";var c=a(76887),v=a(70344),x=a(48219),d=a(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(S){return!!~String(x(this)).indexOf(v(S),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,a)=>{"use strict";var c=a(64620).charAt,v=a(45402),x=a(47771),d="String Iterator",b=v.set,S=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var L=S(this),D=L.string,B=L.index,j;return B>=D.length?{value:void 0,done:!0}:(j=c(D,B),L.index+=j.length,{value:j,done:!1})})},8555:(h,I,a)=>{var c=a(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,a)=>{var c=a(66349);c("hasInstance")},35903:(h,I,a)=>{var c=a(66349);c("isConcatSpreadable")},1825:(h,I,a)=>{var c=a(66349);c("iterator")},35824:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(626),d=a(82529),b=a(55746),S=a(72497),g=a(32302),L=a(95981),D=a(47457),B=a(1052),j=a(10941),q=a(96059),W=a(89678),M=a(74529),X=a(46935),R=a(31887),C=a(29290),V=a(14771),J=a(10946),_=a(684),Q=a(87857),Y=a(49677),fe=a(65988),ee=a(36760),ie=a(32029),ye=a(99754),be=a(68726),he=a(44262),ue=a(27748),oe=a(99418),Fe=a(99813),Le=a(11477),Me=a(66349),Pe=a(90904),rt=a(45402),Ze=a(3610).forEach,Xe=he("hidden"),ft="Symbol",ht="prototype",bt=Fe("toPrimitive"),nt=rt.set,ut=rt.getterFor(ft),yt=Object[ht],mt=v.Symbol,pt=x("JSON","stringify"),Mt=Y.f,kt=fe.f,Et=_.f,Ht=ee.f,jt=be("symbols"),Vt=be("op-symbols"),wt=be("string-to-symbol-registry"),Dt=be("symbol-to-string-registry"),ve=be("wks"),z=v.QObject,$=!z||!z[ht]||!z[ht].findChild,Se=b&&L(function(){return C(kt({},"a",{get:function(){return kt(this,"a",{value:7}).a}})).a!=7})?function(te,de,ae){var pe=Mt(yt,de);pe&&delete yt[de],kt(te,de,ae),pe&&te!==yt&&kt(yt,de,pe)}:kt,Ie=function(te,de){var ae=jt[te]=C(mt[ht]);return nt(ae,{type:ft,tag:te,description:de}),b||(ae.description=de),ae},Ge=g?function(te){return typeof te=="symbol"}:function(te){return Object(te)instanceof mt},Ke=function(de,ae,pe){de===yt&&Ke(Vt,ae,pe),q(de);var Ae=X(ae,!0);return q(pe),D(jt,Ae)?(pe.enumerable?(D(de,Xe)&&de[Xe][Ae]&&(de[Xe][Ae]=!1),pe=C(pe,{enumerable:R(0,!1)})):(D(de,Xe)||kt(de,Xe,R(1,{})),de[Xe][Ae]=!0),Se(de,Ae,pe)):kt(de,Ae,pe)},P=function(de,ae){q(de);var pe=M(ae),Ae=V(pe).concat(se(pe));return Ze(Ae,function(Be){(!b||K.call(pe,Be))&&Ke(de,Be,pe[Be])}),de},Re=function(de,ae){return ae===void 0?C(de):P(C(de),ae)},K=function(de){var ae=X(de,!0),pe=Ht.call(this,ae);return this===yt&&D(jt,ae)&&!D(Vt,ae)?!1:pe||!D(this,ae)||!D(jt,ae)||D(this,Xe)&&this[Xe][ae]?pe:!0},T=function(de,ae){var pe=M(de),Ae=X(ae,!0);if(!(pe===yt&&D(jt,Ae)&&!D(Vt,Ae))){var Be=Mt(pe,Ae);return Be&&D(jt,Ae)&&!(D(pe,Xe)&&pe[Xe][Ae])&&(Be.enumerable=!0),Be}},O=function(de){var ae=Et(M(de)),pe=[];return Ze(ae,function(Ae){!D(jt,Ae)&&!D(ue,Ae)&&pe.push(Ae)}),pe},se=function(de){var ae=de===yt,pe=Et(ae?Vt:M(de)),Ae=[];return Ze(pe,function(Be){D(jt,Be)&&(!ae||D(yt,Be))&&Ae.push(jt[Be])}),Ae};if(S||(mt=function(){if(this instanceof mt)throw TypeError("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ae=oe(de),pe=function(Ae){this===yt&&pe.call(Vt,Ae),D(this,Xe)&&D(this[Xe],ae)&&(this[Xe][ae]=!1),Se(this,ae,R(1,Ae))};return b&&$&&Se(yt,ae,{configurable:!0,set:pe}),Ie(ae,de)},ye(mt[ht],"toString",function(){return ut(this).tag}),ye(mt,"withoutSetter",function(te){return Ie(oe(te),te)}),ee.f=K,fe.f=Ke,Y.f=T,J.f=_.f=O,Q.f=se,Le.f=function(te){return Ie(Fe(te),te)},b&&(kt(mt[ht],"description",{configurable:!0,get:function(){return ut(this).description}}),d||ye(yt,"propertyIsEnumerable",K,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:mt}),Ze(V(ve),function(te){Me(te)}),c({target:ft,stat:!0,forced:!S},{for:function(te){var de=String(te);if(D(wt,de))return wt[de];var ae=mt(de);return wt[de]=ae,Dt[ae]=de,ae},keyFor:function(de){if(!Ge(de))throw TypeError(de+" is not a symbol");if(D(Dt,de))return Dt[de]},useSetter:function(){$=!0},useSimple:function(){$=!1}}),c({target:"Object",stat:!0,forced:!S,sham:!b},{create:Re,defineProperty:Ke,defineProperties:P,getOwnPropertyDescriptor:T}),c({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:O,getOwnPropertySymbols:se}),c({target:"Object",stat:!0,forced:L(function(){Q.f(1)})},{getOwnPropertySymbols:function(de){return Q.f(W(de))}}),pt){var N=!S||L(function(){var te=mt();return pt([te])!="[null]"||pt({a:te})!="{}"||pt(Object(te))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(de,ae,pe){for(var Ae=[de],Be=1,Ue;arguments.length>Be;)Ae.push(arguments[Be++]);if(Ue=ae,!(!j(ae)&&de===void 0||Ge(de)))return B(ae)||(ae=function(Qe,vt){if(typeof Ue=="function"&&(vt=Ue.call(this,Qe,vt)),!Ge(vt))return vt}),Ae[1]=ae,pt.apply(null,Ae)}})}mt[ht][bt]||ie(mt[ht],bt,mt[ht].valueOf),Pe(mt,ft),ue[Xe]=!0},45915:(h,I,a)=>{var c=a(66349);c("matchAll")},28394:(h,I,a)=>{var c=a(66349);c("match")},61766:(h,I,a)=>{var c=a(66349);c("replace")},62737:(h,I,a)=>{var c=a(66349);c("search")},89911:(h,I,a)=>{var c=a(66349);c("species")},74315:(h,I,a)=>{var c=a(66349);c("split")},63131:(h,I,a)=>{var c=a(66349);c("toPrimitive")},64714:(h,I,a)=>{var c=a(66349);c("toStringTag")},70659:(h,I,a)=>{var c=a(66349);c("unscopables")},54334:(h,I,a)=>{"use strict";var c=a(21899),v=a(87524),x=a(21647),d=a(24683),b=a(8850),S=a(10941),g=a(45402).enforce,L=a(38019),D=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,q=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},W=h.exports=d("WeakMap",q,b);if(L&&D){j=b.getConstructor(q,"WeakMap",!0),x.REQUIRED=!0;var M=W.prototype,X=M.delete,R=M.has,C=M.get,V=M.set;v(M,{delete:function(J){if(S(J)&&!B(J)){var _=g(this);return _.frozen||(_.frozen=new j),X.call(this,J)||_.frozen.delete(J)}return X.call(this,J)},has:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)||Q.frozen.has(_)}return R.call(this,_)},get:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)?C.call(this,_):Q.frozen.get(_)}return C.call(this,_)},set:function(_,Q){if(S(_)&&!B(_)){var Y=g(this);Y.frozen||(Y.frozen=new j),R.call(this,_)?V.call(this,_,Q):Y.frozen.set(_,Q)}else V.call(this,_,Q);return this}})}},89731:(h,I,a)=>{a(47627)},55708:(h,I,a)=>{a(4560)},88731:(h,I,a)=>{a(91302)},30014:(h,I,a)=>{"use strict";var c=a(76887),v=a(69520),x=a(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),S=x(d);return(S.error?b.reject:b.resolve)(S.value),b.promise}})},28783:(h,I,a)=>{var c=a(66349);c("asyncDispose")},43975:(h,I,a)=>{var c=a(66349);c("dispose")},65799:(h,I,a)=>{var c=a(66349);c("matcher")},45414:(h,I,a)=>{var c=a(66349);c("metadata")},46774:(h,I,a)=>{var c=a(66349);c("observable")},80620:(h,I,a)=>{var c=a(66349);c("patternMatch")},36172:(h,I,a)=>{var c=a(66349);c("replaceAll")},7634:(h,I,a)=>{a(66274);var c=a(63281),v=a(21899),x=a(9697),d=a(32029),b=a(12077),S=a(99813),g=S("toStringTag");for(var L in c){var D=v[L],B=D&&D.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,a)=>{var c=a(54493);h.exports=c},62908:(h,I,a)=>{var c=a(12710);h.exports=c},49216:(h,I,a)=>{var c=a(99324);h.exports=c},8065:(h,I,a)=>{var c=a(56043);h.exports=c},57448:(h,I,a)=>{a(7634);var c=a(62908),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.entries;return b===x||b instanceof Array&&S===x.entries||d.hasOwnProperty(v(b))?c:S}},11955:(h,I,a)=>{var c=a(2480);h.exports=c},61577:(h,I,a)=>{var c=a(32236);h.exports=c},46279:(h,I,a)=>{a(7634);var c=a(49216),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.forEach;return b===x||b instanceof Array&&S===x.forEach||d.hasOwnProperty(v(b))?c:S}},33778:(h,I,a)=>{var c=a(58557);h.exports=c},61798:(h,I,a)=>{var c=a(88287);h.exports=c},82073:(h,I,a)=>{var c=a(69601);h.exports=c},2348:(h,I,a)=>{var c=a(18339);h.exports=c},8933:(h,I,a)=>{var c=a(84426);h.exports=c},63383:(h,I,a)=>{var c=a(45999);h.exports=c},86209:(h,I,a)=>{var c=a(73081);h.exports=c},23059:(h,I,a)=>{var c=a(48494);h.exports=c},27460:(h,I,a)=>{var c=a(52956);h.exports=c},72010:(h,I,a)=>{var c=a(32304);h.exports=c},31905:function(){(function(h){var I=function(a){var c={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(ee){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(ee){return ee&&DataView.prototype.isPrototypeOf(ee)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(ee){return ee&&x.indexOf(Object.prototype.toString.call(ee))>-1};function b(ee){if(typeof ee!="string"&&(ee=String(ee)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ee))throw new TypeError("Invalid character in header field name");return ee.toLowerCase()}function S(ee){return typeof ee!="string"&&(ee=String(ee)),ee}function g(ee){var ie={next:function(){var ye=ee.shift();return{done:ye===void 0,value:ye}}};return c.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function L(ee){this.map={},ee instanceof L?ee.forEach(function(ie,ye){this.append(ye,ie)},this):Array.isArray(ee)?ee.forEach(function(ie){this.append(ie[0],ie[1])},this):ee&&Object.getOwnPropertyNames(ee).forEach(function(ie){this.append(ie,ee[ie])},this)}L.prototype.append=function(ee,ie){ee=b(ee),ie=S(ie);var ye=this.map[ee];this.map[ee]=ye?ye+", "+ie:ie},L.prototype.delete=function(ee){delete this.map[b(ee)]},L.prototype.get=function(ee){return ee=b(ee),this.has(ee)?this.map[ee]:null},L.prototype.has=function(ee){return this.map.hasOwnProperty(b(ee))},L.prototype.set=function(ee,ie){this.map[b(ee)]=S(ie)},L.prototype.forEach=function(ee,ie){for(var ye in this.map)this.map.hasOwnProperty(ye)&&ee.call(ie,this.map[ye],ye,this)},L.prototype.keys=function(){var ee=[];return this.forEach(function(ie,ye){ee.push(ye)}),g(ee)},L.prototype.values=function(){var ee=[];return this.forEach(function(ie){ee.push(ie)}),g(ee)},L.prototype.entries=function(){var ee=[];return this.forEach(function(ie,ye){ee.push([ye,ie])}),g(ee)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(ee){if(ee.bodyUsed)return Promise.reject(new TypeError("Already read"));ee.bodyUsed=!0}function B(ee){return new Promise(function(ie,ye){ee.onload=function(){ie(ee.result)},ee.onerror=function(){ye(ee.error)}})}function j(ee){var ie=new FileReader,ye=B(ie);return ie.readAsArrayBuffer(ee),ye}function q(ee){var ie=new FileReader,ye=B(ie);return ie.readAsText(ee),ye}function W(ee){for(var ie=new Uint8Array(ee),ye=new Array(ie.length),be=0;be<ie.length;be++)ye[be]=String.fromCharCode(ie[be]);return ye.join("")}function M(ee){if(ee.slice)return ee.slice(0);var ie=new Uint8Array(ee.byteLength);return ie.set(new Uint8Array(ee)),ie.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(ee){this._bodyInit=ee,ee?typeof ee=="string"?this._bodyText=ee:c.blob&&Blob.prototype.isPrototypeOf(ee)?this._bodyBlob=ee:c.formData&&FormData.prototype.isPrototypeOf(ee)?this._bodyFormData=ee:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)?this._bodyText=ee.toString():c.arrayBuffer&&c.blob&&v(ee)?(this._bodyArrayBuffer=M(ee.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ee)||d(ee))?this._bodyArrayBuffer=M(ee):this._bodyText=ee=Object.prototype.toString.call(ee):this._bodyText="",this.headers.get("content-type")||(typeof ee=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var ee=D(this);if(ee)return ee;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?D(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var ee=D(this);if(ee)return ee;if(this._bodyBlob)return q(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(W(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(ee){var ie=ee.toUpperCase();return R.indexOf(ie)>-1?ie:ee}function V(ee,ie){ie=ie||{};var ye=ie.body;if(ee instanceof V){if(ee.bodyUsed)throw new TypeError("Already read");this.url=ee.url,this.credentials=ee.credentials,ie.headers||(this.headers=new L(ee.headers)),this.method=ee.method,this.mode=ee.mode,this.signal=ee.signal,!ye&&ee._bodyInit!=null&&(ye=ee._bodyInit,ee.bodyUsed=!0)}else this.url=String(ee);if(this.credentials=ie.credentials||this.credentials||"same-origin",(ie.headers||!this.headers)&&(this.headers=new L(ie.headers)),this.method=C(ie.method||this.method||"GET"),this.mode=ie.mode||this.mode||null,this.signal=ie.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ye)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ye)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(ee){var ie=new FormData;return ee.trim().split("&").forEach(function(ye){if(ye){var be=ye.split("="),he=be.shift().replace(/\+/g," "),ue=be.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(he),decodeURIComponent(ue))}}),ie}function _(ee){var ie=new L,ye=ee.replace(/\r?\n[\t ]+/g," ");return ye.split(/\r?\n/).forEach(function(be){var he=be.split(":"),ue=he.shift().trim();if(ue){var oe=he.join(":").trim();ie.append(ue,oe)}}),ie}X.call(V.prototype);function Q(ee,ie){ie||(ie={}),this.type="default",this.status=ie.status===void 0?200:ie.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ie?ie.statusText:"OK",this.headers=new L(ie.headers),this.url=ie.url||"",this._initBody(ee)}X.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Q.error=function(){var ee=new Q(null,{status:0,statusText:""});return ee.type="error",ee};var Y=[301,302,303,307,308];Q.redirect=function(ee,ie){if(Y.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ie,headers:{location:ee}})},a.DOMException=h.DOMException;try{new a.DOMException}catch(ee){a.DOMException=function(ie,ye){this.message=ie,this.name=ye;var be=Error(ie);this.stack=be.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function fe(ee,ie){return new Promise(function(ye,be){var he=new V(ee,ie);if(he.signal&&he.signal.aborted)return be(new a.DOMException("Aborted","AbortError"));var ue=new XMLHttpRequest;function oe(){ue.abort()}ue.onload=function(){var Fe={status:ue.status,statusText:ue.statusText,headers:_(ue.getAllResponseHeaders()||"")};Fe.url="responseURL"in ue?ue.responseURL:Fe.headers.get("X-Request-URL");var Le="response"in ue?ue.response:ue.responseText;ye(new Q(Le,Fe))},ue.onerror=function(){be(new TypeError("Network request failed"))},ue.ontimeout=function(){be(new TypeError("Network request failed"))},ue.onabort=function(){be(new a.DOMException("Aborted","AbortError"))},ue.open(he.method,he.url,!0),he.credentials==="include"?ue.withCredentials=!0:he.credentials==="omit"&&(ue.withCredentials=!1),"responseType"in ue&&c.blob&&(ue.responseType="blob"),he.headers.forEach(function(Fe,Le){ue.setRequestHeader(Le,Fe)}),he.signal&&(he.signal.addEventListener("abort",oe),ue.onreadystatechange=function(){ue.readyState===4&&he.signal.removeEventListener("abort",oe)}),ue.send(typeof he._bodyInit=="undefined"?null:he._bodyInit)})}return fe.polyfill=!0,h.fetch||(h.fetch=fe,h.Headers=L,h.Request=V,h.Response=Q),a.Headers=L,a.Request=V,a.Response=Q,a.fetch=fe,Object.defineProperty(a,"__esModule",{value:!0}),a}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var a=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=a.DOMException}return x.prototype=a,new x}();(function(x){var d=function(b){var S={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(ue){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(ue){return ue&&DataView.prototype.isPrototypeOf(ue)}if(S.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],D=ArrayBuffer.isView||function(ue){return ue&&L.indexOf(Object.prototype.toString.call(ue))>-1};function B(ue){if(typeof ue!="string"&&(ue=String(ue)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ue))throw new TypeError("Invalid character in header field name");return ue.toLowerCase()}function j(ue){return typeof ue!="string"&&(ue=String(ue)),ue}function q(ue){var oe={next:function(){var Fe=ue.shift();return{done:Fe===void 0,value:Fe}}};return S.iterable&&(oe[Symbol.iterator]=function(){return oe}),oe}function W(ue){this.map={},ue instanceof W?ue.forEach(function(oe,Fe){this.append(Fe,oe)},this):Array.isArray(ue)?ue.forEach(function(oe){this.append(oe[0],oe[1])},this):ue&&Object.getOwnPropertyNames(ue).forEach(function(oe){this.append(oe,ue[oe])},this)}W.prototype.append=function(ue,oe){ue=B(ue),oe=j(oe);var Fe=this.map[ue];this.map[ue]=Fe?Fe+", "+oe:oe},W.prototype.delete=function(ue){delete this.map[B(ue)]},W.prototype.get=function(ue){return ue=B(ue),this.has(ue)?this.map[ue]:null},W.prototype.has=function(ue){return this.map.hasOwnProperty(B(ue))},W.prototype.set=function(ue,oe){this.map[B(ue)]=j(oe)},W.prototype.forEach=function(ue,oe){for(var Fe in this.map)this.map.hasOwnProperty(Fe)&&ue.call(oe,this.map[Fe],Fe,this)},W.prototype.keys=function(){var ue=[];return this.forEach(function(oe,Fe){ue.push(Fe)}),q(ue)},W.prototype.values=function(){var ue=[];return this.forEach(function(oe){ue.push(oe)}),q(ue)},W.prototype.entries=function(){var ue=[];return this.forEach(function(oe,Fe){ue.push([Fe,oe])}),q(ue)},S.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function M(ue){if(ue.bodyUsed)return Promise.reject(new TypeError("Already read"));ue.bodyUsed=!0}function X(ue){return new Promise(function(oe,Fe){ue.onload=function(){oe(ue.result)},ue.onerror=function(){Fe(ue.error)}})}function R(ue){var oe=new FileReader,Fe=X(oe);return oe.readAsArrayBuffer(ue),Fe}function C(ue){var oe=new FileReader,Fe=X(oe);return oe.readAsText(ue),Fe}function V(ue){for(var oe=new Uint8Array(ue),Fe=new Array(oe.length),Le=0;Le<oe.length;Le++)Fe[Le]=String.fromCharCode(oe[Le]);return Fe.join("")}function J(ue){if(ue.slice)return ue.slice(0);var oe=new Uint8Array(ue.byteLength);return oe.set(new Uint8Array(ue)),oe.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(ue){this._bodyInit=ue,ue?typeof ue=="string"?this._bodyText=ue:S.blob&&Blob.prototype.isPrototypeOf(ue)?this._bodyBlob=ue:S.formData&&FormData.prototype.isPrototypeOf(ue)?this._bodyFormData=ue:S.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)?this._bodyText=ue.toString():S.arrayBuffer&&S.blob&&g(ue)?(this._bodyArrayBuffer=J(ue.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ue)||D(ue))?this._bodyArrayBuffer=J(ue):this._bodyText=ue=Object.prototype.toString.call(ue):this._bodyText="",this.headers.get("content-type")||(typeof ue=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):S.searchParams&&URLSearchParams.prototype.isPrototypeOf(ue)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S.blob&&(this.blob=function(){var ue=M(this);if(ue)return ue;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?M(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var ue=M(this);if(ue)return ue;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},S.formData&&(this.formData=function(){return this.text().then(ee)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(ue){var oe=ue.toUpperCase();return Q.indexOf(oe)>-1?oe:ue}function fe(ue,oe){oe=oe||{};var Fe=oe.body;if(ue instanceof fe){if(ue.bodyUsed)throw new TypeError("Already read");this.url=ue.url,this.credentials=ue.credentials,oe.headers||(this.headers=new W(ue.headers)),this.method=ue.method,this.mode=ue.mode,this.signal=ue.signal,!Fe&&ue._bodyInit!=null&&(Fe=ue._bodyInit,ue.bodyUsed=!0)}else this.url=String(ue);if(this.credentials=oe.credentials||this.credentials||"same-origin",(oe.headers||!this.headers)&&(this.headers=new W(oe.headers)),this.method=Y(oe.method||this.method||"GET"),this.mode=oe.mode||this.mode||null,this.signal=oe.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Fe)}fe.prototype.clone=function(){return new fe(this,{body:this._bodyInit})};function ee(ue){var oe=new FormData;return ue.trim().split("&").forEach(function(Fe){if(Fe){var Le=Fe.split("="),Me=Le.shift().replace(/\+/g," "),Pe=Le.join("=").replace(/\+/g," ");oe.append(decodeURIComponent(Me),decodeURIComponent(Pe))}}),oe}function ie(ue){var oe=new W,Fe=ue.replace(/\r?\n[\t ]+/g," ");return Fe.split(/\r?\n/).forEach(function(Le){var Me=Le.split(":"),Pe=Me.shift().trim();if(Pe){var rt=Me.join(":").trim();oe.append(Pe,rt)}}),oe}_.call(fe.prototype);function ye(ue,oe){oe||(oe={}),this.type="default",this.status=oe.status===void 0?200:oe.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in oe?oe.statusText:"OK",this.headers=new W(oe.headers),this.url=oe.url||"",this._initBody(ue)}_.call(ye.prototype),ye.prototype.clone=function(){return new ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},ye.error=function(){var ue=new ye(null,{status:0,statusText:""});return ue.type="error",ue};var be=[301,302,303,307,308];ye.redirect=function(ue,oe){if(be.indexOf(oe)===-1)throw new RangeError("Invalid status code");return new ye(null,{status:oe,headers:{location:ue}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(ue){b.DOMException=function(oe,Fe){this.message=oe,this.name=Fe;var Le=Error(oe);this.stack=Le.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function he(ue,oe){return new Promise(function(Fe,Le){var Me=new fe(ue,oe);if(Me.signal&&Me.signal.aborted)return Le(new b.DOMException("Aborted","AbortError"));var Pe=new XMLHttpRequest;function rt(){Pe.abort()}Pe.onload=function(){var Ze={status:Pe.status,statusText:Pe.statusText,headers:ie(Pe.getAllResponseHeaders()||"")};Ze.url="responseURL"in Pe?Pe.responseURL:Ze.headers.get("X-Request-URL");var Xe="response"in Pe?Pe.response:Pe.responseText;Fe(new ye(Xe,Ze))},Pe.onerror=function(){Le(new TypeError("Network request failed"))},Pe.ontimeout=function(){Le(new TypeError("Network request failed"))},Pe.onabort=function(){Le(new b.DOMException("Aborted","AbortError"))},Pe.open(Me.method,Me.url,!0),Me.credentials==="include"?Pe.withCredentials=!0:Me.credentials==="omit"&&(Pe.withCredentials=!1),"responseType"in Pe&&S.blob&&(Pe.responseType="blob"),Me.headers.forEach(function(Ze,Xe){Pe.setRequestHeader(Xe,Ze)}),Me.signal&&(Me.signal.addEventListener("abort",rt),Pe.onreadystatechange=function(){Pe.readyState===4&&Me.signal.removeEventListener("abort",rt)}),Pe.send(typeof Me._bodyInit=="undefined"?null:Me._bodyInit)})}return he.polyfill=!0,x.fetch||(x.fetch=he,x.Headers=W,x.Request=fe,x.Response=ye),b.Headers=W,b.Request=fe,b.Response=ye,b.fetch=he,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,h.exports=I},17438:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>S});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=d()(v());b.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
|
|
46
|
+
*/I.parse=d,I.serialize=b;var a=decodeURIComponent,c=encodeURIComponent,v=/; */,x=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function d(g,L){if(typeof g!="string")throw new TypeError("argument str must be a string");for(var D={},B=L||{},j=g.split(v),q=B.decode||a,W=0;W<j.length;W++){var M=j[W],X=M.indexOf("=");if(!(X<0)){var R=M.substr(0,X).trim(),C=M.substr(++X,M.length).trim();C[0]=='"'&&(C=C.slice(1,-1)),D[R]==null&&(D[R]=S(C,q))}}return D}function b(g,L,D){var B=D||{},j=B.encode||c;if(typeof j!="function")throw new TypeError("option encode is invalid");if(!x.test(g))throw new TypeError("argument name is invalid");var q=j(L);if(q&&!x.test(q))throw new TypeError("argument val is invalid");var W=g+"="+q;if(B.maxAge!=null){var M=B.maxAge-0;if(isNaN(M)||!isFinite(M))throw new TypeError("option maxAge is invalid");W+="; Max-Age="+Math.floor(M)}if(B.domain){if(!x.test(B.domain))throw new TypeError("option domain is invalid");W+="; Domain="+B.domain}if(B.path){if(!x.test(B.path))throw new TypeError("option path is invalid");W+="; Path="+B.path}if(B.expires){if(typeof B.expires.toUTCString!="function")throw new TypeError("option expires is invalid");W+="; Expires="+B.expires.toUTCString()}if(B.httpOnly&&(W+="; HttpOnly"),B.secure&&(W+="; Secure"),B.sameSite){var X=typeof B.sameSite=="string"?B.sameSite.toLowerCase():B.sameSite;switch(X){case!0:W+="; SameSite=Strict";break;case"lax":W+="; SameSite=Lax";break;case"strict":W+="; SameSite=Strict";break;case"none":W+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return W}function S(g,L){try{return L(g)}catch(D){return g}}},54493:(h,I,a)=>{a(77971),a(53242);var c=a(54058);h.exports=c.Array.from},24034:(h,I,a)=>{a(92737);var c=a(54058);h.exports=c.Array.isArray},15367:(h,I,a)=>{a(85906);var c=a(35703);h.exports=c("Array").concat},12710:(h,I,a)=>{a(66274);var c=a(35703);h.exports=c("Array").entries},62383:(h,I,a)=>{a(21501);var c=a(35703);h.exports=c("Array").filter},17671:(h,I,a)=>{a(80833);var c=a(35703);h.exports=c("Array").find},99324:(h,I,a)=>{a(2437);var c=a(35703);h.exports=c("Array").forEach},80991:(h,I,a)=>{a(97690);var c=a(35703);h.exports=c("Array").includes},8700:(h,I,a)=>{a(99076);var c=a(35703);h.exports=c("Array").indexOf},23866:(h,I,a)=>{a(68787);var c=a(35703);h.exports=c("Array").map},24900:(h,I,a)=>{a(60186);var c=a(35703);h.exports=c("Array").slice},78209:(h,I,a)=>{a(98611);var c=a(35703);h.exports=c("Array").splice},56043:(h,I,a)=>{var c=a(15367),v=Array.prototype;h.exports=function(x){var d=x.concat;return x===v||x instanceof Array&&d===v.concat?c:d}},2480:(h,I,a)=>{var c=a(62383),v=Array.prototype;h.exports=function(x){var d=x.filter;return x===v||x instanceof Array&&d===v.filter?c:d}},32236:(h,I,a)=>{var c=a(17671),v=Array.prototype;h.exports=function(x){var d=x.find;return x===v||x instanceof Array&&d===v.find?c:d}},58557:(h,I,a)=>{var c=a(80991),v=a(21631),x=Array.prototype,d=String.prototype;h.exports=function(b){var S=b.includes;return b===x||b instanceof Array&&S===x.includes?c:typeof b=="string"||b===d||b instanceof String&&S===d.includes?v:S}},34570:(h,I,a)=>{var c=a(8700),v=Array.prototype;h.exports=function(x){var d=x.indexOf;return x===v||x instanceof Array&&d===v.indexOf?c:d}},88287:(h,I,a)=>{var c=a(23866),v=Array.prototype;h.exports=function(x){var d=x.map;return x===v||x instanceof Array&&d===v.map?c:d}},69601:(h,I,a)=>{var c=a(24900),v=Array.prototype;h.exports=function(x){var d=x.slice;return x===v||x instanceof Array&&d===v.slice?c:d}},18339:(h,I,a)=>{var c=a(78209),v=Array.prototype;h.exports=function(x){var d=x.splice;return x===v||x instanceof Array&&d===v.splice?c:d}},84426:(h,I,a)=>{a(32619);var c=a(54058);c.JSON||(c.JSON={stringify:JSON.stringify}),h.exports=function(x,d,b){return c.JSON.stringify.apply(null,arguments)}},45999:(h,I,a)=>{a(49221);var c=a(54058);h.exports=c.Object.assign},35254:(h,I,a)=>{a(53882);var c=a(54058),v=c.Object;h.exports=function(d,b){return v.create(d,b)}},7702:(h,I,a)=>{a(74979);var c=a(54058),v=c.Object,x=h.exports=function(b,S){return v.defineProperties(b,S)};v.defineProperties.sham&&(x.sham=!0)},48171:(h,I,a)=>{a(86450);var c=a(54058),v=c.Object,x=h.exports=function(b,S,g){return v.defineProperty(b,S,g)};v.defineProperty.sham&&(x.sham=!0)},73081:(h,I,a)=>{a(21078);var c=a(54058);h.exports=c.Object.entries},286:(h,I,a)=>{a(46924);var c=a(54058),v=c.Object,x=h.exports=function(b,S){return v.getOwnPropertyDescriptor(b,S)};v.getOwnPropertyDescriptor.sham&&(x.sham=!0)},92766:(h,I,a)=>{a(88482);var c=a(54058);h.exports=c.Object.getOwnPropertyDescriptors},30498:(h,I,a)=>{a(35824);var c=a(54058);h.exports=c.Object.getOwnPropertySymbols},13966:(h,I,a)=>{a(17405);var c=a(54058);h.exports=c.Object.getPrototypeOf},48494:(h,I,a)=>{a(21724);var c=a(54058);h.exports=c.Object.keys},3065:(h,I,a)=>{a(90108);var c=a(54058);h.exports=c.Object.setPrototypeOf},52956:(h,I,a)=>{a(47627),a(55967),a(98881),a(4560),a(91302),a(4808),a(77971),a(7634);var c=a(54058);h.exports=c.Promise},14983:(h,I,a)=>{a(7453);var c=a(54058);h.exports=c.Reflect.construct},37095:(h,I,a)=>{a(42355);var c=a(54058);h.exports=c.Reflect.get},21631:(h,I,a)=>{a(11035);var c=a(35703);h.exports=c("String").includes},57473:(h,I,a)=>{a(85906),a(55967),a(35824),a(8555),a(52615),a(21732),a(35903),a(1825),a(28394),a(45915),a(61766),a(62737),a(89911),a(74315),a(63131),a(64714),a(70659),a(69120),a(79413),a(1502);var c=a(54058);h.exports=c.Symbol},24227:(h,I,a)=>{a(1825),a(77971),a(7634);var c=a(11477);h.exports=c.f("iterator")},32304:(h,I,a)=>{a(55967),a(54334),a(7634);var c=a(54058);h.exports=c.WeakMap},27385:(h,I,a)=>{var c=a(54493);h.exports=c},81522:(h,I,a)=>{var c=a(24034);h.exports=c},32209:(h,I,a)=>{a(7634),a(77971);var c=a(22902);h.exports=c},44442:(h,I,a)=>{var c=a(2480);h.exports=c},57152:(h,I,a)=>{var c=a(46279);h.exports=c},69447:(h,I,a)=>{var c=a(34570);h.exports=c},81493:(h,I,a)=>{var c=a(69601);h.exports=c},76094:(h,I,a)=>{var c=a(35254);h.exports=c},70573:(h,I,a)=>{var c=a(7702);h.exports=c},73685:(h,I,a)=>{var c=a(48171);h.exports=c},27533:(h,I,a)=>{var c=a(286);h.exports=c},39057:(h,I,a)=>{var c=a(92766);h.exports=c},84710:(h,I,a)=>{var c=a(30498);h.exports=c},74303:(h,I,a)=>{var c=a(13966);h.exports=c},93799:(h,I,a)=>{var c=a(48494);h.exports=c},55122:(h,I,a)=>{var c=a(3065);h.exports=c},29531:(h,I,a)=>{var c=a(52956);a(89731),a(55708),a(30014),a(88731),h.exports=c},10856:(h,I,a)=>{var c=a(14983);h.exports=c},31524:(h,I,a)=>{var c=a(37095);h.exports=c},86600:(h,I,a)=>{var c=a(57473);a(28783),a(43975),a(65799),a(45414),a(46774),a(80620),a(36172),h.exports=c},9759:(h,I,a)=>{var c=a(24227);h.exports=c},33916:h=>{h.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},42488:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v)&&v!==null)throw TypeError("Can't set "+String(v)+" as a prototype");return v}},18479:h=>{h.exports=function(){}},5743:h=>{h.exports=function(I,a,c){if(!(I instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return I}},96059:(h,I,a)=>{var c=a(10941);h.exports=function(v){if(!c(v))throw TypeError(String(v)+" is not an object");return v}},56837:(h,I,a)=>{"use strict";var c=a(3610).forEach,v=a(34194),x=v("forEach");h.exports=x?[].forEach:function(b){return c(this,b,arguments.length>1?arguments[1]:void 0)}},11354:(h,I,a)=>{"use strict";var c=a(86843),v=a(89678),x=a(75196),d=a(6782),b=a(43057),S=a(55449),g=a(22902);h.exports=function(D){var B=v(D),j=typeof this=="function"?this:Array,q=arguments.length,W=q>1?arguments[1]:void 0,M=W!==void 0,X=g(B),R=0,C,V,J,_,Q,Y;if(M&&(W=c(W,q>2?arguments[2]:void 0,2)),X!=null&&!(j==Array&&d(X)))for(_=X.call(B),Q=_.next,V=new j;!(J=Q.call(_)).done;R++)Y=M?x(_,W,[J.value,R],!0):J.value,S(V,R,Y);else for(C=b(B.length),V=new j(C);C>R;R++)Y=M?W(B[R],R):B[R],S(V,R,Y);return V.length=R,V}},31692:(h,I,a)=>{var c=a(74529),v=a(43057),x=a(59413),d=function(b){return function(S,g,L){var D=c(S),B=v(D.length),j=x(L,B),q;if(b&&g!=g){for(;B>j;)if(q=D[j++],q!=q)return!0}else for(;B>j;j++)if((b||j in D)&&D[j]===g)return b||j||0;return!b&&-1}};h.exports={includes:d(!0),indexOf:d(!1)}},3610:(h,I,a)=>{var c=a(86843),v=a(37026),x=a(89678),d=a(43057),b=a(64692),S=[].push,g=function(L){var D=L==1,B=L==2,j=L==3,q=L==4,W=L==6,M=L==7,X=L==5||W;return function(R,C,V,J){for(var _=x(R),Q=v(_),Y=c(C,V,3),ce=d(Q.length),ee=0,ie=J||b,xe=D?ie(R,ce):B||M?ie(R,0):void 0,we,he;ce>ee;ee++)if((X||ee in Q)&&(we=Q[ee],he=Y(we,ee,_),L))if(D)xe[ee]=he;else if(he)switch(L){case 3:return!0;case 5:return we;case 6:return ee;case 2:S.call(xe,we)}else switch(L){case 4:return!1;case 7:S.call(xe,we)}return W?-1:j||q?q:xe}};h.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterOut:g(7)}},50568:(h,I,a)=>{var c=a(95981),v=a(99813),x=a(53385),d=v("species");h.exports=function(b){return x>=51||!c(function(){var S=[],g=S.constructor={};return g[d]=function(){return{foo:1}},S[b](Boolean).foo!==1})}},34194:(h,I,a)=>{"use strict";var c=a(95981);h.exports=function(v,x){var d=[][v];return!!d&&c(function(){d.call(null,x||function(){throw 1},1)})}},64692:(h,I,a)=>{var c=a(10941),v=a(1052),x=a(99813),d=x("species");h.exports=function(b,S){var g;return v(b)&&(g=b.constructor,typeof g=="function"&&(g===Array||v(g.prototype))?g=void 0:c(g)&&(g=g[d],g===null&&(g=void 0))),new(g===void 0?Array:g)(S===0?0:S)}},75196:(h,I,a)=>{var c=a(96059),v=a(7609);h.exports=function(x,d,b,S){try{return S?d(c(b)[0],b[1]):d(b)}catch(g){throw v(x),g}}},21385:(h,I,a)=>{var c=a(99813),v=c("iterator"),x=!1;try{var d=0,b={next:function(){return{done:!!d++}},return:function(){x=!0}};b[v]=function(){return this},Array.from(b,function(){throw 2})}catch(S){}h.exports=function(S,g){if(!g&&!x)return!1;var L=!1;try{var D={};D[v]=function(){return{next:function(){return{done:L=!0}}}},S(D)}catch(B){}return L}},82532:h=>{var I={}.toString;h.exports=function(a){return I.call(a).slice(8,-1)}},9697:(h,I,a)=>{var c=a(22885),v=a(82532),x=a(99813),d=x("toStringTag"),b=v(function(){return arguments}())=="Arguments",S=function(g,L){try{return g[L]}catch(D){}};h.exports=c?v:function(g){var L,D,B;return g===void 0?"Undefined":g===null?"Null":typeof(D=S(L=Object(g),d))=="string"?D:b?v(L):(B=v(L))=="Object"&&typeof L.callee=="function"?"Arguments":B}},8850:(h,I,a)=>{"use strict";var c=a(87524),v=a(21647).getWeakData,x=a(96059),d=a(10941),b=a(5743),S=a(93091),g=a(3610),L=a(47457),D=a(45402),B=D.set,j=D.getterFor,q=g.find,W=g.findIndex,M=0,X=function(V){return V.frozen||(V.frozen=new R)},R=function(){this.entries=[]},C=function(V,J){return q(V.entries,function(_){return _[0]===J})};R.prototype={get:function(V){var J=C(this,V);if(J)return J[1]},has:function(V){return!!C(this,V)},set:function(V,J){var _=C(this,V);_?_[1]=J:this.entries.push([V,J])},delete:function(V){var J=W(this.entries,function(_){return _[0]===V});return~J&&this.entries.splice(J,1),!!~J}},h.exports={getConstructor:function(V,J,_,Q){var Y=V(function(ie,xe){b(ie,Y,J),B(ie,{type:J,id:M++,frozen:void 0}),xe!=null&&S(xe,ie[Q],{that:ie,AS_ENTRIES:_})}),ce=j(J),ee=function(ie,xe,we){var he=ce(ie),fe=v(x(xe),!0);return fe===!0?X(he).set(xe,we):fe[he.id]=we,ie};return c(Y.prototype,{delete:function(ie){var xe=ce(this);if(!d(ie))return!1;var we=v(ie);return we===!0?X(xe).delete(ie):we&&L(we,xe.id)&&delete we[xe.id]},has:function(xe){var we=ce(this);if(!d(xe))return!1;var he=v(xe);return he===!0?X(we).has(xe):he&&L(he,we.id)}}),c(Y.prototype,_?{get:function(xe){var we=ce(this);if(d(xe)){var he=v(xe);return he===!0?X(we).get(xe):he?he[we.id]:void 0}},set:function(xe,we){return ee(this,xe,we)}}:{add:function(xe){return ee(this,xe,!0)}}),Y}}},24683:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(21647),d=a(95981),b=a(32029),S=a(93091),g=a(5743),L=a(10941),D=a(90904),B=a(65988).f,j=a(3610).forEach,q=a(55746),W=a(45402),M=W.set,X=W.getterFor;h.exports=function(R,C,V){var J=R.indexOf("Map")!==-1,_=R.indexOf("Weak")!==-1,Q=J?"set":"add",Y=v[R],ce=Y&&Y.prototype,ee={},ie;if(!q||typeof Y!="function"||!(_||ce.forEach&&!d(function(){new Y().entries().next()})))ie=V.getConstructor(C,R,J,Q),x.REQUIRED=!0;else{ie=C(function(we,he){M(g(we,ie,R),{type:R,collection:new Y}),he!=null&&S(he,we[Q],{that:we,AS_ENTRIES:J})});var xe=X(R);j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(we){var he=we=="add"||we=="set";we in ce&&!(_&&we=="clear")&&b(ie.prototype,we,function(fe,se){var Fe=xe(this).collection;if(!he&&_&&!L(fe))return we=="get"?void 0:!1;var Le=Fe[we](fe===0?0:fe,se);return he?this:Le})}),_||B(ie.prototype,"size",{configurable:!0,get:function(){return xe(this).collection.size}})}return D(ie,R,!1,!0),ee[R]=ie,c({global:!0,forced:!0},ee),_||V.setStrong(ie,R,J),ie}},67772:(h,I,a)=>{var c=a(99813),v=c("match");h.exports=function(x){var d=/./;try{"/./"[x](d)}catch(b){try{return d[v]=!1,"/./"[x](d)}catch(S){}}return!1}},64160:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){function v(){}return v.prototype.constructor=null,Object.getPrototypeOf(new v)!==v.prototype})},31046:(h,I,a)=>{"use strict";var c=a(35143).IteratorPrototype,v=a(29290),x=a(31887),d=a(90904),b=a(12077),S=function(){return this};h.exports=function(g,L,D){var B=L+" Iterator";return g.prototype=v(c,{next:x(1,D)}),d(g,B,!1,!0),b[B]=S,g}},32029:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(31887);h.exports=c?function(d,b,S){return v.f(d,b,x(1,S))}:function(d,b,S){return d[b]=S,d}},31887:h=>{h.exports=function(I,a){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:a}}},55449:(h,I,a)=>{"use strict";var c=a(46935),v=a(65988),x=a(31887);h.exports=function(d,b,S){var g=c(b);g in d?v.f(d,g,x(0,S)):d[g]=S}},47771:(h,I,a)=>{"use strict";var c=a(76887),v=a(31046),x=a(249),d=a(88929),b=a(90904),S=a(32029),g=a(99754),L=a(99813),D=a(82529),B=a(12077),j=a(35143),q=j.IteratorPrototype,W=j.BUGGY_SAFARI_ITERATORS,M=L("iterator"),X="keys",R="values",C="entries",V=function(){return this};h.exports=function(J,_,Q,Y,ce,ee,ie){v(Q,_,Y);var xe=function(Ze){if(Ze===ce&&Fe)return Fe;if(!W&&Ze in fe)return fe[Ze];switch(Ze){case X:return function(){return new Q(this,Ze)};case R:return function(){return new Q(this,Ze)};case C:return function(){return new Q(this,Ze)}}return function(){return new Q(this)}},we=_+" Iterator",he=!1,fe=J.prototype,se=fe[M]||fe["@@iterator"]||ce&&fe[ce],Fe=!W&&se||xe(ce),Le=_=="Array"&&fe.entries||se,Me,Pe,rt;if(Le&&(Me=x(Le.call(new J)),q!==Object.prototype&&Me.next&&(!D&&x(Me)!==q&&(d?d(Me,q):typeof Me[M]!="function"&&S(Me,M,V)),b(Me,we,!0,!0),D&&(B[we]=V))),ce==R&&se&&se.name!==R&&(he=!0,Fe=function(){return se.call(this)}),(!D||ie)&&fe[M]!==Fe&&S(fe,M,Fe),B[_]=Fe,ce)if(Pe={values:xe(R),keys:ee?Fe:xe(X),entries:xe(C)},ie)for(rt in Pe)(W||he||!(rt in fe))&&g(fe,rt,Pe[rt]);else c({target:_,proto:!0,forced:W||he},Pe);return Pe}},66349:(h,I,a)=>{var c=a(54058),v=a(47457),x=a(11477),d=a(65988).f;h.exports=function(b){var S=c.Symbol||(c.Symbol={});v(S,b)||d(S,b,{value:x.f(b)})}},55746:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},61333:(h,I,a)=>{var c=a(21899),v=a(10941),x=c.document,d=v(x)&&v(x.createElement);h.exports=function(b){return d?x.createElement(b):{}}},63281:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},23321:h=>{h.exports=typeof window=="object"},22749:(h,I,a)=>{var c=a(2861);h.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(c)},6049:(h,I,a)=>{var c=a(82532),v=a(21899);h.exports=c(v.process)=="process"},58045:(h,I,a)=>{var c=a(2861);h.exports=/web0s(?!.*chrome)/i.test(c)},2861:(h,I,a)=>{var c=a(626);h.exports=c("navigator","userAgent")||""},53385:(h,I,a)=>{var c=a(21899),v=a(2861),x=c.process,d=x&&x.versions,b=d&&d.v8,S,g;b?(S=b.split("."),g=S[0]<4?1:S[0]+S[1]):v&&(S=v.match(/Edge\/(\d+)/),(!S||S[1]>=74)&&(S=v.match(/Chrome\/(\d+)/),S&&(g=S[1]))),h.exports=g&&+g},35703:(h,I,a)=>{var c=a(54058);h.exports=function(v){return c[v+"Prototype"]}},56759:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},76887:(h,I,a)=>{"use strict";var c=a(21899),v=a(49677).f,x=a(37252),d=a(54058),b=a(86843),S=a(32029),g=a(47457),L=function(D){var B=function(j,q,W){if(this instanceof D){switch(arguments.length){case 0:return new D;case 1:return new D(j);case 2:return new D(j,q)}return new D(j,q,W)}return D.apply(this,arguments)};return B.prototype=D.prototype,B};h.exports=function(D,B){var j=D.target,q=D.global,W=D.stat,M=D.proto,X=q?c:W?c[j]:(c[j]||{}).prototype,R=q?d:d[j]||(d[j]={}),C=R.prototype,V,J,_,Q,Y,ce,ee,ie,xe;for(Q in B)V=x(q?Q:j+(W?".":"#")+Q,D.forced),J=!V&&X&&g(X,Q),ce=R[Q],J&&(D.noTargetGet?(xe=v(X,Q),ee=xe&&xe.value):ee=X[Q]),Y=J&&ee?ee:B[Q],!(J&&typeof ce==typeof Y)&&(D.bind&&J?ie=b(Y,c):D.wrap&&J?ie=L(Y):M&&typeof Y=="function"?ie=b(Function.call,Y):ie=Y,(D.sham||Y&&Y.sham||ce&&ce.sham)&&S(ie,"sham",!0),R[Q]=ie,M&&(_=j+"Prototype",g(d,_)||S(d,_,{}),d[_][Q]=Y,D.real&&C&&!C[Q]&&S(C,Q,Y)))}},95981:h=>{h.exports=function(I){try{return!!I()}catch(a){return!0}}},45602:(h,I,a)=>{var c=a(95981);h.exports=!c(function(){return Object.isExtensible(Object.preventExtensions({}))})},86843:(h,I,a)=>{var c=a(33916);h.exports=function(v,x,d){if(c(v),x===void 0)return v;switch(d){case 0:return function(){return v.call(x)};case 1:return function(b){return v.call(x,b)};case 2:return function(b,S){return v.call(x,b,S)};case 3:return function(b,S,g){return v.call(x,b,S,g)}}return function(){return v.apply(x,arguments)}}},98308:(h,I,a)=>{"use strict";var c=a(33916),v=a(10941),x=[].slice,d={},b=function(S,g,L){if(!(g in d)){for(var D=[],B=0;B<g;B++)D[B]="a["+B+"]";d[g]=Function("C,a","return new C("+D.join(",")+")")}return d[g](S,L)};h.exports=Function.bind||function(g){var L=c(this),D=x.call(arguments,1),B=function(){var q=D.concat(x.call(arguments));return this instanceof B?b(L,q.length,q):L.apply(g,q)};return v(L.prototype)&&(B.prototype=L.prototype),B}},626:(h,I,a)=>{var c=a(54058),v=a(21899),x=function(d){return typeof d=="function"?d:void 0};h.exports=function(d,b){return arguments.length<2?x(c[d])||x(v[d]):c[d]&&c[d][b]||v[d]&&v[d][b]}},22902:(h,I,a)=>{var c=a(9697),v=a(12077),x=a(99813),d=x("iterator");h.exports=function(b){if(b!=null)return b[d]||b["@@iterator"]||v[c(b)]}},21899:(h,I,a)=>{var c=function(v){return v&&v.Math==Math&&v};h.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},47457:(h,I,a)=>{var c=a(89678),v={}.hasOwnProperty;h.exports=Object.hasOwn||function(d,b){return v.call(c(d),b)}},27748:h=>{h.exports={}},34845:(h,I,a)=>{var c=a(21899);h.exports=function(v,x){var d=c.console;d&&d.error&&(arguments.length===1?d.error(v):d.error(v,x))}},15463:(h,I,a)=>{var c=a(626);h.exports=c("document","documentElement")},2840:(h,I,a)=>{var c=a(55746),v=a(95981),x=a(61333);h.exports=!c&&!v(function(){return Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a!=7})},37026:(h,I,a)=>{var c=a(95981),v=a(82532),x="".split;h.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return v(d)=="String"?x.call(d,""):Object(d)}:Object},81302:(h,I,a)=>{var c=a(63030),v=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(x){return v.call(x)}),h.exports=c.inspectSource},21647:(h,I,a)=>{var c=a(27748),v=a(10941),x=a(47457),d=a(65988).f,b=a(99418),S=a(45602),g=b("meta"),L=0,D=Object.isExtensible||function(){return!0},B=function(X){d(X,g,{value:{objectID:"O"+ ++L,weakData:{}}})},j=function(X,R){if(!v(X))return typeof X=="symbol"?X:(typeof X=="string"?"S":"P")+X;if(!x(X,g)){if(!D(X))return"F";if(!R)return"E";B(X)}return X[g].objectID},q=function(X,R){if(!x(X,g)){if(!D(X))return!0;if(!R)return!1;B(X)}return X[g].weakData},W=function(X){return S&&M.REQUIRED&&D(X)&&!x(X,g)&&B(X),X},M=h.exports={REQUIRED:!1,fastKey:j,getWeakData:q,onFreeze:W};c[g]=!0},45402:(h,I,a)=>{var c=a(38019),v=a(21899),x=a(10941),d=a(32029),b=a(47457),S=a(63030),g=a(44262),L=a(27748),D="Object already initialized",B=v.WeakMap,j,q,W,M=function(Q){return W(Q)?q(Q):j(Q,{})},X=function(Q){return function(Y){var ce;if(!x(Y)||(ce=q(Y)).type!==Q)throw TypeError("Incompatible receiver, "+Q+" required");return ce}};if(c||S.state){var R=S.state||(S.state=new B),C=R.get,V=R.has,J=R.set;j=function(Q,Y){if(V.call(R,Q))throw new TypeError(D);return Y.facade=Q,J.call(R,Q,Y),Y},q=function(Q){return C.call(R,Q)||{}},W=function(Q){return V.call(R,Q)}}else{var _=g("state");L[_]=!0,j=function(Q,Y){if(b(Q,_))throw new TypeError(D);return Y.facade=Q,d(Q,_,Y),Y},q=function(Q){return b(Q,_)?Q[_]:{}},W=function(Q){return b(Q,_)}}h.exports={set:j,get:q,has:W,enforce:M,getterFor:X}},6782:(h,I,a)=>{var c=a(99813),v=a(12077),x=c("iterator"),d=Array.prototype;h.exports=function(b){return b!==void 0&&(v.Array===b||d[x]===b)}},1052:(h,I,a)=>{var c=a(82532);h.exports=Array.isArray||function(x){return c(x)=="Array"}},37252:(h,I,a)=>{var c=a(95981),v=/#|\.prototype\./,x=function(L,D){var B=b[d(L)];return B==g?!0:B==S?!1:typeof D=="function"?c(D):!!D},d=x.normalize=function(L){return String(L).replace(v,".").toLowerCase()},b=x.data={},S=x.NATIVE="N",g=x.POLYFILL="P";h.exports=x},10941:h=>{h.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},82529:h=>{h.exports=!0},60685:(h,I,a)=>{var c=a(10941),v=a(82532),x=a(99813),d=x("match");h.exports=function(b){var S;return c(b)&&((S=b[d])!==void 0?!!S:v(b)=="RegExp")}},93091:(h,I,a)=>{var c=a(96059),v=a(6782),x=a(43057),d=a(86843),b=a(22902),S=a(7609),g=function(L,D){this.stopped=L,this.result=D};h.exports=function(L,D,B){var j=B&&B.that,q=!!(B&&B.AS_ENTRIES),W=!!(B&&B.IS_ITERATOR),M=!!(B&&B.INTERRUPTED),X=d(D,j,1+q+M),R,C,V,J,_,Q,Y,ce=function(ie){return R&&S(R),new g(!0,ie)},ee=function(ie){return q?(c(ie),M?X(ie[0],ie[1],ce):X(ie[0],ie[1])):M?X(ie,ce):X(ie)};if(W)R=L;else{if(C=b(L),typeof C!="function")throw TypeError("Target is not iterable");if(v(C)){for(V=0,J=x(L.length);J>V;V++)if(_=ee(L[V]),_&&_ instanceof g)return _;return new g(!1)}R=C.call(L)}for(Q=R.next;!(Y=Q.call(R)).done;){try{_=ee(Y.value)}catch(ie){throw S(R),ie}if(typeof _=="object"&&_&&_ instanceof g)return _}return new g(!1)}},7609:(h,I,a)=>{var c=a(96059);h.exports=function(v){var x=v.return;if(x!==void 0)return c(x.call(v)).value}},35143:(h,I,a)=>{"use strict";var c=a(95981),v=a(249),x=a(32029),d=a(47457),b=a(99813),S=a(82529),g=b("iterator"),L=!1,D=function(){return this},B,j,q;[].keys&&(q=[].keys(),"next"in q?(j=v(v(q)),j!==Object.prototype&&(B=j)):L=!0);var W=B==null||c(function(){var M={};return B[g].call(M)!==M});W&&(B={}),(!S||W)&&!d(B,g)&&x(B,g,D),h.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},12077:h=>{h.exports={}},66132:(h,I,a)=>{var c=a(21899),v=a(49677).f,x=a(42941).set,d=a(22749),b=a(58045),S=a(6049),g=c.MutationObserver||c.WebKitMutationObserver,L=c.document,D=c.process,B=c.Promise,j=v(c,"queueMicrotask"),q=j&&j.value,W,M,X,R,C,V,J,_;q||(W=function(){var Q,Y;for(S&&(Q=D.domain)&&Q.exit();M;){Y=M.fn,M=M.next;try{Y()}catch(ce){throw M?R():X=void 0,ce}}X=void 0,Q&&Q.enter()},!d&&!S&&!b&&g&&L?(C=!0,V=L.createTextNode(""),new g(W).observe(V,{characterData:!0}),R=function(){V.data=C=!C}):B&&B.resolve?(J=B.resolve(void 0),J.constructor=B,_=J.then,R=function(){_.call(J,W)}):S?R=function(){D.nextTick(W)}:R=function(){x.call(c,W)}),h.exports=q||function(Q){var Y={fn:Q,next:void 0};X&&(X.next=Y),M||(M=Y,R()),X=Y}},19297:(h,I,a)=>{var c=a(21899);h.exports=c.Promise},72497:(h,I,a)=>{var c=a(53385),v=a(95981);h.exports=!!Object.getOwnPropertySymbols&&!v(function(){var x=Symbol();return!String(x)||!(Object(x)instanceof Symbol)||!Symbol.sham&&c&&c<41})},38019:(h,I,a)=>{var c=a(21899),v=a(81302),x=c.WeakMap;h.exports=typeof x=="function"&&/native code/.test(v(x))},69520:(h,I,a)=>{"use strict";var c=a(33916),v=function(x){var d,b;this.promise=new x(function(S,g){if(d!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");d=S,b=g}),this.resolve=c(d),this.reject=c(b)};h.exports.f=function(x){return new v(x)}},70344:(h,I,a)=>{var c=a(60685);h.exports=function(v){if(c(v))throw TypeError("The method doesn't accept regular expressions");return v}},24420:(h,I,a)=>{"use strict";var c=a(55746),v=a(95981),x=a(14771),d=a(87857),b=a(36760),S=a(89678),g=a(37026),L=Object.assign,D=Object.defineProperty;h.exports=!L||v(function(){if(c&&L({b:1},L(D({},"a",{enumerable:!0,get:function(){D(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var B={},j={},q=Symbol(),W="abcdefghijklmnopqrst";return B[q]=7,W.split("").forEach(function(M){j[M]=M}),L({},B)[q]!=7||x(L({},j)).join("")!=W})?function(j,q){for(var W=S(j),M=arguments.length,X=1,R=d.f,C=b.f;M>X;)for(var V=g(arguments[X++]),J=R?x(V).concat(R(V)):x(V),_=J.length,Q=0,Y;_>Q;)Y=J[Q++],(!c||C.call(V,Y))&&(W[Y]=V[Y]);return W}:L},29290:(h,I,a)=>{var c=a(96059),v=a(59938),x=a(56759),d=a(27748),b=a(15463),S=a(61333),g=a(44262),L=">",D="<",B="prototype",j="script",q=g("IE_PROTO"),W=function(){},M=function(J){return D+j+L+J+D+"/"+j+L},X=function(J){J.write(M("")),J.close();var _=J.parentWindow.Object;return J=null,_},R=function(){var J=S("iframe"),_="java"+j+":",Q;return J.style.display="none",b.appendChild(J),J.src=String(_),Q=J.contentWindow.document,Q.open(),Q.write(M("document.F=Object")),Q.close(),Q.F},C,V=function(){try{C=document.domain&&new ActiveXObject("htmlfile")}catch(_){}V=C?X(C):R();for(var J=x.length;J--;)delete V[B][x[J]];return V()};d[q]=!0,h.exports=Object.create||function(_,Q){var Y;return _!==null?(W[B]=c(_),Y=new W,W[B]=null,Y[q]=_):Y=V(),Q===void 0?Y:v(Y,Q)}},59938:(h,I,a)=>{var c=a(55746),v=a(65988),x=a(96059),d=a(14771);h.exports=c?Object.defineProperties:function(S,g){x(S);for(var L=d(g),D=L.length,B=0,j;D>B;)v.f(S,j=L[B++],g[j]);return S}},65988:(h,I,a)=>{var c=a(55746),v=a(2840),x=a(96059),d=a(46935),b=Object.defineProperty;I.f=c?b:function(g,L,D){if(x(g),L=d(L,!0),x(D),v)try{return b(g,L,D)}catch(B){}if("get"in D||"set"in D)throw TypeError("Accessors not supported");return"value"in D&&(g[L]=D.value),g}},49677:(h,I,a)=>{var c=a(55746),v=a(36760),x=a(31887),d=a(74529),b=a(46935),S=a(47457),g=a(2840),L=Object.getOwnPropertyDescriptor;I.f=c?L:function(B,j){if(B=d(B),j=b(j,!0),g)try{return L(B,j)}catch(q){}if(S(B,j))return x(!v.f.call(B,j),B[j])}},684:(h,I,a)=>{var c=a(74529),v=a(10946).f,x={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(S){try{return v(S)}catch(g){return d.slice()}};h.exports.f=function(g){return d&&x.call(g)=="[object Window]"?b(g):v(c(g))}},10946:(h,I,a)=>{var c=a(55629),v=a(56759),x=v.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(b){return c(b,x)}},87857:(h,I)=>{I.f=Object.getOwnPropertySymbols},249:(h,I,a)=>{var c=a(47457),v=a(89678),x=a(44262),d=a(64160),b=x("IE_PROTO"),S=Object.prototype;h.exports=d?Object.getPrototypeOf:function(g){return g=v(g),c(g,b)?g[b]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?S:null}},55629:(h,I,a)=>{var c=a(47457),v=a(74529),x=a(31692).indexOf,d=a(27748);h.exports=function(b,S){var g=v(b),L=0,D=[],B;for(B in g)!c(d,B)&&c(g,B)&&D.push(B);for(;S.length>L;)c(g,B=S[L++])&&(~x(D,B)||D.push(B));return D}},14771:(h,I,a)=>{var c=a(55629),v=a(56759);h.exports=Object.keys||function(d){return c(d,v)}},36760:(h,I)=>{"use strict";var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,v=c&&!a.call({1:2},1);I.f=v?function(d){var b=c(this,d);return!!b&&b.enumerable}:a},88929:(h,I,a)=>{var c=a(96059),v=a(42488);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var x=!1,d={},b;try{b=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,b.call(d,[]),x=d instanceof Array}catch(S){}return function(g,L){return c(g),v(L),x?b.call(g,L):g.__proto__=L,g}}():void 0)},88810:(h,I,a)=>{var c=a(55746),v=a(14771),x=a(74529),d=a(36760).f,b=function(S){return function(g){for(var L=x(g),D=v(L),B=D.length,j=0,q=[],W;B>j;)W=D[j++],(!c||d.call(L,W))&&q.push(S?[W,L[W]]:L[W]);return q}};h.exports={entries:b(!0),values:b(!1)}},95623:(h,I,a)=>{"use strict";var c=a(22885),v=a(9697);h.exports=c?{}.toString:function(){return"[object "+v(this)+"]"}},31136:(h,I,a)=>{var c=a(626),v=a(10946),x=a(87857),d=a(96059);h.exports=c("Reflect","ownKeys")||function(S){var g=v.f(d(S)),L=x.f;return L?g.concat(L(S)):g}},54058:h=>{h.exports={}},40002:h=>{h.exports=function(I){try{return{error:!1,value:I()}}catch(a){return{error:!0,value:a}}}},56584:(h,I,a)=>{var c=a(96059),v=a(10941),x=a(69520);h.exports=function(d,b){if(c(d),v(b)&&b.constructor===d)return b;var S=x.f(d),g=S.resolve;return g(b),S.promise}},87524:(h,I,a)=>{var c=a(99754);h.exports=function(v,x,d){for(var b in x)d&&d.unsafe&&v[b]?v[b]=x[b]:c(v,b,x[b],d);return v}},99754:(h,I,a)=>{var c=a(32029);h.exports=function(v,x,d,b){b&&b.enumerable?v[x]=d:c(v,x,d)}},48219:h=>{h.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},4911:(h,I,a)=>{var c=a(21899),v=a(32029);h.exports=function(x,d){try{v(c,x,d)}catch(b){c[x]=d}return d}},94431:(h,I,a)=>{"use strict";var c=a(626),v=a(65988),x=a(99813),d=a(55746),b=x("species");h.exports=function(S){var g=c(S),L=v.f;d&&g&&!g[b]&&L(g,b,{configurable:!0,get:function(){return this}})}},90904:(h,I,a)=>{var c=a(22885),v=a(65988).f,x=a(32029),d=a(47457),b=a(95623),S=a(99813),g=S("toStringTag");h.exports=function(L,D,B,j){if(L){var q=B?L:L.prototype;d(q,g)||v(q,g,{configurable:!0,value:D}),j&&!c&&x(q,"toString",b)}}},44262:(h,I,a)=>{var c=a(68726),v=a(99418),x=c("keys");h.exports=function(d){return x[d]||(x[d]=v(d))}},63030:(h,I,a)=>{var c=a(21899),v=a(4911),x="__core-js_shared__",d=c[x]||v(x,{});h.exports=d},68726:(h,I,a)=>{var c=a(82529),v=a(63030);(h.exports=function(x,d){return v[x]||(v[x]=d!==void 0?d:{})})("versions",[]).push({version:"3.14.0",mode:c?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},70487:(h,I,a)=>{var c=a(96059),v=a(33916),x=a(99813),d=x("species");h.exports=function(b,S){var g=c(b).constructor,L;return g===void 0||(L=c(g)[d])==null?S:v(L)}},64620:(h,I,a)=>{var c=a(68459),v=a(48219),x=function(d){return function(b,S){var g=String(v(b)),L=c(S),D=g.length,B,j;return L<0||L>=D?d?"":void 0:(B=g.charCodeAt(L),B<55296||B>56319||L+1===D||(j=g.charCodeAt(L+1))<56320||j>57343?d?g.charAt(L):B:d?g.slice(L,L+2):(B-55296<<10)+(j-56320)+65536)}};h.exports={codeAt:x(!1),charAt:x(!0)}},42941:(h,I,a)=>{var c=a(21899),v=a(95981),x=a(86843),d=a(15463),b=a(61333),S=a(22749),g=a(6049),L=c.location,D=c.setImmediate,B=c.clearImmediate,j=c.process,q=c.MessageChannel,W=c.Dispatch,M=0,X={},R="onreadystatechange",C,V,J,_=function(ee){if(X.hasOwnProperty(ee)){var ie=X[ee];delete X[ee],ie()}},Q=function(ee){return function(){_(ee)}},Y=function(ee){_(ee.data)},ce=function(ee){c.postMessage(ee+"",L.protocol+"//"+L.host)};(!D||!B)&&(D=function(ie){for(var xe=[],we=1;arguments.length>we;)xe.push(arguments[we++]);return X[++M]=function(){(typeof ie=="function"?ie:Function(ie)).apply(void 0,xe)},C(M),M},B=function(ie){delete X[ie]},g?C=function(ee){j.nextTick(Q(ee))}:W&&W.now?C=function(ee){W.now(Q(ee))}:q&&!S?(V=new q,J=V.port2,V.port1.onmessage=Y,C=x(J.postMessage,J,1)):c.addEventListener&&typeof postMessage=="function"&&!c.importScripts&&L&&L.protocol!=="file:"&&!v(ce)?(C=ce,c.addEventListener("message",Y,!1)):R in b("script")?C=function(ee){d.appendChild(b("script"))[R]=function(){d.removeChild(this),_(ee)}}:C=function(ee){setTimeout(Q(ee),0)}),h.exports={set:D,clear:B}},59413:(h,I,a)=>{var c=a(68459),v=Math.max,x=Math.min;h.exports=function(d,b){var S=c(d);return S<0?v(S+b,0):x(S,b)}},74529:(h,I,a)=>{var c=a(37026),v=a(48219);h.exports=function(x){return c(v(x))}},68459:h=>{var I=Math.ceil,a=Math.floor;h.exports=function(c){return isNaN(c=+c)?0:(c>0?a:I)(c)}},43057:(h,I,a)=>{var c=a(68459),v=Math.min;h.exports=function(x){return x>0?v(c(x),9007199254740991):0}},89678:(h,I,a)=>{var c=a(48219);h.exports=function(v){return Object(c(v))}},46935:(h,I,a)=>{var c=a(10941);h.exports=function(v,x){if(!c(v))return v;var d,b;if(x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v))||typeof(d=v.valueOf)=="function"&&!c(b=d.call(v))||!x&&typeof(d=v.toString)=="function"&&!c(b=d.call(v)))return b;throw TypeError("Can't convert object to primitive value")}},22885:(h,I,a)=>{var c=a(99813),v=c("toStringTag"),x={};x[v]="z",h.exports=String(x)==="[object z]"},99418:h=>{var I=0,a=Math.random();h.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++I+a).toString(36)}},32302:(h,I,a)=>{var c=a(72497);h.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},11477:(h,I,a)=>{var c=a(99813);I.f=c},99813:(h,I,a)=>{var c=a(21899),v=a(68726),x=a(47457),d=a(99418),b=a(72497),S=a(32302),g=v("wks"),L=c.Symbol,D=S?L:L&&L.withoutSetter||d;h.exports=function(B){return(!x(g,B)||!(b||typeof g[B]=="string"))&&(b&&x(L,B)?g[B]=L[B]:g[B]=D("Symbol."+B)),g[B]}},47627:(h,I,a)=>{"use strict";var c=a(76887),v=a(249),x=a(88929),d=a(29290),b=a(32029),S=a(31887),g=a(93091),L=function(B,j){var q=this;if(!(q instanceof L))return new L(B,j);x&&(q=x(new Error(void 0),v(q))),j!==void 0&&b(q,"message",String(j));var W=[];return g(B,W.push,{that:W}),b(q,"errors",W),q};L.prototype=d(Error.prototype,{constructor:S(5,L),message:S(5,""),name:S(5,"AggregateError")}),c({global:!0},{AggregateError:L})},85906:(h,I,a)=>{"use strict";var c=a(76887),v=a(95981),x=a(1052),d=a(10941),b=a(89678),S=a(43057),g=a(55449),L=a(64692),D=a(50568),B=a(99813),j=a(53385),q=B("isConcatSpreadable"),W=9007199254740991,M="Maximum allowed index exceeded",X=j>=51||!v(function(){var J=[];return J[q]=!1,J.concat()[0]!==J}),R=D("concat"),C=function(J){if(!d(J))return!1;var _=J[q];return _!==void 0?!!_:x(J)},V=!X||!R;c({target:"Array",proto:!0,forced:V},{concat:function(_){var Q=b(this),Y=L(Q,0),ce=0,ee,ie,xe,we,he;for(ee=-1,xe=arguments.length;ee<xe;ee++)if(he=ee===-1?Q:arguments[ee],C(he)){if(we=S(he.length),ce+we>W)throw TypeError(M);for(ie=0;ie<we;ie++,ce++)ie in he&&g(Y,ce,he[ie])}else{if(ce>=W)throw TypeError(M);g(Y,ce++,he)}return Y.length=ce,Y}})},21501:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).filter,x=a(50568),d=x("filter");c({target:"Array",proto:!0,forced:!d},{filter:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},80833:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).find,x=a(18479),d="find",b=!0;d in[]&&Array(1)[d](function(){b=!1}),c({target:"Array",proto:!0,forced:b},{find:function(g){return v(this,g,arguments.length>1?arguments[1]:void 0)}}),x(d)},2437:(h,I,a)=>{"use strict";var c=a(76887),v=a(56837);c({target:"Array",proto:!0,forced:[].forEach!=v},{forEach:v})},53242:(h,I,a)=>{var c=a(76887),v=a(11354),x=a(21385),d=!x(function(b){Array.from(b)});c({target:"Array",stat:!0,forced:d},{from:v})},97690:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).includes,x=a(18479);c({target:"Array",proto:!0},{includes:function(b){return v(this,b,arguments.length>1?arguments[1]:void 0)}}),x("includes")},99076:(h,I,a)=>{"use strict";var c=a(76887),v=a(31692).indexOf,x=a(34194),d=[].indexOf,b=!!d&&1/[1].indexOf(1,-0)<0,S=x("indexOf");c({target:"Array",proto:!0,forced:b||!S},{indexOf:function(L){return b?d.apply(this,arguments)||0:v(this,L,arguments.length>1?arguments[1]:void 0)}})},92737:(h,I,a)=>{var c=a(76887),v=a(1052);c({target:"Array",stat:!0},{isArray:v})},66274:(h,I,a)=>{"use strict";var c=a(74529),v=a(18479),x=a(12077),d=a(45402),b=a(47771),S="Array Iterator",g=d.set,L=d.getterFor(S);h.exports=b(Array,"Array",function(D,B){g(this,{type:S,target:c(D),index:0,kind:B})},function(){var D=L(this),B=D.target,j=D.kind,q=D.index++;return!B||q>=B.length?(D.target=void 0,{value:void 0,done:!0}):j=="keys"?{value:q,done:!1}:j=="values"?{value:B[q],done:!1}:{value:[q,B[q]],done:!1}},"values"),x.Arguments=x.Array,v("keys"),v("values"),v("entries")},68787:(h,I,a)=>{"use strict";var c=a(76887),v=a(3610).map,x=a(50568),d=x("map");c({target:"Array",proto:!0,forced:!d},{map:function(S){return v(this,S,arguments.length>1?arguments[1]:void 0)}})},60186:(h,I,a)=>{"use strict";var c=a(76887),v=a(10941),x=a(1052),d=a(59413),b=a(43057),S=a(74529),g=a(55449),L=a(99813),D=a(50568),B=D("slice"),j=L("species"),q=[].slice,W=Math.max;c({target:"Array",proto:!0,forced:!B},{slice:function(X,R){var C=S(this),V=b(C.length),J=d(X,V),_=d(R===void 0?V:R,V),Q,Y,ce;if(x(C)&&(Q=C.constructor,typeof Q=="function"&&(Q===Array||x(Q.prototype))?Q=void 0:v(Q)&&(Q=Q[j],Q===null&&(Q=void 0)),Q===Array||Q===void 0))return q.call(C,J,_);for(Y=new(Q===void 0?Array:Q)(W(_-J,0)),ce=0;J<_;J++,ce++)J in C&&g(Y,ce,C[J]);return Y.length=ce,Y}})},98611:(h,I,a)=>{"use strict";var c=a(76887),v=a(59413),x=a(68459),d=a(43057),b=a(89678),S=a(64692),g=a(55449),L=a(50568),D=L("splice"),B=Math.max,j=Math.min,q=9007199254740991,W="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!D},{splice:function(X,R){var C=b(this),V=d(C.length),J=v(X,V),_=arguments.length,Q,Y,ce,ee,ie,xe;if(_===0?Q=Y=0:_===1?(Q=0,Y=V-J):(Q=_-2,Y=j(B(x(R),0),V-J)),V+Q-Y>q)throw TypeError(W);for(ce=S(C,Y),ee=0;ee<Y;ee++)ie=J+ee,ie in C&&g(ce,ee,C[ie]);if(ce.length=Y,Q<Y){for(ee=J;ee<V-Y;ee++)ie=ee+Y,xe=ee+Q,ie in C?C[xe]=C[ie]:delete C[xe];for(ee=V;ee>V-Y+Q;ee--)delete C[ee-1]}else if(Q>Y)for(ee=V-Y;ee>J;ee--)ie=ee+Y-1,xe=ee+Q-1,ie in C?C[xe]=C[ie]:delete C[xe];for(ee=0;ee<Q;ee++)C[ee+J]=arguments[ee+2];return C.length=V-Y+Q,ce}})},32619:(h,I,a)=>{var c=a(76887),v=a(626),x=a(95981),d=v("JSON","stringify"),b=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,g=/^[\uDC00-\uDFFF]$/,L=function(B,j,q){var W=q.charAt(j-1),M=q.charAt(j+1);return S.test(B)&&!g.test(M)||g.test(B)&&!S.test(W)?"\\u"+B.charCodeAt(0).toString(16):B},D=x(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'});d&&c({target:"JSON",stat:!0,forced:D},{stringify:function(j,q,W){var M=d.apply(null,arguments);return typeof M=="string"?M.replace(b,L):M}})},69120:(h,I,a)=>{var c=a(21899),v=a(90904);v(c.JSON,"JSON",!0)},79413:()=>{},49221:(h,I,a)=>{var c=a(76887),v=a(24420);c({target:"Object",stat:!0,forced:Object.assign!==v},{assign:v})},53882:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(29290);c({target:"Object",stat:!0,sham:!v},{create:x})},74979:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(59938);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperties:x})},86450:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(65988);c({target:"Object",stat:!0,forced:!v,sham:!v},{defineProperty:x.f})},21078:(h,I,a)=>{var c=a(76887),v=a(88810).entries;c({target:"Object",stat:!0},{entries:function(d){return v(d)}})},46924:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(74529),d=a(49677).f,b=a(55746),S=v(function(){d(1)}),g=!b||S;c({target:"Object",stat:!0,forced:g,sham:!b},{getOwnPropertyDescriptor:function(D,B){return d(x(D),B)}})},88482:(h,I,a)=>{var c=a(76887),v=a(55746),x=a(31136),d=a(74529),b=a(49677),S=a(55449);c({target:"Object",stat:!0,sham:!v},{getOwnPropertyDescriptors:function(L){for(var D=d(L),B=b.f,j=x(D),q={},W=0,M,X;j.length>W;)X=B(D,M=j[W++]),X!==void 0&&S(q,M,X);return q}})},17405:(h,I,a)=>{var c=a(76887),v=a(95981),x=a(89678),d=a(249),b=a(64160),S=v(function(){d(1)});c({target:"Object",stat:!0,forced:S,sham:!b},{getPrototypeOf:function(L){return d(x(L))}})},21724:(h,I,a)=>{var c=a(76887),v=a(89678),x=a(14771),d=a(95981),b=d(function(){x(1)});c({target:"Object",stat:!0,forced:b},{keys:function(g){return x(v(g))}})},90108:(h,I,a)=>{var c=a(76887),v=a(88929);c({target:"Object",stat:!0},{setPrototypeOf:v})},55967:()=>{},4560:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(69520),d=a(40002),b=a(93091);c({target:"Promise",stat:!0},{allSettled:function(g){var L=this,D=x.f(L),B=D.resolve,j=D.reject,q=d(function(){var W=v(L.resolve),M=[],X=0,R=1;b(g,function(C){var V=X++,J=!1;M.push(void 0),R++,W.call(L,C).then(function(_){J||(J=!0,M[V]={status:"fulfilled",value:_},--R||B(M))},function(_){J||(J=!0,M[V]={status:"rejected",reason:_},--R||B(M))})}),--R||B(M)});return q.error&&j(q.value),D.promise}})},91302:(h,I,a)=>{"use strict";var c=a(76887),v=a(33916),x=a(626),d=a(69520),b=a(40002),S=a(93091),g="No one promise resolved";c({target:"Promise",stat:!0},{any:function(D){var B=this,j=d.f(B),q=j.resolve,W=j.reject,M=b(function(){var X=v(B.resolve),R=[],C=0,V=1,J=!1;S(D,function(_){var Q=C++,Y=!1;R.push(void 0),V++,X.call(B,_).then(function(ce){Y||J||(J=!0,q(ce))},function(ce){Y||J||(Y=!0,R[Q]=ce,--V||W(new(x("AggregateError"))(R,g)))})}),--V||W(new(x("AggregateError"))(R,g))});return M.error&&W(M.value),j.promise}})},4808:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(19297),d=a(95981),b=a(626),S=a(70487),g=a(56584),L=a(99754),D=!!x&&d(function(){x.prototype.finally.call({then:function(){}},function(){})});if(c({target:"Promise",proto:!0,real:!0,forced:D},{finally:function(j){var q=S(this,b("Promise")),W=typeof j=="function";return this.then(W?function(M){return g(q,j()).then(function(){return M})}:j,W?function(M){return g(q,j()).then(function(){throw M})}:j)}}),!v&&typeof x=="function"){var B=b("Promise").prototype.finally;x.prototype.finally!==B&&L(x.prototype,"finally",B,{unsafe:!0})}},98881:(h,I,a)=>{"use strict";var c=a(76887),v=a(82529),x=a(21899),d=a(626),b=a(19297),S=a(99754),g=a(87524),L=a(88929),D=a(90904),B=a(94431),j=a(10941),q=a(33916),W=a(5743),M=a(81302),X=a(93091),R=a(21385),C=a(70487),V=a(42941).set,J=a(66132),_=a(56584),Q=a(34845),Y=a(69520),ce=a(40002),ee=a(45402),ie=a(37252),xe=a(99813),we=a(23321),he=a(6049),fe=a(53385),se=xe("species"),Fe="Promise",Le=ee.get,Me=ee.set,Pe=ee.getterFor(Fe),rt=b&&b.prototype,Ze=b,Xe=rt,ft=x.TypeError,ht=x.document,wt=x.process,nt=Y.f,ut=nt,mt=!!(ht&&ht.createEvent&&x.dispatchEvent),xt=typeof PromiseRejectionEvent=="function",pt="unhandledrejection",Mt="rejectionhandled",kt=0,Et=1,zt=2,jt=1,Vt=2,St=!1,Dt,ve,z,$,Se=ie(Fe,function(){var re=M(Ze)!==String(Ze);if(!re&&fe===66||v&&!Xe.finally)return!0;if(fe>=51&&/native code/.test(Ze))return!1;var de=new Ze(function(Ee){Ee(1)}),ae=function(Ee){Ee(function(){},function(){})},pe=de.constructor={};return pe[se]=ae,St=de.then(function(){})instanceof ae,St?!re&&we&&!xt:!0}),Ie=Se||!R(function(re){Ze.all(re).catch(function(){})}),Ge=function(re){var de;return j(re)&&typeof(de=re.then)=="function"?de:!1},Ke=function(re,de){if(!re.notified){re.notified=!0;var ae=re.reactions;J(function(){for(var pe=re.value,Ee=re.state==Et,Ue=0;ae.length>Ue;){var je=ae[Ue++],Qe=Ee?je.ok:je.fail,vt=je.resolve,At=je.reject,Bt=je.domain,Pt,hn,Nr;try{Qe?(Ee||(re.rejection===Vt&&T(re),re.rejection=jt),Qe===!0?Pt=pe:(Bt&&Bt.enter(),Pt=Qe(pe),Bt&&(Bt.exit(),Nr=!0)),Pt===je.promise?At(ft("Promise-chain cycle")):(hn=Ge(Pt))?hn.call(Pt,vt,At):vt(Pt)):At(pe)}catch(Cr){Bt&&!Nr&&Bt.exit(),At(Cr)}}re.reactions=[],re.notified=!1,de&&!re.rejection&&Re(re)})}},P=function(re,de,ae){var pe,Ee;mt?(pe=ht.createEvent("Event"),pe.promise=de,pe.reason=ae,pe.initEvent(re,!1,!0),x.dispatchEvent(pe)):pe={promise:de,reason:ae},!xt&&(Ee=x["on"+re])?Ee(pe):re===pt&&Q("Unhandled promise rejection",ae)},Re=function(re){V.call(x,function(){var de=re.facade,ae=re.value,pe=K(re),Ee;if(pe&&(Ee=ce(function(){he?wt.emit("unhandledRejection",ae,de):P(pt,de,ae)}),re.rejection=he||K(re)?Vt:jt,Ee.error))throw Ee.value})},K=function(re){return re.rejection!==jt&&!re.parent},T=function(re){V.call(x,function(){var de=re.facade;he?wt.emit("rejectionHandled",de):P(Mt,de,re.value)})},O=function(re,de,ae){return function(pe){re(de,pe,ae)}},le=function(re,de,ae){re.done||(re.done=!0,ae&&(re=ae),re.value=de,re.state=zt,Ke(re,!0))},N=function(re,de,ae){if(!re.done){re.done=!0,ae&&(re=ae);try{if(re.facade===de)throw ft("Promise can't be resolved itself");var pe=Ge(de);pe?J(function(){var Ee={done:!1};try{pe.call(de,O(N,Ee,re),O(le,Ee,re))}catch(Ue){le(Ee,Ue,re)}}):(re.value=de,re.state=Et,Ke(re,!1))}catch(Ee){le({done:!1},Ee,re)}}};if(Se&&(Ze=function(de){W(this,Ze,Fe),q(de),Dt.call(this);var ae=Le(this);try{de(O(N,ae),O(le,ae))}catch(pe){le(ae,pe)}},Xe=Ze.prototype,Dt=function(de){Me(this,{type:Fe,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:kt,value:void 0})},Dt.prototype=g(Xe,{then:function(de,ae){var pe=Pe(this),Ee=nt(C(this,Ze));return Ee.ok=typeof de=="function"?de:!0,Ee.fail=typeof ae=="function"&&ae,Ee.domain=he?wt.domain:void 0,pe.parent=!0,pe.reactions.push(Ee),pe.state!=kt&&Ke(pe,!1),Ee.promise},catch:function(re){return this.then(void 0,re)}}),ve=function(){var re=new Dt,de=Le(re);this.promise=re,this.resolve=O(N,de),this.reject=O(le,de)},Y.f=nt=function(re){return re===Ze||re===z?new ve(re):ut(re)},!v&&typeof b=="function"&&rt!==Object.prototype)){$=rt.then,St||(S(rt,"then",function(de,ae){var pe=this;return new Ze(function(Ee,Ue){$.call(pe,Ee,Ue)}).then(de,ae)},{unsafe:!0}),S(rt,"catch",Xe.catch,{unsafe:!0}));try{delete rt.constructor}catch(re){}L&&L(rt,Xe)}c({global:!0,wrap:!0,forced:Se},{Promise:Ze}),D(Ze,Fe,!1,!0),B(Fe),z=d(Fe),c({target:Fe,stat:!0,forced:Se},{reject:function(de){var ae=nt(this);return ae.reject.call(void 0,de),ae.promise}}),c({target:Fe,stat:!0,forced:v||Se},{resolve:function(de){return _(v&&this===z?Ze:this,de)}}),c({target:Fe,stat:!0,forced:Ie},{all:function(de){var ae=this,pe=nt(ae),Ee=pe.resolve,Ue=pe.reject,je=ce(function(){var Qe=q(ae.resolve),vt=[],At=0,Bt=1;X(de,function(Pt){var hn=At++,Nr=!1;vt.push(void 0),Bt++,Qe.call(ae,Pt).then(function(Cr){Nr||(Nr=!0,vt[hn]=Cr,--Bt||Ee(vt))},Ue)}),--Bt||Ee(vt)});return je.error&&Ue(je.value),pe.promise},race:function(de){var ae=this,pe=nt(ae),Ee=pe.reject,Ue=ce(function(){var je=q(ae.resolve);X(de,function(Qe){je.call(ae,Qe).then(pe.resolve,Ee)})});return Ue.error&&Ee(Ue.value),pe.promise}})},7453:(h,I,a)=>{var c=a(76887),v=a(626),x=a(33916),d=a(96059),b=a(10941),S=a(29290),g=a(98308),L=a(95981),D=v("Reflect","construct"),B=L(function(){function W(){}return!(D(function(){},[],W)instanceof W)}),j=!L(function(){D(function(){})}),q=B||j;c({target:"Reflect",stat:!0,forced:q,sham:q},{construct:function(M,X){x(M),d(X);var R=arguments.length<3?M:x(arguments[2]);if(j&&!B)return D(M,X,R);if(M==R){switch(X.length){case 0:return new M;case 1:return new M(X[0]);case 2:return new M(X[0],X[1]);case 3:return new M(X[0],X[1],X[2]);case 4:return new M(X[0],X[1],X[2],X[3])}var C=[null];return C.push.apply(C,X),new(g.apply(M,C))}var V=R.prototype,J=S(b(V)?V:Object.prototype),_=Function.apply.call(M,J,X);return b(_)?_:J}})},42355:(h,I,a)=>{var c=a(76887),v=a(10941),x=a(96059),d=a(47457),b=a(49677),S=a(249);function g(L,D){var B=arguments.length<3?L:arguments[2],j,q;if(x(L)===B)return L[D];if(j=b.f(L,D))return d(j,"value")?j.value:j.get===void 0?void 0:j.get.call(B);if(v(q=S(L)))return g(q,D,B)}c({target:"Reflect",stat:!0},{get:g})},1502:()=>{},11035:(h,I,a)=>{"use strict";var c=a(76887),v=a(70344),x=a(48219),d=a(67772);c({target:"String",proto:!0,forced:!d("includes")},{includes:function(S){return!!~String(x(this)).indexOf(v(S),arguments.length>1?arguments[1]:void 0)}})},77971:(h,I,a)=>{"use strict";var c=a(64620).charAt,v=a(45402),x=a(47771),d="String Iterator",b=v.set,S=v.getterFor(d);x(String,"String",function(g){b(this,{type:d,string:String(g),index:0})},function(){var L=S(this),D=L.string,B=L.index,j;return B>=D.length?{value:void 0,done:!0}:(j=c(D,B),L.index+=j.length,{value:j,done:!1})})},8555:(h,I,a)=>{var c=a(66349);c("asyncIterator")},52615:()=>{},21732:(h,I,a)=>{var c=a(66349);c("hasInstance")},35903:(h,I,a)=>{var c=a(66349);c("isConcatSpreadable")},1825:(h,I,a)=>{var c=a(66349);c("iterator")},35824:(h,I,a)=>{"use strict";var c=a(76887),v=a(21899),x=a(626),d=a(82529),b=a(55746),S=a(72497),g=a(32302),L=a(95981),D=a(47457),B=a(1052),j=a(10941),q=a(96059),W=a(89678),M=a(74529),X=a(46935),R=a(31887),C=a(29290),V=a(14771),J=a(10946),_=a(684),Q=a(87857),Y=a(49677),ce=a(65988),ee=a(36760),ie=a(32029),xe=a(99754),we=a(68726),he=a(44262),fe=a(27748),se=a(99418),Fe=a(99813),Le=a(11477),Me=a(66349),Pe=a(90904),rt=a(45402),Ze=a(3610).forEach,Xe=he("hidden"),ft="Symbol",ht="prototype",wt=Fe("toPrimitive"),nt=rt.set,ut=rt.getterFor(ft),mt=Object[ht],xt=v.Symbol,pt=x("JSON","stringify"),Mt=Y.f,kt=ce.f,Et=_.f,zt=ee.f,jt=we("symbols"),Vt=we("op-symbols"),St=we("string-to-symbol-registry"),Dt=we("symbol-to-string-registry"),ve=we("wks"),z=v.QObject,$=!z||!z[ht]||!z[ht].findChild,Se=b&&L(function(){return C(kt({},"a",{get:function(){return kt(this,"a",{value:7}).a}})).a!=7})?function(re,de,ae){var pe=Mt(mt,de);pe&&delete mt[de],kt(re,de,ae),pe&&re!==mt&&kt(mt,de,pe)}:kt,Ie=function(re,de){var ae=jt[re]=C(xt[ht]);return nt(ae,{type:ft,tag:re,description:de}),b||(ae.description=de),ae},Ge=g?function(re){return typeof re=="symbol"}:function(re){return Object(re)instanceof xt},Ke=function(de,ae,pe){de===mt&&Ke(Vt,ae,pe),q(de);var Ee=X(ae,!0);return q(pe),D(jt,Ee)?(pe.enumerable?(D(de,Xe)&&de[Xe][Ee]&&(de[Xe][Ee]=!1),pe=C(pe,{enumerable:R(0,!1)})):(D(de,Xe)||kt(de,Xe,R(1,{})),de[Xe][Ee]=!0),Se(de,Ee,pe)):kt(de,Ee,pe)},P=function(de,ae){q(de);var pe=M(ae),Ee=V(pe).concat(le(pe));return Ze(Ee,function(Ue){(!b||K.call(pe,Ue))&&Ke(de,Ue,pe[Ue])}),de},Re=function(de,ae){return ae===void 0?C(de):P(C(de),ae)},K=function(de){var ae=X(de,!0),pe=zt.call(this,ae);return this===mt&&D(jt,ae)&&!D(Vt,ae)?!1:pe||!D(this,ae)||!D(jt,ae)||D(this,Xe)&&this[Xe][ae]?pe:!0},T=function(de,ae){var pe=M(de),Ee=X(ae,!0);if(!(pe===mt&&D(jt,Ee)&&!D(Vt,Ee))){var Ue=Mt(pe,Ee);return Ue&&D(jt,Ee)&&!(D(pe,Xe)&&pe[Xe][Ee])&&(Ue.enumerable=!0),Ue}},O=function(de){var ae=Et(M(de)),pe=[];return Ze(ae,function(Ee){!D(jt,Ee)&&!D(fe,Ee)&&pe.push(Ee)}),pe},le=function(de){var ae=de===mt,pe=Et(ae?Vt:M(de)),Ee=[];return Ze(pe,function(Ue){D(jt,Ue)&&(!ae||D(mt,Ue))&&Ee.push(jt[Ue])}),Ee};if(S||(xt=function(){if(this instanceof xt)throw TypeError("Symbol is not a constructor");var de=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ae=se(de),pe=function(Ee){this===mt&&pe.call(Vt,Ee),D(this,Xe)&&D(this[Xe],ae)&&(this[Xe][ae]=!1),Se(this,ae,R(1,Ee))};return b&&$&&Se(mt,ae,{configurable:!0,set:pe}),Ie(ae,de)},xe(xt[ht],"toString",function(){return ut(this).tag}),xe(xt,"withoutSetter",function(re){return Ie(se(re),re)}),ee.f=K,ce.f=Ke,Y.f=T,J.f=_.f=O,Q.f=le,Le.f=function(re){return Ie(Fe(re),re)},b&&(kt(xt[ht],"description",{configurable:!0,get:function(){return ut(this).description}}),d||xe(mt,"propertyIsEnumerable",K,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!S,sham:!S},{Symbol:xt}),Ze(V(ve),function(re){Me(re)}),c({target:ft,stat:!0,forced:!S},{for:function(re){var de=String(re);if(D(St,de))return St[de];var ae=xt(de);return St[de]=ae,Dt[ae]=de,ae},keyFor:function(de){if(!Ge(de))throw TypeError(de+" is not a symbol");if(D(Dt,de))return Dt[de]},useSetter:function(){$=!0},useSimple:function(){$=!1}}),c({target:"Object",stat:!0,forced:!S,sham:!b},{create:Re,defineProperty:Ke,defineProperties:P,getOwnPropertyDescriptor:T}),c({target:"Object",stat:!0,forced:!S},{getOwnPropertyNames:O,getOwnPropertySymbols:le}),c({target:"Object",stat:!0,forced:L(function(){Q.f(1)})},{getOwnPropertySymbols:function(de){return Q.f(W(de))}}),pt){var N=!S||L(function(){var re=xt();return pt([re])!="[null]"||pt({a:re})!="{}"||pt(Object(re))!="{}"});c({target:"JSON",stat:!0,forced:N},{stringify:function(de,ae,pe){for(var Ee=[de],Ue=1,je;arguments.length>Ue;)Ee.push(arguments[Ue++]);if(je=ae,!(!j(ae)&&de===void 0||Ge(de)))return B(ae)||(ae=function(Qe,vt){if(typeof je=="function"&&(vt=je.call(this,Qe,vt)),!Ge(vt))return vt}),Ee[1]=ae,pt.apply(null,Ee)}})}xt[ht][wt]||ie(xt[ht],wt,xt[ht].valueOf),Pe(xt,ft),fe[Xe]=!0},45915:(h,I,a)=>{var c=a(66349);c("matchAll")},28394:(h,I,a)=>{var c=a(66349);c("match")},61766:(h,I,a)=>{var c=a(66349);c("replace")},62737:(h,I,a)=>{var c=a(66349);c("search")},89911:(h,I,a)=>{var c=a(66349);c("species")},74315:(h,I,a)=>{var c=a(66349);c("split")},63131:(h,I,a)=>{var c=a(66349);c("toPrimitive")},64714:(h,I,a)=>{var c=a(66349);c("toStringTag")},70659:(h,I,a)=>{var c=a(66349);c("unscopables")},54334:(h,I,a)=>{"use strict";var c=a(21899),v=a(87524),x=a(21647),d=a(24683),b=a(8850),S=a(10941),g=a(45402).enforce,L=a(38019),D=!c.ActiveXObject&&"ActiveXObject"in c,B=Object.isExtensible,j,q=function(J){return function(){return J(this,arguments.length?arguments[0]:void 0)}},W=h.exports=d("WeakMap",q,b);if(L&&D){j=b.getConstructor(q,"WeakMap",!0),x.REQUIRED=!0;var M=W.prototype,X=M.delete,R=M.has,C=M.get,V=M.set;v(M,{delete:function(J){if(S(J)&&!B(J)){var _=g(this);return _.frozen||(_.frozen=new j),X.call(this,J)||_.frozen.delete(J)}return X.call(this,J)},has:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)||Q.frozen.has(_)}return R.call(this,_)},get:function(_){if(S(_)&&!B(_)){var Q=g(this);return Q.frozen||(Q.frozen=new j),R.call(this,_)?C.call(this,_):Q.frozen.get(_)}return C.call(this,_)},set:function(_,Q){if(S(_)&&!B(_)){var Y=g(this);Y.frozen||(Y.frozen=new j),R.call(this,_)?V.call(this,_,Q):Y.frozen.set(_,Q)}else V.call(this,_,Q);return this}})}},89731:(h,I,a)=>{a(47627)},55708:(h,I,a)=>{a(4560)},88731:(h,I,a)=>{a(91302)},30014:(h,I,a)=>{"use strict";var c=a(76887),v=a(69520),x=a(40002);c({target:"Promise",stat:!0},{try:function(d){var b=v.f(this),S=x(d);return(S.error?b.reject:b.resolve)(S.value),b.promise}})},28783:(h,I,a)=>{var c=a(66349);c("asyncDispose")},43975:(h,I,a)=>{var c=a(66349);c("dispose")},65799:(h,I,a)=>{var c=a(66349);c("matcher")},45414:(h,I,a)=>{var c=a(66349);c("metadata")},46774:(h,I,a)=>{var c=a(66349);c("observable")},80620:(h,I,a)=>{var c=a(66349);c("patternMatch")},36172:(h,I,a)=>{var c=a(66349);c("replaceAll")},7634:(h,I,a)=>{a(66274);var c=a(63281),v=a(21899),x=a(9697),d=a(32029),b=a(12077),S=a(99813),g=S("toStringTag");for(var L in c){var D=v[L],B=D&&D.prototype;B&&x(B)!==g&&d(B,g,L),b[L]=b.Array}},27698:(h,I,a)=>{var c=a(54493);h.exports=c},62908:(h,I,a)=>{var c=a(12710);h.exports=c},49216:(h,I,a)=>{var c=a(99324);h.exports=c},8065:(h,I,a)=>{var c=a(56043);h.exports=c},57448:(h,I,a)=>{a(7634);var c=a(62908),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.entries;return b===x||b instanceof Array&&S===x.entries||d.hasOwnProperty(v(b))?c:S}},11955:(h,I,a)=>{var c=a(2480);h.exports=c},61577:(h,I,a)=>{var c=a(32236);h.exports=c},46279:(h,I,a)=>{a(7634);var c=a(49216),v=a(9697),x=Array.prototype,d={DOMTokenList:!0,NodeList:!0};h.exports=function(b){var S=b.forEach;return b===x||b instanceof Array&&S===x.forEach||d.hasOwnProperty(v(b))?c:S}},33778:(h,I,a)=>{var c=a(58557);h.exports=c},61798:(h,I,a)=>{var c=a(88287);h.exports=c},82073:(h,I,a)=>{var c=a(69601);h.exports=c},2348:(h,I,a)=>{var c=a(18339);h.exports=c},8933:(h,I,a)=>{var c=a(84426);h.exports=c},63383:(h,I,a)=>{var c=a(45999);h.exports=c},86209:(h,I,a)=>{var c=a(73081);h.exports=c},23059:(h,I,a)=>{var c=a(48494);h.exports=c},27460:(h,I,a)=>{var c=a(52956);h.exports=c},72010:(h,I,a)=>{var c=a(32304);h.exports=c},31905:function(){(function(h){var I=function(a){var c={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(ee){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function v(ee){return ee&&DataView.prototype.isPrototypeOf(ee)}if(c.arrayBuffer)var x=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(ee){return ee&&x.indexOf(Object.prototype.toString.call(ee))>-1};function b(ee){if(typeof ee!="string"&&(ee=String(ee)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(ee))throw new TypeError("Invalid character in header field name");return ee.toLowerCase()}function S(ee){return typeof ee!="string"&&(ee=String(ee)),ee}function g(ee){var ie={next:function(){var xe=ee.shift();return{done:xe===void 0,value:xe}}};return c.iterable&&(ie[Symbol.iterator]=function(){return ie}),ie}function L(ee){this.map={},ee instanceof L?ee.forEach(function(ie,xe){this.append(xe,ie)},this):Array.isArray(ee)?ee.forEach(function(ie){this.append(ie[0],ie[1])},this):ee&&Object.getOwnPropertyNames(ee).forEach(function(ie){this.append(ie,ee[ie])},this)}L.prototype.append=function(ee,ie){ee=b(ee),ie=S(ie);var xe=this.map[ee];this.map[ee]=xe?xe+", "+ie:ie},L.prototype.delete=function(ee){delete this.map[b(ee)]},L.prototype.get=function(ee){return ee=b(ee),this.has(ee)?this.map[ee]:null},L.prototype.has=function(ee){return this.map.hasOwnProperty(b(ee))},L.prototype.set=function(ee,ie){this.map[b(ee)]=S(ie)},L.prototype.forEach=function(ee,ie){for(var xe in this.map)this.map.hasOwnProperty(xe)&&ee.call(ie,this.map[xe],xe,this)},L.prototype.keys=function(){var ee=[];return this.forEach(function(ie,xe){ee.push(xe)}),g(ee)},L.prototype.values=function(){var ee=[];return this.forEach(function(ie){ee.push(ie)}),g(ee)},L.prototype.entries=function(){var ee=[];return this.forEach(function(ie,xe){ee.push([xe,ie])}),g(ee)},c.iterable&&(L.prototype[Symbol.iterator]=L.prototype.entries);function D(ee){if(ee.bodyUsed)return Promise.reject(new TypeError("Already read"));ee.bodyUsed=!0}function B(ee){return new Promise(function(ie,xe){ee.onload=function(){ie(ee.result)},ee.onerror=function(){xe(ee.error)}})}function j(ee){var ie=new FileReader,xe=B(ie);return ie.readAsArrayBuffer(ee),xe}function q(ee){var ie=new FileReader,xe=B(ie);return ie.readAsText(ee),xe}function W(ee){for(var ie=new Uint8Array(ee),xe=new Array(ie.length),we=0;we<ie.length;we++)xe[we]=String.fromCharCode(ie[we]);return xe.join("")}function M(ee){if(ee.slice)return ee.slice(0);var ie=new Uint8Array(ee.byteLength);return ie.set(new Uint8Array(ee)),ie.buffer}function X(){return this.bodyUsed=!1,this._initBody=function(ee){this._bodyInit=ee,ee?typeof ee=="string"?this._bodyText=ee:c.blob&&Blob.prototype.isPrototypeOf(ee)?this._bodyBlob=ee:c.formData&&FormData.prototype.isPrototypeOf(ee)?this._bodyFormData=ee:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)?this._bodyText=ee.toString():c.arrayBuffer&&c.blob&&v(ee)?(this._bodyArrayBuffer=M(ee.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(ee)||d(ee))?this._bodyArrayBuffer=M(ee):this._bodyText=ee=Object.prototype.toString.call(ee):this._bodyText="",this.headers.get("content-type")||(typeof ee=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(ee)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var ee=D(this);if(ee)return ee;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?D(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(j)}),this.text=function(){var ee=D(this);if(ee)return ee;if(this._bodyBlob)return q(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(W(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function C(ee){var ie=ee.toUpperCase();return R.indexOf(ie)>-1?ie:ee}function V(ee,ie){ie=ie||{};var xe=ie.body;if(ee instanceof V){if(ee.bodyUsed)throw new TypeError("Already read");this.url=ee.url,this.credentials=ee.credentials,ie.headers||(this.headers=new L(ee.headers)),this.method=ee.method,this.mode=ee.mode,this.signal=ee.signal,!xe&&ee._bodyInit!=null&&(xe=ee._bodyInit,ee.bodyUsed=!0)}else this.url=String(ee);if(this.credentials=ie.credentials||this.credentials||"same-origin",(ie.headers||!this.headers)&&(this.headers=new L(ie.headers)),this.method=C(ie.method||this.method||"GET"),this.mode=ie.mode||this.mode||null,this.signal=ie.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&xe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(xe)}V.prototype.clone=function(){return new V(this,{body:this._bodyInit})};function J(ee){var ie=new FormData;return ee.trim().split("&").forEach(function(xe){if(xe){var we=xe.split("="),he=we.shift().replace(/\+/g," "),fe=we.join("=").replace(/\+/g," ");ie.append(decodeURIComponent(he),decodeURIComponent(fe))}}),ie}function _(ee){var ie=new L,xe=ee.replace(/\r?\n[\t ]+/g," ");return xe.split(/\r?\n/).forEach(function(we){var he=we.split(":"),fe=he.shift().trim();if(fe){var se=he.join(":").trim();ie.append(fe,se)}}),ie}X.call(V.prototype);function Q(ee,ie){ie||(ie={}),this.type="default",this.status=ie.status===void 0?200:ie.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in ie?ie.statusText:"OK",this.headers=new L(ie.headers),this.url=ie.url||"",this._initBody(ee)}X.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new L(this.headers),url:this.url})},Q.error=function(){var ee=new Q(null,{status:0,statusText:""});return ee.type="error",ee};var Y=[301,302,303,307,308];Q.redirect=function(ee,ie){if(Y.indexOf(ie)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:ie,headers:{location:ee}})},a.DOMException=h.DOMException;try{new a.DOMException}catch(ee){a.DOMException=function(ie,xe){this.message=ie,this.name=xe;var we=Error(ie);this.stack=we.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function ce(ee,ie){return new Promise(function(xe,we){var he=new V(ee,ie);if(he.signal&&he.signal.aborted)return we(new a.DOMException("Aborted","AbortError"));var fe=new XMLHttpRequest;function se(){fe.abort()}fe.onload=function(){var Fe={status:fe.status,statusText:fe.statusText,headers:_(fe.getAllResponseHeaders()||"")};Fe.url="responseURL"in fe?fe.responseURL:Fe.headers.get("X-Request-URL");var Le="response"in fe?fe.response:fe.responseText;xe(new Q(Le,Fe))},fe.onerror=function(){we(new TypeError("Network request failed"))},fe.ontimeout=function(){we(new TypeError("Network request failed"))},fe.onabort=function(){we(new a.DOMException("Aborted","AbortError"))},fe.open(he.method,he.url,!0),he.credentials==="include"?fe.withCredentials=!0:he.credentials==="omit"&&(fe.withCredentials=!1),"responseType"in fe&&c.blob&&(fe.responseType="blob"),he.headers.forEach(function(Fe,Le){fe.setRequestHeader(Le,Fe)}),he.signal&&(he.signal.addEventListener("abort",se),fe.onreadystatechange=function(){fe.readyState===4&&he.signal.removeEventListener("abort",se)}),fe.send(typeof he._bodyInit=="undefined"?null:he._bodyInit)})}return ce.polyfill=!0,h.fetch||(h.fetch=ce,h.Headers=L,h.Request=V,h.Response=Q),a.Headers=L,a.Request=V,a.Response=Q,a.fetch=ce,Object.defineProperty(a,"__esModule",{value:!0}),a}({})})(typeof self!="undefined"?self:this)},54098:function(h,I){var a=typeof self!="undefined"?self:this,c=function(){function x(){this.fetch=!1,this.DOMException=a.DOMException}return x.prototype=a,new x}();(function(x){var d=function(b){var S={searchParams:"URLSearchParams"in x,iterable:"Symbol"in x&&"iterator"in Symbol,blob:"FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(fe){return!1}}(),formData:"FormData"in x,arrayBuffer:"ArrayBuffer"in x};function g(fe){return fe&&DataView.prototype.isPrototypeOf(fe)}if(S.arrayBuffer)var L=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],D=ArrayBuffer.isView||function(fe){return fe&&L.indexOf(Object.prototype.toString.call(fe))>-1};function B(fe){if(typeof fe!="string"&&(fe=String(fe)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(fe))throw new TypeError("Invalid character in header field name");return fe.toLowerCase()}function j(fe){return typeof fe!="string"&&(fe=String(fe)),fe}function q(fe){var se={next:function(){var Fe=fe.shift();return{done:Fe===void 0,value:Fe}}};return S.iterable&&(se[Symbol.iterator]=function(){return se}),se}function W(fe){this.map={},fe instanceof W?fe.forEach(function(se,Fe){this.append(Fe,se)},this):Array.isArray(fe)?fe.forEach(function(se){this.append(se[0],se[1])},this):fe&&Object.getOwnPropertyNames(fe).forEach(function(se){this.append(se,fe[se])},this)}W.prototype.append=function(fe,se){fe=B(fe),se=j(se);var Fe=this.map[fe];this.map[fe]=Fe?Fe+", "+se:se},W.prototype.delete=function(fe){delete this.map[B(fe)]},W.prototype.get=function(fe){return fe=B(fe),this.has(fe)?this.map[fe]:null},W.prototype.has=function(fe){return this.map.hasOwnProperty(B(fe))},W.prototype.set=function(fe,se){this.map[B(fe)]=j(se)},W.prototype.forEach=function(fe,se){for(var Fe in this.map)this.map.hasOwnProperty(Fe)&&fe.call(se,this.map[Fe],Fe,this)},W.prototype.keys=function(){var fe=[];return this.forEach(function(se,Fe){fe.push(Fe)}),q(fe)},W.prototype.values=function(){var fe=[];return this.forEach(function(se){fe.push(se)}),q(fe)},W.prototype.entries=function(){var fe=[];return this.forEach(function(se,Fe){fe.push([Fe,se])}),q(fe)},S.iterable&&(W.prototype[Symbol.iterator]=W.prototype.entries);function M(fe){if(fe.bodyUsed)return Promise.reject(new TypeError("Already read"));fe.bodyUsed=!0}function X(fe){return new Promise(function(se,Fe){fe.onload=function(){se(fe.result)},fe.onerror=function(){Fe(fe.error)}})}function R(fe){var se=new FileReader,Fe=X(se);return se.readAsArrayBuffer(fe),Fe}function C(fe){var se=new FileReader,Fe=X(se);return se.readAsText(fe),Fe}function V(fe){for(var se=new Uint8Array(fe),Fe=new Array(se.length),Le=0;Le<se.length;Le++)Fe[Le]=String.fromCharCode(se[Le]);return Fe.join("")}function J(fe){if(fe.slice)return fe.slice(0);var se=new Uint8Array(fe.byteLength);return se.set(new Uint8Array(fe)),se.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(fe){this._bodyInit=fe,fe?typeof fe=="string"?this._bodyText=fe:S.blob&&Blob.prototype.isPrototypeOf(fe)?this._bodyBlob=fe:S.formData&&FormData.prototype.isPrototypeOf(fe)?this._bodyFormData=fe:S.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)?this._bodyText=fe.toString():S.arrayBuffer&&S.blob&&g(fe)?(this._bodyArrayBuffer=J(fe.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):S.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(fe)||D(fe))?this._bodyArrayBuffer=J(fe):this._bodyText=fe=Object.prototype.toString.call(fe):this._bodyText="",this.headers.get("content-type")||(typeof fe=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):S.searchParams&&URLSearchParams.prototype.isPrototypeOf(fe)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},S.blob&&(this.blob=function(){var fe=M(this);if(fe)return fe;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?M(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(R)}),this.text=function(){var fe=M(this);if(fe)return fe;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(V(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},S.formData&&(this.formData=function(){return this.text().then(ee)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Y(fe){var se=fe.toUpperCase();return Q.indexOf(se)>-1?se:fe}function ce(fe,se){se=se||{};var Fe=se.body;if(fe instanceof ce){if(fe.bodyUsed)throw new TypeError("Already read");this.url=fe.url,this.credentials=fe.credentials,se.headers||(this.headers=new W(fe.headers)),this.method=fe.method,this.mode=fe.mode,this.signal=fe.signal,!Fe&&fe._bodyInit!=null&&(Fe=fe._bodyInit,fe.bodyUsed=!0)}else this.url=String(fe);if(this.credentials=se.credentials||this.credentials||"same-origin",(se.headers||!this.headers)&&(this.headers=new W(se.headers)),this.method=Y(se.method||this.method||"GET"),this.mode=se.mode||this.mode||null,this.signal=se.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&Fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(Fe)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})};function ee(fe){var se=new FormData;return fe.trim().split("&").forEach(function(Fe){if(Fe){var Le=Fe.split("="),Me=Le.shift().replace(/\+/g," "),Pe=Le.join("=").replace(/\+/g," ");se.append(decodeURIComponent(Me),decodeURIComponent(Pe))}}),se}function ie(fe){var se=new W,Fe=fe.replace(/\r?\n[\t ]+/g," ");return Fe.split(/\r?\n/).forEach(function(Le){var Me=Le.split(":"),Pe=Me.shift().trim();if(Pe){var rt=Me.join(":").trim();se.append(Pe,rt)}}),se}_.call(ce.prototype);function xe(fe,se){se||(se={}),this.type="default",this.status=se.status===void 0?200:se.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in se?se.statusText:"OK",this.headers=new W(se.headers),this.url=se.url||"",this._initBody(fe)}_.call(xe.prototype),xe.prototype.clone=function(){return new xe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},xe.error=function(){var fe=new xe(null,{status:0,statusText:""});return fe.type="error",fe};var we=[301,302,303,307,308];xe.redirect=function(fe,se){if(we.indexOf(se)===-1)throw new RangeError("Invalid status code");return new xe(null,{status:se,headers:{location:fe}})},b.DOMException=x.DOMException;try{new b.DOMException}catch(fe){b.DOMException=function(se,Fe){this.message=se,this.name=Fe;var Le=Error(se);this.stack=Le.stack},b.DOMException.prototype=Object.create(Error.prototype),b.DOMException.prototype.constructor=b.DOMException}function he(fe,se){return new Promise(function(Fe,Le){var Me=new ce(fe,se);if(Me.signal&&Me.signal.aborted)return Le(new b.DOMException("Aborted","AbortError"));var Pe=new XMLHttpRequest;function rt(){Pe.abort()}Pe.onload=function(){var Ze={status:Pe.status,statusText:Pe.statusText,headers:ie(Pe.getAllResponseHeaders()||"")};Ze.url="responseURL"in Pe?Pe.responseURL:Ze.headers.get("X-Request-URL");var Xe="response"in Pe?Pe.response:Pe.responseText;Fe(new xe(Xe,Ze))},Pe.onerror=function(){Le(new TypeError("Network request failed"))},Pe.ontimeout=function(){Le(new TypeError("Network request failed"))},Pe.onabort=function(){Le(new b.DOMException("Aborted","AbortError"))},Pe.open(Me.method,Me.url,!0),Me.credentials==="include"?Pe.withCredentials=!0:Me.credentials==="omit"&&(Pe.withCredentials=!1),"responseType"in Pe&&S.blob&&(Pe.responseType="blob"),Me.headers.forEach(function(Ze,Xe){Pe.setRequestHeader(Xe,Ze)}),Me.signal&&(Me.signal.addEventListener("abort",rt),Pe.onreadystatechange=function(){Pe.readyState===4&&Me.signal.removeEventListener("abort",rt)}),Pe.send(typeof Me._bodyInit=="undefined"?null:Me._bodyInit)})}return he.polyfill=!0,x.fetch||(x.fetch=he,x.Headers=W,x.Request=ce,x.Response=xe),b.Headers=W,b.Request=ce,b.Response=xe,b.fetch=he,Object.defineProperty(b,"__esModule",{value:!0}),b}({})})(c),c.fetch.ponyfill=!0,delete c.fetch.polyfill;var v=c;I=v.fetch,I.default=v.fetch,I.fetch=v.fetch,I.Headers=v.Headers,I.Request=v.Request,I.Response=v.Response,h.exports=I},17438:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>S});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=d()(v());b.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
|
|
47
47
|
`,""]);const S=b},58635:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>V});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=a(61667),S=a.n(b),g=new URL(a(17735),a.b),L=new URL(a(56089),a.b),D=new URL(a(46050),a.b),B=new URL(a(71090),a.b),j=new URL(a(96192),a.b),q=d()(v()),W=S()(g),M=S()(L),X=S()(D),R=S()(B),C=S()(j);q.push([h.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+W+")}.CodeMirror-lint-mark-error{background-image:url("+M+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+X+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+R+")}.CodeMirror-lint-marker-multiple{background-image:url("+C+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
|
|
48
48
|
`,""]);const V=q},45272:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>S});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=d()(v());b.push([h.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
|
|
49
49
|
`,""]);const S=b},40961:(h,I,a)=>{"use strict";a.r(I),a.d(I,{default:()=>S});var c=a(8081),v=a.n(c),x=a(23645),d=a.n(x),b=d()(v());b.push([h.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
|
|
@@ -72,24 +72,24 @@ b`.split(/\n/).length!=3?function(e){for(var i=0,u=[],l=e.length;i<=l;){var f=e.
|
|
|
72
72
|
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
73
73
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
74
74
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
75
|
-
*/function v(g){return g instanceof c||g instanceof Date||g instanceof RegExp}function x(g){if(g instanceof c){var L=c.alloc?c.alloc(g.length):new c(g.length);return g.copy(L),L}else{if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);throw new Error("Unexpected situation")}}function d(g){var L=[];return g.forEach(function(D,B){typeof D=="object"&&D!==null?Array.isArray(D)?L[B]=d(D):v(D)?L[B]=x(D):L[B]=S({},D):L[B]=D}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var S=h.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var g=arguments[0],L=Array.prototype.slice.call(arguments,1),D,B,j;return L.forEach(function(q){typeof q!="object"||q===null||Array.isArray(q)||Object.keys(q).forEach(function(W){if(B=b(g,W),D=b(q,W),D!==g)if(typeof D!="object"||D===null){g[W]=D;return}else if(Array.isArray(D)){g[W]=d(D);return}else if(v(D)){g[W]=x(D);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[W]=S({},D);return}else{g[W]=S(B,D);return}})}),g}},
|
|
76
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
77
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(t,r){var
|
|
78
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,
|
|
75
|
+
*/function v(g){return g instanceof c||g instanceof Date||g instanceof RegExp}function x(g){if(g instanceof c){var L=c.alloc?c.alloc(g.length):new c(g.length);return g.copy(L),L}else{if(g instanceof Date)return new Date(g.getTime());if(g instanceof RegExp)return new RegExp(g);throw new Error("Unexpected situation")}}function d(g){var L=[];return g.forEach(function(D,B){typeof D=="object"&&D!==null?Array.isArray(D)?L[B]=d(D):v(D)?L[B]=x(D):L[B]=S({},D):L[B]=D}),L}function b(g,L){return L==="__proto__"?void 0:g[L]}var S=h.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var g=arguments[0],L=Array.prototype.slice.call(arguments,1),D,B,j;return L.forEach(function(q){typeof q!="object"||q===null||Array.isArray(q)||Object.keys(q).forEach(function(W){if(B=b(g,W),D=b(q,W),D!==g)if(typeof D!="object"||D===null){g[W]=D;return}else if(Array.isArray(D)){g[W]=d(D);return}else if(v(D)){g[W]=x(D);return}else if(typeof B!="object"||B===null||Array.isArray(B)){g[W]=S({},D);return}else{g[W]=S(B,D);return}})}),g}},25343:(h,I,a)=>{"use strict";a.r(I),a.d(I,{Console:()=>sd});var c={};a.r(c),a.d(c,{JsonPatchError:()=>Pr,_areEquals:()=>Ka,applyOperation:()=>pr,applyPatch:()=>Gn,applyReducer:()=>ec,deepClone:()=>qf,getValueByPointer:()=>Rr,validate:()=>yu,validator:()=>ta});var v={};a.r(v),a.d(v,{compare:()=>bu,generate:()=>Do,observe:()=>xu,unobserve:()=>tl});var x={};a.r(x),a.d(x,{cookie:()=>yl,header:()=>Qu,path:()=>Xu,query:()=>Tc});var d=a(67294);function b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function S(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function g(t,r,i){return r&&S(t.prototype,r),i&&S(t,i),t}function L(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function D(){return D=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},D.apply(this,arguments)}function B(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),i.push.apply(i,o)}return i}function j(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?B(Object(i),!0).forEach(function(o){L(t,o,i[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(i,o))})}return t}function q(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&M(t,r)}function W(t){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(i){return i.__proto__||Object.getPrototypeOf(i)},W(t)}function M(t,r){return M=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},M(t,r)}function X(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}function R(t,r){if(t==null)return{};var i={},o=Object.keys(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(r.indexOf(s)>=0)&&(i[s]=t[s]);return i}function C(t,r){if(t==null)return{};var i=R(t,r),o,s;if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(t);for(s=0;s<p.length;s++)o=p[s],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}function V(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t,r){return r&&(typeof r=="object"||typeof r=="function")?r:V(t)}function _(t){var r=X();return function(){var o=W(t),s;if(r){var p=W(this).constructor;s=Reflect.construct(o,arguments,p)}else s=o.apply(this,arguments);return J(this,s)}}function Q(t,r){return ee(t)||xe(t,r)||we(t,r)||se()}function Y(t){return ce(t)||ie(t)||we(t)||fe()}function ce(t){if(Array.isArray(t))return he(t)}function ee(t){if(Array.isArray(t))return t}function ie(t){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function xe(t,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(t)))){var i=[],o=!0,s=!1,p=void 0;try{for(var y=t[Symbol.iterator](),A;!(o=(A=y.next()).done)&&(i.push(A.value),!(r&&i.length===r));o=!0);}catch(w){s=!0,p=w}finally{try{!o&&y.return!=null&&y.return()}finally{if(s)throw p}}return i}}function we(t,r){if(!!t){if(typeof t=="string")return he(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor&&(i=t.constructor.name),i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return he(t,r)}}function he(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function fe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
76
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function se(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
77
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fe(t,r){var i;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(i=we(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(w){throw w},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
78
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,A;return{s:function(){i=t[Symbol.iterator]()},n:function(){var w=i.next();return p=w.done,w},e:function(w){y=!0,A=w},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw A}}}}function Le(t,r){return r={exports:{}},t(r,r.exports),r.exports}var Me=Le(function(t){function r(F,G){for(var te=0,ne=0;ne<F.length;ne++)te=(te<<5)-te+F.charCodeAt(ne),te|=0;return G[Math.abs(te)%G.length]}function i(F,G){var te=G.namespace;if(G.useColors){var ne=G.color,oe="[3"+(ne<8?ne:"8;5;"+ne),ye=" ".concat(oe,";1m").concat(te," [0m");F[0]=ye+F[0].split(`
|
|
79
79
|
`).join(`
|
|
80
|
-
`+xe)}else k[0]=ne+" "+k[0]}function o(k,G){if(k[0]=(G.useColors?"%c":"")+G.namespace,!!G.useColors){var ne="color: "+G.color,re=0,ce=0;k[0].replace(/%[a-zA-Z%]/g,function(xe){xe!=="%%"&&(re++,xe==="%c"&&(ce=re))}),k.splice(ce,0,ne)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function p(){var k;try{k=localStorage.getItem("debug")}catch(G){}return!k&&typeof process!="undefined"&&"env"in process&&(k={}.DEBUG),{namespaces:k||"",colors:s,useColors:!0,formatArgs:o}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:n}}function E(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,G=arguments.length>1?arguments[1]:void 0;return function(){for(var ne=arguments.length,re=new Array(ne),ce=0;ce<ne;ce++)re[ce]=arguments[ce];k&&re.unshift(k);var xe=G.namespaces.split(",").map(function(Te){return Te[Te.length-1]==="*"?new RegExp("^"+Te.slice(0,Te.length-1)+".*$"):new RegExp("^"+Te+"$")}),ge=xe.some(function(Te){return Te.test(k)}),Ee={color:r(k,G.colors),namespace:k,useColors:G.useColors};if(!1)var we}}function w(k){return E(k,y())}function A(k){return E(k,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=A:t.exports=w}),Pe=Me("informed:ObjMap "),rt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Ze=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,y){return p!=null?p[y]:p},r);return s===void 0||s===r?o:s},Xe=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ft=function(r){return r.replace(Xe(r),"").replace(/\./,"")},ht=function(r,n){var o=Xe(n),s=ft(n),p=o?Ze(r,o):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},bt=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,E){return y===E.length-1?(s[p]=o,s[p]):s[p]===void 0?(Number.isInteger(+E[y+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+E[y+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},nt=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=!1;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,E){return s===void 0?s:(y===E.length-1&&(delete s[p],o=!0),s[p])},r),o},ut=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,E){return s===void 0?s:(y===E.length-1&&Array.isArray(s)&&(o=s.splice(p,1)),s[p])},r),o},yt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(r);return n.map(function(o){return r[o]})},mt=function(r){var n=rt(r);return Number.isInteger(+n[n.length-1])},pt=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(n){return yt(n).length===0}},{key:"get",value:function(n,o){var s=Ze(n,o);return s}},{key:"has",value:function(n,o){return ht(n,o)}},{key:"set",value:function(n,o,s){if(s!==void 0)Pe("SETTING",o,s),bt(n,o,s);else if(mt(o)&&t.get(n,o)!==void 0){Pe("Special case SETTING",o,"to undefined"),bt(n,o,void 0);var p=rt(o);p=p.slice(0,p.length-1),Mt(n,p)}else!mt(o)&&t.get(n,o)!==void 0&&(Pe("Special case REMOVING",o,"from object completley"),t.delete(n,o))}},{key:"delete",value:function(n,o){Pe("DELETE",o),mt(o)?(Pe("ARRAY",o),this.pullOut(n,o)):nt(n,o);var s=rt(o);s=s.slice(0,s.length-1),Mt(n,s)}},{key:"pullOut",value:function(n,o){var s=rt(o),p=s[s.length-1];s=s.slice(0,s.length-1),Pe("Pulling out:",s,"index",p);var y=Ze(n,s);Pe("Array",y),Array.isArray(y)&&ut(y,p),Mt(n,s)}}]),t}();function Mt(t,r){if(r.length!==0){var n=Ze(t,r);(Array.isArray(n)?n.every(function(o){return o==null}):JSON.stringify(n)==="{}")&&nt(t,r),Mt(t,r.slice(0,r.length-1))}}var kt=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Et=d.createContext({}),Ht=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),jt=d.createContext(),Vt=d.createContext(),wt=d.createContext(),Dt=d.createContext(),ve=d.createContext(),z=d.createContext(),$=d.createContext(),Se=d.createContext();function Ie(){var t=(0,d.useContext)(Ht);return t}function Ge(t){var r=(0,d.useRef)(),n=(0,d.useRef)(!0),o=(0,d.useState)(t),s=Q(o,2),p=s[0],y=s[1];r.current=p;var E=function(k){r.current=k,n.current&&y(k)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){n.current=!1}},[]),[p,E,w]}var Ke=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},P=function(r){var n={};if(r.inner){if(r.inner.length===0){pt.set(n,r.path,r.message);return}var o=Fe(r.inner),s;try{for(o.s();!(s=o.n()).done;){var p=s.value;pt.get(n,p.path)||pt.set(n,p.path,p.message)}}catch(y){o.e(y)}finally{o.f()}}return n},Re=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(s){var o=P(s);return o}},K=function(r){if(r.inner){if(r.inner.length===0)return;var n=r.inner[0];return n.message}},T=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(o){return K(o)}},O=function(r,n){r(n);var o={};return r.errors&&r.errors.forEach(function(s){var p=s.message,y=s.dataPath,E=s.keyword,w=s.params,A=y;E==="required"&&(A="".concat(A,".").concat(w.missingProperty)),A=A.replace(".",""),pt.set(o,A,p)}),o},se=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16|0,o=r=="x"?n:n&3|8;return o.toString(16)})},N=function(r,n){var o;return function(){for(var p=arguments.length,y=new Array(p),E=0;E<p;E++)y[E]=arguments[E];var w=function(){clearTimeout(o),r.apply(void 0,y)};clearTimeout(o),o=setTimeout(w,n)}},te=function(r,n,o){var s=n["ui:control"],p=n["informed:props"],y=n["input:props"],E=n["ui:before"],w=n["ui:after"],A=n.oneOf,k=n.items,G=n.enum,ne=n.title,re=n.minimum,ce=n.maximum,xe=n.minLength,ge=n.maxLength,Ee=n.pattern,we=n.type,Te=n.properties,$e=se();y&&y.id&&($e=y.id);var je={componentType:s,field:o?"".concat(o,".").concat(r):r,type:we,uiBefore:E,uiAfter:w,properties:we==="object"?Te:void 0,items:we==="array"?k:void 0,props:j(j({label:ne,id:$e,min:re,max:ce,minLength:xe,maxLength:ge,pattern:Ee},p),y)};if(A){var He=n.oneOf.map(function(We){var Je=We["input:props"],ze=Je===void 0?{}:Je;return j({value:We.const,label:We.title},ze)});je.props.options=He}if(G){var Ne=n.enum.map(function(We){return{value:We,label:We}});je.props.options=Ne}if(k&&k.oneOf){var Ve=k.oneOf.map(function(We){var Je=We["input:props"],ze=Je===void 0?{}:Je;return j({value:We.const,label:We.title},ze)});je.props.options=Ve}return je},de=function(r,n,o){if(!r||n)return[];var s=r.properties,p=s===void 0?{}:s,y=r.allOf,E=r.propertyOrder,w=E===void 0?[]:E;if(Object.keys(p).length>0){var A=Object.keys(p).sort(function(k,G){var ne=w.indexOf(k),re=w.indexOf(G);return(ne>-1?ne:w.length+1)-(re>-1?re:w.length+1)}).map(function(k){var G=p[k],ne=te(k,G,o);return ne});return y&&A.push({componentType:"conditionals",allOf:y}),A}return[]},ae=function(r){var n=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return n="properties.".concat(n),n},pe=function(r,n){if(typeof r=="string")return r.split("").map(function(o){return o==="#"?/\d/:o==="*"?/[\w]/:o});if(typeof r=="function")return r(n);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Ae=function(r,n){for(var o=0,s=-1,p=!0;p&&o<r.length;)r[o]==n[o]?s=o:p=!1,o=o+1;return s},Be=function(r,n){if(!r)return{val:r,offset:0};var o="".concat(r),s=pe(n,o),p=s.findIndex(function(ge){return typeof ge!="string"}),y=s.length-Y(s).reverse().findIndex(function(ge){return typeof ge!="string"}),E=[],w=o.split(""),A=0,k=0,G=Ae(s.slice(0,p),w.slice(0,p));G>-1&&(A=G+1,E=E.concat(s.slice(0,G+1)),k=G+1),G<0&&(E=E.concat(s.slice(0,p)),k=p);for(var ne=k;ne<s.length;ne++){var re=s[ne];if(A!=w.length){var ce=w[A];if(typeof re=="function")E.push(re(ce)),A=A+1;else{var xe=typeof re=="string"?re===ce:re.test(ce);xe&&typeof re=="string"?(E.push(re),A=A+1):!xe&&typeof re=="string"?A!=w.length&&E.push(re):xe&&typeof re!="string"?(E.push(ce),A=A+1):!xe&&typeof re!="string"&&(A=A+1,ne=ne-1)}}else if(typeof re=="string"&&ne>=y)E.push(re);else break}return{value:E.join(""),offset:o?E.length-o.length:0}},Ue=function(r,n){var o,s,p=new Intl.NumberFormat(r,n),y=new Intl.NumberFormat(r),E=(o=(s=y.formatToParts(.1).find(function(ge){var Ee=ge.type;return Ee==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:".";function w(ge,Ee){return ge instanceof RegExp&&Ee instanceof RegExp&&ge.source===Ee.source&&ge.global===Ee.global&&ge.ignoreCase===Ee.ignoreCase&&ge.multiline===Ee.multiline}function A(ge,Ee){for(var we=ge.length;we--;)if(Ee(ge[we]))return we;return-1}function k(ge,Ee,we){var Te=Y(ge);return Array.isArray(we)?Te.splice.apply(Te,[Ee,0].concat(Y(we))):Te.splice(Ee,0,we),Te}function G(ge){return"".concat(ge).replace(/\D/g,"")}function ne(ge){return"".concat(ge).split(E).map(function(Ee){return G(Ee)}).join(".")}function re(ge){if(typeof ge=="number")return ge;var Ee=parseFloat(ne(ge));return Number.isNaN(Ee)?void 0:Ee}function ce(ge){var Ee=ne(ge),we="".concat(Ee).split(".")[1],Te=p.formatToParts(Number(Ee));we==="0"&&Te.push({type:"decimal",value:E},{type:"fraction",value:we});var $e=Te.reduce(function(Ne,Ve){var We=Ve.type,Je=Ve.value;return["decimal","fraction"].includes(We)&&we==null?Ne:["integer","fraction"].includes(We)?[].concat(Y(Ne),Y(Je.split("").filter(function(ze,et){return We==="fraction"?et<we.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(Ne),Y(Je.split(""))):[].concat(Y(Ne),[Je])},[]),je=A($e,function(Ne){return w(Ne,/\d/)});$e.indexOf(E)===-1&&"".concat(ge).indexOf(E)!==-1&&($e=k($e,je+1,[E,"[]"]),je+=2);var He=$e.slice(je+1).join("");return $e=[].concat(Y($e.slice(0,je+1)),[He]),$e}var xe=function(Ee){if(Ee!=null)return re(Ee)};return{formatter:ce,parser:xe}},Qe=Object.freeze({__proto__:null,getChildDisplayName:Ke,yupToFormErrors:P,validateYupSchema:Re,yupToFormError:K,validateYupField:T,validateAjvSchema:O,uuidv4:se,debounce:N,computeFieldFromProperty:te,computeFieldsFromSchema:de,getSchemaPathFromJsonPath:ae,informedFormat:Be,createIntlNumberFormatter:Ue}),vt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,At=function(r){var n=r.value,o=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,y=Ge(0),E=Q(y,3),w=E[0],A=E[1],k=E[2],G=Ge(0),ne=Q(G,3),re=ne[0],ce=ne[1],xe=ne[2];return vt(function(){if(o.current!=null&&k()){var ge=k()+xe();xe()!=0&&p?o.current.setSelectionRange(ge+1,ge+1):p&&o.current.setSelectionRange(ge,ge)}},[n]),{setCursorOffset:ce,setCursor:A,cursor:w,getCursor:k,cursorOffset:re}},Bt=function(r,n){var o=(0,d.useRef)(!0),s=o.current;(0,d.useEffect)(function(){if(s)o.current=!1;else return r()},n)},Pt=Me("informed:useField "),dn=function(r,n,o,s,p){if(r!=null){if(p)return p(r);if(n)return n(r);if(o&&!s){var y=Be(r,o);return y.value}return r}},Br=function(r,n,o,s){if(n&&o)return n(r);if(s){var p=Be(r,s);return p.value}return r},Cr=function(r,n,o){var s=o.required;if(r||n)return function(p,y){if(n)return T(n,p);if(r)return r(p,y)};if(s)return function(p){return pn(p,s)}},bi=function(r){var n=r.fieldType,o=r.setValue,s=r.onChange,p=r.multiple,y=r.ref,E=function(A){return o(A)};return(n==="text"||n==="textArea"||n==="number")&&(E=function(A){return o(A.target.value,A)}),n==="select"&&(E=function(){var A=Array.from(y.current).filter(function(k){return k.selected}).map(function(k){return k.value});o(p?A:A[0]||"")}),n==="checkbox"&&(E=function(A){o(A.target.checked),s&&s(A)}),function(w){E(w)}},Gr=function(r){var n=r.setTouched,o=r.onBlur;return function(s){n(!0),o&&o(s)}},ji=function(r){var n=r.fieldType,o=r.maskedValue,s=r.multiple,p=r.value;switch(n){case"text":case"number":return!o&&o!==0?"":o;case"textArea":return o||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},Nn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},pn=function(r,n){if(n&&(r==null||r===""))return typeof n=="string"?n:"This field is required"};function On(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=t.field,o=t.validate,s=t.asyncValidate,p=t.validationSchema,y=t.mask,E=t.maskWithCursorOffset,w=t.format,A=t.parse,k=t.formatter,G=t.parser,ne=t.initialValue,re=t.validateOnChange,ce=t.validateOnBlur,xe=t.validateOnMount,ge=t.asyncValidateOnBlur,Ee=t.maskOnBlur,we=t.allowEmptyString,Te=t.onValueChange,$e=t.notify,je=t.keepState,He=t.maintainCursor,Ne=t.debug,Ve=t.shadow,We=t.step,Je=t.fieldType,ze=t.multiple,et=t.onChange,St=t.onBlur,Nt=t.formController,zt=t.relevant,or=t.required,Mr=t.keepStateIfRelevant,Er=t.initialize,Qr=t.formatterDependencies,wr=Qr===void 0?[]:Qr,Nr=C(t,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),wn=(0,d.useState)(se()),Yt=Q(wn,1),Rt=Yt[0],Ut=(0,d.useContext)(kt),sr=(0,d.useContext)(Se),an=sr||Mr,yr=Ie(),gs=(0,d.useRef)(),Ll=(0,d.useRef)(!0),go=(0,d.useRef)(),Bi=(0,d.useRef)(!1),Dl=function(){return!Bi.current},Pf=function(){return Bi.current};Nt&&(Ut=Nt.updater,yr=Nt.getFormApi());var xi=Cr(o,p,{required:or}),Nl=(0,d.useState)(function(){return Ut.getInitialValue(n)}),Zy=Q(Nl,1),_y=Zy[0],If=Ut.getSavedValue(n),Ff,xh;(je||an)&&If?(Pt("Setting field ".concat(Od,"'s kept state"),If),Ff=If.value,xh=If.touched,yr.removeSavedState(Od)):ne!=null?Ff=ne:Ff=_y;var qy=Ge(dn(Ff,y,k,G,Er)),dd=Q(qy,3),Bl=dd[0],pd=dd[1],em=dd[2],tm=Ge(xe?xi(Bl):void 0),hd=Q(tm,3),bh=hd[0],wh=hd[1],rm=hd[2],nm=Ge(xh),vd=Q(nm,3),Sh=vd[0],im=vd[1],Ah=vd[2],am=(0,d.useState)(function(){return Br(Bl,w,A,k)}),Eh=Q(am,2),gd=Eh[0],yd=Eh[1],Ch=(0,d.useRef)();Ch.current=gd;var Oh=(0,d.useRef)(ne),yo=(0,d.useRef)(n),Th=(0,d.useRef)();Oh.current=ne,yo.current=n;var om=(0,d.useRef)(null),Ui=d.useMemo(function(){return r||om},[]),md=At({value:Bl,inputRef:Ui,maintainCursor:!!He}),xd=md.getCursor,sm=md.setCursor,bd=md.setCursorOffset,lm=function(){return!0},wd=function(lr){var on=zt||lm,Ln=yr.getFullField(yo.current)||yo.current,Jt={path:Ln,parentPath:Ln.replace(/(.*)[.[].*/,"$1"),get:function(Dn,Vl){return pt.get(Dn,Vl)}};return sr&&sr.relevant?on(lr,Jt)&&sr.relevant(lr,Jt):on(lr,Jt)},um=Ge(wd(yr.getValues())),Sd=Q(um,3),kf=Sd[0],fm=Sd[1],Ph=Sd[2],cm=function(lr){return sr&&sr.relevant?sr.relevant(lr):!0},dm=function(){var lr=wd(yr.getValues()),on=Ph();return lr!=on&&fm(lr),lr};(0,d.useEffect)(function(){!kf&&!je&&gs.current.reset()},[kf]);var ii=function(){return Ve?yr.getDerrivedValue(n):em()},Ul=function(lr){var on=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ln=on.preventUpdate;We&&yr.getStep()<We?(Pt("Setting ".concat(n,"'s error to undefined as we are not at that step")),wh(void 0),Ut.setError(Rt,void 0,!Ln)):(Pt("Setting ".concat(n,"'s error to ").concat(lr)),wh(lr),Ut.setError(Rt,lr,!Ln))},Ad=function(lr,on){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=lr;Bi.current=!0,Pt("Setting ".concat(n," to ").concat(Jt)),Er&&(Jt=Er(Jt));var mo=yr.getOptions(),Dn=Jt;if(Jt===""&&!we&&!Ln.allowEmptyString&&!mo.allowEmptyStrings&&(Jt=void 0),(t.type==="number"||Je==="number")&&Jt!==void 0&&(Jt=+Jt),on&&on.target&&on.target.selectionStart&&sm(on.target.selectionStart),y&&!Ee&&(Dn=y(Jt,xd()),Jt=y(Jt,xd())),E&&!Ee){var Vl=E(Jt,xd());Dn=Vl.value,Jt=Vl.value,bd(Vl.offset)}if(w&&A&&(Jt=A(Jt),Dn=w(Jt)),k){var Ih=Be(Jt,k);bd(Ih.offset),Dn=Ih.value,Jt=Dn}G&&(Jt=Jt!=null?G(Jt):Jt),xi&&re&&!Ln.initial&&(Pt("Validating after change ".concat(n," ").concat(Jt)),Ul(xi(Jt,yr.getValues()))),pd(Jt),yd(Dn),Te&&Te(Jt),Ut.setValue(Rt,Jt,!Ln.preventUpdate)};Bt(function(){gs.current.setValue(Ch.current)},Y(wr));var Ed=function(lr,on){var Ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=Ln.preventUpdate;if(Pt("Field ".concat(n," has been touched")),xi&&ce&&!on&&lr&&(Pt("Validating after blur ".concat(n," ").concat(ii())),Ul(xi(ii(),yr.getValues()))),s&&ge&&!on&&lr&&(Pt("Validating async after blur ".concat(n," ").concat(ii())),s(ii(),yr.getValues())),y&&Ee){var mo=y(ii());pd(mo),yd(mo),Te&&Te(mo),Ut.setValue(Rt,mo,!Jt)}if(E&&Ee){var Dn=E(ii());bd(Dn.offset),pd(Dn.value),yd(Dn.value),Te&&Te(Dn.value),Ut.setValue(Rt,Dn.value,!Jt)}im(lr),Ut.setTouched(Rt,lr,!Jt)},pm=function(){var lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},on=lr.preventUpdate,Ln=dn(Oh.current||Ut.getInitialValue(yo.current),y,k,G,Er);Ad(Ln,null,{initial:!0,preventUpdate:on}),Ul(xe?xi(Ln):void 0,{preventUpdate:on}),Ed(void 0,!0,{preventUpdate:on}),Bi.current=!1},hm=function(lr){xi&&(Pt("Field validating ".concat(n," ").concat(ii())),Ul(xi(ii(),lr||yr.getValues())))},vm=function(lr){s&&(Pt("Field async validating ".concat(n," ").concat(ii())),s(ii(),lr||yr.getValues()))},Cd={setValue:Ad,setTouched:Ed,setError:Ul,reset:pm,validate:hm,asyncValidate:vm,getValue:ii,getTouched:Ah,getError:rm,getIsRelevant:Ph,getDirty:Pf,getPristine:Dl,getFieldState:function(){return{value:ii(),touched:Ah(),dirty:Pf(),pristine:Dl()}},relevant:wd,multistepRelevant:cm,checkRelevant:dm};gs.current=Cd;var jl={value:Bl,error:bh,touched:Sh,maskedValue:gd,isRelevant:kf,dirty:Bi.current,pristine:!Bi.current};Ve&&(jl={error:bh,touched:Sh}),Pt("Render",yr.getFullField(n),jl),vt(function(){var qr=yr.getFullField(yo.current);return Pt("Register",Rt,yo.current),go.current={field:qr,fieldId:Rt,fieldApi:Cd,fieldState:jl,notify:$e,keepState:je,inMultistep:an,shadow:Ve},Ut.register(Rt,go.current),function(){var lr=yr.getFullField(yo.current);Pt("Deregister",Rt,lr),Ut.deregister(Rt)}},[]),(0,d.useEffect)(function(){var qr=yr.getFullField(n);return Ll.current?Ll.current=!1:(Pt("Update",n,an),go.current.field=qr,Ut.update(Rt,go.current,Th.current)),function(){Th.current=qr}},[n]),vt(function(){Ne&&Ui&&(Ui.current.style.border="5px solid orange",setTimeout(function(){Ui.current.style.borderWidth="2px",Ui.current.style.borderStyle="inset",Ui.current.style.borderColor="initial",Ui.current.style.borderImage="initial"},500))});var gm=[].concat(Y(Object.values(jl)),Y(Object.values(t)),Y(Object.values(Nr))),ym=function(lr){return(0,d.useMemo)(function(){return kf?lr:null},Y(gm))},Od=n,mm=bi({fieldType:Je,setValue:Ad,onChange:et,multiple:ze,ref:Ui}),xm=Gr({setTouched:Ed,onBlur:St}),bm=ji({fieldType:Je,maskedValue:gd,multiple:ze,value:Bl}),wm=Nn(Je);return{fieldState:jl,fieldApi:Cd,render:ym,ref:Ui,userProps:j(j({},Nr),{},{multiple:ze,onChange:et,onBlur:St,id:Nr.id||Rt}),informed:j({name:Od,multiple:ze,onChange:mm,onBlur:xm,value:bm,ref:Ui,type:wm,id:Nr.id||Rt},Nr)}}var $r=function(r){var n=d.forwardRef(function(o,s){var p=On(o,s),y=p.fieldState,E=p.fieldApi,w=p.render,A=p.ref,k=p.userProps;return w(d.createElement(r,D({fieldApi:E,fieldState:y,field:o.field,forwardedRef:A,debug:o.debug,type:o.type},k)))});return n.displayName="asField(".concat(Ke(r),")"),n},wi=Me("informed:Text "),Si=function(r){var n=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,y=n.setValue,E=n.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.forwardedRef,re=s.debug,ce=s.label,xe=s.title,ge=s.id,Ee=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return wi("Render",k),vt(function(){re&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:ge}," ",ce," "):null,d.createElement("input",D({},Ee,{id:ge,name:k,ref:ne,value:!p&&p!==0?"":p,onChange:function(Te){y(Te.target.value,Te),w&&w(Te)},onBlur:function(Te){E(!0),A&&A(Te)}})))},en=$r(Si),hn=function(r){var n=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,y=n.setValue,E=n.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.forwardedRef,re=s.debug,ce=s.label,xe=s.id,ge=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return vt(function(){re&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),d.createElement(d.Fragment,null,ce?d.createElement("label",{htmlFor:xe}," ",ce," "):null,d.createElement("textarea",D({},ge,{id:xe,name:k,ref:ne,value:p||"",onChange:function(we){y(we.target.value,we),w&&w(we)},onBlur:function(we){E(!0),A&&A(we)}})))},Bn=$r(hn),Un=Me("informed:Select "),vn=function(r){var n=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,y=n.setTouched,E=s.onChange,w=s.onBlur,A=s.field,k=s.initialValue,G=s.options,ne=s.children,re=s.forwardedRef,ce=s.debug,xe=s.multiple,ge=s.label,Ee=s.id,we=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Te=(0,d.useRef)(),$e=function(He){var Ne=Array.from((re||Te).current).filter(function(Ve){return Ve.selected}).map(function(Ve){return Ve.value});n.setValue(xe?Ne:Ne[0]||""),E&&He&&E(He)};return vt(function(){ce&&re&&(re.current.style.background="red",setTimeout(function(){re.current.style.background="white"},500))}),Un("Render",A,p),d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:Ee}," ",ge," "):null,d.createElement("select",D({},we,{id:Ee,multiple:xe,name:A,ref:re||Te,value:p||(xe?[]:""),onChange:$e,onBlur:function(He){y(!0),w&&w(He)}}),G?G.map(function(je){return d.createElement("option",{key:je.value,value:je.value,disabled:je.disabled},je.label)}):ne))},Xn=$r(vn),Ai=function(r){var n=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,y=n.setValue,E=n.setTouched,w=s.onChange,A=s.onBlur,k=s.field,G=s.initialValue,ne=s.debug,re=s.forwardedRef,ce=s.id,xe=s.label,ge=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,xe?d.createElement("label",{htmlFor:ce}," ",xe," "):null,d.createElement("input",D({},ge,{id:ce,name:k,ref:re,checked:!!p,onChange:function(we){y(we.target.checked),w&&w(we)},onBlur:function(we){E(!0),A&&A(we)},type:"checkbox"})))},Ur=$r(Ai),Kr=function(r){return d.forwardRef(function(n,o){return d.createElement(jt.Consumer,null,function(s){var p=s.radioGroupApi,y=s.radioGroupState;return d.createElement(r,D({radioGroupApi:p,radioGroupState:y,ref:o},n))})})},Qn=function(r){var n=r.radioGroupApi,o=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=o.value,y=n.setValue,E=n.setTouched,w=n.onChange,A=n.onBlur,k=s.value,G=s.onChange,ne=s.onBlur,re=s.field,ce=s.initialValue,xe=s.forwardedRef,ge=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",D({},ge,{name:re,ref:xe,value:k,checked:p===k,onChange:function(we){!we.target.checked||(y(k),G&&G(we),w&&w(we))},onBlur:function(we){E(!0),ne&&ne(we),A&&A(we)},type:"radio"}))},fr=Kr(Qn),Ot=function(t){q(n,t);var r=_(n);function n(){return b(this,n),r.apply(this,arguments)}return g(n,[{key:"render",value:function(){var s=this.props,p=s.options,y=s.children;return d.createElement(jt.Provider,{value:this.groupContext},p?p.map(function(E){return d.createElement("label",{key:E.value},E.label," ",d.createElement(fr,{value:E.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(d.Component),ai=$r(Ot);function Ei(){return(0,d.useContext)(wt)}var Sn=function(){var r=Ei(),n=r.add;return d.createElement("button",{onClick:function(){n()},type:"button"},"Add")};function Zt(){return(0,d.useContext)(Dt)}var jn=function(){var r=Zt(),n=r.remove;return d.createElement("button",{onClick:function(){n()},type:"button"},"Remove")},Zn=Me("informed:useArrayField "),fa=function(r){var n=r.field,o=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,y=C(r,["field","initialValue","validate","arrayFieldApiRef"]),E=Ie(),w=(0,d.useState)(new Map),A=Q(w,1),k=A[0],G=(0,d.useContext)(kt),ne=E.getFullField(n),re=G.getInitialValue(n)||o||[],ce=E.getSavedValue(ne)&&E.getSavedValue(ne).value,xe=Ge(ce||re),ge=Q(xe,3),Ee=ge[0],we=ge[1],Te=ge[2],$e=Ee?Ee.map(function(){return se()}):[],je=Ge($e),He=Q(je,3),Ne=He[0],Ve=He[1],We=He[2],Je=(0,d.useMemo)(function(){return function(Yt,Rt){var Ut=We()==null?0:We().length;return s?s(Yt,Ut,Rt):void 0}}),ze=On(j({field:n,validate:s?Je:void 0,shadow:!0},y)),et=ze.fieldApi;vt(function(){var Yt=function(Ut){Ut!==ne&&(Zn("".concat(ne," changed")),RegExp("".concat(ne,"\\[[0-9]+\\]")).test(Ut)&&et.validate())};return E.emitter.on("value",Yt),function(){E.emitter.removeListener("value",Yt)}},[n]);var St=function(Rt){Zn("EXPECTING REMOVAL OF","".concat(n,"[").concat(Rt,"] and ").concat(n,"[").concat(Ne.length-1,"]")),G.expectRemoval("".concat(n,"[").concat(Rt,"]")),G.expectRemoval("".concat(n,"[").concat(Ne.length-1,"]"));var Ut=Ne.slice(0,Rt).concat(Ne.slice(Rt+1,Ne.length));Ve(Ut);var sr=Te(),an=sr.slice(0,Rt).concat(sr.slice(Rt+1,sr.length));we(an)},Nt=function(Rt,Ut){Zn("Swapping","".concat(n,"[").concat(Rt,"] and ").concat(n,"[").concat(Ut,"]"));var sr=Y(Ne);Ne[Rt]&&Ne[Ut]?(sr[Rt]=Ne[Ut],sr[Ut]=Ne[Rt]):console.warn("Attempted to swap ".concat(Rt," with ").concat(Ut," but one of them does not exist :(")),Ve(sr)},zt=function(){Ne.push(se()),Ve(Y(Ne))},or=function(Rt){Ne.push(se()),Ve(Y(Ne));var Ut=Y(Te());Ut[Ne.length-1]=Rt,we(Ut)},Mr=function(){var Rt=G.getInitialValue(n)||o||[];we(Rt);var Ut=Rt?Rt.map(function(){return se()}):[];Ve(Ut)},Er=Ne.map(function(Yt,Rt){var Ut={remove:function(){return St(Rt)}},sr={initialValue:Ee&&Ee[Rt],key:Yt,field:"".concat(n,"[").concat(Rt,"]"),index:Rt};return j(j({arrayFieldItemApi:Ut,arrayFieldItemState:sr},Ut),sr)}),Qr={add:zt,swap:Nt,addWithInitialValue:or,reset:Mr};p&&(p.current=Qr);var wr={fields:Er,field:n},Nr=j(j({},G),{},{register:function(Rt,Ut){k.set(Rt,Ut);for(var sr=arguments.length,an=new Array(sr>2?sr-2:0),yr=2;yr<sr;yr++)an[yr-2]=arguments[yr];G.register.apply(G,[Rt,Ut].concat(an))},deregister:function(Rt){k.delete(Rt);for(var Ut=arguments.length,sr=new Array(Ut>1?Ut-1:0),an=1;an<Ut;an++)sr[an-1]=arguments[an];G.deregister.apply(G,[Rt].concat(sr))},getInitialValue:function(Rt){if(RegExp("".concat(ne,"\\[[0-9]+\\]")).test(Rt)){var Ut=Rt.replace(n,""),sr=pt.get(Te(),Ut);return Zn("Resetting ".concat(Ut," to ").concat(sr)),sr}return G.getInitialValue(Rt)}}),wn=function(Rt){return d.createElement(kt.Provider,{value:Nr},d.createElement(wt.Provider,{value:Qr},d.createElement(Vt.Provider,{value:wr},Rt)))};return{render:wn,add:zt,swap:Nt,addWithInitialValue:or,fields:Er,arrayFieldState:wr,arrayFieldApi:Qr,field:n}},it=function(r,n){return j(j({},n),{},{getValue:function(s){return n.getValue("".concat(r,".").concat(s))},getTouched:function(s){return n.getTouched("".concat(r,".").concat(s))},getError:function(s){return n.getError("".concat(r,".").concat(s))},setValue:function(s,p){return n.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return n.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return n.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return n.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return n.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(n.getFullField(r),".").concat(s)}})};function Lt(t){var r=Ie(),n=(0,d.useMemo)(function(){return it(t,r)},[t]);return n}function oi(){var t=(0,d.useContext)(Et);return t}var le=function(r){var n=r.when,o=r.children,s=oi(),p=n(s);return p?o:null},Oe=function(r){var n=r.relevant,o=r.field,s=C(r,["relevant","field"]),p=Ie();if(n){var y=p.getFullField(o),E={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(k,G){return pt.get(k,G)}},w=function(k){var G=k.values;return n(G,E)};return d.createElement(le,{when:w},d.createElement(qe,D({field:o},s)))}else return d.createElement(qe,D({field:o},s))},qe=function(r){var n=r.children,o=C(r,["children"]),s=fa(o),p=s.render,y=s.arrayFieldState,E=s.arrayFieldApi,w=s.field;return p(typeof n=="function"?n(j(j({field:w,arrayFieldApi:E,arrayFieldState:y},E),y)):n)},st=function(r){var n=r.arrayFieldItemState,o=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(kt),y=Ie(),E=(0,d.useState)(0),w=Q(E,2),A=w[0],k=w[1],G=(0,d.useState)(new Map),ne=Q(G,1),re=ne[0],ce=n.field,xe=Lt(ce),ge=function(){var Ne=y.getState(),Ve=Ne.values,We=Ne.errors,Je=Ne.touched,ze={values:pt.get(Ve,ce),errors:pt.get(We,ce),touched:pt.get(Je,ce)};return ze};(0,d.useEffect)(function(){var He=function(Ve){var We=Ve.slice(0,Ve.lastIndexOf("[")!=-1?Ve.lastIndexOf("]")+1:Ve.length);We===ce&&k(Math.random())};return y.emitter.on("value",He),function(){y.emitter.removeListener("value",He)}},[ce]);var Ee=function(){re.forEach(function(Ne){Ne.fieldApi.reset()})},we=ge(),Te=j(j({},p),{},{register:function(Ne,Ve,We){re.set(Ne,Ve),p.register(Ne,Ve,We)},deregister:function(Ne){re.delete(Ne);for(var Ve=arguments.length,We=new Array(Ve>1?Ve-1:0),Je=1;Je<Ve;Je++)We[Je-1]=arguments[Je];p.deregister.apply(p,[Ne].concat(We))}}),$e=j(j(j({},o),xe),{},{reset:Ee}),je=j(j({},n),we);return typeof s=="function"?d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:$e},d.createElement(ve.Provider,{value:je},s(j(j({arrayFieldItemApi:$e,arrayFieldItemState:je},$e),je))))):d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:$e},d.createElement(ve.Provider,{value:je},s)))};Oe.Items=function(t){var r=t.children,n=(0,d.useContext)(Vt),o=n.fields;return o.map(function(s){var p=s.arrayFieldItemState,y=s.arrayFieldItemApi,E=p.key;return d.createElement(st,{key:E,arrayFieldItemApi:y,arrayFieldItemState:p},r)})};var lt=function(r){var n=r.components,o=(0,d.useContext)(kt),s=o.fieldMap;return n?n.map(function(p,y){var E=p["ui:control"],w=s[E];return d.createElement(w,{key:"ui-comp-".concat(y)})}):null},Kt=Me("informed:FormFields "),Xt=function t(r){var n=r.schema,o=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(kt),y=p.fieldMap,E=(0,d.useMemo)(function(){var w=de(n,s,o),A=w.map(function(k,G){var ne=k.field,re=k.props,ce=k.type,xe=k.properties,ge=k.items,Ee=k.componentType,we=k.uiBefore,Te=k.uiAfter,$e=k.allOf,je=y[Ee];return Kt("Rendering Field",ne,k),!je&&ce==="object"&&xe?d.createElement(t,{schema:k,prefix:ne,key:"ScheamField-".concat(G)}):!je&&ce==="array"&&ge?d.createElement(Or,D({key:"ScheamField-".concat(G),field:ne,items:ge,uiBefore:we,uiAfter:Te},re)):je&&Ee==="array"&&ge&&ce==="array"?d.createElement(je,D({key:"ScheamField-".concat(G),field:ne,items:ge,uiBefore:we,uiAfter:Te},re)):Ee==="conditionals"?$e.map(function(He){var Ne=He.then,Ve=He.if.properties,We=function(ze){var et=ze.values;return Object.keys(Ve).every(function(St){var Nt=Ve[St];return et[St]===Nt.const})};return d.createElement(le,{key:"ScheamField-".concat(G),when:We},d.createElement(t,{schema:Ne}))}):je?d.createElement(je,D({key:"ScheamField-".concat(G),field:ne},re)):null});return A},[n,o]);return E},Or=function(r){var n=r.field,o=r.items,s=r.uiBefore,p=r.uiAfter,y=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Oe,D({field:n},y),d.createElement(lt,{components:s}),d.createElement(Oe.Items,null,function(E){var w=E.field;return d.createElement(d.Fragment,null,d.createElement(lt,{components:o["ui:before"]}),d.createElement(Xt,{schema:o,prefix:w}),d.createElement(lt,{components:o["ui:after"]}))}),d.createElement(lt,{components:p}))},Tr={select:Xn,input:en,textarea:Bn,checkbox:Ur,radio:ai,add:Sn,remove:jn,array:Or},_t=Me("informed:Controller "),Wl=function(r,n){var o=Object.keys(n).find(function(p){return r.includes(p)});if(!!o){var s=r.slice(0,o.length);return s===o}},tn=function(){},ys=function(){function t(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=n,this.subscriptions=new Map;var o=n.ajv,s=n.schema,p=n.fieldMap;this.ajv=o?new o({allErrors:!0}):null,this.ajvValidate=o?this.ajv.compile(s):null,this.fieldMap=p||Tr,this.fieldsById=new Map,this.fieldsByName={get:function(E){var w;return r.fieldsById.forEach(function(A){A&&A.field===E&&(w=A)}),w}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:tn,setTouched:tn,setError:tn,reset:tn,validate:tn,getValue:tn,getTouched:tn,getError:tn,getFieldState:tn,checkRelevant:tn,getPristine:tn,getDirty:tn}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);k.shadow||pt.set(r.state.values,k.field,k.fieldApi.getValue()),k.fieldApi.relevant(r.state.values)||pt.delete(r.state.values,k.field),r.fieldsById.forEach(function(G){var ne=G.fieldApi.checkRelevant();(!G.fieldApi.multistepRelevant(r.state.values)||!ne&&!G.keepState)&&(pt.delete(r.state.values,G.field),pt.delete(r.state.touched,G.field),pt.delete(r.state.errors,G.field))}),A&&(r.emit("change"),r.emit("field",k.field),r.emit("value",k.field,w))},setTouched:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);!k.shadow&&k.fieldApi.getIsRelevant()&&pt.set(r.state.touched,k.field,k.fieldApi.getTouched()),k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)&&pt.set(r.state.touched,k.field,k.fieldApi.getTouched()),A&&(r.emit("change"),r.emit("field",k.field))},setError:function(E,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,k=r.fieldsById.get(E);!k.shadow&&k.fieldApi.getIsRelevant()&&pt.set(r.state.errors,k.field,k.fieldApi.getError());var G=pt.get(r.state.errors,k.field);(k.shadow&&k.fieldApi.getError()!=null&&k.fieldApi.relevant(r.state.values)||k.shadow&&k.fieldApi.getError()===void 0&&k.fieldApi.relevant(r.state.values)&&typeof G=="string")&&pt.set(r.state.errors,k.field,k.fieldApi.getError()),A&&(r.emit("change"),r.emit("field",k.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(y){delete r.state.error,r.notify(y)})}return g(t,[{key:"emit",value:function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),p=1;p<o;p++)s[p-1]=arguments[p];var y=this.subscriptions.get(n);y&&y.forEach(function(E){return E.apply(void 0,s)})}},{key:"on",value:function(n,o){this.subscriptions.get(n)||this.subscriptions.set(n,new Set);var s=this.subscriptions.get(n);s.add(o)}},{key:"removeListener",value:function(n,o){var s=this.subscriptions.get(n);s.delete(o)}},{key:"setOptions",value:function(n){this.options=n}},{key:"setValue",value:function(n,o,s){this.getField(n).fieldApi.setValue(o,null,j({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(n,o){this.getField(n).fieldApi.setTouched(o)}},{key:"setError",value:function(n,o){this.getField(n).fieldApi.setError(o)}},{key:"setFormError",value:function(n){this.state.error=n,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(n,o){if(this.state.validating=this.state.validating-1,this.getError(n)||this.setError(n,o),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(n){this.state.step=n,this.emit("change")}},{key:"setCurrent",value:function(n){this.state.Current=n,this.emit("change")}},{key:"back",value:function(n){this.state.step=this.state.step-1,this.state.Current=n,this.emit("change")}},{key:"next",value:function(n){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=n),this.emit("change")}},{key:"setInitialValue",value:function(n,o){pt.set(this.options.initialValues,n,o)}},{key:"getFormState",value:function(){return _t("Returning form state"),j(j({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(n){var o=this.getValues();return pt.get(o,n)}},{key:"getValue",value:function(n){var o=this.getField(n).fieldApi.getValue();return _t("Getting value for",n,o),o}},{key:"getTouched",value:function(n){var o=this.getField(n).fieldApi.getTouched();return _t("Getting touched for",n,o),o}},{key:"getError",value:function(n){var o=this.getField(n).fieldApi.getError();return _t("Getting error for",n,o),o}},{key:"getDirty",value:function(n){var o=this.getField(n).fieldApi.getDirty();return _t("Getting dirty for",n,o),o}},{key:"getPristine",value:function(n){var o=this.getField(n).fieldApi.getPristine();return _t("Getting pristine for",n,o),o}},{key:"getValues",value:function(){return _t("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return _t("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return _t("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(n){var o=this.fieldsByName.get(n);return o&&o.shadow?pt.get(this.savedValues,"shadow-".concat(n)):pt.get(this.savedValues,n)}},{key:"removeSavedState",value:function(n){var o=this.fieldsByName.get(n);return o&&o.shadow?pt.delete(this.savedValues,"shadow-".concat(n)):pt.delete(this.savedValues,n)}},{key:"getFullField",value:function(n){return n}},{key:"getInitialValue",value:function(n){return pt.get(this.options.initialValues,n)}},{key:"getField",value:function(n){_t("Getting Field",n);var o=this.fieldsByName.get(n);return o||(console.warn("Attempting to get field ".concat(n," but it does not exist")),this.dummyField)}},{key:"notify",value:function(n){var o=this,s=this.getField(n);s&&s.notify&&s.notify.forEach(function(p){var y=".".concat(n),E="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=o.getField(E);w&&(_t("Notifying",w.field),w.fieldApi.validate(),w.fieldApi.checkRelevant())})}},{key:"validateField",value:function(n){this.getField(n).fieldApi.validate()}},{key:"resetField",value:function(n){this.getField(n).fieldApi.reset()}},{key:"fieldExists",value:function(n){return this.fieldsByName.get(n)!=null}},{key:"valid",value:function(){var n=this.getErrors();return!!(pt.empty(n)&&!this.state.error)}},{key:"screenValid",value:function(){var n=Object.entries(this.onScreen).some(function(o){var s=Q(o,2),p=s[1];return p.fieldApi.getError()});return!n}},{key:"invalid",value:function(){var n=this.getErrors();return!!(!pt.empty(n)||this.state.error)}},{key:"pristine",value:function(){var n=!0;return this.fieldsById.forEach(function(o){o.fieldApi.getPristine()||(n=!1)}),n}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){_t("Resetting"),this.fieldsById.forEach(function(n){n.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(n){_t("Setting values"),this.fieldsById.forEach(function(o){var s=pt.get(n,o.field);s!==void 0&&o.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var n=this;_t("Validating all fields");var o=this.getValues();if(this.options.validationSchema){var s=Re(this.options.validationSchema,o);this.fieldsById.forEach(function(w){if(pt.has(s,w.field)){var A=pt.get(s,w.field);n.setError(w.field,A)}else n.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var p=O(this.ajvValidate,o);this.fieldsById.forEach(function(w){if(pt.has(p,w.field)){var A=pt.get(p,w.field);n.setError(w.field,A)}else n.setError(w.field,void 0)})}if(this.fieldsById.forEach(function(w){w.fieldApi.validate(o),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var y=this.options.validate(o);this.setFormError(y)}if(this.options.validateFields){var E=this.options.validateFields(o);this.fieldsById.forEach(function(w){if(pt.has(E,w.field)){var A=pt.get(E,w.field);n.setError(w.field,A)}})}}},{key:"asyncValidate",value:function(){_t("Async Validating all fields");var n=this.getValues();this.fieldsById.forEach(function(o){o.fieldApi.asyncValidate(n)})}},{key:"keyDown",value:function(n){if(n.keyCode==13&&this.options.preventEnter)return n.preventDefault(n),!1}},{key:"submitForm",value:function(n){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&n&&n.preventDefault(n),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var n=this;this.fieldsById.forEach(function(o){n.emit("field",o.field)})}},{key:"register",value:function(n,o,s){var p=o.field,y=o.state;_t("Register ID:",n,"Name:",p,y,"Initial",s);var E=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(A,k){A&&A.field===p&&(w=k)}),w&&(o.keepState||o.inMultistep)?(_t("Already Registered",p),this.fieldsById.delete(w)):w&&(!o.keepState||!o.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),_t("Fields Registered",this.fieldsById.size),this.onScreen[n]=o,this.fieldsById.set(n,o),_t("clearing expected removal",E),delete this.expectedRemovals[E],delete this.pulledOut[E],!o.shadow&&(this.updater.setValue(n,o.fieldApi.getValue(),!1),this.updater.setError(n,o.fieldApi.getError(),!1),this.updater.setTouched(n,o.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(n){var o=this.fieldsById.get(n),s=o.field;_t("Deregister",n,s),delete this.onScreen[n];var p=Wl(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(o.keepState||o.inMultistep)&&!p&&(_t("Saving field ".concat(s,"'s value"),o.fieldApi.getFieldState()),o.shadow?pt.set(this.savedValues,"shadow-".concat(s),o.fieldApi.getFieldState()):pt.set(this.savedValues,s,o.fieldApi.getFieldState())),(p||!o.keepState&&!o.inMultistep||!o.fieldApi.getIsRelevant()&&!o.keepState)&&(_t("Removing field",s),this.fieldsById.delete(n),p||(pt.delete(this.state.values,s),pt.delete(this.state.touched,s),pt.delete(this.state.errors,s),o.shadow?pt.delete(this.savedValues,"shadow-".concat(s)):pt.delete(this.savedValues,s)),p&&this.pulledOut[y]&&(_t("Pulling out",s,"with magic value",y),pt.pullOut(this.state.values,y),pt.pullOut(this.state.touched,y),pt.pullOut(this.state.errors,y),pt.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(n){_t("Expecting removal of",n),this.expectedRemovals[n]=!0,this.pulledOut[n]=!0}},{key:"update",value:function(n,o,s){_t("Update",n,o.field,s,o.fieldState.value);var p=o.fieldApi.getValue(),y=o.fieldApi.getError(),E=o.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(pt.set(this.state.values,s),pt.set(this.state.errors,s),pt.set(this.state.touched,s)),pt.set(this.state.values,o.field,p),pt.set(this.state.errors,o.field,y),pt.set(this.state.touched,o.field,E),this.emit("change")}}]),t}(),xo=Me("informed:FormProvider "),ms=function(r){var n=r.children,o=r.formApi,s=r.formController,p=r.formState,y=C(r,["children","formApi","formController","formState"]);if(xo("Render FormProvider"),o)return xo("Render FormProvider with given values"),d.createElement(kt.Provider,{value:s.updater},d.createElement(Ht.Provider,{value:o},d.createElement(Et.Provider,{value:p},n)));xo("Render FormProvider with generated values");var E=bs(y);return d.createElement(kt.Provider,{value:E.formController.updater},d.createElement(Ht.Provider,{value:E.formApi},d.createElement(Et.Provider,{value:E.formState},n)))},xs=Me("informed:useForm "),bs=function(r){var n=r.dontPreventDefault,o=r.initialValues,s=r.validate,p=r.validateFields,y=r.allowEmptyStrings,E=r.preventEnter,w=r.getApi,A=r.apiRef,k=r.onChange,G=r.onReset,ne=r.onSubmit,re=r.onValueChange,ce=r.onSubmitFailure,xe=r.validationSchema,ge=r.schema,Ee=r.ajv,we=r.fieldMap,Te=r.onlyValidateSchema,$e=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);xs("Render useForm");var je=(0,d.useMemo)(function(){return{dontPreventDefault:n,initialValues:o,validate:s,validateFields:p,allowEmptyStrings:y,preventEnter:E,validationSchema:xe,schema:ge,ajv:Ee,fieldMap:we}},[n,o,s,p,y,E,xe,ge,Ee,we]),He=(0,d.useState)(function(){return new ys(je)}),Ne=Q(He,1),Ve=Ne[0];(0,d.useEffect)(function(){Ve.setOptions(je)},[je]),vt(function(){Ve.mount()},[]);var We=(0,d.useState)(function(){return Ve.getFormState()}),Je=Q(We,2),ze=Je[0],et=Je[1];vt(function(){var Mr=function(){return k&&k(Ve.getFormState())},Er=function(){return G&&G()},Qr=function(){return ne&&ne(Ve.getFormState().values)},wr=function(){return re&&re(Ve.getFormState().values)},Nr=function(){return ce&&ce(Ve.getFormState().errors)};return Ve.on("change",Mr),Ve.on("reset",Er),Ve.on("submit",Qr),Ve.on("value",wr),Ve.on("failure",Nr),function(){Ve.removeListener("change",Mr),Ve.removeListener("reset",Er),Ve.removeListener("submit",Qr),Ve.removeListener("value",wr),Ve.removeListener("failure",Nr)}},[k,G,ne,re,ce]),(0,d.useState)(function(){var Mr=function(){xs("Setting form state"),et(Ve.getFormState())};Ve.on("change",Mr),w&&w(Ve.getFormApi()),A&&(A.current=Ve.getFormApi())});var St=(0,d.useState)(function(){return Ve.getFormApi()}),Nt=Q(St,1),zt=Nt[0],or=function(Er){return d.createElement(ms,{formApi:zt,formState:ze,formController:Ve},d.createElement(d.Fragment,null,Er||d.createElement(Xt,{schema:ge,onlyValidateSchema:Te})))};return{formApi:zt,formState:ze,formController:Ve,render:or,userProps:$e}},Hl=Me("informed:Form "),zl=function(r){var n=r.children,o=r.render,s=r.component,p=C(r,["children","render","component"]);Hl("Render FORM");var y=bs(p),E=y.formApi,w=y.formController,A=y.formState,k=y.render,G=y.userProps,ne=function(){var ce={formState:A,formApi:E};return s?d.createElement(s,ce,n):o?o(ce):typeof n=="function"?n(ce):n};return k(d.createElement("form",D({},G,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),ne()))},Mf=function(r,n){return j(j({},n),{},{getValue:function(s){return n.getValue("".concat(r,".").concat(s))},getTouched:function(s){return n.getTouched("".concat(r,".").concat(s))},getError:function(s){return n.getError("".concat(r,".").concat(s))},setValue:function(s,p){return n.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return n.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return n.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return n.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(n.getFullField(r),".").concat(s)}})},Rf=function(r,n){var o=n.register,s=n.deregister,p=n.setValue,y=n.setTouched,E=n.setError,w=n.update,A=n.getField,k=n.expectRemoval,G=n.getInitialValue,ne=n.fieldMap,re=n.getSavedValue;return{register:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return o.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},deregister:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return s.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},update:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return w.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},setValue:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return p.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},setTouched:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return y.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},setError:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return E.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},getField:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return A.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},expectRemoval:function(xe){for(var ge=arguments.length,Ee=new Array(ge>1?ge-1:0),we=1;we<ge;we++)Ee[we-1]=arguments[we];return k.apply(void 0,["".concat(r,".").concat(xe)].concat(Ee))},getInitialValue:function(xe){return G("".concat(r,".").concat(xe))},getSavedValue:function(xe){return re("".concat(r,".").concat(xe))},fieldMap:ne}},Lf=function(r){var n=r.scope,o=r.children,s=useContext(kt),p=Ie(),y=oi(),E=useMemo(function(){return Mf(n,p)},[n]),w=useMemo(function(){return Rf(n,s)},[n]);return React.createElement(kt.Provider,{value:w},React.createElement(Ht.Provider,{value:E},React.createElement(Et.Provider,{value:y},o)))},Ci=function(r){var n=oi(),o={};Object.keys(r).length>0?Object.keys(r).forEach(function(re){o[re]=n[re]}):o=n;var s=o,p=s.pristine,y=s.dirty,E=s.invalid,w=s.values,A=s.errors,k=s.touched,G=s.validating,ne=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:y,invalid:E,values:w,errors:A,touched:k,validating:G,submitting:ne},null,2)))},Df=function(r){var n=r.initialStep,o=r.multistepApiRef,s=Ie(),p=s.getValues,y=s.validate,E=s.screenValid,w=(0,d.useState)(new Map),A=Q(w,1),k=A[0],G=(0,d.useRef)(0),ne=Ge({current:n,steps:[],goal:null}),re=Q(ne,3),ce=re[0],xe=re[1],ge=re[2],Ee=(0,d.useState)(function(){var je=function(){var Ve=ge(),We=Ve.current,Je=k.get(We);return Je},He={getState:function(){return ge()},getCurrentStep:je,getStep:function(Ve){return k.get(Ve)},getNumberOfSteps:function(){return k.size},next:function(){if(y(),E()){var Ve=je(),We=Ve.getNext,Je=We(),ze=typeof Je=="function"?Je(p()):Je;ze&&xe(function(et){return j(j({},et),{},{current:ze})})}},back:function(){var Ve=je(),We=Ve.getPrevious,Je=We(),ze=typeof Je=="function"?Je(p()):Je;ze&&xe(function(et){return j(j({},et),{},{current:ze})})},setCurrent:function(Ve){if(Ve){var We=k.get(Ve).index;We<je().index?xe(function(Je){return j(j({},Je),{},{current:Ve,goal:null})}):xe(function(Je){return j(j({},Je),{},{goal:Ve})})}},register:function(Ve,We,Je){Je?(G.current=G.current+1,k.set(Ve,j(j({},We),{},{index:G.current}))):xe(function(ze){return j(j({},ze),{},{steps:Array.from(k.keys())})})},deregister:function(Ve){k.delete(Ve),G.current=G.current-1,xe(function(We){return j(j({},We),{},{steps:Array.from(k.keys())})})}};return o&&(o.current=He),He}),we=Q(Ee,1),Te=we[0],$e=function(He){return d.createElement($.Provider,{value:Te},d.createElement(z.Provider,{value:ce},He))};return j(j(j({},Te),ce),{},{render:$e})};function Nf(){return(0,d.useContext)(z)}function bo(){return(0,d.useContext)($)}var Ia=function(r){var n=r.step,o=r.next,s=r.previous,p=r.relevant,y=oi(),E=y.values,w=Nf(),A=w.current,k=w.goal,G=bo(),ne=G.register,re=G.deregister,ce=G.next,xe=n===A,ge=p?p(E):!0,Ee=(0,d.useRef)(o),we=(0,d.useRef)(s),Te=(0,d.useRef)();Ee.current=o,we.current=s,Te.current=p,(0,d.useState)(function(){ne(n,{name:n,getNext:function(){return Ee.current},getPrevious:function(){return we.current}},!0)}),(0,d.useEffect)(function(){return ne(n,{name:n,getNext:function(){return Ee.current},getPrevious:function(){return we.current}}),function(){re(n)}},[n]),(0,d.useEffect)(function(){k&&xe&&k!==n&&ce()},[k,xe]);var $e=function(He){return d.createElement(Se.Provider,{value:{relevant:function(Ve){return Te.current?Te.current(Ve):!0},multistep:!0}},xe&&ge?He:null)};return{isCurrent:xe,isRelevant:ge,step:n,render:$e}};function Bf(t){var r=t.children,n=C(t,["children"]),o=Df(n),s=o.render,p=C(o,["render"]);return s(typeof r=="function"?r(p):r)}Bf.Step=function(r){var n=r.children,o=C(r,["children"]),s=Ia(o),p=s.render;return p(n)};var Td=function(r){var n=r.field,o=useContext(kt),s=o.fieldMap,p=Ie(),y=p.getFullField,E=p.getOptions,w=y(n),A=E(),k=A.schema,G=ae(w),ne=pt.get(k,G);if(!ne)return null;var re=te(n,ne),ce=re.props,xe=re.componentType,ge=s[xe];return React.createElement(ge,D({field:n},ce))},Pd=function(){var r=Ie(),n=r.getOptions,o=n(),s=o.schema;return React.createElement(Xt,{schema:s})},Id=function(r){return React.forwardRef(function(n,o){return React.createElement(Ht.Consumer,null,function(s){return React.createElement(r,D({formApi:s,ref:o},n))})})},Gl=function(r){return React.forwardRef(function(n,o){return React.createElement(Et.Consumer,null,function(s){return React.createElement(r,D({formState:s,ref:o},n))})})},$l=function(r,n){return{getValue:function(){return r.getValue(n)},setValue:function(s){return r.setValue(n,s)},getTouched:function(){return r.getTouched(n)},setTouched:function(s){return r.setTouched(n,s)},getError:function(){return r.getError(n)},setError:function(s){return r.setError(n,s)},reset:function(){return r.resetField(n)},validate:function(){return r.validateField(n)},exists:function(){return r.fieldExists(n)},getDirty:function(){return r.getDirty(n)},getPristine:function(){return r.getPristine(n)},getFieldState:function(){return r.getField(n).fieldApi.getFieldState()}}};function Kl(t){var r=Ie(),n=useMemo(function(){return $l(r,t)},[t]);return n}function Yl(t){var r=Kl(t),n=Ie(),o=React.useState(),s=Q(o,2),p=s[1],y=React.useCallback(function(){return p({})},[]);return vt(function(){var E=function(A){A===t&&y()};return n.emitter.on("field",E),function(){n.emitter.removeListener("field",E)}},[]),vt(function(){y()},[]),r.getFieldState()||{}}var Uf=function(r){return function(n){return function(o){var s=Yl(r);return React.createElement(n,D({fieldState:s},o))}}},ws=function(r){return function(n){return function(o){var s=Kl(r);return React.createElement(n,D({fieldApi:s},o))}}},Ss=function(r){var n=r.value,o=r.forwardedRef,s=r.children,p=C(r,["value","forwardedRef","children"]);return React.createElement("option",D({ref:o,value:n,key:n},p),s)},Jl=null,Fa=a(80150),As=a(89356),Vi=a(63263),jf=a(30699),wo=a(58377),Vn=a(28834),Xl=a(13038),Vf=a(32752),ka=a(44341);function Es(t,r,n){return r in t?ka(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function si(t,r){var n=As(t);if(Vi){var o=Vi(t);r&&(o=jf(o).call(o,function(s){return wo(t,s).enumerable})),n.push.apply(n,o)}return n}function cr(t){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};if(r%2){var o;Vn(o=si(Object(n),!0)).call(o,function(p){Es(t,p,n[p])})}else if(Xl)Vf(t,Xl(n));else{var s;Vn(s=si(Object(n))).call(s,function(p){ka(t,p,wo(n,p))})}}return t}var li=a(28583),Wi=a.n(li),Cs=a(10240),Hi=a.n(Cs),Oi=a(8575),zi=a(51446),Os=a(19996),Ts=a(78363),Ql=a(95238),Ps=a(53592);function Is(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=t[n];return o}function Fs(t,r){var n;if(!!t){if(typeof t=="string")return Is(t,r);var o=Ql(n=Object.prototype.toString.call(t)).call(n,8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Ps(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Is(t,r)}}function Gi(t,r){var n=typeof zi!="undefined"&&Os(t)||t["@@iterator"];if(!n){if(Ts(t)||(n=Fs(t))||r&&t&&typeof t.length=="number"){n&&(t=n);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(A){throw A},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
81
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,
|
|
82
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rn(t,r){return
|
|
83
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
80
|
+
`+ye)}else F[0]=te+" "+F[0]}function o(F,G){if(F[0]=(G.useColors?"%c":"")+G.namespace,!!G.useColors){var te="color: "+G.color,ne=0,oe=0;F[0].replace(/%[a-zA-Z%]/g,function(ye){ye!=="%%"&&(ne++,ye==="%c"&&(oe=ne))}),F.splice(oe,0,te)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function p(){var F;try{F=localStorage.getItem("debug")}catch(G){}return!F&&typeof process!="undefined"&&"env"in process&&(F={}.DEBUG),{namespaces:F||"",colors:s,useColors:!0,formatArgs:o}}function y(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:i}}function A(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,G=arguments.length>1?arguments[1]:void 0;return function(){for(var te=arguments.length,ne=new Array(te),oe=0;oe<te;oe++)ne[oe]=arguments[oe];F&&ne.unshift(F);var ye=G.namespaces.split(",").map(function(Te){return Te[Te.length-1]==="*"?new RegExp("^"+Te.slice(0,Te.length-1)+".*$"):new RegExp("^"+Te+"$")}),ge=ye.some(function(Te){return Te.test(F)}),Ae={color:r(F,G.colors),namespace:F,useColors:G.useColors};if(!1)var me}}function w(F){return A(F,y())}function E(F){return A(F,p())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?t.exports=E:t.exports=w}),Pe=Me("informed:ObjMap "),rt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},Ze=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(p,y){return p!=null?p[y]:p},r);return s===void 0||s===r?o:s},Xe=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},ft=function(r){return r.replace(Xe(r),"").replace(/\./,"")},ht=function(r,i){var o=Xe(i),s=ft(i),p=o?Ze(r,o):r;return!!(p&&Object.hasOwnProperty.call(p,s.replace(/\[(.*)\]/,"$1")))},wt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,A){return y===A.length-1?(s[p]=o,s[p]):s[p]===void 0?(Number.isInteger(+A[y+1])?s[p]=[]:s[p]={},s[p]):(Number.isInteger(+A[y+1])&&!Array.isArray(s[p])&&(s[p]=[]),s[p])},r)},nt=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=!1;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,A){return s===void 0?s:(y===A.length-1&&(delete s[p],o=!0),s[p])},r),o},ut=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o;return String.prototype.replace.call(i,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,p,y,A){return s===void 0?s:(y===A.length-1&&Array.isArray(s)&&(o=s.splice(p,1)),s[p])},r),o},mt=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=Object.keys(r);return i.map(function(o){return r[o]})},xt=function(r){var i=rt(r);return Number.isInteger(+i[i.length-1])},pt=function(){function t(){b(this,t)}return g(t,null,[{key:"empty",value:function(i){return mt(i).length===0}},{key:"get",value:function(i,o){var s=Ze(i,o);return s}},{key:"has",value:function(i,o){return ht(i,o)}},{key:"set",value:function(i,o,s){if(s!==void 0)Pe("SETTING",o,s),wt(i,o,s);else if(xt(o)&&t.get(i,o)!==void 0){Pe("Special case SETTING",o,"to undefined"),wt(i,o,void 0);var p=rt(o);p=p.slice(0,p.length-1),Mt(i,p)}else!xt(o)&&t.get(i,o)!==void 0&&(Pe("Special case REMOVING",o,"from object completley"),t.delete(i,o))}},{key:"delete",value:function(i,o){Pe("DELETE",o),xt(o)?(Pe("ARRAY",o),this.pullOut(i,o)):nt(i,o);var s=rt(o);s=s.slice(0,s.length-1),Mt(i,s)}},{key:"pullOut",value:function(i,o){var s=rt(o),p=s[s.length-1];s=s.slice(0,s.length-1),Pe("Pulling out:",s,"index",p);var y=Ze(i,s);Pe("Array",y),Array.isArray(y)&&ut(y,p),Mt(i,s)}}]),t}();function Mt(t,r){if(r.length!==0){var i=Ze(t,r);(Array.isArray(i)?i.every(function(o){return o==null}):JSON.stringify(i)==="{}")&&nt(t,r),Mt(t,r.slice(0,r.length-1))}}var kt=d.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),Et=d.createContext({}),zt=d.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),jt=d.createContext(),Vt=d.createContext(),St=d.createContext(),Dt=d.createContext(),ve=d.createContext(),z=d.createContext(),$=d.createContext(),Se=d.createContext();function Ie(){var t=(0,d.useContext)(zt);return t}function Ge(t){var r=(0,d.useRef)(),i=(0,d.useRef)(!0),o=(0,d.useState)(t),s=Q(o,2),p=s[0],y=s[1];r.current=p;var A=function(F){r.current=F,i.current&&y(F)},w=function(){return r.current};return(0,d.useEffect)(function(){return function(){i.current=!1}},[]),[p,A,w]}var Ke=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},P=function(r){var i={};if(r.inner){if(r.inner.length===0){pt.set(i,r.path,r.message);return}var o=Fe(r.inner),s;try{for(o.s();!(s=o.n()).done;){var p=s.value;pt.get(i,p.path)||pt.set(i,p.path,p.message)}}catch(y){o.e(y)}finally{o.f()}}return i},Re=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(s){var o=P(s);return o}},K=function(r){if(r.inner){if(r.inner.length===0)return;var i=r.inner[0];return i.message}},T=function(r,i){try{r.validateSync(i,{abortEarly:!1})}catch(o){return K(o)}},O=function(r,i){r(i);var o={};return r.errors&&r.errors.forEach(function(s){var p=s.message,y=s.dataPath,A=s.keyword,w=s.params,E=y;A==="required"&&(E="".concat(E,".").concat(w.missingProperty)),E=E.replace(".",""),pt.set(o,E,p)}),o},le=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var i=Math.random()*16|0,o=r=="x"?i:i&3|8;return o.toString(16)})},N=function(r,i){var o;return function(){for(var p=arguments.length,y=new Array(p),A=0;A<p;A++)y[A]=arguments[A];var w=function(){clearTimeout(o),r.apply(void 0,y)};clearTimeout(o),o=setTimeout(w,i)}},re=function(r,i,o){var s=i["ui:control"],p=i["informed:props"],y=i["input:props"],A=i["ui:before"],w=i["ui:after"],E=i.oneOf,F=i.items,G=i.enum,te=i.title,ne=i.minimum,oe=i.maximum,ye=i.minLength,ge=i.maxLength,Ae=i.pattern,me=i.type,Te=i.properties,He=le();y&&y.id&&(He=y.id);var Ve={componentType:s,field:o?"".concat(o,".").concat(r):r,type:me,uiBefore:A,uiAfter:w,properties:me==="object"?Te:void 0,items:me==="array"?F:void 0,props:j(j({label:te,id:He,min:ne,max:oe,minLength:ye,maxLength:ge,pattern:Ae},p),y)};if(E){var ze=i.oneOf.map(function(We){var Je=We["input:props"],et=Je===void 0?{}:Je;return j({value:We.const,label:We.title},et)});Ve.props.options=ze}if(G){var De=i.enum.map(function(We){return{value:We,label:We}});Ve.props.options=De}if(F&&F.oneOf){var Be=F.oneOf.map(function(We){var Je=We["input:props"],et=Je===void 0?{}:Je;return j({value:We.const,label:We.title},et)});Ve.props.options=Be}return Ve},de=function(r,i,o){if(!r||i)return[];var s=r.properties,p=s===void 0?{}:s,y=r.allOf,A=r.propertyOrder,w=A===void 0?[]:A;if(Object.keys(p).length>0){var E=Object.keys(p).sort(function(F,G){var te=w.indexOf(F),ne=w.indexOf(G);return(te>-1?te:w.length+1)-(ne>-1?ne:w.length+1)}).map(function(F){var G=p[F],te=re(F,G,o);return te});return y&&E.push({componentType:"conditionals",allOf:y}),E}return[]},ae=function(r){var i=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return i="properties.".concat(i),i},pe=function(r,i){if(typeof r=="string")return r.split("").map(function(o){return o==="#"?/\d/:o==="*"?/[\w]/:o});if(typeof r=="function")return r(i);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},Ee=function(r,i){for(var o=0,s=-1,p=!0;p&&o<r.length;)r[o]==i[o]?s=o:p=!1,o=o+1;return s},Ue=function(r,i){if(!r)return{val:r,offset:0};var o="".concat(r),s=pe(i,o),p=s.findIndex(function(ge){return typeof ge!="string"}),y=s.length-Y(s).reverse().findIndex(function(ge){return typeof ge!="string"}),A=[],w=o.split(""),E=0,F=0,G=Ee(s.slice(0,p),w.slice(0,p));G>-1&&(E=G+1,A=A.concat(s.slice(0,G+1)),F=G+1),G<0&&(A=A.concat(s.slice(0,p)),F=p);for(var te=F;te<s.length;te++){var ne=s[te];if(E!=w.length){var oe=w[E];if(typeof ne=="function")A.push(ne(oe)),E=E+1;else{var ye=typeof ne=="string"?ne===oe:ne.test(oe);ye&&typeof ne=="string"?(A.push(ne),E=E+1):!ye&&typeof ne=="string"?E!=w.length&&A.push(ne):ye&&typeof ne!="string"?(A.push(oe),E=E+1):!ye&&typeof ne!="string"&&(E=E+1,te=te-1)}}else if(typeof ne=="string"&&te>=y)A.push(ne);else break}return{value:A.join(""),offset:o?A.length-o.length:0}},je=function(r,i){var o,s,p=new Intl.NumberFormat(r,i),y=new Intl.NumberFormat(r),A=(o=(s=y.formatToParts(.1).find(function(ge){var Ae=ge.type;return Ae==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&o!==void 0?o:".";function w(ge,Ae){return ge instanceof RegExp&&Ae instanceof RegExp&&ge.source===Ae.source&&ge.global===Ae.global&&ge.ignoreCase===Ae.ignoreCase&&ge.multiline===Ae.multiline}function E(ge,Ae){for(var me=ge.length;me--;)if(Ae(ge[me]))return me;return-1}function F(ge,Ae,me){var Te=Y(ge);return Array.isArray(me)?Te.splice.apply(Te,[Ae,0].concat(Y(me))):Te.splice(Ae,0,me),Te}function G(ge){return"".concat(ge).replace(/\D/g,"")}function te(ge){return"".concat(ge).split(A).map(function(Ae){return G(Ae)}).join(".")}function ne(ge){if(typeof ge=="number")return ge;var Ae=parseFloat(te(ge));return Number.isNaN(Ae)?void 0:Ae}function oe(ge){var Ae=te(ge),me="".concat(Ae).split(".")[1],Te=p.formatToParts(Number(Ae));me==="0"&&Te.push({type:"decimal",value:A},{type:"fraction",value:me});var He=Te.reduce(function(De,Be){var We=Be.type,Je=Be.value;return["decimal","fraction"].includes(We)&&me==null?De:["integer","fraction"].includes(We)?[].concat(Y(De),Y(Je.split("").filter(function(et,$e){return We==="fraction"?$e<me.length:!0}).map(function(){return/\d/}))):We==="currency"?[].concat(Y(De),Y(Je.split(""))):[].concat(Y(De),[Je])},[]),Ve=E(He,function(De){return w(De,/\d/)});He.indexOf(A)===-1&&"".concat(ge).indexOf(A)!==-1&&(He=F(He,Ve+1,[A,"[]"]),Ve+=2);var ze=He.slice(Ve+1).join("");return He=[].concat(Y(He.slice(0,Ve+1)),[ze]),He}var ye=function(Ae){if(Ae!=null)return ne(Ae)};return{formatter:oe,parser:ye}},Qe=Object.freeze({__proto__:null,getChildDisplayName:Ke,yupToFormErrors:P,validateYupSchema:Re,yupToFormError:K,validateYupField:T,validateAjvSchema:O,uuidv4:le,debounce:N,computeFieldFromProperty:re,computeFieldsFromSchema:de,getSchemaPathFromJsonPath:ae,informedFormat:Ue,createIntlNumberFormatter:je}),vt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?d.useLayoutEffect:d.useEffect,At=function(r){var i=r.value,o=r.inputRef,s=r.maintainCursor,p=s===void 0?!0:s,y=Ge(0),A=Q(y,3),w=A[0],E=A[1],F=A[2],G=Ge(0),te=Q(G,3),ne=te[0],oe=te[1],ye=te[2];return vt(function(){if(o.current!=null&&F()){var ge=F()+ye();ye()!=0&&p?o.current.setSelectionRange(ge+1,ge+1):p&&o.current.setSelectionRange(ge,ge)}},[i]),{setCursorOffset:oe,setCursor:E,cursor:w,getCursor:F,cursorOffset:ne}},Bt=function(r,i){var o=(0,d.useRef)(!0),s=o.current;(0,d.useEffect)(function(){if(s)o.current=!1;else return r()},i)},Pt=Me("informed:useField "),hn=function(r,i,o,s,p){if(r!=null){if(p)return p(r);if(i)return i(r);if(o&&!s){var y=Ue(r,o);return y.value}return r}},Nr=function(r,i,o,s){if(i&&o)return i(r);if(s){var p=Ue(r,s);return p.value}return r},Cr=function(r,i,o){var s=o.required;if(r||i)return function(p,y){if(i)return T(i,p);if(r)return r(p,y)};if(s)return function(p){return vn(p,s)}},Ai=function(r){var i=r.fieldType,o=r.setValue,s=r.onChange,p=r.multiple,y=r.ref,A=function(E){return o(E)};return(i==="text"||i==="textArea"||i==="number")&&(A=function(E){return o(E.target.value,E)}),i==="select"&&(A=function(){var E=Array.from(y.current).filter(function(F){return F.selected}).map(function(F){return F.value});o(p?E:E[0]||"")}),i==="checkbox"&&(A=function(E){o(E.target.checked),s&&s(E)}),function(w){A(w)}},Gr=function(r){var i=r.setTouched,o=r.onBlur;return function(s){i(!0),o&&o(s)}},Wi=function(r){var i=r.fieldType,o=r.maskedValue,s=r.multiple,p=r.value;switch(i){case"text":case"number":return!o&&o!==0?"":o;case"textArea":return o||"";case"select":return p||(s?[]:"");case"checkbox":return!!p;default:return p}},Bn=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},vn=function(r,i){if(i&&(r==null||r===""))return typeof i=="string"?i:"This field is required"};function Pn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=t.field,o=t.validate,s=t.asyncValidate,p=t.validationSchema,y=t.mask,A=t.maskWithCursorOffset,w=t.format,E=t.parse,F=t.formatter,G=t.parser,te=t.initialValue,ne=t.validateOnChange,oe=t.validateOnBlur,ye=t.validateOnMount,ge=t.asyncValidateOnBlur,Ae=t.maskOnBlur,me=t.allowEmptyString,Te=t.onValueChange,He=t.notify,Ve=t.keepState,ze=t.maintainCursor,De=t.debug,Be=t.shadow,We=t.step,Je=t.fieldType,et=t.multiple,$e=t.onChange,gt=t.onBlur,Nt=t.formController,Gt=t.relevant,or=t.required,kr=t.keepStateIfRelevant,Er=t.initialize,Qr=t.formatterDependencies,br=Qr===void 0?[]:Qr,Dr=C(t,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),An=(0,d.useState)(le()),Yt=Q(An,1),Rt=Yt[0],Ut=(0,d.useContext)(kt),sr=(0,d.useContext)(Se),on=sr||kr,yr=Ie(),gs=(0,d.useRef)(),Ll=(0,d.useRef)(!0),ho=(0,d.useRef)(),ji=(0,d.useRef)(!1),Dl=function(){return!ji.current},Tf=function(){return ji.current};Nt&&(Ut=Nt.updater,yr=Nt.getFormApi());var Si=Cr(o,p,{required:or}),Nl=(0,d.useState)(function(){return Ut.getInitialValue(i)}),Qy=Q(Nl,1),Zy=Qy[0],Pf=Ut.getSavedValue(i),If,yh;(Ve||on)&&Pf?(Pt("Setting field ".concat(Sd,"'s kept state"),Pf),If=Pf.value,yh=Pf.touched,yr.removeSavedState(Sd)):te!=null?If=te:If=Zy;var _y=Ge(hn(If,y,F,G,Er)),ld=Q(_y,3),Bl=ld[0],ud=ld[1],qy=ld[2],em=Ge(ye?Si(Bl):void 0),fd=Q(em,3),mh=fd[0],xh=fd[1],tm=fd[2],rm=Ge(yh),cd=Q(rm,3),bh=cd[0],nm=cd[1],wh=cd[2],im=(0,d.useState)(function(){return Nr(Bl,w,E,F)}),Sh=Q(im,2),dd=Sh[0],pd=Sh[1],Ah=(0,d.useRef)();Ah.current=dd;var Eh=(0,d.useRef)(te),vo=(0,d.useRef)(i),Ch=(0,d.useRef)();Eh.current=te,vo.current=i;var am=(0,d.useRef)(null),Vi=d.useMemo(function(){return r||am},[]),hd=At({value:Bl,inputRef:Vi,maintainCursor:!!ze}),vd=hd.getCursor,om=hd.setCursor,gd=hd.setCursorOffset,sm=function(){return!0},yd=function(lr){var sn=Gt||sm,Dn=yr.getFullField(vo.current)||vo.current,Jt={path:Dn,parentPath:Dn.replace(/(.*)[.[].*/,"$1"),get:function(Nn,Vl){return pt.get(Nn,Vl)}};return sr&&sr.relevant?sn(lr,Jt)&&sr.relevant(lr,Jt):sn(lr,Jt)},lm=Ge(yd(yr.getValues())),md=Q(lm,3),Ff=md[0],um=md[1],Oh=md[2],fm=function(lr){return sr&&sr.relevant?sr.relevant(lr):!0},cm=function(){var lr=yd(yr.getValues()),sn=Oh();return lr!=sn&&um(lr),lr};(0,d.useEffect)(function(){!Ff&&!Ve&&gs.current.reset()},[Ff]);var ai=function(){return Be?yr.getDerrivedValue(i):qy()},Ul=function(lr){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dn=sn.preventUpdate;We&&yr.getStep()<We?(Pt("Setting ".concat(i,"'s error to undefined as we are not at that step")),xh(void 0),Ut.setError(Rt,void 0,!Dn)):(Pt("Setting ".concat(i,"'s error to ").concat(lr)),xh(lr),Ut.setError(Rt,lr,!Dn))},xd=function(lr,sn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=lr;ji.current=!0,Pt("Setting ".concat(i," to ").concat(Jt)),Er&&(Jt=Er(Jt));var go=yr.getOptions(),Nn=Jt;if(Jt===""&&!me&&!Dn.allowEmptyString&&!go.allowEmptyStrings&&(Jt=void 0),(t.type==="number"||Je==="number")&&Jt!==void 0&&(Jt=+Jt),sn&&sn.target&&sn.target.selectionStart&&om(sn.target.selectionStart),y&&!Ae&&(Nn=y(Jt,vd()),Jt=y(Jt,vd())),A&&!Ae){var Vl=A(Jt,vd());Nn=Vl.value,Jt=Vl.value,gd(Vl.offset)}if(w&&E&&(Jt=E(Jt),Nn=w(Jt)),F){var Th=Ue(Jt,F);gd(Th.offset),Nn=Th.value,Jt=Nn}G&&(Jt=Jt!=null?G(Jt):Jt),Si&&ne&&!Dn.initial&&(Pt("Validating after change ".concat(i," ").concat(Jt)),Ul(Si(Jt,yr.getValues()))),ud(Jt),pd(Nn),Te&&Te(Jt),Ut.setValue(Rt,Jt,!Dn.preventUpdate)};Bt(function(){gs.current.setValue(Ah.current)},Y(br));var bd=function(lr,sn){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Jt=Dn.preventUpdate;if(Pt("Field ".concat(i," has been touched")),Si&&oe&&!sn&&lr&&(Pt("Validating after blur ".concat(i," ").concat(ai())),Ul(Si(ai(),yr.getValues()))),s&&ge&&!sn&&lr&&(Pt("Validating async after blur ".concat(i," ").concat(ai())),s(ai(),yr.getValues())),y&&Ae){var go=y(ai());ud(go),pd(go),Te&&Te(go),Ut.setValue(Rt,go,!Jt)}if(A&&Ae){var Nn=A(ai());gd(Nn.offset),ud(Nn.value),pd(Nn.value),Te&&Te(Nn.value),Ut.setValue(Rt,Nn.value,!Jt)}nm(lr),Ut.setTouched(Rt,lr,!Jt)},dm=function(){var lr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},sn=lr.preventUpdate,Dn=hn(Eh.current||Ut.getInitialValue(vo.current),y,F,G,Er);xd(Dn,null,{initial:!0,preventUpdate:sn}),Ul(ye?Si(Dn):void 0,{preventUpdate:sn}),bd(void 0,!0,{preventUpdate:sn}),ji.current=!1},pm=function(lr){Si&&(Pt("Field validating ".concat(i," ").concat(ai())),Ul(Si(ai(),lr||yr.getValues())))},hm=function(lr){s&&(Pt("Field async validating ".concat(i," ").concat(ai())),s(ai(),lr||yr.getValues()))},wd={setValue:xd,setTouched:bd,setError:Ul,reset:dm,validate:pm,asyncValidate:hm,getValue:ai,getTouched:wh,getError:tm,getIsRelevant:Oh,getDirty:Tf,getPristine:Dl,getFieldState:function(){return{value:ai(),touched:wh(),dirty:Tf(),pristine:Dl()}},relevant:yd,multistepRelevant:fm,checkRelevant:cm};gs.current=wd;var jl={value:Bl,error:mh,touched:bh,maskedValue:dd,isRelevant:Ff,dirty:ji.current,pristine:!ji.current};Be&&(jl={error:mh,touched:bh}),Pt("Render",yr.getFullField(i),jl),vt(function(){var qr=yr.getFullField(vo.current);return Pt("Register",Rt,vo.current),ho.current={field:qr,fieldId:Rt,fieldApi:wd,fieldState:jl,notify:He,keepState:Ve,inMultistep:on,shadow:Be},Ut.register(Rt,ho.current),function(){var lr=yr.getFullField(vo.current);Pt("Deregister",Rt,lr),Ut.deregister(Rt)}},[]),(0,d.useEffect)(function(){var qr=yr.getFullField(i);return Ll.current?Ll.current=!1:(Pt("Update",i,on),ho.current.field=qr,Ut.update(Rt,ho.current,Ch.current)),function(){Ch.current=qr}},[i]),vt(function(){De&&Vi&&(Vi.current.style.border="5px solid orange",setTimeout(function(){Vi.current.style.borderWidth="2px",Vi.current.style.borderStyle="inset",Vi.current.style.borderColor="initial",Vi.current.style.borderImage="initial"},500))});var vm=[].concat(Y(Object.values(jl)),Y(Object.values(t)),Y(Object.values(Dr))),gm=function(lr){return(0,d.useMemo)(function(){return Ff?lr:null},Y(vm))},Sd=i,ym=Ai({fieldType:Je,setValue:xd,onChange:$e,multiple:et,ref:Vi}),mm=Gr({setTouched:bd,onBlur:gt}),xm=Wi({fieldType:Je,maskedValue:dd,multiple:et,value:Bl}),bm=Bn(Je);return{fieldState:jl,fieldApi:wd,render:gm,ref:Vi,userProps:j(j({},Dr),{},{multiple:et,onChange:$e,onBlur:gt,id:Dr.id||Rt}),informed:j({name:Sd,multiple:et,onChange:ym,onBlur:mm,value:xm,ref:Vi,type:bm,id:Dr.id||Rt},Dr)}}var $r=function(r){var i=d.forwardRef(function(o,s){var p=Pn(o,s),y=p.fieldState,A=p.fieldApi,w=p.render,E=p.ref,F=p.userProps;return w(d.createElement(r,D({fieldApi:A,fieldState:y,field:o.field,forwardedRef:E,debug:o.debug,type:o.type},F)))});return i.displayName="asField(".concat(Ke(r),")"),i},Ei=Me("informed:Text "),Ci=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,F=s.field,G=s.initialValue,te=s.forwardedRef,ne=s.debug,oe=s.label,ye=s.title,ge=s.id,Ae=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Ei("Render",F),vt(function(){ne&&te&&(te.current.style.background="red",setTimeout(function(){te.current.style.background="white"},500))}),d.createElement(d.Fragment,null,oe?d.createElement("label",{htmlFor:ge}," ",oe," "):null,d.createElement("input",D({},Ae,{id:ge,name:F,ref:te,value:!p&&p!==0?"":p,onChange:function(Te){y(Te.target.value,Te),w&&w(Te)},onBlur:function(Te){A(!0),E&&E(Te)}})))},en=$r(Ci),gn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.maskedValue,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,F=s.field,G=s.initialValue,te=s.forwardedRef,ne=s.debug,oe=s.label,ye=s.id,ge=C(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return vt(function(){ne&&te&&(te.current.style.background="red",setTimeout(function(){te.current.style.background="white"},500))}),d.createElement(d.Fragment,null,oe?d.createElement("label",{htmlFor:ye}," ",oe," "):null,d.createElement("textarea",D({},ge,{id:ye,name:F,ref:te,value:p||"",onChange:function(me){y(me.target.value,me),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)}})))},Un=$r(gn),jn=Me("informed:Select "),yn=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,y=i.setTouched,A=s.onChange,w=s.onBlur,E=s.field,F=s.initialValue,G=s.options,te=s.children,ne=s.forwardedRef,oe=s.debug,ye=s.multiple,ge=s.label,Ae=s.id,me=C(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),Te=(0,d.useRef)(),He=function(ze){var De=Array.from((ne||Te).current).filter(function(Be){return Be.selected}).map(function(Be){return Be.value});i.setValue(ye?De:De[0]||""),A&&ze&&A(ze)};return vt(function(){oe&&ne&&(ne.current.style.background="red",setTimeout(function(){ne.current.style.background="white"},500))}),jn("Render",E,p),d.createElement(d.Fragment,null,ge?d.createElement("label",{htmlFor:Ae}," ",ge," "):null,d.createElement("select",D({},me,{id:Ae,multiple:ye,name:E,ref:ne||Te,value:p||(ye?[]:""),onChange:He,onBlur:function(ze){y(!0),w&&w(ze)}}),G?G.map(function(Ve){return d.createElement("option",{key:Ve.value,value:Ve.value,disabled:Ve.disabled},Ve.label)}):te))},Xn=$r(yn),Oi=function(r){var i=r.fieldApi,o=r.fieldState,s=C(r,["fieldApi","fieldState"]),p=o.value,y=i.setValue,A=i.setTouched,w=s.onChange,E=s.onBlur,F=s.field,G=s.initialValue,te=s.debug,ne=s.forwardedRef,oe=s.id,ye=s.label,ge=C(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return d.createElement(d.Fragment,null,ye?d.createElement("label",{htmlFor:oe}," ",ye," "):null,d.createElement("input",D({},ge,{id:oe,name:F,ref:ne,checked:!!p,onChange:function(me){y(me.target.checked),w&&w(me)},onBlur:function(me){A(!0),E&&E(me)},type:"checkbox"})))},Br=$r(Oi),Kr=function(r){return d.forwardRef(function(i,o){return d.createElement(jt.Consumer,null,function(s){var p=s.radioGroupApi,y=s.radioGroupState;return d.createElement(r,D({radioGroupApi:p,radioGroupState:y,ref:o},i))})})},Qn=function(r){var i=r.radioGroupApi,o=r.radioGroupState,s=C(r,["radioGroupApi","radioGroupState"]),p=o.value,y=i.setValue,A=i.setTouched,w=i.onChange,E=i.onBlur,F=s.value,G=s.onChange,te=s.onBlur,ne=s.field,oe=s.initialValue,ye=s.forwardedRef,ge=C(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return d.createElement("input",D({},ge,{name:ne,ref:ye,value:F,checked:p===F,onChange:function(me){!me.target.checked||(y(F),G&&G(me),w&&w(me))},onBlur:function(me){A(!0),te&&te(me),E&&E(me)},type:"radio"}))},fr=Kr(Qn),Ot=function(t){q(i,t);var r=_(i);function i(){return b(this,i),r.apply(this,arguments)}return g(i,[{key:"render",value:function(){var s=this.props,p=s.options,y=s.children;return d.createElement(jt.Provider,{value:this.groupContext},p?p.map(function(A){return d.createElement("label",{key:A.value},A.label," ",d.createElement(fr,{value:A.value}))}):y)}},{key:"groupContext",get:function(){return{radioGroupApi:j(j({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),i}(d.Component),oi=$r(Ot);function Ti(){return(0,d.useContext)(St)}var En=function(){var r=Ti(),i=r.add;return d.createElement("button",{onClick:function(){i()},type:"button"},"Add")};function Zt(){return(0,d.useContext)(Dt)}var Vn=function(){var r=Zt(),i=r.remove;return d.createElement("button",{onClick:function(){i()},type:"button"},"Remove")},Zn=Me("informed:useArrayField "),fa=function(r){var i=r.field,o=r.initialValue,s=r.validate,p=r.arrayFieldApiRef,y=C(r,["field","initialValue","validate","arrayFieldApiRef"]),A=Ie(),w=(0,d.useState)(new Map),E=Q(w,1),F=E[0],G=(0,d.useContext)(kt),te=A.getFullField(i),ne=G.getInitialValue(i)||o||[],oe=A.getSavedValue(te)&&A.getSavedValue(te).value,ye=Ge(oe||ne),ge=Q(ye,3),Ae=ge[0],me=ge[1],Te=ge[2],He=Ae?Ae.map(function(){return le()}):[],Ve=Ge(He),ze=Q(Ve,3),De=ze[0],Be=ze[1],We=ze[2],Je=(0,d.useMemo)(function(){return function(Yt,Rt){var Ut=We()==null?0:We().length;return s?s(Yt,Ut,Rt):void 0}}),et=Pn(j({field:i,validate:s?Je:void 0,shadow:!0},y)),$e=et.fieldApi;vt(function(){var Yt=function(Ut){Ut!==te&&(Zn("".concat(te," changed")),RegExp("".concat(te,"\\[[0-9]+\\]")).test(Ut)&&$e.validate())};return A.emitter.on("value",Yt),function(){A.emitter.removeListener("value",Yt)}},[i]);var gt=function(Rt){Zn("EXPECTING REMOVAL OF","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(De.length-1,"]")),G.expectRemoval("".concat(i,"[").concat(Rt,"]")),G.expectRemoval("".concat(i,"[").concat(De.length-1,"]"));var Ut=De.slice(0,Rt).concat(De.slice(Rt+1,De.length));Be(Ut);var sr=Te(),on=sr.slice(0,Rt).concat(sr.slice(Rt+1,sr.length));me(on)},Nt=function(Rt,Ut){Zn("Swapping","".concat(i,"[").concat(Rt,"] and ").concat(i,"[").concat(Ut,"]"));var sr=Y(De);De[Rt]&&De[Ut]?(sr[Rt]=De[Ut],sr[Ut]=De[Rt]):console.warn("Attempted to swap ".concat(Rt," with ").concat(Ut," but one of them does not exist :(")),Be(sr)},Gt=function(){De.push(le()),Be(Y(De))},or=function(Rt){De.push(le()),Be(Y(De));var Ut=Y(Te());Ut[De.length-1]=Rt,me(Ut)},kr=function(){var Rt=G.getInitialValue(i)||o||[];me(Rt);var Ut=Rt?Rt.map(function(){return le()}):[];Be(Ut)},Er=De.map(function(Yt,Rt){var Ut={remove:function(){return gt(Rt)}},sr={initialValue:Ae&&Ae[Rt],key:Yt,field:"".concat(i,"[").concat(Rt,"]"),index:Rt};return j(j({arrayFieldItemApi:Ut,arrayFieldItemState:sr},Ut),sr)}),Qr={add:Gt,swap:Nt,addWithInitialValue:or,reset:kr};p&&(p.current=Qr);var br={fields:Er,field:i},Dr=j(j({},G),{},{register:function(Rt,Ut){F.set(Rt,Ut);for(var sr=arguments.length,on=new Array(sr>2?sr-2:0),yr=2;yr<sr;yr++)on[yr-2]=arguments[yr];G.register.apply(G,[Rt,Ut].concat(on))},deregister:function(Rt){F.delete(Rt);for(var Ut=arguments.length,sr=new Array(Ut>1?Ut-1:0),on=1;on<Ut;on++)sr[on-1]=arguments[on];G.deregister.apply(G,[Rt].concat(sr))},getInitialValue:function(Rt){if(RegExp("".concat(te,"\\[[0-9]+\\]")).test(Rt)){var Ut=Rt.replace(i,""),sr=pt.get(Te(),Ut);return Zn("Resetting ".concat(Ut," to ").concat(sr)),sr}return G.getInitialValue(Rt)}}),An=function(Rt){return d.createElement(kt.Provider,{value:Dr},d.createElement(St.Provider,{value:Qr},d.createElement(Vt.Provider,{value:br},Rt)))};return{render:An,add:Gt,swap:Nt,addWithInitialValue:or,fields:Er,arrayFieldState:br,arrayFieldApi:Qr,field:i}},at=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return i.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})};function Lt(t){var r=Ie(),i=(0,d.useMemo)(function(){return at(t,r)},[t]);return i}function si(){var t=(0,d.useContext)(Et);return t}var ue=function(r){var i=r.when,o=r.children,s=si(),p=i(s);return p?o:null},Oe=function(r){var i=r.relevant,o=r.field,s=C(r,["relevant","field"]),p=Ie();if(i){var y=p.getFullField(o),A={path:y,parentPath:y.replace(/(.*)[.[].*/,"$1"),get:function(F,G){return pt.get(F,G)}},w=function(F){var G=F.values;return i(G,A)};return d.createElement(ue,{when:w},d.createElement(qe,D({field:o},s)))}else return d.createElement(qe,D({field:o},s))},qe=function(r){var i=r.children,o=C(r,["children"]),s=fa(o),p=s.render,y=s.arrayFieldState,A=s.arrayFieldApi,w=s.field;return p(typeof i=="function"?i(j(j({field:w,arrayFieldApi:A,arrayFieldState:y},A),y)):i)},st=function(r){var i=r.arrayFieldItemState,o=r.arrayFieldItemApi,s=r.children,p=(0,d.useContext)(kt),y=Ie(),A=(0,d.useState)(0),w=Q(A,2),E=w[0],F=w[1],G=(0,d.useState)(new Map),te=Q(G,1),ne=te[0],oe=i.field,ye=Lt(oe),ge=function(){var De=y.getState(),Be=De.values,We=De.errors,Je=De.touched,et={values:pt.get(Be,oe),errors:pt.get(We,oe),touched:pt.get(Je,oe)};return et};(0,d.useEffect)(function(){var ze=function(Be){var We=Be.slice(0,Be.lastIndexOf("[")!=-1?Be.lastIndexOf("]")+1:Be.length);We===oe&&F(Math.random())};return y.emitter.on("value",ze),function(){y.emitter.removeListener("value",ze)}},[oe]);var Ae=function(){ne.forEach(function(De){De.fieldApi.reset()})},me=ge(),Te=j(j({},p),{},{register:function(De,Be,We){ne.set(De,Be),p.register(De,Be,We)},deregister:function(De){ne.delete(De);for(var Be=arguments.length,We=new Array(Be>1?Be-1:0),Je=1;Je<Be;Je++)We[Je-1]=arguments[Je];p.deregister.apply(p,[De].concat(We))}}),He=j(j(j({},o),ye),{},{reset:Ae}),Ve=j(j({},i),me);return typeof s=="function"?d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:He},d.createElement(ve.Provider,{value:Ve},s(j(j({arrayFieldItemApi:He,arrayFieldItemState:Ve},He),Ve))))):d.createElement(kt.Provider,{value:Te},d.createElement(Dt.Provider,{value:He},d.createElement(ve.Provider,{value:Ve},s)))};Oe.Items=function(t){var r=t.children,i=(0,d.useContext)(Vt),o=i.fields;return o.map(function(s){var p=s.arrayFieldItemState,y=s.arrayFieldItemApi,A=p.key;return d.createElement(st,{key:A,arrayFieldItemApi:y,arrayFieldItemState:p},r)})};var lt=function(r){var i=r.components,o=(0,d.useContext)(kt),s=o.fieldMap;return i?i.map(function(p,y){var A=p["ui:control"],w=s[A];return d.createElement(w,{key:"ui-comp-".concat(y)})}):null},Kt=Me("informed:FormFields "),Xt=function t(r){var i=r.schema,o=r.prefix,s=r.onlyValidateSchema,p=(0,d.useContext)(kt),y=p.fieldMap,A=(0,d.useMemo)(function(){var w=de(i,s,o),E=w.map(function(F,G){var te=F.field,ne=F.props,oe=F.type,ye=F.properties,ge=F.items,Ae=F.componentType,me=F.uiBefore,Te=F.uiAfter,He=F.allOf,Ve=y[Ae];return Kt("Rendering Field",te,F),!Ve&&oe==="object"&&ye?d.createElement(t,{schema:F,prefix:te,key:"ScheamField-".concat(G)}):!Ve&&oe==="array"&&ge?d.createElement(Or,D({key:"ScheamField-".concat(G),field:te,items:ge,uiBefore:me,uiAfter:Te},ne)):Ve&&Ae==="array"&&ge&&oe==="array"?d.createElement(Ve,D({key:"ScheamField-".concat(G),field:te,items:ge,uiBefore:me,uiAfter:Te},ne)):Ae==="conditionals"?He.map(function(ze){var De=ze.then,Be=ze.if.properties,We=function(et){var $e=et.values;return Object.keys(Be).every(function(gt){var Nt=Be[gt];return $e[gt]===Nt.const})};return d.createElement(ue,{key:"ScheamField-".concat(G),when:We},d.createElement(t,{schema:De}))}):Ve?d.createElement(Ve,D({key:"ScheamField-".concat(G),field:te},ne)):null});return E},[i,o]);return A},Or=function(r){var i=r.field,o=r.items,s=r.uiBefore,p=r.uiAfter,y=C(r,["field","items","uiBefore","uiAfter"]);return d.createElement(Oe,D({field:i},y),d.createElement(lt,{components:s}),d.createElement(Oe.Items,null,function(A){var w=A.field;return d.createElement(d.Fragment,null,d.createElement(lt,{components:o["ui:before"]}),d.createElement(Xt,{schema:o,prefix:w}),d.createElement(lt,{components:o["ui:after"]}))}),d.createElement(lt,{components:p}))},Tr={select:Xn,input:en,textarea:Un,checkbox:Br,radio:oi,add:En,remove:Vn,array:Or},_t=Me("informed:Controller "),Wl=function(r,i){var o=Object.keys(i).find(function(p){return r.includes(p)});if(!!o){var s=r.slice(0,o.length);return s===o}},tn=function(){},ys=function(){function t(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};b(this,t),this.options=i,this.subscriptions=new Map;var o=i.ajv,s=i.schema,p=i.fieldMap;this.ajv=o?new o({allErrors:!0}):null,this.ajvValidate=o?this.ajv.compile(s):null,this.fieldMap=p||Tr,this.fieldsById=new Map,this.fieldsByName={get:function(A){var w;return r.fieldsById.forEach(function(E){E&&E.field===A&&(w=E)}),w}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:tn,setTouched:tn,setError:tn,reset:tn,validate:tn,getValue:tn,getTouched:tn,getError:tn,getFieldState:tn,checkRelevant:tn,getPristine:tn,getDirty:tn}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);F.shadow||pt.set(r.state.values,F.field,F.fieldApi.getValue()),F.fieldApi.relevant(r.state.values)||pt.delete(r.state.values,F.field),r.fieldsById.forEach(function(G){var te=G.fieldApi.checkRelevant();(!G.fieldApi.multistepRelevant(r.state.values)||!te&&!G.keepState)&&(pt.delete(r.state.values,G.field),pt.delete(r.state.touched,G.field),pt.delete(r.state.errors,G.field))}),E&&(r.emit("change"),r.emit("field",F.field),r.emit("value",F.field,w))},setTouched:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);!F.shadow&&F.fieldApi.getIsRelevant()&&pt.set(r.state.touched,F.field,F.fieldApi.getTouched()),F.shadow&&F.fieldApi.getError()!=null&&F.fieldApi.relevant(r.state.values)&&pt.set(r.state.touched,F.field,F.fieldApi.getTouched()),E&&(r.emit("change"),r.emit("field",F.field))},setError:function(A,w){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,F=r.fieldsById.get(A);!F.shadow&&F.fieldApi.getIsRelevant()&&pt.set(r.state.errors,F.field,F.fieldApi.getError());var G=pt.get(r.state.errors,F.field);(F.shadow&&F.fieldApi.getError()!=null&&F.fieldApi.relevant(r.state.values)||F.shadow&&F.fieldApi.getError()===void 0&&F.fieldApi.relevant(r.state.values)&&typeof G=="string")&&pt.set(r.state.errors,F.field,F.fieldApi.getError()),E&&(r.emit("change"),r.emit("field",F.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(y){delete r.state.error,r.notify(y)})}return g(t,[{key:"emit",value:function(i){for(var o=arguments.length,s=new Array(o>1?o-1:0),p=1;p<o;p++)s[p-1]=arguments[p];var y=this.subscriptions.get(i);y&&y.forEach(function(A){return A.apply(void 0,s)})}},{key:"on",value:function(i,o){this.subscriptions.get(i)||this.subscriptions.set(i,new Set);var s=this.subscriptions.get(i);s.add(o)}},{key:"removeListener",value:function(i,o){var s=this.subscriptions.get(i);s.delete(o)}},{key:"setOptions",value:function(i){this.options=i}},{key:"setValue",value:function(i,o,s){this.getField(i).fieldApi.setValue(o,null,j({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(i,o){this.getField(i).fieldApi.setTouched(o)}},{key:"setError",value:function(i,o){this.getField(i).fieldApi.setError(o)}},{key:"setFormError",value:function(i){this.state.error=i,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(i,o){if(this.state.validating=this.state.validating-1,this.getError(i)||this.setError(i,o),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(i){this.state.step=i,this.emit("change")}},{key:"setCurrent",value:function(i){this.state.Current=i,this.emit("change")}},{key:"back",value:function(i){this.state.step=this.state.step-1,this.state.Current=i,this.emit("change")}},{key:"next",value:function(i){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=i),this.emit("change")}},{key:"setInitialValue",value:function(i,o){pt.set(this.options.initialValues,i,o)}},{key:"getFormState",value:function(){return _t("Returning form state"),j(j({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(i){var o=this.getValues();return pt.get(o,i)}},{key:"getValue",value:function(i){var o=this.getField(i).fieldApi.getValue();return _t("Getting value for",i,o),o}},{key:"getTouched",value:function(i){var o=this.getField(i).fieldApi.getTouched();return _t("Getting touched for",i,o),o}},{key:"getError",value:function(i){var o=this.getField(i).fieldApi.getError();return _t("Getting error for",i,o),o}},{key:"getDirty",value:function(i){var o=this.getField(i).fieldApi.getDirty();return _t("Getting dirty for",i,o),o}},{key:"getPristine",value:function(i){var o=this.getField(i).fieldApi.getPristine();return _t("Getting pristine for",i,o),o}},{key:"getValues",value:function(){return _t("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return _t("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return _t("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(i){var o=this.fieldsByName.get(i);return o&&o.shadow?pt.get(this.savedValues,"shadow-".concat(i)):pt.get(this.savedValues,i)}},{key:"removeSavedState",value:function(i){var o=this.fieldsByName.get(i);return o&&o.shadow?pt.delete(this.savedValues,"shadow-".concat(i)):pt.delete(this.savedValues,i)}},{key:"getFullField",value:function(i){return i}},{key:"getInitialValue",value:function(i){return pt.get(this.options.initialValues,i)}},{key:"getField",value:function(i){_t("Getting Field",i);var o=this.fieldsByName.get(i);return o||(console.warn("Attempting to get field ".concat(i," but it does not exist")),this.dummyField)}},{key:"notify",value:function(i){var o=this,s=this.getField(i);s&&s.notify&&s.notify.forEach(function(p){var y=".".concat(i),A="".concat(y.replace(/(.*)[.[].*/,"$1"),".").concat(p).slice(1),w=o.getField(A);w&&(_t("Notifying",w.field),w.fieldApi.validate(),w.fieldApi.checkRelevant())})}},{key:"validateField",value:function(i){this.getField(i).fieldApi.validate()}},{key:"resetField",value:function(i){this.getField(i).fieldApi.reset()}},{key:"fieldExists",value:function(i){return this.fieldsByName.get(i)!=null}},{key:"valid",value:function(){var i=this.getErrors();return!!(pt.empty(i)&&!this.state.error)}},{key:"screenValid",value:function(){var i=Object.entries(this.onScreen).some(function(o){var s=Q(o,2),p=s[1];return p.fieldApi.getError()});return!i}},{key:"invalid",value:function(){var i=this.getErrors();return!!(!pt.empty(i)||this.state.error)}},{key:"pristine",value:function(){var i=!0;return this.fieldsById.forEach(function(o){o.fieldApi.getPristine()||(i=!1)}),i}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){_t("Resetting"),this.fieldsById.forEach(function(i){i.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(i){_t("Setting values"),this.fieldsById.forEach(function(o){var s=pt.get(i,o.field);s!==void 0&&o.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var i=this;_t("Validating all fields");var o=this.getValues();if(this.options.validationSchema){var s=Re(this.options.validationSchema,o);this.fieldsById.forEach(function(w){if(pt.has(s,w.field)){var E=pt.get(s,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.options.schema&&this.options.ajv){var p=O(this.ajvValidate,o);this.fieldsById.forEach(function(w){if(pt.has(p,w.field)){var E=pt.get(p,w.field);i.setError(w.field,E)}else i.setError(w.field,void 0)})}if(this.fieldsById.forEach(function(w){w.fieldApi.validate(o),w.fieldApi.setTouched(!0,!0)}),this.options.validate){var y=this.options.validate(o);this.setFormError(y)}if(this.options.validateFields){var A=this.options.validateFields(o);this.fieldsById.forEach(function(w){if(pt.has(A,w.field)){var E=pt.get(A,w.field);i.setError(w.field,E)}})}}},{key:"asyncValidate",value:function(){_t("Async Validating all fields");var i=this.getValues();this.fieldsById.forEach(function(o){o.fieldApi.asyncValidate(i)})}},{key:"keyDown",value:function(i){if(i.keyCode==13&&this.options.preventEnter)return i.preventDefault(i),!1}},{key:"submitForm",value:function(i){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&i&&i.preventDefault(i),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(_t("Submit",this.state),this.emit("submit")):(_t("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var i=this;this.fieldsById.forEach(function(o){i.emit("field",o.field)})}},{key:"register",value:function(i,o,s){var p=o.field,y=o.state;_t("Register ID:",i,"Name:",p,y,"Initial",s);var A=p.slice(0,p.lastIndexOf("[")!=-1?p.lastIndexOf("]")+1:p.length),w;this.fieldsById.forEach(function(E,F){E&&E.field===p&&(w=F)}),w&&(o.keepState||o.inMultistep)?(_t("Already Registered",p),this.fieldsById.delete(w)):w&&(!o.keepState||!o.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",p),_t("Fields Registered",this.fieldsById.size),this.onScreen[i]=o,this.fieldsById.set(i,o),_t("clearing expected removal",A),delete this.expectedRemovals[A],delete this.pulledOut[A],!o.shadow&&(this.updater.setValue(i,o.fieldApi.getValue(),!1),this.updater.setError(i,o.fieldApi.getError(),!1),this.updater.setTouched(i,o.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",p))}},{key:"deregister",value:function(i){var o=this.fieldsById.get(i),s=o.field;_t("Deregister",i,s),delete this.onScreen[i];var p=Wl(s,this.expectedRemovals),y=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(o.keepState||o.inMultistep)&&!p&&(_t("Saving field ".concat(s,"'s value"),o.fieldApi.getFieldState()),o.shadow?pt.set(this.savedValues,"shadow-".concat(s),o.fieldApi.getFieldState()):pt.set(this.savedValues,s,o.fieldApi.getFieldState())),(p||!o.keepState&&!o.inMultistep||!o.fieldApi.getIsRelevant()&&!o.keepState)&&(_t("Removing field",s),this.fieldsById.delete(i),p||(pt.delete(this.state.values,s),pt.delete(this.state.touched,s),pt.delete(this.state.errors,s),o.shadow?pt.delete(this.savedValues,"shadow-".concat(s)):pt.delete(this.savedValues,s)),p&&this.pulledOut[y]&&(_t("Pulling out",s,"with magic value",y),pt.pullOut(this.state.values,y),pt.pullOut(this.state.touched,y),pt.pullOut(this.state.errors,y),pt.pullOut(this.savedValues,y),delete this.pulledOut[y])),this.emit("change")}},{key:"expectRemoval",value:function(i){_t("Expecting removal of",i),this.expectedRemovals[i]=!0,this.pulledOut[i]=!0}},{key:"update",value:function(i,o,s){_t("Update",i,o.field,s,o.fieldState.value);var p=o.fieldApi.getValue(),y=o.fieldApi.getError(),A=o.fieldApi.getTouched(),w=this.fieldsByName.get(s);s&&!w&&(pt.set(this.state.values,s),pt.set(this.state.errors,s),pt.set(this.state.touched,s)),pt.set(this.state.values,o.field,p),pt.set(this.state.errors,o.field,y),pt.set(this.state.touched,o.field,A),this.emit("change")}}]),t}(),yo=Me("informed:FormProvider "),ms=function(r){var i=r.children,o=r.formApi,s=r.formController,p=r.formState,y=C(r,["children","formApi","formController","formState"]);if(yo("Render FormProvider"),o)return yo("Render FormProvider with given values"),d.createElement(kt.Provider,{value:s.updater},d.createElement(zt.Provider,{value:o},d.createElement(Et.Provider,{value:p},i)));yo("Render FormProvider with generated values");var A=bs(y);return d.createElement(kt.Provider,{value:A.formController.updater},d.createElement(zt.Provider,{value:A.formApi},d.createElement(Et.Provider,{value:A.formState},i)))},xs=Me("informed:useForm "),bs=function(r){var i=r.dontPreventDefault,o=r.initialValues,s=r.validate,p=r.validateFields,y=r.allowEmptyStrings,A=r.preventEnter,w=r.getApi,E=r.apiRef,F=r.onChange,G=r.onReset,te=r.onSubmit,ne=r.onValueChange,oe=r.onSubmitFailure,ye=r.validationSchema,ge=r.schema,Ae=r.ajv,me=r.fieldMap,Te=r.onlyValidateSchema,He=C(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);xs("Render useForm");var Ve=(0,d.useMemo)(function(){return{dontPreventDefault:i,initialValues:o,validate:s,validateFields:p,allowEmptyStrings:y,preventEnter:A,validationSchema:ye,schema:ge,ajv:Ae,fieldMap:me}},[i,o,s,p,y,A,ye,ge,Ae,me]),ze=(0,d.useState)(function(){return new ys(Ve)}),De=Q(ze,1),Be=De[0];(0,d.useEffect)(function(){Be.setOptions(Ve)},[Ve]),vt(function(){Be.mount()},[]);var We=(0,d.useState)(function(){return Be.getFormState()}),Je=Q(We,2),et=Je[0],$e=Je[1];vt(function(){var kr=function(){return F&&F(Be.getFormState())},Er=function(){return G&&G()},Qr=function(){return te&&te(Be.getFormState().values)},br=function(){return ne&&ne(Be.getFormState().values)},Dr=function(){return oe&&oe(Be.getFormState().errors)};return Be.on("change",kr),Be.on("reset",Er),Be.on("submit",Qr),Be.on("value",br),Be.on("failure",Dr),function(){Be.removeListener("change",kr),Be.removeListener("reset",Er),Be.removeListener("submit",Qr),Be.removeListener("value",br),Be.removeListener("failure",Dr)}},[F,G,te,ne,oe]),(0,d.useState)(function(){var kr=function(){xs("Setting form state"),$e(Be.getFormState())};Be.on("change",kr),w&&w(Be.getFormApi()),E&&(E.current=Be.getFormApi())});var gt=(0,d.useState)(function(){return Be.getFormApi()}),Nt=Q(gt,1),Gt=Nt[0],or=function(Er){return d.createElement(ms,{formApi:Gt,formState:et,formController:Be},d.createElement(d.Fragment,null,Er||d.createElement(Xt,{schema:ge,onlyValidateSchema:Te})))};return{formApi:Gt,formState:et,formController:Be,render:or,userProps:He}},Hl=Me("informed:Form "),zl=function(r){var i=r.children,o=r.render,s=r.component,p=C(r,["children","render","component"]);Hl("Render FORM");var y=bs(p),A=y.formApi,w=y.formController,E=y.formState,F=y.render,G=y.userProps,te=function(){var oe={formState:E,formApi:A};return s?d.createElement(s,oe,i):o?o(oe):typeof i=="function"?i(oe):i};return F(d.createElement("form",D({},G,{onReset:w.reset,onSubmit:w.submitForm,onKeyDown:w.keyDown}),te()))},kf=function(r,i){return j(j({},i),{},{getValue:function(s){return i.getValue("".concat(r,".").concat(s))},getTouched:function(s){return i.getTouched("".concat(r,".").concat(s))},getError:function(s){return i.getError("".concat(r,".").concat(s))},setValue:function(s,p){return i.setValue("".concat(r,".").concat(s),p)},setTouched:function(s,p){return i.setTouched("".concat(r,".").concat(s),p)},setError:function(s,p){return i.setError("".concat(r,".").concat(s),p)},getInitialValue:function(s){return i.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(i.getFullField(r),".").concat(s)}})},Mf=function(r,i){var o=i.register,s=i.deregister,p=i.setValue,y=i.setTouched,A=i.setError,w=i.update,E=i.getField,F=i.expectRemoval,G=i.getInitialValue,te=i.fieldMap,ne=i.getSavedValue;return{register:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return o.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},deregister:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return s.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},update:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return w.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setValue:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return p.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setTouched:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return y.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},setError:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return A.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},getField:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return E.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},expectRemoval:function(ye){for(var ge=arguments.length,Ae=new Array(ge>1?ge-1:0),me=1;me<ge;me++)Ae[me-1]=arguments[me];return F.apply(void 0,["".concat(r,".").concat(ye)].concat(Ae))},getInitialValue:function(ye){return G("".concat(r,".").concat(ye))},getSavedValue:function(ye){return ne("".concat(r,".").concat(ye))},fieldMap:te}},Rf=function(r){var i=r.scope,o=r.children,s=useContext(kt),p=Ie(),y=si(),A=useMemo(function(){return kf(i,p)},[i]),w=useMemo(function(){return Mf(i,s)},[i]);return React.createElement(kt.Provider,{value:w},React.createElement(zt.Provider,{value:A},React.createElement(Et.Provider,{value:y},o)))},Pi=function(r){var i=si(),o={};Object.keys(r).length>0?Object.keys(r).forEach(function(ne){o[ne]=i[ne]}):o=i;var s=o,p=s.pristine,y=s.dirty,A=s.invalid,w=s.values,E=s.errors,F=s.touched,G=s.validating,te=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:p,dirty:y,invalid:A,values:w,errors:E,touched:F,validating:G,submitting:te},null,2)))},Lf=function(r){var i=r.initialStep,o=r.multistepApiRef,s=Ie(),p=s.getValues,y=s.validate,A=s.screenValid,w=(0,d.useState)(new Map),E=Q(w,1),F=E[0],G=(0,d.useRef)(0),te=Ge({current:i,steps:[],goal:null}),ne=Q(te,3),oe=ne[0],ye=ne[1],ge=ne[2],Ae=(0,d.useState)(function(){var Ve=function(){var Be=ge(),We=Be.current,Je=F.get(We);return Je},ze={getState:function(){return ge()},getCurrentStep:Ve,getStep:function(Be){return F.get(Be)},getNumberOfSteps:function(){return F.size},next:function(){if(y(),A()){var Be=Ve(),We=Be.getNext,Je=We(),et=typeof Je=="function"?Je(p()):Je;et&&ye(function($e){return j(j({},$e),{},{current:et})})}},back:function(){var Be=Ve(),We=Be.getPrevious,Je=We(),et=typeof Je=="function"?Je(p()):Je;et&&ye(function($e){return j(j({},$e),{},{current:et})})},setCurrent:function(Be){if(Be){var We=F.get(Be).index;We<Ve().index?ye(function(Je){return j(j({},Je),{},{current:Be,goal:null})}):ye(function(Je){return j(j({},Je),{},{goal:Be})})}},register:function(Be,We,Je){Je?(G.current=G.current+1,F.set(Be,j(j({},We),{},{index:G.current}))):ye(function(et){return j(j({},et),{},{steps:Array.from(F.keys())})})},deregister:function(Be){F.delete(Be),G.current=G.current-1,ye(function(We){return j(j({},We),{},{steps:Array.from(F.keys())})})}};return o&&(o.current=ze),ze}),me=Q(Ae,1),Te=me[0],He=function(ze){return d.createElement($.Provider,{value:Te},d.createElement(z.Provider,{value:oe},ze))};return j(j(j({},Te),oe),{},{render:He})};function Df(){return(0,d.useContext)(z)}function mo(){return(0,d.useContext)($)}var Ia=function(r){var i=r.step,o=r.next,s=r.previous,p=r.relevant,y=si(),A=y.values,w=Df(),E=w.current,F=w.goal,G=mo(),te=G.register,ne=G.deregister,oe=G.next,ye=i===E,ge=p?p(A):!0,Ae=(0,d.useRef)(o),me=(0,d.useRef)(s),Te=(0,d.useRef)();Ae.current=o,me.current=s,Te.current=p,(0,d.useState)(function(){te(i,{name:i,getNext:function(){return Ae.current},getPrevious:function(){return me.current}},!0)}),(0,d.useEffect)(function(){return te(i,{name:i,getNext:function(){return Ae.current},getPrevious:function(){return me.current}}),function(){ne(i)}},[i]),(0,d.useEffect)(function(){F&&ye&&F!==i&&oe()},[F,ye]);var He=function(ze){return d.createElement(Se.Provider,{value:{relevant:function(Be){return Te.current?Te.current(Be):!0},multistep:!0}},ye&&ge?ze:null)};return{isCurrent:ye,isRelevant:ge,step:i,render:He}};function Nf(t){var r=t.children,i=C(t,["children"]),o=Lf(i),s=o.render,p=C(o,["render"]);return s(typeof r=="function"?r(p):r)}Nf.Step=function(r){var i=r.children,o=C(r,["children"]),s=Ia(o),p=s.render;return p(i)};var Ad=function(r){var i=r.field,o=useContext(kt),s=o.fieldMap,p=Ie(),y=p.getFullField,A=p.getOptions,w=y(i),E=A(),F=E.schema,G=ae(w),te=pt.get(F,G);if(!te)return null;var ne=re(i,te),oe=ne.props,ye=ne.componentType,ge=s[ye];return React.createElement(ge,D({field:i},oe))},Ed=function(){var r=Ie(),i=r.getOptions,o=i(),s=o.schema;return React.createElement(Xt,{schema:s})},Cd=function(r){return React.forwardRef(function(i,o){return React.createElement(zt.Consumer,null,function(s){return React.createElement(r,D({formApi:s,ref:o},i))})})},Gl=function(r){return React.forwardRef(function(i,o){return React.createElement(Et.Consumer,null,function(s){return React.createElement(r,D({formState:s,ref:o},i))})})},$l=function(r,i){return{getValue:function(){return r.getValue(i)},setValue:function(s){return r.setValue(i,s)},getTouched:function(){return r.getTouched(i)},setTouched:function(s){return r.setTouched(i,s)},getError:function(){return r.getError(i)},setError:function(s){return r.setError(i,s)},reset:function(){return r.resetField(i)},validate:function(){return r.validateField(i)},exists:function(){return r.fieldExists(i)},getDirty:function(){return r.getDirty(i)},getPristine:function(){return r.getPristine(i)},getFieldState:function(){return r.getField(i).fieldApi.getFieldState()}}};function Kl(t){var r=Ie(),i=useMemo(function(){return $l(r,t)},[t]);return i}function Yl(t){var r=Kl(t),i=Ie(),o=React.useState(),s=Q(o,2),p=s[1],y=React.useCallback(function(){return p({})},[]);return vt(function(){var A=function(E){E===t&&y()};return i.emitter.on("field",A),function(){i.emitter.removeListener("field",A)}},[]),vt(function(){y()},[]),r.getFieldState()||{}}var Bf=function(r){return function(i){return function(o){var s=Yl(r);return React.createElement(i,D({fieldState:s},o))}}},ws=function(r){return function(i){return function(o){var s=Kl(r);return React.createElement(i,D({fieldApi:s},o))}}},Ss=function(r){var i=r.value,o=r.forwardedRef,s=r.children,p=C(r,["value","forwardedRef","children"]);return React.createElement("option",D({ref:o,value:i,key:i},p),s)},Jl=null,Fa=a(80150),As=a(89356),Hi=a(63263),Uf=a(30699),xo=a(58377),Wn=a(28834),Xl=a(13038),jf=a(32752),ka=a(44341);function Es(t,r,i){return r in t?ka(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function li(t,r){var i=As(t);if(Hi){var o=Hi(t);r&&(o=Uf(o).call(o,function(s){return xo(t,s).enumerable})),i.push.apply(i,o)}return i}function cr(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){var o;Wn(o=li(Object(i),!0)).call(o,function(p){Es(t,p,i[p])})}else if(Xl)jf(t,Xl(i));else{var s;Wn(s=li(Object(i))).call(s,function(p){ka(t,p,xo(i,p))})}}return t}var ui=a(28583),zi=a.n(ui),Cs=a(10240),Gi=a.n(Cs),Ii=a(8575),$i=a(51446),Os=a(19996),Ts=a(78363),Ql=a(95238),Ps=a(53592);function Is(t,r){(r==null||r>t.length)&&(r=t.length);for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function Fs(t,r){var i;if(!!t){if(typeof t=="string")return Is(t,r);var o=Ql(i=Object.prototype.toString.call(t)).call(i,8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Ps(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return Is(t,r)}}function Ki(t,r){var i=typeof $i!="undefined"&&Os(t)||t["@@iterator"];if(!i){if(Ts(t)||(i=Fs(t))||r&&t&&typeof t.length=="number"){i&&(t=i);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(E){throw E},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
81
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p=!0,y=!1,A;return{s:function(){i=i.call(t)},n:function(){var E=i.next();return p=E.done,E},e:function(E){y=!0,A=E},f:function(){try{!p&&i.return!=null&&i.return()}finally{if(y)throw A}}}}var Vf=a(23882);function ir(t){return typeof $i=="function"&&typeof Vf=="symbol"?ir=function(i){return typeof i}:ir=function(i){return i&&typeof $i=="function"&&i.constructor===$i&&i!==$i.prototype?"symbol":typeof i},ir(t)}function Wf(t){if(Ts(t))return t}function Zl(t,r){var i=t&&(typeof $i!="undefined"&&Os(t)||t["@@iterator"]);if(i!=null){var o=[],s=!0,p=!1,y,A;try{for(i=i.call(t);!(s=(y=i.next()).done)&&(o.push(y.value),!(r&&o.length===r));s=!0);}catch(w){p=!0,A=w}finally{try{!s&&i.return!=null&&i.return()}finally{if(p)throw A}}return o}}function bo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
82
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rn(t,r){return Wf(t)||Zl(t,r)||Fs(t,r)||bo()}var _l=a(69798);function ql(t,r,i,o,s,p,y){try{var A=t[p](y),w=A.value}catch(E){i(E);return}A.done?r(w):_l.resolve(w).then(o,s)}function ks(t){return function(){var r=this,i=arguments;return new _l(function(o,s){var p=t.apply(r,i);function y(w){ql(p,o,s,y,A,"next",w)}function A(w){ql(p,o,s,y,A,"throw",w)}y(void 0)})}}var Ma=a(63109),ar=a.n(Ma),Hf=a(78580),wo=a.n(Hf),Ra=a(72119),eu=a.n(Ra),tu=a(66419),zf=a.n(tu),Ms=a(59340),La=a.n(Ms),Gf=a(2991),qt=a.n(Gf),ru=a(86902),Qt=a.n(ru),$f=a(77766),Ct=a.n($f),fi=a(26295),Da=a.n(fi),Rs=a(20116),ln=a.n(Rs),ci=a(31905),Yi=a(92495),Na=a.n(Yi),Kf=a(93320),Ls=a.n(Kf),Yf=a(78718),So=a.n(Yf),Ds=a(23560),_n=a.n(Ds),Hn=a(88996);function Ao(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function Ns(t,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),ka(t,o.key,o)}}function Bs(t,r,i){return r&&Ns(t.prototype,r),i&&Ns(t,i),t}var nu=a(83863),iu=a(79542),Us=a(24889);function Ji(t){return Ji=iu?Us:function(i){return i.__proto__||Us(i)},Ji(t)}function Ba(t,r){for(;!Object.prototype.hasOwnProperty.call(t,r)&&(t=Ji(t),t!==null););return t}function Ua(t,r,i){return typeof Reflect!="undefined"&&nu?Ua=nu:Ua=function(s,p,y){var A=Ba(s,p);if(!!A){var w=xo(A,p);return w.get?w.get.call(y):w.value}},Ua(t,r,i||t)}var au=a(189);function ja(t,r){return ja=iu||function(o,s){return o.__proto__=s,o},ja(t,r)}function Eo(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=au(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&ja(t,r)}var Va=a(13535);function Co(){if(typeof Reflect=="undefined"||!Va||Va.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Va(Boolean,[],function(){})),!0}catch(t){return!1}}function zn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ou(t,r){return r&&(ir(r)==="object"||typeof r=="function")?r:zn(t)}function js(t){var r=Co();return function(){var o=Ji(t),s;if(r){var p=Ji(this).constructor;s=Va(o,arguments,p)}else s=o.apply(this,arguments);return ou(this,s)}}var Vs=a(94473),su=a.n(Vs),lu=a(57514),Ws=a.n(lu),Jf=function(r){var i=function(p,y){return{name:p,value:y}};if(_n()(r.prototype.set)||_n()(r.prototype.get)||_n()(r.prototype.getAll)||_n()(r.prototype.has))return r;var o=function(s){Eo(y,s);var p=js(y);function y(A){var w;return Ao(this,y),w=p.call(this,A),w.entryList=[],w}return Bs(y,[{key:"append",value:function(w,E,F){return this.entryList.push(i(w,E)),Ua(Ji(y.prototype),"append",this).call(this,w,E,F)}},{key:"set",value:function(w,E){var F,G=i(w,E);this.entryList=ln()(F=this.entryList).call(F,function(te){return te.name!==w}),this.entryList.push(G)}},{key:"get",value:function(w){var E,F=su()(E=this.entryList).call(E,function(G){return G.name===w});return F===void 0?null:F}},{key:"getAll",value:function(w){var E,F;return qt()(E=ln()(F=this.entryList).call(F,function(G){return G.name===w})).call(E,function(G){return G.value})}},{key:"has",value:function(w){return this.entryList.some(function(E){return E.name===w})}}]),y}(r);return o};const Xf=Jf(Ws());function Qf(t){if(Ts(t))return Is(t)}function Xi(t){if(typeof $i!="undefined"&&Os(t)!=null||t["@@iterator"]!=null)return Ps(t)}function ca(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
83
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function In(t){return Qf(t)||Xi(t)||Fs(t)||ca()}var Hs=a(3649),Fn=a.n(Hs),uu=a(88996),zs=uu.Buffer,Qi=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},Zi=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Mr(t){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.escape,s=arguments.length>2?arguments[2]:void 0;return typeof t=="number"&&(t=t.toString()),typeof t!="string"||!t.length||!o?t:s?JSON.parse(t):qt()(r=In(t)).call(r,function(p){var y,A;if(Zi(p)||Qi(p)&&o==="unsafe")return p;var w=qt()(y=qt()(A=zs.from(p).toJSON().data||[]).call(A,function(E){var F;return Fn()(F="0".concat(E.toString(16).toUpperCase())).call(F,-2)})).call(y,function(E){return"%".concat(E)}).join("");return w}).join("")}function qn(t){var r=t.value;return Array.isArray(r)?Fi(t):ir(r)==="object"?Oo(t):Zf(t)}function Fi(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,y=function(G){return Mr(G,{escape:p})};if(o==="simple")return qt()(i).call(i,function(F){return y(F)}).join(",");if(o==="label")return".".concat(qt()(i).call(i,function(F){return y(F)}).join("."));if(o==="matrix")return qt()(i).call(i,function(F){return y(F)}).reduce(function(F,G){var te;if(!F||s){var ne,oe;return Ct()(ne=Ct()(oe="".concat(F||"",";")).call(oe,r,"=")).call(ne,G)}return Ct()(te="".concat(F,",")).call(te,G)},"");if(o==="form"){var A=s?"&".concat(r,"="):",";return qt()(i).call(i,function(F){return y(F)}).join(A)}if(o==="spaceDelimited"){var w=s?"".concat(r,"="):"";return qt()(i).call(i,function(F){return y(F)}).join(" ".concat(w))}if(o==="pipeDelimited"){var E=s?"".concat(r,"="):"";return qt()(i).call(i,function(F){return y(F)}).join("|".concat(E))}}function Oo(t){var r=t.key,i=t.value,o=t.style,s=t.explode,p=t.escape,y=function(E){return Mr(E,{escape:p})},A=Qt()(i);if(o==="simple")return A.reduce(function(w,E){var F,G,te,ne=y(i[E]),oe=s?"=":",",ye=w?"".concat(w,","):"";return Ct()(F=Ct()(G=Ct()(te="".concat(ye)).call(te,E)).call(G,oe)).call(F,ne)},"");if(o==="label")return A.reduce(function(w,E){var F,G,te,ne=y(i[E]),oe=s?"=":".",ye=w?"".concat(w,"."):".";return Ct()(F=Ct()(G=Ct()(te="".concat(ye)).call(te,E)).call(G,oe)).call(F,ne)},"");if(o==="matrix"&&s)return A.reduce(function(w,E){var F,G,te=y(i[E]),ne=w?"".concat(w,";"):";";return Ct()(F=Ct()(G="".concat(ne)).call(G,E,"=")).call(F,te)},"");if(o==="matrix")return A.reduce(function(w,E){var F,G,te=y(i[E]),ne=w?"".concat(w,","):";".concat(r,"=");return Ct()(F=Ct()(G="".concat(ne)).call(G,E,",")).call(F,te)},"");if(o==="form")return A.reduce(function(w,E){var F,G,te,ne,oe=y(i[E]),ye=w?Ct()(F="".concat(w)).call(F,s?"&":","):"",ge=s?"=":",";return Ct()(G=Ct()(te=Ct()(ne="".concat(ye)).call(ne,E)).call(te,ge)).call(G,oe)},"")}function Zf(t){var r=t.key,i=t.value,o=t.style,s=t.escape,p=function(w){return Mr(w,{escape:s})};if(o==="simple")return p(i);if(o==="label")return".".concat(p(i));if(o==="matrix"){var y;return Ct()(y=";".concat(r,"=")).call(y,p(i))}if(o==="form")return p(i);if(o==="deepObject")return p(i,{},!0)}var To={serializeRes:fu,mergeInQueryOrForm:du};function ki(t){return Po.apply(this,arguments)}function Po(){return Po=ks(ar().mark(function t(r){var i,o,s,p,y,A=arguments;return ar().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(i=A.length>1&&A[1]!==void 0?A[1]:{},ir(r)==="object"&&(i=r,r=i.url),i.headers=i.headers||{},To.mergeInQueryOrForm(i),i.headers&&Qt()(i.headers).forEach(function(F){var G=i.headers[F];typeof G=="string"&&(i.headers[F]=G.replace(/\n+/g," "))}),!i.requestInterceptor){E.next=12;break}return E.next=8,i.requestInterceptor(i);case 8:if(E.t0=E.sent,E.t0){E.next=11;break}E.t0=i;case 11:i=E.t0;case 12:return o=i.headers["content-type"]||i.headers["Content-Type"],/multipart\/form-data/i.test(o)&&(delete i.headers["content-type"],delete i.headers["Content-Type"]),E.prev=14,E.next=17,(i.userFetch||fetch)(i.url,i);case 17:return s=E.sent,E.next=20,To.serializeRes(s,r,i);case 20:if(s=E.sent,!i.responseInterceptor){E.next=28;break}return E.next=24,i.responseInterceptor(s);case 24:if(E.t1=E.sent,E.t1){E.next=27;break}E.t1=s;case 27:s=E.t1;case 28:E.next=39;break;case 30:if(E.prev=30,E.t2=E.catch(14),s){E.next=34;break}throw E.t2;case 34:throw p=new Error(s.statusText),p.status=s.status,p.statusCode=s.status,p.responseError=E.t2,p;case 39:if(s.ok){E.next=45;break}throw y=new Error(s.statusText),y.status=s.status,y.statusCode=s.status,y.response=s,y;case 45:return E.abrupt("return",s);case 46:case"end":return E.stop()}},t,null,[[14,30]])})),Po.apply(this,arguments)}var Gs=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Io(t,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(t):Ls().safeLoad(t)}function fu(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.loadSpec,s=o===void 0?!1:o,p={ok:t.ok,url:t.url||r,status:t.status,statusText:t.statusText,headers:Ks(t.headers)},y=p.headers["content-type"],A=s||Gs(y),w=A?t.text:t.blob||t.buffer;return w.call(t).then(function(E){if(p.text=E,p.data=E,A)try{var F=Io(E,y);p.body=F,p.obj=F}catch(G){p.parseError=G}return p})}function $s(t){var r=wo()(t).call(t,", ");return r?t.split(", "):t}function Ks(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return _n()(eu()(t))?zf()(eu()(t).call(t)).reduce(function(r,i){var o=rn(i,2),s=o[0],p=o[1];return r[s]=$s(p),r},{}):{}}function Wa(t,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(t&&ir(t)==="object"&&typeof t.uri=="string"):typeof File!="undefined"&&t instanceof File||typeof Blob!="undefined"&&t instanceof Blob||typeof Hn.Buffer!="undefined"&&t instanceof Hn.Buffer?!0:t!==null&&ir(t)==="object"&&typeof t.pipe=="function"}function Fo(t,r){return Array.isArray(t)&&t.some(function(i){return Wa(i,r)})}var da={form:",",spaceDelimited:"%20",pipeDelimited:"|"},ko={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Ys(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=r.collectionFormat,s=r.allowEmptyValue,p=r.serializationOption,y=r.encoding,A=ir(r)==="object"&&!Array.isArray(r)?r.value:r,w=i?function(G){return G.toString()}:function(G){return encodeURIComponent(G)},E=w(t);if(typeof A=="undefined"&&s)return[[E,""]];if(Wa(A)||Fo(A))return[[E,A]];if(p)return Ha(t,A,i,p);if(y){if([ir(y.style),ir(y.explode),ir(y.allowReserved)].some(function(G){return G!=="undefined"}))return Ha(t,A,i,So()(y,["style","explode","allowReserved"]));if(y.contentType){if(y.contentType==="application/json"){var F=typeof A=="string"?A:La()(A);return[[E,w(F)]]}return[[E,w(A.toString())]]}return ir(A)!=="object"?[[E,w(A)]]:Array.isArray(A)&&A.every(function(G){return ir(G)!=="object"})?[[E,qt()(A).call(A,w).join(",")]]:[[E,w(La()(A))]]}return ir(A)!=="object"?[[E,w(A)]]:Array.isArray(A)?o==="multi"?[[E,qt()(A).call(A,w)]]:[[E,qt()(A).call(A,w).join(ko[o||"csv"])]]:[[E,""]]}function Ha(t,r,i,o){var s,p=o.style||"form",y=typeof o.explode=="undefined"?p==="form":o.explode,A=i?!1:o&&o.allowReserved?"unsafe":"reserved",w=function(ne){return Mr(ne,{escape:A})},E=i?function(te){return te}:function(te){return Mr(te,{escape:A})};if(ir(r)!=="object")return[[E(t),w(r)]];if(Array.isArray(r))return y?[[E(t),qt()(r).call(r,w)]]:[[E(t),qt()(r).call(r,w).join(da[p])]];if(p==="deepObject"){var F;return qt()(F=Qt()(r)).call(F,function(te){var ne;return[E(Ct()(ne="".concat(t,"[")).call(ne,te,"]")),w(r[te])]})}if(y){var G;return qt()(G=Qt()(r)).call(G,function(te){return[E(te),w(r[te])]})}return[[E(t),qt()(s=Qt()(r)).call(s,function(te){var ne;return[Ct()(ne="".concat(E(te),",")).call(ne,w(r[te]))]}).join(",")]]}function _f(t){return Da()(t).reduce(function(r,i){var o=rn(i,2),s=o[0],p=o[1],y=Ki(Ys(s,p,!0)),A;try{for(y.s();!(A=y.n()).done;){var w=rn(A.value,2),E=w[0],F=w[1];if(Array.isArray(F)){var G=Ki(F),te;try{for(G.s();!(te=G.n()).done;){var ne=te.value;r.append(E,ne)}}catch(oe){G.e(oe)}finally{G.f()}}else r.append(E,F)}}catch(oe){y.e(oe)}finally{y.f()}return r},new Xf)}function cu(t){var r=Qt()(t).reduce(function(i,o){var s=Ki(Ys(o,t[o])),p;try{for(s.s();!(p=s.n()).done;){var y=rn(p.value,2),A=y[0],w=y[1];i[A]=w}}catch(E){s.e(E)}finally{s.f()}return i},{});return Na().stringify(r,{encode:!1,indices:!1})||""}function du(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.url,i=r===void 0?"":r,o=t.query,s=t.form,p=function(){for(var Ae=arguments.length,me=new Array(Ae),Te=0;Te<Ae;Te++)me[Te]=arguments[Te];var He=ln()(me).call(me,function(Ve){return Ve}).join("&");return He?"?".concat(He):""};if(s){var y=Qt()(s).some(function(ge){var Ae=s[ge].value;return Wa(Ae)||Fo(Ae)}),A=t.headers["content-type"]||t.headers["Content-Type"];y||/multipart\/form-data/i.test(A)?t.body=_f(t.form):t.body=cu(s),delete t.form}if(o){var w=i.split("?"),E=rn(w,2),F=E[0],G=E[1],te="";if(G){var ne=Na().parse(G),oe=Qt()(o);oe.forEach(function(ge){return delete ne[ge]}),te=Na().stringify(ne,{encode:!0})}var ye=p(te,cu(o));t.url=F+ye,delete t.query}return t}function Js(t,r,i){return i=i||function(o){return o},r=r||function(o){return o},function(o){return typeof o=="string"&&(o={url:o}),To.mergeInQueryOrForm(o),o=r(o),i(t(o))}}var Xs=a(51942),nn=a.n(Xs),za=a(93476),_i=a.n(za),Mo=a(92762),pu=a.n(Mo),Ga=a(13311),hu=a.n(Ga),qi=a(50308),pa=a.n(qi);/*!
|
|
84
84
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
85
85
|
* (c) 2017 Joachim Wester
|
|
86
86
|
* MIT license
|
|
87
|
-
*/var
|
|
88
|
-
`)}var gu=function(t){
|
|
87
|
+
*/var ea=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),$a=Object.prototype.hasOwnProperty;function di(t,r){return $a.call(t,r)}function Ro(t){if(Array.isArray(t)){for(var i=new Array(t.length),r=0;r<i.length;r++)i[r]=""+r;return i}if(Object.keys)return Object.keys(t);var i=[];for(var o in t)di(t,o)&&i.push(o);return i}function mn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function Lo(t){for(var r=0,i=t.length,o;r<i;){if(o=t.charCodeAt(r),o>=48&&o<=57){r++;continue}return!1}return!0}function pi(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function Mi(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Ri(t,r){var i;for(var o in t)if(di(t,o)){if(t[o]===r)return pi(o)+"/";if(typeof t[o]=="object"&&(i=Ri(t[o],r),i!=""))return pi(o)+"/"+i}return""}function Od(t,r){if(t===r)return"/";var i=Ri(t,r);if(i==="")throw new Error("Object not found in root");return"/"+i}function Qs(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)if(Qs(t[r]))return!0}else if(typeof t=="object"){for(var o=Ro(t),s=o.length,r=0;r<s;r++)if(Qs(t[o[r]]))return!0}}return!1}function vu(t,r){var i=[t];for(var o in r){var s=typeof r[o]=="object"?JSON.stringify(r[o],null,2):r[o];typeof s!="undefined"&&i.push(o+": "+s)}return i.join(`
|
|
88
|
+
`)}var gu=function(t){ea(r,t);function r(i,o,s,p,y){var A=this.constructor,w=t.call(this,vu(i,{name:o,index:s,operation:p,tree:y}))||this;return w.name=o,w.index=s,w.operation=p,w.tree=y,Object.setPrototypeOf(w,A.prototype),w.message=vu(i,{name:o,index:s,operation:p,tree:y}),w}return r}(Error),Pr=gu,qf=mn,Ur={add:function(t,r,i){return t[r]=this.value,{newDocument:i}},remove:function(t,r,i){var o=t[r];return delete t[r],{newDocument:i,removed:o}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:function(t,r,i){var o=Rr(i,this.path);o&&(o=mn(o));var s=pr(i,{op:"remove",path:this.from}).removed;return pr(i,{op:"add",path:this.path,value:s}),{newDocument:i,removed:o}},copy:function(t,r,i){var o=Rr(i,this.from);return pr(i,{op:"add",path:this.path,value:mn(o)}),{newDocument:i}},test:function(t,r,i){return{newDocument:i,test:Ka(t[r],this.value)}},_get:function(t,r,i){return this.value=t[r],{newDocument:i}}},jr={add:function(t,r,i){return Lo(r)?t.splice(r,0,this.value):t[r]=this.value,{newDocument:i,index:r}},remove:function(t,r,i){var o=t.splice(r,1);return{newDocument:i,removed:o[0]}},replace:function(t,r,i){var o=t[r];return t[r]=this.value,{newDocument:i,removed:o}},move:Ur.move,copy:Ur.copy,test:Ur.test,_get:Ur._get};function Rr(t,r){if(r=="")return t;var i={op:"_get",path:r};return pr(t,i),i.value}function pr(t,r,i,o,s,p){if(i===void 0&&(i=!1),o===void 0&&(o=!0),s===void 0&&(s=!0),p===void 0&&(p=0),i&&(typeof i=="function"?i(r,0,t,r.path):ta(r,0)),r.path===""){var y={newDocument:t};if(r.op==="add")return y.newDocument=r.value,y;if(r.op==="replace")return y.newDocument=r.value,y.removed=t,y;if(r.op==="move"||r.op==="copy")return y.newDocument=Rr(t,r.from),r.op==="move"&&(y.removed=t),y;if(r.op==="test"){if(y.test=Ka(t,r.value),y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y.newDocument=t,y}else{if(r.op==="remove")return y.removed=t,y.newDocument=null,y;if(r.op==="_get")return r.value=t,y;if(i)throw new Pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",p,r,t);return y}}else{o||(t=mn(t));var A=r.path||"",w=A.split("/"),E=t,F=1,G=w.length,te=void 0,ne=void 0,oe=void 0;for(typeof i=="function"?oe=i:oe=ta;;){if(ne=w[F],s&&ne=="__proto__")throw new TypeError("JSON-Patch: modifying `__proto__` 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(i&&te===void 0&&(E[ne]===void 0?te=w.slice(0,F).join("/"):F==G-1&&(te=r.path),te!==void 0&&oe(r,0,t,te)),F++,Array.isArray(E)){if(ne==="-")ne=E.length;else{if(i&&!Lo(ne))throw new Pr("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",p,r,t);Lo(ne)&&(ne=~~ne)}if(F>=G){if(i&&r.op==="add"&&ne>E.length)throw new Pr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",p,r,t);var y=jr[r.op].call(r,E,ne,t);if(y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}}else if(ne&&ne.indexOf("~")!=-1&&(ne=Mi(ne)),F>=G){var y=Ur[r.op].call(r,E,ne,t);if(y.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",p,r,t);return y}E=E[ne]}}}function Gn(t,r,i,o,s){if(o===void 0&&(o=!0),s===void 0&&(s=!0),i&&!Array.isArray(r))throw new Pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");o||(t=mn(t));for(var p=new Array(r.length),y=0,A=r.length;y<A;y++)p[y]=pr(t,r[y],i,!0,s,y),t=p[y].newDocument;return p.newDocument=t,p}function ec(t,r,i){var o=pr(t,r);if(o.test===!1)throw new Pr("Test operation failed","TEST_OPERATION_FAILED",i,r,t);return o.newDocument}function ta(t,r,i,o){if(typeof t!="object"||t===null||Array.isArray(t))throw new Pr("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,t,i);if(Ur[t.op]){if(typeof t.path!="string")throw new Pr("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,t,i);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Pr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,t,i);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new Pr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new Pr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,t,i);if((t.op==="add"||t.op==="replace"||t.op==="test")&&Qs(t.value))throw new Pr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,t,i);if(i){if(t.op=="add"){var s=t.path.split("/").length,p=o.split("/").length;if(s!==p+1&&s!==p)throw new Pr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,t,i)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==o)throw new Pr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,t,i)}else if(t.op==="move"||t.op==="copy"){var y={op:"_get",path:t.from,value:void 0},A=yu([y],i);if(A&&A.name==="OPERATION_PATH_UNRESOLVABLE")throw new Pr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,t,i)}}}else throw new Pr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,t,i)}function yu(t,r,i){try{if(!Array.isArray(t))throw new Pr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Gn(mn(r),mn(t),i||!0);else{i=i||ta;for(var o=0;o<t.length;o++)i(t[o],o,r,void 0)}}catch(s){if(s instanceof Pr)return s;throw s}}function Ka(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){var i=Array.isArray(t),o=Array.isArray(r),s,p,y;if(i&&o){if(p=t.length,p!=r.length)return!1;for(s=p;s--!=0;)if(!Ka(t[s],r[s]))return!1;return!0}if(i!=o)return!1;var A=Object.keys(t);if(p=A.length,p!==Object.keys(r).length)return!1;for(s=p;s--!=0;)if(!r.hasOwnProperty(A[s]))return!1;for(s=p;s--!=0;)if(y=A[s],!Ka(t[y],r[y]))return!1;return!0}return t!==t&&r!==r}/*!
|
|
89
89
|
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
90
90
|
* (c) 2017 Joachim Wester
|
|
91
91
|
* MIT license
|
|
92
|
-
*/var Zs=new WeakMap,_s=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),mu=function(){function t(r,n){this.callback=r,this.observer=n}return t}();function qs(t){return Zs.get(t)}function rc(t,r){return t.observers.get(r)}function el(t,r){t.observers.delete(r.callback)}function tl(t,r){r.unobserve()}function xu(t,r){var n=[],o,s=qs(t);if(!s)s=new _s(t),Zs.set(t,s);else{var p=rc(s,r);o=p&&p.observer}if(o)return o;if(o={},s.value=gn(t),r){o.callback=r,o.next=null;var y=function(){Bo(o)},E=function(){clearTimeout(o.next),o.next=setTimeout(y)};typeof window!="undefined"&&(window.addEventListener("mouseup",E),window.addEventListener("keyup",E),window.addEventListener("mousedown",E),window.addEventListener("keydown",E),window.addEventListener("change",E))}return o.patches=n,o.object=t,o.unobserve=function(){Bo(o),clearTimeout(o.next),el(s,o),typeof window!="undefined"&&(window.removeEventListener("mouseup",E),window.removeEventListener("keyup",E),window.removeEventListener("mousedown",E),window.removeEventListener("keydown",E),window.removeEventListener("change",E))},s.observers.set(r,new mu(r,o)),o}function Bo(t,r){r===void 0&&(r=!1);var n=Zs.get(t.object);Ya(n.value,t.object,t.patches,"",r),t.patches.length&&zn(n.value,t.patches);var o=t.patches;return o.length>0&&(t.patches=[],t.callback&&t.callback(o)),o}function Ya(t,r,n,o,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Do(r),y=Do(t),E=!1,w=!1,A=y.length-1;A>=0;A--){var k=y[A],G=t[k];if(ci(r,k)&&!(r[k]===void 0&&G!==void 0&&Array.isArray(r)===!1)){var ne=r[k];typeof G=="object"&&G!=null&&typeof ne=="object"&&ne!=null?Ya(G,ne,n,o+"/"+di(k),s):G!==ne&&(E=!0,s&&n.push({op:"test",path:o+"/"+di(k),value:gn(G)}),n.push({op:"replace",path:o+"/"+di(k),value:gn(ne)}))}else Array.isArray(t)===Array.isArray(r)?(s&&n.push({op:"test",path:o+"/"+di(k),value:gn(G)}),n.push({op:"remove",path:o+"/"+di(k)}),w=!0):(s&&n.push({op:"test",path:o,value:t}),n.push({op:"replace",path:o,value:r}),E=!0)}if(!(!w&&p.length==y.length))for(var A=0;A<p.length;A++){var k=p[A];!ci(t,k)&&r[k]!==void 0&&n.push({op:"add",path:o+"/"+di(k),value:gn(r[k])})}}}function bu(t,r,n){n===void 0&&(n=!1);var o=[];return Ya(t,r,o,"",n),o}const Uo=Object.assign({},c,v,{JsonPatchError:gu,deepClone:gn,escapePathComponent:di,unescapePathComponent:Ii});var nc=a(31312),jo=a.n(nc),pi=a(50361),wu=a.n(pi);const rr={add:er,replace:An,remove:ki,merge:Mi,mergeDeep:Au,context:rl,getIn:Ri,applyPatch:Su,parentPathMatch:nl,flatten:Ja,fullyNormalizeArray:Cu,normalizeArray:il,isPromise:Ou,forEachNew:Eu,forEachNewPrimitive:ic,isJsonPatch:Iu,isContextPatch:oc,isPatch:Ho,isMutation:Qa,isAdditiveMutation:Za,isGenerator:ac,isFunction:Tu,isObject:ei,isError:Pu};function Su(t,r,n){if(n=n||{},r=cr(cr({},r),{},{path:r.path&&yn(r.path)}),r.op==="merge"){var o=zo(t,r.path);nn()(o,r.value),zn(t,[An(r.path,o)])}else if(r.op==="mergeDeep"){var s=zo(t,r.path);for(var p in r.value){var y=r.value[p],E=Array.isArray(y);if(E){var w=s[p]||[];s[p]=Ct()(w).call(w,y)}else if(ei(y)&&!E){var A=cr({},s[p]);for(var k in y)if(Object.prototype.hasOwnProperty.call(A,k)){A=jo()(wu()(A),y);break}else nn()(A,Es({},k,y[k]));s[p]=A}else s[p]=y}}else if(r.op==="add"&&r.path===""&&ei(r.value)){var G=Qt()(r.value).reduce(function(ge,Ee){return ge.push({op:"add",path:"/".concat(yn(Ee)),value:r.value[Ee]}),ge},[]);zn(t,G)}else if(r.op==="replace"&&r.path===""){var ne=r,re=ne.value;n.allowMetaPatches&&r.meta&&Za(r)&&(Array.isArray(r.value)||ei(r.value))&&(re=cr(cr({},re),r.meta)),t=re}else if(zn(t,[r]),n.allowMetaPatches&&r.meta&&Za(r)&&(Array.isArray(r.value)||ei(r.value))){var ce=zo(t,r.path),xe=cr(cr({},ce),r.meta);zn(t,[An(r.path,xe)])}return t}function yn(t){return Array.isArray(t)?t.length<1?"":"/".concat(qt()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function er(t,r){return{op:"add",path:t,value:r}}function An(t,r,n){return{op:"replace",path:t,value:r,meta:n}}function ki(t){return{op:"remove",path:t}}function Mi(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function Au(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function rl(t,r){return{type:"context",path:t,value:r}}function Eu(t,r){try{return Vo(t,Wo,r)}catch(n){return n}}function ic(t,r){try{return Vo(t,ea,r)}catch(n){return n}}function Vo(t,r,n){var o,s=qt()(o=sn()(t).call(t,Za)).call(o,function(E){return r(E.value,n,E.path)})||[],p=Ja(s),y=Xa(p);return y}function ea(t,r,n){if(n=n||[],Array.isArray(t))return qt()(t).call(t,function(s,p){return ea(s,r,Ct()(n).call(n,p))});if(ei(t)){var o;return qt()(o=Qt()(t)).call(o,function(s){return ea(t[s],r,Ct()(n).call(n,s))})}return r(t,n[n.length-1],n)}function Wo(t,r,n){n=n||[];var o=[];if(n.length>0){var s=r(t,n[n.length-1],n);s&&(o=Ct()(o).call(o,s))}if(Array.isArray(t)){var p=qt()(t).call(t,function(w,A){return Wo(w,r,Ct()(n).call(n,A))});p&&(o=Ct()(o).call(o,p))}else if(ei(t)){var y,E=qt()(y=Qt()(t)).call(y,function(w){return Wo(t[w],r,Ct()(n).call(n,w))});E&&(o=Ct()(o).call(o,E))}return o=Ja(o),o}function nl(t,r){if(!Array.isArray(r))return!1;for(var n=0,o=r.length;n<o;n+=1)if(r[n]!==t[n])return!1;return!0}function Ri(t,r){return r.reduce(function(n,o){return typeof o!="undefined"&&n?n[o]:n},t)}function Cu(t){return Xa(Ja(il(t)))}function il(t){return Array.isArray(t)?t:[t]}function Ja(t){var r;return Ct()(r=[]).apply(r,Tn(qt()(t).call(t,function(n){return Array.isArray(n)?Ja(n):n})))}function Xa(t){return sn()(t).call(t,function(r){return typeof r!="undefined"})}function ei(t){return t&&ir(t)==="object"}function Ou(t){return ei(t)&&Tu(t.then)}function Tu(t){return t&&typeof t=="function"}function Pu(t){return t instanceof Error}function Iu(t){if(Ho(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function ac(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Qa(t){return Iu(t)||Ho(t)&&t.type==="mutation"}function Za(t){return Qa(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function oc(t){return Ho(t)&&t.type==="context"}function Ho(t){return t&&ir(t)==="object"}function zo(t,r){try{return Lr(t,r)}catch(n){return console.error(n),{}}}var ha=a(52424),al=a.n(ha),Go=a(54098),Fu=a(9779),$o=a.n(Fu);function ol(t,r){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var o=arguments.length,s=new Array(o),p=0;p<o;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return n.prototype=new Error,n.prototype.name=t,n.prototype.constructor=n,n}var sc=a(13692),ku=a.n(sc),Zr=a(47037),Ko=a.n(Zr),Mu=["properties"],Ru=["properties"],Lu=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],va=["schema/example","items/example"];function _a(t){var r=t[t.length-1],n=t[t.length-2],o=t.join("/");return Mu.indexOf(r)>-1&&Ru.indexOf(n)===-1||Lu.indexOf(o)>-1||va.some(function(s){return o.indexOf(s)>-1})}function Du(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=n.specmap,s=n.getBaseUrlForNodePath,p=s===void 0?function(A){var k;return o.getContext(Ct()(k=[]).call(k,Tn(r),Tn(A))).baseDoc}:s,y=n.targetKeys,E=y===void 0?["$ref","$$ref"]:y,w=[];return ku()(t).forEach(function(){if(Ao()(E).call(E,this.key)&&Ko()(this.node)){var k=this.path,G=Ct()(r).call(r,this.path),ne=Yo(this.node,p(k));w.push(o.replace(G,ne))}}),w}function Yo(t,r){var n,o=t.split("#"),s=rn(o,2),p=s[0],y=s[1],E=Oi.resolve(p||"",r||"");return y?Ct()(n="".concat(E,"#")).call(n,y):E}var sl="application/json, application/yaml",ga=new RegExp("^([a-z]+://|//)","i"),ta=ol("JSONRefError",function(r,n,o){this.originalError=o,nn()(this,n||{})}),In={},ll=new(al()),qa=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],lc=function(r){return qa.some(function(n){return n(r)})},ya={key:"$ref",plugin:function(r,n,o,s){var p=s.getInstance(),y=Pn()(o).call(o,0,-1);if(!(_a(y)||lc(y))){var E=s.getContext(o),w=E.baseDoc;if(typeof r!="string")return new ta("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:o});var A=ma(r),k=A[0],G=A[1]||"",ne;try{ne=w||k?fl(k,w):null}catch(we){return ra(we,{pointer:G,$ref:r,basePath:ne,fullPath:o})}var re,ce;if(cc(G,ne,y,s)&&!p.useCircularStructures){var xe=Yo(r,ne);return r===xe?null:rr.replace(o,xe)}if(ne==null?(ce=ti(G),re=s.get(ce),typeof re=="undefined"&&(re=new ta("Could not resolve reference: ".concat(r),{pointer:G,$ref:r,baseDoc:w,fullPath:o}))):(re=xa(ne,G),re.__value!=null?re=re.__value:re=re.catch(function(we){throw ra(we,{pointer:G,$ref:r,baseDoc:w,fullPath:o})})),re instanceof Error)return[rr.remove(o),re];var ge=Yo(r,ne),Ee=rr.replace(y,re,{$$ref:ge});if(ne&&ne!==w)return[Ee,rr.context(y,{baseDoc:ne})];try{if(!dc(s.state,Ee)||p.useCircularStructures)return Ee}catch(we){return null}}}},ul=nn()(ya,{docCache:In,absoluteify:fl,clearCache:eo,JSONRefError:ta,wrapError:ra,getDoc:cl,split:ma,extractFromDoc:xa,fetchJSON:uc,extract:Jo,jsonPointerToArray:ti,unescapeJsonPointerToken:na});const Nu=ul;function fl(t,r){if(!ga.test(t)){if(!r){var n;throw new ta(Ct()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(n,r,"'"))}return Oi.resolve(r,t)}return t}function ra(t,r){var n;if(t&&t.response&&t.response.body){var o;n=Ct()(o="".concat(t.response.body.code," ")).call(o,t.response.body.message)}else n=t.message;return new ta("Could not resolve reference: ".concat(n),r,t)}function ma(t){return(t+"").split("#")}function xa(t,r){var n=In[t];if(n&&!rr.isPromise(n))try{var o=Jo(r,n);return nn()(Qi().resolve(o),{__value:o})}catch(s){return Qi().reject(s)}return cl(t).then(function(s){return Jo(r,s)})}function eo(t){typeof t!="undefined"?delete In[t]:Qt()(In).forEach(function(r){delete In[r]})}function cl(t){var r=In[t];return r?rr.isPromise(r)?r:Qi().resolve(r):(In[t]=ul.fetchJSON(t).then(function(n){return In[t]=n,n}),In[t])}function uc(t){return(0,Go.fetch)(t,{headers:{Accept:sl},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Ls().safeLoad(r)})}function Jo(t,r){var n=ti(t);if(n.length<1)return r;var o=rr.getIn(r,n);if(typeof o=="undefined")throw new ta("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return o}function ti(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(ir(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:qt()(r=t.split("/")).call(r,na)}function na(t){return typeof t!="string"?t:$o().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function ba(t){return $o().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function fc(t){return t.length===0?"":"/".concat(qt()(t).call(t,ba).join("/"))}var Bu=function(r){return!r||r==="/"||r==="#"};function dl(t,r){if(Bu(r))return!0;var n=t.charAt(r.length),o=Pn()(r).call(r,-1);return t.indexOf(r)===0&&(!n||n==="/"||n==="#")&&o!=="#"}function cc(t,r,n,o){var s,p,y=ll.get(o);y||(y={},ll.set(o,y));var E=fc(n),w=Ct()(s="".concat(r||"<specmap-base>","#")).call(s,t),A=E.replace(/allOf\/\d+\/?/g,""),k=o.contextTree.get([]).baseDoc;if(r==k&&dl(A,t))return!0;var G="",ne=n.some(function(re){var ce;return G=Ct()(ce="".concat(G,"/")).call(ce,ba(re)),y[G]&&y[G].some(function(xe){return dl(xe,w)||dl(w,xe)})});if(ne)return!0;y[A]=Ct()(p=y[A]||[]).call(p,w)}function dc(t,r){var n=[t];return r.path.reduce(function(s,p){return n.push(s[p]),s[p]},t),o(r.value);function o(s){return rr.isObject(s)&&(n.indexOf(s)>=0||Qt()(s).some(function(p){return o(s[p])}))}}var ln=a(41609),Uu=a.n(ln);const pc={key:"allOf",plugin:function(r,n,o,s,p){if(!(p.meta&&p.meta.$$ref)){var y=Pn()(o).call(o,0,-1);if(!_a(y)){if(!Array.isArray(r)){var E=new TypeError("allOf must be an array");return E.fullPath=o,E}var w=!1,A=p.value;if(y.forEach(function(ne){!A||(A=A[ne])}),A=cr({},A),!Uu()(A)){delete A.allOf;var k=[];if(k.push(s.replace(y,{})),r.forEach(function(ne,re){if(!s.isObject(ne)){if(w)return null;w=!0;var ce=new TypeError("Elements in allOf must be objects");return ce.fullPath=o,k.push(ce)}k.push(s.mergeDeep(y,ne));var xe=Pn()(o).call(o,0,-1),ge=Du(ne,xe,{getBaseUrlForNodePath:function(we){var Te;return s.getContext(Ct()(Te=[]).call(Te,Tn(o),[re],Tn(we))).baseDoc},specmap:s});k.push.apply(k,Tn(ge))}),k.push(s.mergeDeep(y,A)),!A.$$ref){var G;k.push(s.remove(Ct()(G=[]).call(G,y,"$$ref")))}return k}}}}},hc={key:"parameters",plugin:function(r,n,o,s){if(Array.isArray(r)&&r.length){var p=nn()([],r),y=Pn()(o).call(o,0,-1),E=cr({},rr.getIn(s.spec,y));return r.forEach(function(w,A){try{p[A].default=s.parameterMacro(E,w)}catch(G){var k=new Error(G);return k.fullPath=o,k}}),rr.replace(o,p)}return rr.replace(o,r)}},vc={key:"properties",plugin:function(r,n,o,s){var p=cr({},r);for(var y in r)try{p[y].default=s.modelPropertyMacro(p[y])}catch(A){var E=new Error(A);return E.fullPath=o,E}var w=rr.replace(o,p);return w}};var ju=function(){function t(r){Co(this,t),this.root=Xo(r||{})}return Bs(t,[{key:"set",value:function(n,o){var s=this.getParent(n,!0);if(!s){to(this.root,o,null);return}var p=n[n.length-1],y=s.children;if(y[p]){to(y[p],o,s);return}y[p]=Xo(o,s)}},{key:"get",value:function(n){if(n=n||[],n.length<1)return this.root.value;for(var o=this.root,s,p,y=0;y<n.length&&(p=n[y],s=o.children,!!s[p]);y+=1)o=s[p];return o&&o.protoValue}},{key:"getParent",value:function(n,o){return!n||n.length<1?null:n.length<2?this.root:Pn()(n).call(n,0,-1).reduce(function(s,p){if(!s)return s;var y=s.children;return!y[p]&&o&&(y[p]=Xo(null,s)),y[p]},this.root)}}]),t}();function Xo(t,r){return to({children:{}},t,r)}function to(t,r,n){return t.value=r||{},t.protoValue=n?cr(cr({},n.protoValue),t.value):t.value,Qt()(t.children).forEach(function(o){var s=t.children[o];t.children[o]=to(s,s.value,t)}),t}var Vu=100,gc=function(){function t(r){var n=this,o,s;Co(this,t),nn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ju,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:nn()(Object.create(this),rr,{getInstance:function(){return n}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=sn()(o=qt()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(o,rr.isFunction),this.patches.push(rr.add([],this.spec)),this.patches.push(rr.context([],this.context)),this.updatePatches(this.patches)}return Bs(t,[{key:"debug",value:function(n){if(this.debugLevel===n){for(var o,s=arguments.length,p=new Array(s>1?s-1:0),y=1;y<s;y++)p[y-1]=arguments[y];(o=console).log.apply(o,p)}}},{key:"verbose",value:function(n){if(this.debugLevel==="verbose"){for(var o,s,p=arguments.length,y=new Array(p>1?p-1:0),E=1;E<p;E++)y[E-1]=arguments[E];(o=console).log.apply(o,Ct()(s=["[".concat(n,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(n,o){var s=this.pathDiscriminator,p=null,y;return n[this.pluginProp]?(p=n,y=n[this.pluginProp]):rr.isFunction(n)?y=n:rr.isObject(n)&&(y=E(n)),nn()(y.bind(p),{pluginName:n.name||o,isGenerator:rr.isGenerator(y)});function E(w){var A=function(G,ne){return Array.isArray(G)?G.every(function(re,ce){return re===ne[ce]}):!0};return ar().mark(function k(G,ne){var re,ce,xe,ge,Ee,we;return ar().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:we=function(He,Ne,Ve){var We,Je,ze,et,St,Nt,zt,or,Mr,Er,Qr,wr,Nr;return ar().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(rr.isObject(He)){Yt.next=6;break}if(w.key!==Ne[Ne.length-1]){Yt.next=4;break}return Yt.next=4,w.plugin(He,w.key,Ne,ne);case 4:Yt.next=30;break;case 6:We=Ne.length-1,Je=Ne[We],ze=Ne.indexOf("properties"),et=Je==="properties"&&We===ze,St=ne.allowMetaPatches&&ce[He.$$ref],Nt=0,zt=Qt()(He);case 12:if(!(Nt<zt.length)){Yt.next=30;break}if(or=zt[Nt],Mr=He[or],Er=Ct()(Ne).call(Ne,or),Qr=rr.isObject(Mr),wr=He.$$ref,St){Yt.next=22;break}if(!Qr){Yt.next=22;break}return ne.allowMetaPatches&&wr&&(ce[wr]=!0),Yt.delegateYield(we(Mr,Er,Ve),"t0",22);case 22:if(!(!et&&or===w.key)){Yt.next=27;break}if(Nr=A(s,Ne),!(!s||Nr)){Yt.next=27;break}return Yt.next=27,w.plugin(Mr,or,Er,ne,Ve);case 27:Nt++,Yt.next=12;break;case 30:case"end":return Yt.stop()}},re)},re=ar().mark(we),ce={},xe=Gi(sn()(G).call(G,rr.isAdditiveMutation)),$e.prev=4,xe.s();case 6:if((ge=xe.n()).done){$e.next=11;break}return Ee=ge.value,$e.delegateYield(we(Ee.value,Ee.path,Ee),"t0",9);case 9:$e.next=6;break;case 11:$e.next=16;break;case 13:$e.prev=13,$e.t1=$e.catch(4),xe.e($e.t1);case 16:return $e.prev=16,xe.f(),$e.finish(16);case 19:case"end":return $e.stop()}},k,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var n=this;return hu()(this.wrappedPlugins,function(o){var s=n.getMutationsForPlugin(o);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var n;return Qi().race(qt()(n=this.promisedPatches).call(n,function(o){return o.value}))}}},{key:"getPluginHistory",value:function(n){var o=this.constructor.getPluginName(n);return this.pluginHistory[o]||[]}},{key:"getPluginRunCount",value:function(n){return this.getPluginHistory(n).length}},{key:"getPluginHistoryTip",value:function(n){var o=this.getPluginHistory(n),s=o&&o[o.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(n){var o=this.getPluginHistoryTip(n).mutationIndex;return typeof o!="number"?-1:o}},{key:"updatePluginHistory",value:function(n,o){var s=this.constructor.getPluginName(n);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(o)}},{key:"updatePatches",value:function(n){var o=this;rr.normalizeArray(n).forEach(function(s){if(s instanceof Error){o.errors.push(s);return}try{if(!rr.isObject(s)){o.debug("updatePatches","Got a non-object patch",s);return}if(o.showDebug&&o.allPatches.push(s),rr.isPromise(s.value)){o.promisedPatches.push(s),o.promisedPatchThen(s);return}if(rr.isContextPatch(s)){o.setContext(s.path,s.value);return}if(rr.isMutation(s)){o.updateMutations(s);return}}catch(p){console.error(p),o.errors.push(p)}})}},{key:"updateMutations",value:function(n){ir(n.value)==="object"&&!Array.isArray(n.value)&&this.allowMetaPatches&&(n.value=cr({},n.value));var o=rr.applyPatch(this.state,n,{allowMetaPatches:this.allowMetaPatches});o&&(this.mutations.push(n),this.state=o)}},{key:"removePromisedPatch",value:function(n){var o,s=this.promisedPatches.indexOf(n);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}pu()(o=this.promisedPatches).call(o,s,1)}},{key:"promisedPatchThen",value:function(n){var o=this;return n.value=n.value.then(function(s){var p=cr(cr({},n),{},{value:s});o.removePromisedPatch(n),o.updatePatches(p)}).catch(function(s){o.removePromisedPatch(n),o.updatePatches(s)}),n.value}},{key:"getMutations",value:function(n,o){var s;return n=n||0,typeof o!="number"&&(o=this.mutations.length),Pn()(s=this.mutations).call(s,n,o)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(n){var o=this.getPluginMutationIndex(n);return this.getMutations(o+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(n){return rr.getIn(this.state,n)}},{key:"_getContext",value:function(n){return this.contextTree.get(n)}},{key:"setContext",value:function(n,o){return this.contextTree.set(n,o)}},{key:"_hasRun",value:function(n){var o=this.getPluginRunCount(this.getCurrentPlugin());return o>(n||0)}},{key:"dispatch",value:function(){var n=this,o=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return n.dispatch()}).catch(function(){return n.dispatch()});var y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),Qi().resolve(y)}if(o.pluginCount=o.pluginCount||{},o.pluginCount[s]=(o.pluginCount[s]||0)+1,o.pluginCount[s]>Vu){var E;return Qi().resolve({spec:o.state,errors:Ct()(E=o.errors).call(E,new Error("We've reached a hard limit of ".concat(Vu," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,A=qt()(w=this.promisedPatches).call(w,function(ne){return ne.value});return Qi().all(qt()(A).call(A,function(ne){return ne.then(pa(),pa())})).then(function(){return n.dispatch()})}return k();function k(){o.currentPlugin=s;var ne=o.getCurrentMutations(),re=o.mutations.length-1;try{if(s.isGenerator){var ce=Gi(s(ne,o.getLib())),xe;try{for(ce.s();!(xe=ce.n()).done;){var ge=xe.value;G(ge)}}catch(we){ce.e(we)}finally{ce.f()}}else{var Ee=s(ne,o.getLib());G(Ee)}}catch(we){console.error(we),G([nn()(Object.create(we),{plugin:s})])}finally{o.updatePluginHistory(s,{mutationIndex:re})}return o.dispatch()}function G(ne){ne&&(ne=rr.fullyNormalizeArray(ne),o.updatePatches(ne,s))}}}],[{key:"getPluginName",value:function(n){return n.pluginName}},{key:"getPatchesOfType",value:function(n,o){return sn()(n).call(n,o)}}]),t}();function yc(t){return new gc(t).dispatch()}var mn={refs:Nu,allOf:pc,parameters:hc,properties:vc},ro=a(13218),no=a.n(ro),wa=function(r){return String.prototype.toLowerCase.call(r)},ri=function(r){return r.replace(/[^\w]/gi,"_")};function Wu(t){var r=t.openapi;return r?Hi()(r,"3"):!1}function kd(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function hi(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.v2OperationIdCompatibilityMode;if(!t||ir(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?ri(t.operationId):Hu(r,n,{v2OperationIdCompatibilityMode:s})}function Hu(t,r){var n,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=o.v2OperationIdCompatibilityMode;if(s){var p,y,E=Ct()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return E=E||Ct()(y="".concat(t.substring(1),"_")).call(y,r),E.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Ct()(n="".concat(wa(r))).call(n,ri(t))}function pl(t,r){var n;return Ct()(n="".concat(wa(r),"-")).call(n,t)}function zu(t,r){return!t||!t.paths?null:Qo(t,function(n){var o=n.pathName,s=n.method,p=n.operation;if(!p||ir(p)!=="object")return!1;var y=p.operationId,E=hi(p,o,s),w=pl(o,s);return[E,w,y].some(function(A){return A&&A===r})})}function Qo(t,r){return ia(t,r,!0)||null}function ia(t,r,n){if(!t||ir(t)!=="object"||!t.paths||ir(t.paths)!=="object")return null;var o=t.paths;for(var s in o)for(var p in o[s])if(p.toUpperCase()!=="PARAMETERS"){var y=o[s][p];if(!(!y||ir(y)!=="object")){var E={spec:t,pathName:s,method:p.toUpperCase(),operation:y},w=r(E);if(n&&w)return E}}}function Zo(t){var r=t.spec,n=r.paths,o={};if(!n||r.$$normalized)return t;for(var s in n){var p=n[s];if(!!no()(p)){var y=p.parameters,E=function(G){var ne=p[G];if(!no()(ne))return"continue";var re=hi(ne,s,G);if(re){o[re]?o[re].push(ne):o[re]=[ne];var ce=o[re];if(ce.length>1)ce.forEach(function(Je,ze){var et;Je.__originalOperationId=Je.__originalOperationId||Je.operationId,Je.operationId=Ct()(et="".concat(re)).call(et,ze+1)});else if(typeof ne.operationId!="undefined"){var xe=ce[0];xe.__originalOperationId=xe.__originalOperationId||ne.operationId,xe.operationId=re}}if(G!=="parameters"){var ge=[],Ee={};for(var we in r)(we==="produces"||we==="consumes"||we==="security")&&(Ee[we]=r[we],ge.push(Ee));if(y&&(Ee.parameters=y,ge.push(Ee)),ge.length){var Te=Gi(ge),$e;try{for(Te.s();!($e=Te.n()).done;){var je=$e.value;for(var He in je)if(!ne[He])ne[He]=je[He];else if(He==="parameters"){var Ne=Gi(je[He]),Ve;try{var We=function(){var ze=Ve.value,et=ne[He].some(function(St){return St.name&&St.name===ze.name||St.$ref&&St.$ref===ze.$ref||St.$$ref&&St.$$ref===ze.$$ref||St===ze});et||ne[He].push(ze)};for(Ne.s();!(Ve=Ne.n()).done;)We()}catch(Je){Ne.e(Je)}finally{Ne.f()}}}}catch(Je){Te.e(Je)}finally{Te.f()}}}};for(var w in p)var A=E(w)}}return r.$$normalized=!0,t}function _o(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.requestInterceptor,o=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:n,responseInterceptor:o,headers:{Accept:sl},credentials:s}).then(function(y){return y.body})}}function hl(){mn.refs.clearCache()}function Gu(t){var r=t.fetch,n=t.spec,o=t.url,s=t.mode,p=t.allowMetaPatches,y=p===void 0?!0:p,E=t.pathDiscriminator,w=t.modelPropertyMacro,A=t.parameterMacro,k=t.requestInterceptor,G=t.responseInterceptor,ne=t.skipNormalization,re=t.useCircularStructures,ce=t.http,xe=t.baseDoc;if(xe=xe||o,ce=r||ce||Pi,!n)return _o(ce,{requestInterceptor:k,responseInterceptor:G})(xe).then(ge);return ge(n);function ge(Ee){xe&&(mn.refs.docCache[xe]=Ee),mn.refs.fetchJSON=_o(ce,{requestInterceptor:k,responseInterceptor:G});var we=[mn.refs];return typeof A=="function"&&we.push(mn.parameters),typeof w=="function"&&we.push(mn.properties),s!=="strict"&&we.push(mn.allOf),yc({spec:Ee,context:{baseDoc:xe},plugins:we,allowMetaPatches:y,pathDiscriminator:E,parameterMacro:A,modelPropertyMacro:w,useCircularStructures:re}).then(ne?function(){var Te=ks(ar().mark(function $e(je){return ar().wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return Ne.abrupt("return",je);case 1:case"end":return Ne.stop()}},$e)}));return function($e){return Te.apply(this,arguments)}}():Zo)}}var io=a(27361),Sa=a.n(io);function mc(t,r){return qo.apply(this,arguments)}function qo(){return qo=ks(ar().mark(function t(r,n){var o,s,p,y,E,w,A,k,G,ne,re,ce,xe=arguments;return ar().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return o=xe.length>2&&xe[2]!==void 0?xe[2]:{},s=o.returnEntireTree,p=o.baseDoc,y=o.requestInterceptor,E=o.responseInterceptor,w=o.parameterMacro,A=o.modelPropertyMacro,k=o.useCircularStructures,G={pathDiscriminator:n,baseDoc:p,requestInterceptor:y,responseInterceptor:E,parameterMacro:w,modelPropertyMacro:A,useCircularStructures:k},ne=Zo({spec:r}),re=ne.spec,Ee.next=6,Gu(cr(cr({},G),{},{spec:re,allowMetaPatches:!0,skipNormalization:!0}));case 6:return ce=Ee.sent,!s&&Array.isArray(n)&&n.length&&(ce.spec=Sa()(ce.spec,n)||null),Ee.abrupt("return",ce);case 9:case"end":return Ee.stop()}},t)})),qo.apply(this,arguments)}var es=function(){return null},xc=function(r){return Array.isArray(r)?r:[r]},ts={mapTagOperations:wc,makeExecute:ao};function ao(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var n=r.pathName,o=r.method,s=r.operationId;return function(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(cr(cr({spec:t.spec},Eo()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:n,method:o,parameters:p,operationId:s},y))}}}function bc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=ts.makeExecute(t),n=ts.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),o={};for(var s in n){o[s]={operations:{}};for(var p in n[s])o[s].operations[p]={execute:n[s][p]}}return{apis:o}}function $u(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=ts.makeExecute(t);return{apis:ts.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function wc(t){var r=t.spec,n=t.cb,o=n===void 0?es:n,s=t.defaultTag,p=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,E={},w={};return ia(r,function(A){var k=A.pathName,G=A.method,ne=A.operation,re=ne.tags?xc(ne.tags):[p];re.forEach(function(ce){if(typeof ce=="string"){w[ce]=w[ce]||{};var xe=w[ce],ge=hi(ne,k,G,{v2OperationIdCompatibilityMode:y}),Ee=o({spec:r,pathName:k,method:G,operation:ne,operationId:ge});if(E[ge]){var we;E[ge]+=1,xe[Ct()(we="".concat(ge)).call(we,E[ge])]=Ee}else if(typeof xe[ge]!="undefined"){var Te,$e,je=E[ge]||1;E[ge]=je+1,xe[Ct()(Te="".concat(ge)).call(Te,E[ge])]=Ee;var He=xe[ge];delete xe[ge],xe[Ct()($e="".concat(ge)).call($e,je)]=He}else xe[ge]=Ee}})}),w}var rs=a(95683);function Ku(t,r){if(t==null)return{};var n={},o=As(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(rs(r).call(r,s)>=0)&&(n[s]=t[s]);return n}function Sc(t,r){if(t==null)return{};var n=Ku(t,r),o,s;if(Vi){var p=Vi(t);for(s=0;s<p.length;s++)o=p[s],!(rs(r).call(r,o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(n[o]=t[o]))}return n}var Yu=a(68630),vl=a.n(Yu),Ac=a(1469),gl=a.n(Ac),oo=a(76489);const so={body:Ec,header:Cc,query:Tc,path:Oc,formData:Ju};function Ec(t){var r=t.req,n=t.value;r.body=n}function Ju(t){var r=t.req,n=t.value,o=t.parameter;(n||o.allowEmptyValue)&&(r.form=r.form||{},r.form[o.name]={value:n,allowEmptyValue:o.allowEmptyValue,collectionFormat:o.collectionFormat})}function Cc(t){var r=t.req,n=t.parameter,o=t.value;r.headers=r.headers||{},typeof o!="undefined"&&(r.headers[n.name]=o)}function Oc(t){var r=t.req,n=t.value,o=t.parameter;r.url=r.url.split("{".concat(o.name,"}")).join(encodeURIComponent(n))}function Tc(t){var r=t.req,n=t.value,o=t.parameter;if(r.query=r.query||{},n===!1&&o.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(o.type)>-1&&(n="0"),n)r.query[o.name]={collectionFormat:o.collectionFormat,value:n};else if(o.allowEmptyValue&&n!==void 0){var s=o.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function ns(t,r){return Ao()(r).call(r,"application/json")?typeof t=="string"?t:La()(t):t.toString()}function Xu(t){var r=t.req,n=t.value,o=t.parameter,s=o.name,p=o.style,y=o.explode,E=o.content;if(E){var w=Qt()(E)[0];r.url=r.url.split("{".concat(s,"}")).join(Rr(ns(n,w),{escape:!0}));return}var A=qn({key:o.name,value:n,style:p||"simple",explode:y||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(A)}function Pc(t){var r=t.req,n=t.value,o=t.parameter;if(r.query=r.query||{},o.content){var s=Qt()(o.content)[0];r.query[o.name]=ns(n,s);return}if(n===!1&&(n="false"),n===0&&(n="0"),n)r.query[o.name]={value:n,serializationOption:Eo()(o,["style","explode","allowReserved"])};else if(o.allowEmptyValue&&n!==void 0){var p=o.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var Ic=["accept","authorization","content-type"];function Qu(t){var r=t.req,n=t.parameter,o=t.value;if(r.headers=r.headers||{},!(Ic.indexOf(n.name.toLowerCase())>-1)){if(n.content){var s=Qt()(n.content)[0];r.headers[n.name]=ns(o,s);return}typeof o!="undefined"&&(r.headers[n.name]=qn({key:n.name,value:o,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function yl(t){var r=t.req,n=t.parameter,o=t.value;r.headers=r.headers||{};var s=ir(o);if(n.content){var p,y=Qt()(n.content)[0];r.headers.Cookie=Ct()(p="".concat(n.name,"=")).call(p,ns(o,y));return}if(s!=="undefined"){var E=s==="object"&&!Array.isArray(o)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=E+qn({key:n.name,value:o,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var Zu=a(50706),_u=a.n(Zu);function qu(t,r){var n=t.operation,o=t.requestBody,s=t.securities,p=t.spec,y=t.attachContentTypeForEmptyPayload,E=t.requestContentType;r=Aa({request:r,securities:s,operation:n,spec:p});var w=n.requestBody||{},A=Qt()(w.content||{}),k=E&&A.indexOf(E)>-1;if(o||y){if(E&&k)r.headers["Content-Type"]=E;else if(!E){var G=A[0];G&&(r.headers["Content-Type"]=G,E=G)}}else E&&k&&(r.headers["Content-Type"]=E);if(!t.responseContentType&&n.responses){var ne,re=sn()(ne=Da()(n.responses)).call(ne,function(xe){var ge=rn(xe,2),Ee=ge[0],we=ge[1],Te=parseInt(Ee,10);return Te>=200&&Te<300&&vl()(we.content)}).reduce(function(xe,ge){var Ee=rn(ge,2),we=Ee[1];return Ct()(xe).call(xe,Qt()(we.content))},[]);re.length>0&&(r.headers.accept=re.join(", "))}if(o)if(E){if(A.indexOf(E)>-1)if(E==="application/x-www-form-urlencoded"||E==="multipart/form-data")if(ir(o)==="object"){var ce=(w.content[E]||{}).encoding||{};r.form={},Qt()(o).forEach(function(xe){r.form[xe]={value:o[xe],encoding:ce[xe]||{}}})}else r.form=o;else r.body=o}else r.body=o;return r}function Aa(t){var r=t.request,n=t.securities,o=n===void 0?{}:n,s=t.operation,p=s===void 0?{}:s,y=t.spec,E=Wi()({},r),w=o.authorized,A=w===void 0?{}:w,k=p.security||y.security||[],G=A&&!!Qt()(A).length,ne=Sa()(y,["components","securitySchemes"])||{};return E.headers=E.headers||{},E.query=E.query||{},!Qt()(o).length||!G||!k||Array.isArray(p.security)&&!p.security.length?r:(k.forEach(function(re){Qt()(re).forEach(function(ce){var xe=A[ce],ge=ne[ce];if(!!xe){var Ee=xe.value||xe,we=ge.type;if(xe){if(we==="apiKey")ge.in==="query"&&(E.query[ge.name]=Ee),ge.in==="header"&&(E.headers[ge.name]=Ee),ge.in==="cookie"&&(E.cookies[ge.name]=Ee);else if(we==="http"){if(/^basic$/i.test(ge.scheme)){var Te,$e=Ee.username||"",je=Ee.password||"",He=_u()(Ct()(Te="".concat($e,":")).call(Te,je));E.headers.Authorization="Basic ".concat(He)}/^bearer$/i.test(ge.scheme)&&(E.headers.Authorization="Bearer ".concat(Ee))}else if(we==="oauth2"||we==="openIdConnect"){var Ne,Ve=xe.token||{},We=ge["x-tokenName"]||"access_token",Je=Ve[We],ze=Ve.token_type;(!ze||ze.toLowerCase()==="bearer")&&(ze="Bearer"),E.headers.Authorization=Ct()(Ne="".concat(ze," ")).call(Ne,Je)}}}})}),E)}function ef(t,r){var n=t.spec,o=t.operation,s=t.securities,p=t.requestContentType,y=t.responseContentType,E=t.attachContentTypeForEmptyPayload;if(r=is({request:r,securities:s,operation:o,spec:n}),r.body||r.form||E){var w,A;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(o.consumes)){var k=rn(o.consumes,1);r.headers["Content-Type"]=k[0]}else if(Array.isArray(n.consumes)){var G=rn(n.consumes,1);r.headers["Content-Type"]=G[0]}else o.parameters&&sn()(w=o.parameters).call(w,function(ge){return ge.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":o.parameters&&sn()(A=o.parameters).call(A,function(ge){return ge.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var ne,re,ce=o.parameters&&sn()(ne=o.parameters).call(ne,function(ge){return ge.in==="body"}).length>0,xe=o.parameters&&sn()(re=o.parameters).call(re,function(ge){return ge.in==="formData"}).length>0;(ce||xe)&&(r.headers["Content-Type"]=p)}return!y&&Array.isArray(o.produces)&&o.produces.length>0&&(r.headers.accept=o.produces.join(", ")),r}function is(t){var r=t.request,n=t.securities,o=n===void 0?{}:n,s=t.operation,p=s===void 0?{}:s,y=t.spec,E=Wi()({},r),w=o.authorized,A=w===void 0?{}:w,k=o.specSecurity,G=k===void 0?[]:k,ne=p.security||G,re=A&&!!Qt()(A).length,ce=y.securityDefinitions;return E.headers=E.headers||{},E.query=E.query||{},!Qt()(o).length||!re||!ne||Array.isArray(p.security)&&!p.security.length?r:(ne.forEach(function(xe){Qt()(xe).forEach(function(ge){var Ee=A[ge];if(!!Ee){var we=Ee.token,Te=Ee.value||Ee,$e=ce[ge],je=$e.type,He=$e["x-tokenName"]||"access_token",Ne=we&&we[He],Ve=we&&we.token_type;if(Ee){if(je==="apiKey"){var We=$e.in==="query"?"query":"headers";E[We]=E[We]||{},E[We][$e.name]=Te}else if(je==="basic")if(Te.header)E.headers.authorization=Te.header;else{var Je,ze=Te.username||"",et=Te.password||"";Te.base64=_u()(Ct()(Je="".concat(ze,":")).call(Je,et)),E.headers.authorization="Basic ".concat(Te.base64)}else if(je==="oauth2"&&Ne){var St;Ve=!Ve||Ve.toLowerCase()==="bearer"?"Bearer":Ve,E.headers.authorization=Ct()(St="".concat(Ve," ")).call(St,Ne)}}}})}),E)}var tf=function(r){return Array.isArray(r)?r:[]},Fc=ol("OperationNotFoundError",function(r,n,o){this.originalError=o,nn()(this,n||{})}),kc=function(r,n){return sn()(n).call(n,function(o){return o.name===r})},pr=function(r){var n={};r.forEach(function(s){n[s.in]||(n[s.in]={}),n[s.in][s.name]=s});var o=[];return Qt()(n).forEach(function(s){Qt()(n[s]).forEach(function(p){o.push(n[s][p])})}),o},Mc={buildRequest:Ea};function ml(t){var r=t.http,n=t.fetch,o=t.spec,s=t.operationId,p=t.pathName,y=t.method,E=t.parameters,w=t.securities,A=Sc(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),k=r||n||Pi;p&&y&&!s&&(s=pl(p,y));var G=Mc.buildRequest(cr({spec:o,operationId:s,parameters:E,securities:w,http:k},A));return G.body&&(vl()(G.body)||gl()(G.body))&&(G.body=La()(G.body)),k(G)}function Ea(t){var r,n,o=t.spec,s=t.operationId,p=t.responseContentType,y=t.scheme,E=t.requestInterceptor,w=t.responseInterceptor,A=t.contextUrl,k=t.userFetch,G=t.server,ne=t.serverVariables,re=t.http,ce=t.parameters,xe=t.parameterBuilders,ge=Wu(o);xe||(ge?xe=x:xe=so);var Ee=re&&re.withCredentials?"include":"same-origin",we={url:"",credentials:Ee,headers:{},cookies:{}};E&&(we.requestInterceptor=E),w&&(we.responseInterceptor=w),k&&(we.userFetch=k);var Te=zu(o,s);if(!Te)throw new Fc("Operation ".concat(s," not found"));var $e=Te.operation,je=$e===void 0?{}:$e,He=Te.method,Ne=Te.pathName;if(we.url+=lo({spec:o,scheme:y,contextUrl:A,server:G,serverVariables:ne,pathName:Ne,method:He}),!s)return delete we.cookies,we;we.url+=Ne,we.method="".concat(He).toUpperCase(),ce=ce||{};var Ve=o.paths[Ne]||{};p&&(we.headers.accept=p);var We=pr(Ct()(r=Ct()(n=[]).call(n,tf(je.parameters))).call(r,tf(Ve.parameters)));We.forEach(function(et){var St=xe[et.in],Nt;if(et.in==="body"&&et.schema&&et.schema.properties&&(Nt=ce),Nt=et&&et.name&&ce[et.name],typeof Nt=="undefined"){var zt;Nt=et&&et.name&&ce[Ct()(zt="".concat(et.in,".")).call(zt,et.name)]}else if(kc(et.name,We).length>1){var or;console.warn(Ct()(or="Parameter '".concat(et.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(or,et.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Nt!==null){if(typeof et.default!="undefined"&&typeof Nt=="undefined"&&(Nt=et.default),typeof Nt=="undefined"&&et.required&&!et.allowEmptyValue)throw new Error("Required parameter ".concat(et.name," is not provided"));if(ge&&et.schema&&et.schema.type==="object"&&typeof Nt=="string")try{Nt=JSON.parse(Nt)}catch(Mr){throw new Error("Could not parse object parameter value string as JSON")}St&&St({req:we,parameter:et,value:Nt,operation:je,spec:o})}});var Je=cr(cr({},t),{},{operation:je});if(ge?we=qu(Je,we):we=ef(Je,we),we.cookies&&Qt()(we.cookies).length){var ze=Qt()(we.cookies).reduce(function(et,St){var Nt=we.cookies[St],zt=et?"&":"",or=oo.serialize(St,Nt);return et+zt+or},"");we.headers.Cookie=ze}return we.cookies&&delete we.cookies,du(we),we}var En=function(r){return r?r.replace(/\W/g,""):null};function lo(t){var r=Wu(t.spec);return r?xl(t):af(t)}function xl(t){var r=t.spec,n=t.pathName,o=t.method,s=t.server,p=t.contextUrl,y=t.serverVariables,E=y===void 0?{}:y,w=Sa()(r,["paths",n,(o||"").toLowerCase(),"servers"])||Sa()(r,["paths",n,"servers"])||Sa()(r,["servers"]),A="",k=null;if(s&&w&&w.length){var G=qt()(w).call(w,function(ce){return ce.url});G.indexOf(s)>-1&&(A=s,k=w[G.indexOf(s)])}if(!A&&w&&w.length){A=w[0].url;var ne=rn(w,1);k=ne[0]}if(A.indexOf("{")>-1){var re=nf(A);re.forEach(function(ce){if(k.variables&&k.variables[ce]){var xe=k.variables[ce],ge=E[ce]||xe.default,Ee=new RegExp("{".concat(ce,"}"),"g");A=A.replace(Ee,ge)}})}return rf(A,p)}function rf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=t&&r?Oi.parse(Oi.resolve(r,t)):Oi.parse(t),o=Oi.parse(r),s=En(n.protocol)||En(o.protocol)||"",p=n.host||o.host,y=n.pathname||"",E;if(s&&p){var w;E=Ct()(w="".concat(s,"://")).call(w,p+y)}else E=y;return E[E.length-1]==="/"?Pn()(E).call(E,0,-1):E}function nf(t){for(var r=[],n=/{([^}]+)}/g,o;o=n.exec(t);)r.push(o[1]);return r}function af(t){var r=t.spec,n=t.scheme,o=t.contextUrl,s=o===void 0?"":o,p=Oi.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,E=n||y||En(p.protocol)||"http",w=r.host||p.host||"",A=r.basePath||"",k;if(E&&w){var G;k=Ct()(G="".concat(E,"://")).call(G,w+A)}else k=A;return k[k.length-1]==="/"?Pn()(k).call(k,0,-1):k}xr.http=Pi,xr.makeHttp=Js.bind(null,xr.http),xr.resolve=Gu,xr.resolveSubtree=mc,xr.execute=ml,xr.serializeRes=fu,xr.serializeHeaders=Ks,xr.clearCache=hl,xr.makeApisTagOperation=$u,xr.buildRequest=Ea,xr.helpers={opId:hi},xr.getBaseUrl=lo;function xr(t){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?n.url=t:n=t,!(this instanceof xr))return new xr(n);Wi()(this,n);var o=this.resolve().then(function(){return r.disableInterfaces||Wi()(r,xr.makeApisTagOperation(r)),r});return o.client=this,o}xr.prototype={http:Pi,execute:function(r){return this.applyDefaults(),xr.execute(cr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return xr.resolve(cr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},n)).then(function(o){return r.originalSpec=r.spec,r.spec=o.spec,r.errors=o.errors,r})}},xr.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&Hi()(n,"http")){var o=Oi.parse(n);r.host||(r.host=o.host),r.schemes||(r.schemes=[o.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Rc=xr.helpers;const Lc=xr;var Gt=a(25446),bl=a(11429),Wt=a(76671),of=a(7930),uo=a(51027),Cn=a(78722),sf=a(17673),Fn=a(64776),Dc=Object.defineProperty,Sr=Object.defineProperties,Nc=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,Bc=Object.prototype.hasOwnProperty,as=Object.prototype.propertyIsEnumerable,e=(t,r,n)=>r in t?Dc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,i=(t,r)=>{for(var n in r||(r={}))Bc.call(r,n)&&e(t,n,r[n]);if(lf)for(var n of lf(r))as.call(r,n)&&e(t,n,r[n]);return t},u=(t,r)=>Sr(t,Nc(r)),l=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});const f="/oauth2-redirect.html";class m{static authorizeImplicit({authorizationUrl:r,clientId:n,scopes:o,extraParams:s={},routingBasePath:p,redirectUri:y,successCallback:E,errorCallback:w}){const A=(0,Fn.p8)({date:new Date().toString()}),k=new URL(r),G=p==="/"?"":p,ne=`${window.location.origin}${G}${f}`;k.searchParams.set("client_id",n),k.searchParams.set("redirect_uri",y||ne),k.searchParams.set("response_type","token"),k.searchParams.set("state",A),Array.isArray(o)&&k.searchParams.set("scope",o.join(" "));for(const re in s)k.searchParams.set(re,s[re]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:n,scopes:o},state:A,successCallback:re=>{E(re),m.clearRedirectData("implicit")},errorCallback:re=>{w(re),m.clearRedirectData("implicit")}},window.open(k.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:n,clientId:o,clientSecret:s,codeVerifier:p,codeChallenge:y,scopes:E,extraParams:w={},routingBasePath:A,redirectUri:k,successCallback:G,errorCallback:ne}){const re=new URL(r),ce=A==="/"?"":A,xe=`${window.location.origin}${ce}${f}`,ge=(0,Fn.p8)({date:new Date().toString()});re.searchParams.set("client_id",o),re.searchParams.set("redirect_uri",k||xe),re.searchParams.set("response_type","code"),re.searchParams.set("state",ge),Array.isArray(E)&&re.searchParams.set("scope",E.join(" ")),y&&(re.searchParams.set("code_challenge",y),re.searchParams.set("code_challenge_method","S256"));for(const Ee in w)re.searchParams.set(Ee,w[Ee]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:o,scopes:E},state:ge,successCallback:Ee=>l(this,[Ee],function*({auth_code:we}){try{const Te=yield fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:sf.stringify(i(u(i({client_id:o,client_secret:s},p&&{code_verifier:p}),{code:we,grant_type:"authorization_code",redirect_uri:k||xe}),w))});yield U(Te,G,ne)}catch(Te){ne(Te)}m.clearRedirectData("authorizationCode")}),errorCallback:Ee=>{ne(Ee),m.clearRedirectData("authorizationCode")}},window.open(re.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return l(this,arguments,function*({tokenUrl:n,clientId:o,clientSecret:s,scopes:p=[],extraParams:y={},successCallback:E,errorCallback:w}){try{const A=yield fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},body:sf.stringify(i({client_id:o,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},y))});yield U(A,E,w)}catch(A){w(A)}})}}const F=new m;function U(t,r,n){return l(this,null,function*(){if(t.ok){const o=yield t.json();r(o)}else n(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function H(t){return l(this,null,function*(){return(0,Fn.rS)(yield(0,Fn.JQ)(t))})}var Z=a(68929),me;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(me||(me={}));var Ce;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(Ce||(Ce={}));var De=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});const ke=Object.values(Ce),Ye=["application/octet-stream","application/pdf","application/gzip","application/zip"],tt=["image/","audio/","video/"];function ot(t){if(tt.some(r=>t.startsWith(r)))return t}function ct(t){return Ye.includes(t)?!0:tt.some(r=>t.startsWith(r))}function gt(t){const r=t.type==="array"?t.items:t;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",o=r.format||r.contentEncoding||(ct(n)?"binary":"");return r.type===me.STRING&&ke.includes(o)}function dt(t,r){if(!t||!t.type||t.type==="any")return ct(r);const n=t.format||t.contentEncoding||"";return t.type===me.STRING&&ke.includes(n)}function xt(t){return new Promise((r,n)=>{const o=new FileReader;o.onload=()=>{const p=o.result.replace(/data:.*\/.*;base64,/g,"");r(p)},o.onerror=()=>n(o.error),o.readAsDataURL(t)})}function Ft({format:t,contentEncoding:r,contentMediaType:n}){return[t,r,n].includes(Ce.BASE64)}function It(t,r){return De(this,null,function*(){const n=Object.values(t);let o=n.length===1?n[0]:n;return r.type===me.STRING&&Ft(r)?o=yield xt(n[0]):r.type===me.ARRAY&&r.items&&(Ft(r.items)?o=yield Promise.all(n.map(p=>De(this,null,function*(){return yield xt(p)}))):o=n),o})}var at=a(39713),Tt=a(58804);const Dr=t=>{(0,d.useEffect)(()=>{t()},[])},br=t=>{useEffect(()=>()=>{t()},[])};var xn=a(21096),un=Object.defineProperty,Ir=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,Fr=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,vr=(t,r,n)=>r in t?un(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,Yr=(t,r)=>{for(var n in r||(r={}))kr.call(r,n)&&vr(t,n,r[n]);if(Fr)for(var n of Fr(r))Ar.call(r,n)&&vr(t,n,r[n]);return t},Ca=(t,r)=>Ir(t,fn(r)),Li=(t,r)=>{var n={};for(var o in t)kr.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&Fr)for(var o of Fr(t))r.indexOf(o)<0&&Ar.call(t,o)&&(n[o]=t[o]);return n};const Jr=t=>Tt.css`
|
|
92
|
+
*/var Zs=new WeakMap,_s=function(){function t(r){this.observers=new Map,this.obj=r}return t}(),mu=function(){function t(r,i){this.callback=r,this.observer=i}return t}();function qs(t){return Zs.get(t)}function tc(t,r){return t.observers.get(r)}function el(t,r){t.observers.delete(r.callback)}function tl(t,r){r.unobserve()}function xu(t,r){var i=[],o,s=qs(t);if(!s)s=new _s(t),Zs.set(t,s);else{var p=tc(s,r);o=p&&p.observer}if(o)return o;if(o={},s.value=mn(t),r){o.callback=r,o.next=null;var y=function(){Do(o)},A=function(){clearTimeout(o.next),o.next=setTimeout(y)};typeof window!="undefined"&&(window.addEventListener("mouseup",A),window.addEventListener("keyup",A),window.addEventListener("mousedown",A),window.addEventListener("keydown",A),window.addEventListener("change",A))}return o.patches=i,o.object=t,o.unobserve=function(){Do(o),clearTimeout(o.next),el(s,o),typeof window!="undefined"&&(window.removeEventListener("mouseup",A),window.removeEventListener("keyup",A),window.removeEventListener("mousedown",A),window.removeEventListener("keydown",A),window.removeEventListener("change",A))},s.observers.set(r,new mu(r,o)),o}function Do(t,r){r===void 0&&(r=!1);var i=Zs.get(t.object);Ya(i.value,t.object,t.patches,"",r),t.patches.length&&Gn(i.value,t.patches);var o=t.patches;return o.length>0&&(t.patches=[],t.callback&&t.callback(o)),o}function Ya(t,r,i,o,s){if(r!==t){typeof r.toJSON=="function"&&(r=r.toJSON());for(var p=Ro(r),y=Ro(t),A=!1,w=!1,E=y.length-1;E>=0;E--){var F=y[E],G=t[F];if(di(r,F)&&!(r[F]===void 0&&G!==void 0&&Array.isArray(r)===!1)){var te=r[F];typeof G=="object"&&G!=null&&typeof te=="object"&&te!=null?Ya(G,te,i,o+"/"+pi(F),s):G!==te&&(A=!0,s&&i.push({op:"test",path:o+"/"+pi(F),value:mn(G)}),i.push({op:"replace",path:o+"/"+pi(F),value:mn(te)}))}else Array.isArray(t)===Array.isArray(r)?(s&&i.push({op:"test",path:o+"/"+pi(F),value:mn(G)}),i.push({op:"remove",path:o+"/"+pi(F)}),w=!0):(s&&i.push({op:"test",path:o,value:t}),i.push({op:"replace",path:o,value:r}),A=!0)}if(!(!w&&p.length==y.length))for(var E=0;E<p.length;E++){var F=p[E];!di(t,F)&&r[F]!==void 0&&i.push({op:"add",path:o+"/"+pi(F),value:mn(r[F])})}}}function bu(t,r,i){i===void 0&&(i=!1);var o=[];return Ya(t,r,o,"",i),o}const No=Object.assign({},c,v,{JsonPatchError:gu,deepClone:mn,escapePathComponent:pi,unescapePathComponent:Mi});var rc=a(31312),Bo=a.n(rc),hi=a(50361),wu=a.n(hi);const rr={add:er,replace:Cn,remove:Li,merge:Di,mergeDeep:Au,context:rl,getIn:Ni,applyPatch:Su,parentPathMatch:nl,flatten:Ja,fullyNormalizeArray:Cu,normalizeArray:il,isPromise:Ou,forEachNew:Eu,forEachNewPrimitive:nc,isJsonPatch:Iu,isContextPatch:ac,isPatch:Vo,isMutation:Qa,isAdditiveMutation:Za,isGenerator:ic,isFunction:Tu,isObject:ei,isError:Pu};function Su(t,r,i){if(i=i||{},r=cr(cr({},r),{},{path:r.path&&xn(r.path)}),r.op==="merge"){var o=Wo(t,r.path);nn()(o,r.value),Gn(t,[Cn(r.path,o)])}else if(r.op==="mergeDeep"){var s=Wo(t,r.path);for(var p in r.value){var y=r.value[p],A=Array.isArray(y);if(A){var w=s[p]||[];s[p]=Ct()(w).call(w,y)}else if(ei(y)&&!A){var E=cr({},s[p]);for(var F in y)if(Object.prototype.hasOwnProperty.call(E,F)){E=Bo()(wu()(E),y);break}else nn()(E,Es({},F,y[F]));s[p]=E}else s[p]=y}}else if(r.op==="add"&&r.path===""&&ei(r.value)){var G=Qt()(r.value).reduce(function(ge,Ae){return ge.push({op:"add",path:"/".concat(xn(Ae)),value:r.value[Ae]}),ge},[]);Gn(t,G)}else if(r.op==="replace"&&r.path===""){var te=r,ne=te.value;i.allowMetaPatches&&r.meta&&Za(r)&&(Array.isArray(r.value)||ei(r.value))&&(ne=cr(cr({},ne),r.meta)),t=ne}else if(Gn(t,[r]),i.allowMetaPatches&&r.meta&&Za(r)&&(Array.isArray(r.value)||ei(r.value))){var oe=Wo(t,r.path),ye=cr(cr({},oe),r.meta);Gn(t,[Cn(r.path,ye)])}return t}function xn(t){return Array.isArray(t)?t.length<1?"":"/".concat(qt()(t).call(t,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):t}function er(t,r){return{op:"add",path:t,value:r}}function Cn(t,r,i){return{op:"replace",path:t,value:r,meta:i}}function Li(t){return{op:"remove",path:t}}function Di(t,r){return{type:"mutation",op:"merge",path:t,value:r}}function Au(t,r){return{type:"mutation",op:"mergeDeep",path:t,value:r}}function rl(t,r){return{type:"context",path:t,value:r}}function Eu(t,r){try{return Uo(t,jo,r)}catch(i){return i}}function nc(t,r){try{return Uo(t,ra,r)}catch(i){return i}}function Uo(t,r,i){var o,s=qt()(o=ln()(t).call(t,Za)).call(o,function(A){return r(A.value,i,A.path)})||[],p=Ja(s),y=Xa(p);return y}function ra(t,r,i){if(i=i||[],Array.isArray(t))return qt()(t).call(t,function(s,p){return ra(s,r,Ct()(i).call(i,p))});if(ei(t)){var o;return qt()(o=Qt()(t)).call(o,function(s){return ra(t[s],r,Ct()(i).call(i,s))})}return r(t,i[i.length-1],i)}function jo(t,r,i){i=i||[];var o=[];if(i.length>0){var s=r(t,i[i.length-1],i);s&&(o=Ct()(o).call(o,s))}if(Array.isArray(t)){var p=qt()(t).call(t,function(w,E){return jo(w,r,Ct()(i).call(i,E))});p&&(o=Ct()(o).call(o,p))}else if(ei(t)){var y,A=qt()(y=Qt()(t)).call(y,function(w){return jo(t[w],r,Ct()(i).call(i,w))});A&&(o=Ct()(o).call(o,A))}return o=Ja(o),o}function nl(t,r){if(!Array.isArray(r))return!1;for(var i=0,o=r.length;i<o;i+=1)if(r[i]!==t[i])return!1;return!0}function Ni(t,r){return r.reduce(function(i,o){return typeof o!="undefined"&&i?i[o]:i},t)}function Cu(t){return Xa(Ja(il(t)))}function il(t){return Array.isArray(t)?t:[t]}function Ja(t){var r;return Ct()(r=[]).apply(r,In(qt()(t).call(t,function(i){return Array.isArray(i)?Ja(i):i})))}function Xa(t){return ln()(t).call(t,function(r){return typeof r!="undefined"})}function ei(t){return t&&ir(t)==="object"}function Ou(t){return ei(t)&&Tu(t.then)}function Tu(t){return t&&typeof t=="function"}function Pu(t){return t instanceof Error}function Iu(t){if(Vo(t)){var r=t.op;return r==="add"||r==="remove"||r==="replace"}return!1}function ic(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function Qa(t){return Iu(t)||Vo(t)&&t.type==="mutation"}function Za(t){return Qa(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function ac(t){return Vo(t)&&t.type==="context"}function Vo(t){return t&&ir(t)==="object"}function Wo(t,r){try{return Rr(t,r)}catch(i){return console.error(i),{}}}var ha=a(52424),al=a.n(ha),Ho=a(54098),Fu=a(9779),zo=a.n(Fu);function ol(t,r){function i(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var o=arguments.length,s=new Array(o),p=0;p<o;p++)s[p]=arguments[p];this.message=s[0],r&&r.apply(this,s)}return i.prototype=new Error,i.prototype.name=t,i.prototype.constructor=i,i}var oc=a(13692),ku=a.n(oc),Zr=a(47037),Go=a.n(Zr),Mu=["properties"],Ru=["properties"],Lu=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],va=["schema/example","items/example"];function _a(t){var r=t[t.length-1],i=t[t.length-2],o=t.join("/");return Mu.indexOf(r)>-1&&Ru.indexOf(i)===-1||Lu.indexOf(o)>-1||va.some(function(s){return o.indexOf(s)>-1})}function Du(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=i.specmap,s=i.getBaseUrlForNodePath,p=s===void 0?function(E){var F;return o.getContext(Ct()(F=[]).call(F,In(r),In(E))).baseDoc}:s,y=i.targetKeys,A=y===void 0?["$ref","$$ref"]:y,w=[];return ku()(t).forEach(function(){if(wo()(A).call(A,this.key)&&Go()(this.node)){var F=this.path,G=Ct()(r).call(r,this.path),te=$o(this.node,p(F));w.push(o.replace(G,te))}}),w}function $o(t,r){var i,o=t.split("#"),s=rn(o,2),p=s[0],y=s[1],A=Ii.resolve(p||"",r||"");return y?Ct()(i="".concat(A,"#")).call(i,y):A}var sl="application/json, application/yaml",ga=new RegExp("^([a-z]+://|//)","i"),na=ol("JSONRefError",function(r,i,o){this.originalError=o,nn()(this,i||{})}),kn={},ll=new(al()),qa=[function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example"},function(t){return t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example"},function(t){return t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"}],sc=function(r){return qa.some(function(i){return i(r)})},ya={key:"$ref",plugin:function(r,i,o,s){var p=s.getInstance(),y=Fn()(o).call(o,0,-1);if(!(_a(y)||sc(y))){var A=s.getContext(o),w=A.baseDoc;if(typeof r!="string")return new na("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:w,fullPath:o});var E=ma(r),F=E[0],G=E[1]||"",te;try{te=w||F?fl(F,w):null}catch(me){return ia(me,{pointer:G,$ref:r,basePath:te,fullPath:o})}var ne,oe;if(fc(G,te,y,s)&&!p.useCircularStructures){var ye=$o(r,te);return r===ye?null:rr.replace(o,ye)}if(te==null?(oe=ti(G),ne=s.get(oe),typeof ne=="undefined"&&(ne=new na("Could not resolve reference: ".concat(r),{pointer:G,$ref:r,baseDoc:w,fullPath:o}))):(ne=xa(te,G),ne.__value!=null?ne=ne.__value:ne=ne.catch(function(me){throw ia(me,{pointer:G,$ref:r,baseDoc:w,fullPath:o})})),ne instanceof Error)return[rr.remove(o),ne];var ge=$o(r,te),Ae=rr.replace(y,ne,{$$ref:ge});if(te&&te!==w)return[Ae,rr.context(y,{baseDoc:te})];try{if(!cc(s.state,Ae)||p.useCircularStructures)return Ae}catch(me){return null}}}},ul=nn()(ya,{docCache:kn,absoluteify:fl,clearCache:eo,JSONRefError:na,wrapError:ia,getDoc:cl,split:ma,extractFromDoc:xa,fetchJSON:lc,extract:Ko,jsonPointerToArray:ti,unescapeJsonPointerToken:aa});const Nu=ul;function fl(t,r){if(!ga.test(t)){if(!r){var i;throw new na(Ct()(i="Tried to resolve a relative URL, without having a basePath. path: '".concat(t,"' basePath: '")).call(i,r,"'"))}return Ii.resolve(r,t)}return t}function ia(t,r){var i;if(t&&t.response&&t.response.body){var o;i=Ct()(o="".concat(t.response.body.code," ")).call(o,t.response.body.message)}else i=t.message;return new na("Could not resolve reference: ".concat(i),r,t)}function ma(t){return(t+"").split("#")}function xa(t,r){var i=kn[t];if(i&&!rr.isPromise(i))try{var o=Ko(r,i);return nn()(_i().resolve(o),{__value:o})}catch(s){return _i().reject(s)}return cl(t).then(function(s){return Ko(r,s)})}function eo(t){typeof t!="undefined"?delete kn[t]:Qt()(kn).forEach(function(r){delete kn[r]})}function cl(t){var r=kn[t];return r?rr.isPromise(r)?r:_i().resolve(r):(kn[t]=ul.fetchJSON(t).then(function(i){return kn[t]=i,i}),kn[t])}function lc(t){return(0,Ho.fetch)(t,{headers:{Accept:sl},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Ls().safeLoad(r)})}function Ko(t,r){var i=ti(t);if(i.length<1)return r;var o=rr.getIn(r,i);if(typeof o=="undefined")throw new na("Could not resolve pointer: ".concat(t," does not exist in document"),{pointer:t});return o}function ti(t){var r;if(typeof t!="string")throw new TypeError("Expected a string, got a ".concat(ir(t)));return t[0]==="/"&&(t=t.substr(1)),t===""?[]:qt()(r=t.split("/")).call(r,aa)}function aa(t){return typeof t!="string"?t:zo().unescape(t.replace(/~1/g,"/").replace(/~0/g,"~"))}function ba(t){return zo().escape(t.replace(/~/g,"~0").replace(/\//g,"~1"))}function uc(t){return t.length===0?"":"/".concat(qt()(t).call(t,ba).join("/"))}var Bu=function(r){return!r||r==="/"||r==="#"};function dl(t,r){if(Bu(r))return!0;var i=t.charAt(r.length),o=Fn()(r).call(r,-1);return t.indexOf(r)===0&&(!i||i==="/"||i==="#")&&o!=="#"}function fc(t,r,i,o){var s,p,y=ll.get(o);y||(y={},ll.set(o,y));var A=uc(i),w=Ct()(s="".concat(r||"<specmap-base>","#")).call(s,t),E=A.replace(/allOf\/\d+\/?/g,""),F=o.contextTree.get([]).baseDoc;if(r==F&&dl(E,t))return!0;var G="",te=i.some(function(ne){var oe;return G=Ct()(oe="".concat(G,"/")).call(oe,ba(ne)),y[G]&&y[G].some(function(ye){return dl(ye,w)||dl(w,ye)})});if(te)return!0;y[E]=Ct()(p=y[E]||[]).call(p,w)}function cc(t,r){var i=[t];return r.path.reduce(function(s,p){return i.push(s[p]),s[p]},t),o(r.value);function o(s){return rr.isObject(s)&&(i.indexOf(s)>=0||Qt()(s).some(function(p){return o(s[p])}))}}var un=a(41609),Uu=a.n(un);const dc={key:"allOf",plugin:function(r,i,o,s,p){if(!(p.meta&&p.meta.$$ref)){var y=Fn()(o).call(o,0,-1);if(!_a(y)){if(!Array.isArray(r)){var A=new TypeError("allOf must be an array");return A.fullPath=o,A}var w=!1,E=p.value;if(y.forEach(function(te){!E||(E=E[te])}),E=cr({},E),!Uu()(E)){delete E.allOf;var F=[];if(F.push(s.replace(y,{})),r.forEach(function(te,ne){if(!s.isObject(te)){if(w)return null;w=!0;var oe=new TypeError("Elements in allOf must be objects");return oe.fullPath=o,F.push(oe)}F.push(s.mergeDeep(y,te));var ye=Fn()(o).call(o,0,-1),ge=Du(te,ye,{getBaseUrlForNodePath:function(me){var Te;return s.getContext(Ct()(Te=[]).call(Te,In(o),[ne],In(me))).baseDoc},specmap:s});F.push.apply(F,In(ge))}),F.push(s.mergeDeep(y,E)),!E.$$ref){var G;F.push(s.remove(Ct()(G=[]).call(G,y,"$$ref")))}return F}}}}},pc={key:"parameters",plugin:function(r,i,o,s){if(Array.isArray(r)&&r.length){var p=nn()([],r),y=Fn()(o).call(o,0,-1),A=cr({},rr.getIn(s.spec,y));return r.forEach(function(w,E){try{p[E].default=s.parameterMacro(A,w)}catch(G){var F=new Error(G);return F.fullPath=o,F}}),rr.replace(o,p)}return rr.replace(o,r)}},hc={key:"properties",plugin:function(r,i,o,s){var p=cr({},r);for(var y in r)try{p[y].default=s.modelPropertyMacro(p[y])}catch(E){var A=new Error(E);return A.fullPath=o,A}var w=rr.replace(o,p);return w}};var ju=function(){function t(r){Ao(this,t),this.root=Yo(r||{})}return Bs(t,[{key:"set",value:function(i,o){var s=this.getParent(i,!0);if(!s){to(this.root,o,null);return}var p=i[i.length-1],y=s.children;if(y[p]){to(y[p],o,s);return}y[p]=Yo(o,s)}},{key:"get",value:function(i){if(i=i||[],i.length<1)return this.root.value;for(var o=this.root,s,p,y=0;y<i.length&&(p=i[y],s=o.children,!!s[p]);y+=1)o=s[p];return o&&o.protoValue}},{key:"getParent",value:function(i,o){return!i||i.length<1?null:i.length<2?this.root:Fn()(i).call(i,0,-1).reduce(function(s,p){if(!s)return s;var y=s.children;return!y[p]&&o&&(y[p]=Yo(null,s)),y[p]},this.root)}}]),t}();function Yo(t,r){return to({children:{}},t,r)}function to(t,r,i){return t.value=r||{},t.protoValue=i?cr(cr({},i.protoValue),t.value):t.value,Qt()(t.children).forEach(function(o){var s=t.children[o];t.children[o]=to(s,s.value,t)}),t}var Vu=100,vc=function(){function t(r){var i=this,o,s;Ao(this,t),nn()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new ju,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:nn()(Object.create(this),rr,{getInstance:function(){return i}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=ln()(o=qt()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(o,rr.isFunction),this.patches.push(rr.add([],this.spec)),this.patches.push(rr.context([],this.context)),this.updatePatches(this.patches)}return Bs(t,[{key:"debug",value:function(i){if(this.debugLevel===i){for(var o,s=arguments.length,p=new Array(s>1?s-1:0),y=1;y<s;y++)p[y-1]=arguments[y];(o=console).log.apply(o,p)}}},{key:"verbose",value:function(i){if(this.debugLevel==="verbose"){for(var o,s,p=arguments.length,y=new Array(p>1?p-1:0),A=1;A<p;A++)y[A-1]=arguments[A];(o=console).log.apply(o,Ct()(s=["[".concat(i,"] ")]).call(s,y))}}},{key:"wrapPlugin",value:function(i,o){var s=this.pathDiscriminator,p=null,y;return i[this.pluginProp]?(p=i,y=i[this.pluginProp]):rr.isFunction(i)?y=i:rr.isObject(i)&&(y=A(i)),nn()(y.bind(p),{pluginName:i.name||o,isGenerator:rr.isGenerator(y)});function A(w){var E=function(G,te){return Array.isArray(G)?G.every(function(ne,oe){return ne===te[oe]}):!0};return ar().mark(function F(G,te){var ne,oe,ye,ge,Ae,me;return ar().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:me=function(ze,De,Be){var We,Je,et,$e,gt,Nt,Gt,or,kr,Er,Qr,br,Dr;return ar().wrap(function(Yt){for(;;)switch(Yt.prev=Yt.next){case 0:if(rr.isObject(ze)){Yt.next=6;break}if(w.key!==De[De.length-1]){Yt.next=4;break}return Yt.next=4,w.plugin(ze,w.key,De,te);case 4:Yt.next=30;break;case 6:We=De.length-1,Je=De[We],et=De.indexOf("properties"),$e=Je==="properties"&&We===et,gt=te.allowMetaPatches&&oe[ze.$$ref],Nt=0,Gt=Qt()(ze);case 12:if(!(Nt<Gt.length)){Yt.next=30;break}if(or=Gt[Nt],kr=ze[or],Er=Ct()(De).call(De,or),Qr=rr.isObject(kr),br=ze.$$ref,gt){Yt.next=22;break}if(!Qr){Yt.next=22;break}return te.allowMetaPatches&&br&&(oe[br]=!0),Yt.delegateYield(me(kr,Er,Be),"t0",22);case 22:if(!(!$e&&or===w.key)){Yt.next=27;break}if(Dr=E(s,De),!(!s||Dr)){Yt.next=27;break}return Yt.next=27,w.plugin(kr,or,Er,te,Be);case 27:Nt++,Yt.next=12;break;case 30:case"end":return Yt.stop()}},ne)},ne=ar().mark(me),oe={},ye=Ki(ln()(G).call(G,rr.isAdditiveMutation)),He.prev=4,ye.s();case 6:if((ge=ye.n()).done){He.next=11;break}return Ae=ge.value,He.delegateYield(me(Ae.value,Ae.path,Ae),"t0",9);case 9:He.next=6;break;case 11:He.next=16;break;case 13:He.prev=13,He.t1=He.catch(4),ye.e(He.t1);case 16:return He.prev=16,ye.f(),He.finish(16);case 19:case"end":return He.stop()}},F,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var i=this;return hu()(this.wrappedPlugins,function(o){var s=i.getMutationsForPlugin(o);return s.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var i;return _i().race(qt()(i=this.promisedPatches).call(i,function(o){return o.value}))}}},{key:"getPluginHistory",value:function(i){var o=this.constructor.getPluginName(i);return this.pluginHistory[o]||[]}},{key:"getPluginRunCount",value:function(i){return this.getPluginHistory(i).length}},{key:"getPluginHistoryTip",value:function(i){var o=this.getPluginHistory(i),s=o&&o[o.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(i){var o=this.getPluginHistoryTip(i).mutationIndex;return typeof o!="number"?-1:o}},{key:"updatePluginHistory",value:function(i,o){var s=this.constructor.getPluginName(i);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(o)}},{key:"updatePatches",value:function(i){var o=this;rr.normalizeArray(i).forEach(function(s){if(s instanceof Error){o.errors.push(s);return}try{if(!rr.isObject(s)){o.debug("updatePatches","Got a non-object patch",s);return}if(o.showDebug&&o.allPatches.push(s),rr.isPromise(s.value)){o.promisedPatches.push(s),o.promisedPatchThen(s);return}if(rr.isContextPatch(s)){o.setContext(s.path,s.value);return}if(rr.isMutation(s)){o.updateMutations(s);return}}catch(p){console.error(p),o.errors.push(p)}})}},{key:"updateMutations",value:function(i){ir(i.value)==="object"&&!Array.isArray(i.value)&&this.allowMetaPatches&&(i.value=cr({},i.value));var o=rr.applyPatch(this.state,i,{allowMetaPatches:this.allowMetaPatches});o&&(this.mutations.push(i),this.state=o)}},{key:"removePromisedPatch",value:function(i){var o,s=this.promisedPatches.indexOf(i);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}pu()(o=this.promisedPatches).call(o,s,1)}},{key:"promisedPatchThen",value:function(i){var o=this;return i.value=i.value.then(function(s){var p=cr(cr({},i),{},{value:s});o.removePromisedPatch(i),o.updatePatches(p)}).catch(function(s){o.removePromisedPatch(i),o.updatePatches(s)}),i.value}},{key:"getMutations",value:function(i,o){var s;return i=i||0,typeof o!="number"&&(o=this.mutations.length),Fn()(s=this.mutations).call(s,i,o)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(i){var o=this.getPluginMutationIndex(i);return this.getMutations(o+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(i){return rr.getIn(this.state,i)}},{key:"_getContext",value:function(i){return this.contextTree.get(i)}},{key:"setContext",value:function(i,o){return this.contextTree.set(i,o)}},{key:"_hasRun",value:function(i){var o=this.getPluginRunCount(this.getCurrentPlugin());return o>(i||0)}},{key:"dispatch",value:function(){var i=this,o=this,s=this.nextPlugin();if(!s){var p=this.nextPromisedPatch();if(p)return p.then(function(){return i.dispatch()}).catch(function(){return i.dispatch()});var y={spec:this.state,errors:this.errors};return this.showDebug&&(y.patches=this.allPatches),_i().resolve(y)}if(o.pluginCount=o.pluginCount||{},o.pluginCount[s]=(o.pluginCount[s]||0)+1,o.pluginCount[s]>Vu){var A;return _i().resolve({spec:o.state,errors:Ct()(A=o.errors).call(A,new Error("We've reached a hard limit of ".concat(Vu," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var w,E=qt()(w=this.promisedPatches).call(w,function(te){return te.value});return _i().all(qt()(E).call(E,function(te){return te.then(pa(),pa())})).then(function(){return i.dispatch()})}return F();function F(){o.currentPlugin=s;var te=o.getCurrentMutations(),ne=o.mutations.length-1;try{if(s.isGenerator){var oe=Ki(s(te,o.getLib())),ye;try{for(oe.s();!(ye=oe.n()).done;){var ge=ye.value;G(ge)}}catch(me){oe.e(me)}finally{oe.f()}}else{var Ae=s(te,o.getLib());G(Ae)}}catch(me){console.error(me),G([nn()(Object.create(me),{plugin:s})])}finally{o.updatePluginHistory(s,{mutationIndex:ne})}return o.dispatch()}function G(te){te&&(te=rr.fullyNormalizeArray(te),o.updatePatches(te,s))}}}],[{key:"getPluginName",value:function(i){return i.pluginName}},{key:"getPatchesOfType",value:function(i,o){return ln()(i).call(i,o)}}]),t}();function gc(t){return new vc(t).dispatch()}var bn={refs:Nu,allOf:dc,parameters:pc,properties:hc},ro=a(13218),no=a.n(ro),wa=function(r){return String.prototype.toLowerCase.call(r)},ri=function(r){return r.replace(/[^\w]/gi,"_")};function Wu(t){var r=t.openapi;return r?Gi()(r,"3"):!1}function Td(t){var r=t.swagger;return r?startsWith(r,"2"):!1}function vi(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=o.v2OperationIdCompatibilityMode;if(!t||ir(t)!=="object")return null;var p=(t.operationId||"").replace(/\s/g,"");return p.length?ri(t.operationId):Hu(r,i,{v2OperationIdCompatibilityMode:s})}function Hu(t,r){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=o.v2OperationIdCompatibilityMode;if(s){var p,y,A=Ct()(p="".concat(r.toLowerCase(),"_")).call(p,t).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return A=A||Ct()(y="".concat(t.substring(1),"_")).call(y,r),A.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Ct()(i="".concat(wa(r))).call(i,ri(t))}function pl(t,r){var i;return Ct()(i="".concat(wa(r),"-")).call(i,t)}function zu(t,r){return!t||!t.paths?null:Jo(t,function(i){var o=i.pathName,s=i.method,p=i.operation;if(!p||ir(p)!=="object")return!1;var y=p.operationId,A=vi(p,o,s),w=pl(o,s);return[A,w,y].some(function(E){return E&&E===r})})}function Jo(t,r){return oa(t,r,!0)||null}function oa(t,r,i){if(!t||ir(t)!=="object"||!t.paths||ir(t.paths)!=="object")return null;var o=t.paths;for(var s in o)for(var p in o[s])if(p.toUpperCase()!=="PARAMETERS"){var y=o[s][p];if(!(!y||ir(y)!=="object")){var A={spec:t,pathName:s,method:p.toUpperCase(),operation:y},w=r(A);if(i&&w)return A}}}function Xo(t){var r=t.spec,i=r.paths,o={};if(!i||r.$$normalized)return t;for(var s in i){var p=i[s];if(!!no()(p)){var y=p.parameters,A=function(G){var te=p[G];if(!no()(te))return"continue";var ne=vi(te,s,G);if(ne){o[ne]?o[ne].push(te):o[ne]=[te];var oe=o[ne];if(oe.length>1)oe.forEach(function(Je,et){var $e;Je.__originalOperationId=Je.__originalOperationId||Je.operationId,Je.operationId=Ct()($e="".concat(ne)).call($e,et+1)});else if(typeof te.operationId!="undefined"){var ye=oe[0];ye.__originalOperationId=ye.__originalOperationId||te.operationId,ye.operationId=ne}}if(G!=="parameters"){var ge=[],Ae={};for(var me in r)(me==="produces"||me==="consumes"||me==="security")&&(Ae[me]=r[me],ge.push(Ae));if(y&&(Ae.parameters=y,ge.push(Ae)),ge.length){var Te=Ki(ge),He;try{for(Te.s();!(He=Te.n()).done;){var Ve=He.value;for(var ze in Ve)if(!te[ze])te[ze]=Ve[ze];else if(ze==="parameters"){var De=Ki(Ve[ze]),Be;try{var We=function(){var et=Be.value,$e=te[ze].some(function(gt){return gt.name&>.name===et.name||gt.$ref&>.$ref===et.$ref||gt.$$ref&>.$$ref===et.$$ref||gt===et});$e||te[ze].push(et)};for(De.s();!(Be=De.n()).done;)We()}catch(Je){De.e(Je)}finally{De.f()}}}}catch(Je){Te.e(Je)}finally{Te.f()}}}};for(var w in p)var E=A(w)}}return r.$$normalized=!0,t}function Qo(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.requestInterceptor,o=r.responseInterceptor,s=t.withCredentials?"include":"same-origin";return function(p){return t({url:p,loadSpec:!0,requestInterceptor:i,responseInterceptor:o,headers:{Accept:sl},credentials:s}).then(function(y){return y.body})}}function hl(){bn.refs.clearCache()}function Gu(t){var r=t.fetch,i=t.spec,o=t.url,s=t.mode,p=t.allowMetaPatches,y=p===void 0?!0:p,A=t.pathDiscriminator,w=t.modelPropertyMacro,E=t.parameterMacro,F=t.requestInterceptor,G=t.responseInterceptor,te=t.skipNormalization,ne=t.useCircularStructures,oe=t.http,ye=t.baseDoc;if(ye=ye||o,oe=r||oe||ki,!i)return Qo(oe,{requestInterceptor:F,responseInterceptor:G})(ye).then(ge);return ge(i);function ge(Ae){ye&&(bn.refs.docCache[ye]=Ae),bn.refs.fetchJSON=Qo(oe,{requestInterceptor:F,responseInterceptor:G});var me=[bn.refs];return typeof E=="function"&&me.push(bn.parameters),typeof w=="function"&&me.push(bn.properties),s!=="strict"&&me.push(bn.allOf),gc({spec:Ae,context:{baseDoc:ye},plugins:me,allowMetaPatches:y,pathDiscriminator:A,parameterMacro:E,modelPropertyMacro:w,useCircularStructures:ne}).then(te?function(){var Te=ks(ar().mark(function He(Ve){return ar().wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.abrupt("return",Ve);case 1:case"end":return De.stop()}},He)}));return function(He){return Te.apply(this,arguments)}}():Xo)}}var io=a(27361),Sa=a.n(io);function yc(t,r){return Zo.apply(this,arguments)}function Zo(){return Zo=ks(ar().mark(function t(r,i){var o,s,p,y,A,w,E,F,G,te,ne,oe,ye=arguments;return ar().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return o=ye.length>2&&ye[2]!==void 0?ye[2]:{},s=o.returnEntireTree,p=o.baseDoc,y=o.requestInterceptor,A=o.responseInterceptor,w=o.parameterMacro,E=o.modelPropertyMacro,F=o.useCircularStructures,G={pathDiscriminator:i,baseDoc:p,requestInterceptor:y,responseInterceptor:A,parameterMacro:w,modelPropertyMacro:E,useCircularStructures:F},te=Xo({spec:r}),ne=te.spec,Ae.next=6,Gu(cr(cr({},G),{},{spec:ne,allowMetaPatches:!0,skipNormalization:!0}));case 6:return oe=Ae.sent,!s&&Array.isArray(i)&&i.length&&(oe.spec=Sa()(oe.spec,i)||null),Ae.abrupt("return",oe);case 9:case"end":return Ae.stop()}},t)})),Zo.apply(this,arguments)}var _o=function(){return null},mc=function(r){return Array.isArray(r)?r:[r]},qo={mapTagOperations:bc,makeExecute:ao};function ao(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var i=r.pathName,o=r.method,s=r.operationId;return function(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return t.execute(cr(cr({spec:t.spec},So()(t,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:i,method:o,parameters:p,operationId:s},y))}}}function xc(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=qo.makeExecute(t),i=qo.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r}),o={};for(var s in i){o[s]={operations:{}};for(var p in i[s])o[s].operations[p]={execute:i[s][p]}}return{apis:o}}function $u(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=qo.makeExecute(t);return{apis:qo.mapTagOperations({v2OperationIdCompatibilityMode:t.v2OperationIdCompatibilityMode,spec:t.spec,cb:r})}}function bc(t){var r=t.spec,i=t.cb,o=i===void 0?_o:i,s=t.defaultTag,p=s===void 0?"default":s,y=t.v2OperationIdCompatibilityMode,A={},w={};return oa(r,function(E){var F=E.pathName,G=E.method,te=E.operation,ne=te.tags?mc(te.tags):[p];ne.forEach(function(oe){if(typeof oe=="string"){w[oe]=w[oe]||{};var ye=w[oe],ge=vi(te,F,G,{v2OperationIdCompatibilityMode:y}),Ae=o({spec:r,pathName:F,method:G,operation:te,operationId:ge});if(A[ge]){var me;A[ge]+=1,ye[Ct()(me="".concat(ge)).call(me,A[ge])]=Ae}else if(typeof ye[ge]!="undefined"){var Te,He,Ve=A[ge]||1;A[ge]=Ve+1,ye[Ct()(Te="".concat(ge)).call(Te,A[ge])]=Ae;var ze=ye[ge];delete ye[ge],ye[Ct()(He="".concat(ge)).call(He,Ve)]=ze}else ye[ge]=Ae}})}),w}var es=a(95683);function Ku(t,r){if(t==null)return{};var i={},o=As(t),s,p;for(p=0;p<o.length;p++)s=o[p],!(es(r).call(r,s)>=0)&&(i[s]=t[s]);return i}function wc(t,r){if(t==null)return{};var i=Ku(t,r),o,s;if(Hi){var p=Hi(t);for(s=0;s<p.length;s++)o=p[s],!(es(r).call(r,o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(i[o]=t[o]))}return i}var Yu=a(68630),vl=a.n(Yu),Sc=a(1469),gl=a.n(Sc),oo=a(76489);const so={body:Ac,header:Ec,query:Oc,path:Cc,formData:Ju};function Ac(t){var r=t.req,i=t.value;r.body=i}function Ju(t){var r=t.req,i=t.value,o=t.parameter;(i||o.allowEmptyValue)&&(r.form=r.form||{},r.form[o.name]={value:i,allowEmptyValue:o.allowEmptyValue,collectionFormat:o.collectionFormat})}function Ec(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{},typeof o!="undefined"&&(r.headers[i.name]=o)}function Cc(t){var r=t.req,i=t.value,o=t.parameter;r.url=r.url.split("{".concat(o.name,"}")).join(encodeURIComponent(i))}function Oc(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},i===!1&&o.type==="boolean"&&(i="false"),i===0&&["number","integer"].indexOf(o.type)>-1&&(i="0"),i)r.query[o.name]={collectionFormat:o.collectionFormat,value:i};else if(o.allowEmptyValue&&i!==void 0){var s=o.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function ts(t,r){return wo()(r).call(r,"application/json")?typeof t=="string"?t:La()(t):t.toString()}function Xu(t){var r=t.req,i=t.value,o=t.parameter,s=o.name,p=o.style,y=o.explode,A=o.content;if(A){var w=Qt()(A)[0];r.url=r.url.split("{".concat(s,"}")).join(Mr(ts(i,w),{escape:!0}));return}var E=qn({key:o.name,value:i,style:p||"simple",explode:y||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(E)}function Tc(t){var r=t.req,i=t.value,o=t.parameter;if(r.query=r.query||{},o.content){var s=Qt()(o.content)[0];r.query[o.name]=ts(i,s);return}if(i===!1&&(i="false"),i===0&&(i="0"),i)r.query[o.name]={value:i,serializationOption:So()(o,["style","explode","allowReserved"])};else if(o.allowEmptyValue&&i!==void 0){var p=o.name;r.query[p]=r.query[p]||{},r.query[p].allowEmptyValue=!0}}var Pc=["accept","authorization","content-type"];function Qu(t){var r=t.req,i=t.parameter,o=t.value;if(r.headers=r.headers||{},!(Pc.indexOf(i.name.toLowerCase())>-1)){if(i.content){var s=Qt()(i.content)[0];r.headers[i.name]=ts(o,s);return}typeof o!="undefined"&&(r.headers[i.name]=qn({key:i.name,value:o,style:i.style||"simple",explode:typeof i.explode=="undefined"?!1:i.explode,escape:!1}))}}function yl(t){var r=t.req,i=t.parameter,o=t.value;r.headers=r.headers||{};var s=ir(o);if(i.content){var p,y=Qt()(i.content)[0];r.headers.Cookie=Ct()(p="".concat(i.name,"=")).call(p,ts(o,y));return}if(s!=="undefined"){var A=s==="object"&&!Array.isArray(o)&&i.explode?"":"".concat(i.name,"=");r.headers.Cookie=A+qn({key:i.name,value:o,escape:!1,style:i.style||"form",explode:typeof i.explode=="undefined"?!1:i.explode})}}var Zu=a(50706),_u=a.n(Zu);function qu(t,r){var i=t.operation,o=t.requestBody,s=t.securities,p=t.spec,y=t.attachContentTypeForEmptyPayload,A=t.requestContentType;r=Aa({request:r,securities:s,operation:i,spec:p});var w=i.requestBody||{},E=Qt()(w.content||{}),F=A&&E.indexOf(A)>-1;if(o||y){if(A&&F)r.headers["Content-Type"]=A;else if(!A){var G=E[0];G&&(r.headers["Content-Type"]=G,A=G)}}else A&&F&&(r.headers["Content-Type"]=A);if(!t.responseContentType&&i.responses){var te,ne=ln()(te=Da()(i.responses)).call(te,function(ye){var ge=rn(ye,2),Ae=ge[0],me=ge[1],Te=parseInt(Ae,10);return Te>=200&&Te<300&&vl()(me.content)}).reduce(function(ye,ge){var Ae=rn(ge,2),me=Ae[1];return Ct()(ye).call(ye,Qt()(me.content))},[]);ne.length>0&&(r.headers.accept=ne.join(", "))}if(o)if(A){if(E.indexOf(A)>-1)if(A==="application/x-www-form-urlencoded"||A==="multipart/form-data")if(ir(o)==="object"){var oe=(w.content[A]||{}).encoding||{};r.form={},Qt()(o).forEach(function(ye){r.form[ye]={value:o[ye],encoding:oe[ye]||{}}})}else r.form=o;else r.body=o}else r.body=o;return r}function Aa(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,A=zi()({},r),w=o.authorized,E=w===void 0?{}:w,F=p.security||y.security||[],G=E&&!!Qt()(E).length,te=Sa()(y,["components","securitySchemes"])||{};return A.headers=A.headers||{},A.query=A.query||{},!Qt()(o).length||!G||!F||Array.isArray(p.security)&&!p.security.length?r:(F.forEach(function(ne){Qt()(ne).forEach(function(oe){var ye=E[oe],ge=te[oe];if(!!ye){var Ae=ye.value||ye,me=ge.type;if(ye){if(me==="apiKey")ge.in==="query"&&(A.query[ge.name]=Ae),ge.in==="header"&&(A.headers[ge.name]=Ae),ge.in==="cookie"&&(A.cookies[ge.name]=Ae);else if(me==="http"){if(/^basic$/i.test(ge.scheme)){var Te,He=Ae.username||"",Ve=Ae.password||"",ze=_u()(Ct()(Te="".concat(He,":")).call(Te,Ve));A.headers.Authorization="Basic ".concat(ze)}/^bearer$/i.test(ge.scheme)&&(A.headers.Authorization="Bearer ".concat(Ae))}else if(me==="oauth2"||me==="openIdConnect"){var De,Be=ye.token||{},We=ge["x-tokenName"]||"access_token",Je=Be[We],et=Be.token_type;(!et||et.toLowerCase()==="bearer")&&(et="Bearer"),A.headers.Authorization=Ct()(De="".concat(et," ")).call(De,Je)}}}})}),A)}function ef(t,r){var i=t.spec,o=t.operation,s=t.securities,p=t.requestContentType,y=t.responseContentType,A=t.attachContentTypeForEmptyPayload;if(r=rs({request:r,securities:s,operation:o,spec:i}),r.body||r.form||A){var w,E;if(p)r.headers["Content-Type"]=p;else if(Array.isArray(o.consumes)){var F=rn(o.consumes,1);r.headers["Content-Type"]=F[0]}else if(Array.isArray(i.consumes)){var G=rn(i.consumes,1);r.headers["Content-Type"]=G[0]}else o.parameters&&ln()(w=o.parameters).call(w,function(ge){return ge.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":o.parameters&&ln()(E=o.parameters).call(E,function(ge){return ge.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(p){var te,ne,oe=o.parameters&&ln()(te=o.parameters).call(te,function(ge){return ge.in==="body"}).length>0,ye=o.parameters&&ln()(ne=o.parameters).call(ne,function(ge){return ge.in==="formData"}).length>0;(oe||ye)&&(r.headers["Content-Type"]=p)}return!y&&Array.isArray(o.produces)&&o.produces.length>0&&(r.headers.accept=o.produces.join(", ")),r}function rs(t){var r=t.request,i=t.securities,o=i===void 0?{}:i,s=t.operation,p=s===void 0?{}:s,y=t.spec,A=zi()({},r),w=o.authorized,E=w===void 0?{}:w,F=o.specSecurity,G=F===void 0?[]:F,te=p.security||G,ne=E&&!!Qt()(E).length,oe=y.securityDefinitions;return A.headers=A.headers||{},A.query=A.query||{},!Qt()(o).length||!ne||!te||Array.isArray(p.security)&&!p.security.length?r:(te.forEach(function(ye){Qt()(ye).forEach(function(ge){var Ae=E[ge];if(!!Ae){var me=Ae.token,Te=Ae.value||Ae,He=oe[ge],Ve=He.type,ze=He["x-tokenName"]||"access_token",De=me&&me[ze],Be=me&&me.token_type;if(Ae){if(Ve==="apiKey"){var We=He.in==="query"?"query":"headers";A[We]=A[We]||{},A[We][He.name]=Te}else if(Ve==="basic")if(Te.header)A.headers.authorization=Te.header;else{var Je,et=Te.username||"",$e=Te.password||"";Te.base64=_u()(Ct()(Je="".concat(et,":")).call(Je,$e)),A.headers.authorization="Basic ".concat(Te.base64)}else if(Ve==="oauth2"&&De){var gt;Be=!Be||Be.toLowerCase()==="bearer"?"Bearer":Be,A.headers.authorization=Ct()(gt="".concat(Be," ")).call(gt,De)}}}})}),A)}var tf=function(r){return Array.isArray(r)?r:[]},Ic=ol("OperationNotFoundError",function(r,i,o){this.originalError=o,nn()(this,i||{})}),Fc=function(r,i){return ln()(i).call(i,function(o){return o.name===r})},hr=function(r){var i={};r.forEach(function(s){i[s.in]||(i[s.in]={}),i[s.in][s.name]=s});var o=[];return Qt()(i).forEach(function(s){Qt()(i[s]).forEach(function(p){o.push(i[s][p])})}),o},kc={buildRequest:Ea};function ml(t){var r=t.http,i=t.fetch,o=t.spec,s=t.operationId,p=t.pathName,y=t.method,A=t.parameters,w=t.securities,E=wc(t,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),F=r||i||ki;p&&y&&!s&&(s=pl(p,y));var G=kc.buildRequest(cr({spec:o,operationId:s,parameters:A,securities:w,http:F},E));return G.body&&(vl()(G.body)||gl()(G.body))&&(G.body=La()(G.body)),F(G)}function Ea(t){var r,i,o=t.spec,s=t.operationId,p=t.responseContentType,y=t.scheme,A=t.requestInterceptor,w=t.responseInterceptor,E=t.contextUrl,F=t.userFetch,G=t.server,te=t.serverVariables,ne=t.http,oe=t.parameters,ye=t.parameterBuilders,ge=Wu(o);ye||(ge?ye=x:ye=so);var Ae=ne&&ne.withCredentials?"include":"same-origin",me={url:"",credentials:Ae,headers:{},cookies:{}};A&&(me.requestInterceptor=A),w&&(me.responseInterceptor=w),F&&(me.userFetch=F);var Te=zu(o,s);if(!Te)throw new Ic("Operation ".concat(s," not found"));var He=Te.operation,Ve=He===void 0?{}:He,ze=Te.method,De=Te.pathName;if(me.url+=lo({spec:o,scheme:y,contextUrl:E,server:G,serverVariables:te,pathName:De,method:ze}),!s)return delete me.cookies,me;me.url+=De,me.method="".concat(ze).toUpperCase(),oe=oe||{};var Be=o.paths[De]||{};p&&(me.headers.accept=p);var We=hr(Ct()(r=Ct()(i=[]).call(i,tf(Ve.parameters))).call(r,tf(Be.parameters)));We.forEach(function($e){var gt=ye[$e.in],Nt;if($e.in==="body"&&$e.schema&&$e.schema.properties&&(Nt=oe),Nt=$e&&$e.name&&oe[$e.name],typeof Nt=="undefined"){var Gt;Nt=$e&&$e.name&&oe[Ct()(Gt="".concat($e.in,".")).call(Gt,$e.name)]}else if(Fc($e.name,We).length>1){var or;console.warn(Ct()(or="Parameter '".concat($e.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(or,$e.name,"' and the passed-in parameter values did not define an 'in' value."))}if(Nt!==null){if(typeof $e.default!="undefined"&&typeof Nt=="undefined"&&(Nt=$e.default),typeof Nt=="undefined"&&$e.required&&!$e.allowEmptyValue)throw new Error("Required parameter ".concat($e.name," is not provided"));if(ge&&$e.schema&&$e.schema.type==="object"&&typeof Nt=="string")try{Nt=JSON.parse(Nt)}catch(kr){throw new Error("Could not parse object parameter value string as JSON")}gt&>({req:me,parameter:$e,value:Nt,operation:Ve,spec:o})}});var Je=cr(cr({},t),{},{operation:Ve});if(ge?me=qu(Je,me):me=ef(Je,me),me.cookies&&Qt()(me.cookies).length){var et=Qt()(me.cookies).reduce(function($e,gt){var Nt=me.cookies[gt],Gt=$e?"&":"",or=oo.serialize(gt,Nt);return $e+Gt+or},"");me.headers.Cookie=et}return me.cookies&&delete me.cookies,du(me),me}var On=function(r){return r?r.replace(/\W/g,""):null};function lo(t){var r=Wu(t.spec);return r?xl(t):af(t)}function xl(t){var r=t.spec,i=t.pathName,o=t.method,s=t.server,p=t.contextUrl,y=t.serverVariables,A=y===void 0?{}:y,w=Sa()(r,["paths",i,(o||"").toLowerCase(),"servers"])||Sa()(r,["paths",i,"servers"])||Sa()(r,["servers"]),E="",F=null;if(s&&w&&w.length){var G=qt()(w).call(w,function(oe){return oe.url});G.indexOf(s)>-1&&(E=s,F=w[G.indexOf(s)])}if(!E&&w&&w.length){E=w[0].url;var te=rn(w,1);F=te[0]}if(E.indexOf("{")>-1){var ne=nf(E);ne.forEach(function(oe){if(F.variables&&F.variables[oe]){var ye=F.variables[oe],ge=A[oe]||ye.default,Ae=new RegExp("{".concat(oe,"}"),"g");E=E.replace(Ae,ge)}})}return rf(E,p)}function rf(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t&&r?Ii.parse(Ii.resolve(r,t)):Ii.parse(t),o=Ii.parse(r),s=On(i.protocol)||On(o.protocol)||"",p=i.host||o.host,y=i.pathname||"",A;if(s&&p){var w;A=Ct()(w="".concat(s,"://")).call(w,p+y)}else A=y;return A[A.length-1]==="/"?Fn()(A).call(A,0,-1):A}function nf(t){for(var r=[],i=/{([^}]+)}/g,o;o=i.exec(t);)r.push(o[1]);return r}function af(t){var r=t.spec,i=t.scheme,o=t.contextUrl,s=o===void 0?"":o,p=Ii.parse(s),y=Array.isArray(r.schemes)?r.schemes[0]:null,A=i||y||On(p.protocol)||"http",w=r.host||p.host||"",E=r.basePath||"",F;if(A&&w){var G;F=Ct()(G="".concat(A,"://")).call(G,w+E)}else F=E;return F[F.length-1]==="/"?Fn()(F).call(F,0,-1):F}xr.http=ki,xr.makeHttp=Js.bind(null,xr.http),xr.resolve=Gu,xr.resolveSubtree=yc,xr.execute=ml,xr.serializeRes=fu,xr.serializeHeaders=Ks,xr.clearCache=hl,xr.makeApisTagOperation=$u,xr.buildRequest=Ea,xr.helpers={opId:vi},xr.getBaseUrl=lo;function xr(t){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof t=="string"?i.url=t:i=t,!(this instanceof xr))return new xr(i);zi()(this,i);var o=this.resolve().then(function(){return r.disableInterfaces||zi()(r,xr.makeApisTagOperation(r)),r});return o.client=this,o}xr.prototype={http:ki,execute:function(r){return this.applyDefaults(),xr.execute(cr({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return xr.resolve(cr({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},i)).then(function(o){return r.originalSpec=r.spec,r.spec=o.spec,r.errors=o.errors,r})}},xr.prototype.applyDefaults=function(){var r=this.spec,i=this.url;if(i&&Gi()(i,"http")){var o=Ii.parse(i);r.host||(r.host=o.host),r.schemes||(r.schemes=[o.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var Mc=xr.helpers;const Rc=xr;var Ht=a(25446),bl=a(11429),Wt=a(76671),of=a(7930),uo=a(51027),Tn=a(78722),sf=a(17673),$n=a(64776),Lc=Object.defineProperty,wr=Object.defineProperties,Dc=Object.getOwnPropertyDescriptors,lf=Object.getOwnPropertySymbols,Nc=Object.prototype.hasOwnProperty,ns=Object.prototype.propertyIsEnumerable,e=(t,r,i)=>r in t?Lc(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,n=(t,r)=>{for(var i in r||(r={}))Nc.call(r,i)&&e(t,i,r[i]);if(lf)for(var i of lf(r))ns.call(r,i)&&e(t,i,r[i]);return t},u=(t,r)=>wr(t,Dc(r)),l=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const f="/oauth2-redirect.html";class m{static authorizeImplicit({authorizationUrl:r,clientId:i,scopes:o,extraParams:s={},routingBasePath:p,redirectUri:y,successCallback:A,errorCallback:w}){const E=(0,$n.p8)({date:new Date().toString()}),F=new URL(r),G=p==="/"?"":p,te=`${window.location.origin}${G}${f}`;F.searchParams.set("client_id",i),F.searchParams.set("redirect_uri",y||te),F.searchParams.set("response_type","token"),F.searchParams.set("state",E),Array.isArray(o)&&F.searchParams.set("scope",o.join(" "));for(const ne in s)F.searchParams.set(ne,s[ne]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:i,scopes:o},state:E,successCallback:ne=>{A(ne),m.clearRedirectData("implicit")},errorCallback:ne=>{w(ne),m.clearRedirectData("implicit")}},window.open(F.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:i,clientId:o,clientSecret:s,codeVerifier:p,codeChallenge:y,scopes:A,extraParams:w={},extraHeaders:E={},routingBasePath:F,redirectUri:G,successCallback:te,errorCallback:ne}){const oe=new URL(r),ye=F==="/"?"":F,ge=`${window.location.origin}${ye}${f}`,Ae=(0,$n.p8)({date:new Date().toString()});oe.searchParams.set("client_id",o),oe.searchParams.set("redirect_uri",G||ge),oe.searchParams.set("response_type","code"),oe.searchParams.set("state",Ae),Array.isArray(A)&&oe.searchParams.set("scope",A.join(" ")),y&&(oe.searchParams.set("code_challenge",y),oe.searchParams.set("code_challenge_method","S256"));for(const me in w)oe.searchParams.set(me,w[me]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:o,scopes:A},state:Ae,successCallback:me=>l(this,[me],function*({auth_code:Te}){try{const He=yield fetch(i,{method:"POST",headers:n({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},E),body:sf.stringify(n(u(n({client_id:o,client_secret:s},p&&{code_verifier:p}),{code:Te,grant_type:"authorization_code",redirect_uri:G||ge}),w))});yield U(He,te,ne)}catch(He){ne(He)}m.clearRedirectData("authorizationCode")}),errorCallback:me=>{ne(me),m.clearRedirectData("authorizationCode")}},window.open(oe.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return l(this,arguments,function*({tokenUrl:i,clientId:o,clientSecret:s,scopes:p=[],extraParams:y={},extraHeaders:A={},successCallback:w,errorCallback:E}){try{const F=yield fetch(i,{method:"POST",headers:n({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},A),body:sf.stringify(n({client_id:o,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(p)?p.join(" "):void 0},y))});yield U(F,w,E)}catch(F){E(F)}})}}const k=new m;function U(t,r,i){return l(this,null,function*(){if(t.ok){const o=yield t.json();r(o)}else i(new Error((t.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield t.json()):yield t.text()))})}function H(t){return l(this,null,function*(){return(0,$n.rS)(yield(0,$n.JQ)(t))})}var Z=a(68929),be;(function(t){t.STRING="string",t.ARRAY="array",t.OBJECT="object"})(be||(be={}));var Ce;(function(t){t.BYTE="byte",t.BASE64="base64",t.BINARY="binary"})(Ce||(Ce={}));var Ne=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const ke=Object.values(Ce),Ye=["application/octet-stream","application/pdf","application/gzip","application/zip"],tt=["image/","audio/","video/"];function ot(t){if(tt.some(r=>t.startsWith(r)))return t}function ct(t){return Ye.includes(t)?!0:tt.some(r=>t.startsWith(r))}function yt(t){const r=t.type==="array"?t.items:t;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const i=r.contentMediaType||"",o=r.format||r.contentEncoding||(ct(i)?"binary":"");return r.type===be.STRING&&ke.includes(o)}function dt(t,r){if(!t||!t.type||t.type==="any")return ct(r);const i=t.format||t.contentEncoding||"";return t.type===be.STRING&&ke.includes(i)}function bt(t){return new Promise((r,i)=>{const o=new FileReader;o.onload=()=>{const p=o.result.replace(/data:.*\/.*;base64,/g,"");r(p)},o.onerror=()=>i(o.error),o.readAsDataURL(t)})}function Ft({format:t,contentEncoding:r,contentMediaType:i}){return[t,r,i].includes(Ce.BASE64)}function It(t,r){return Ne(this,null,function*(){const i=Object.values(t);let o=i.length===1?i[0]:i;return r.type===be.STRING&&Ft(r)?o=yield bt(i[0]):r.type===be.ARRAY&&r.items&&(Ft(r.items)?o=yield Promise.all(i.map(p=>Ne(this,null,function*(){return yield bt(p)}))):o=i),o})}var it=a(39713),Tt=a(58804),Sr=a(8418),vr=a(21096),wn=Object.defineProperty,fn=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,Vr=Object.prototype.hasOwnProperty,Fr=Object.prototype.propertyIsEnumerable,Ar=(t,r,i)=>r in t?wn(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,dr=(t,r)=>{for(var i in r||(r={}))Vr.call(r,i)&&Ar(t,i,r[i]);if(Yr)for(var i of Yr(r))Fr.call(r,i)&&Ar(t,i,r[i]);return t},cn=(t,r)=>fn(t,Ir(r)),Ca=(t,r)=>{var i={};for(var o in t)Vr.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Yr)for(var o of Yr(t))r.indexOf(o)<0&&Fr.call(t,o)&&(i[o]=t[o]);return i};const gi=t=>Tt.css`
|
|
93
93
|
border: none;
|
|
94
94
|
outline: none;
|
|
95
95
|
padding: 8px;
|
|
@@ -107,16 +107,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
107
107
|
&:-webkit-autofill {
|
|
108
108
|
background-color: var(--${t}-panel-background-color);
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`,Jr=Tt.default.div`
|
|
111
111
|
display: ${({type:t})=>t==="hidden"?"none":"inline-block"};
|
|
112
112
|
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
113
|
-
`,
|
|
113
|
+
`,ni=Tt.default.div`
|
|
114
114
|
position: relative;
|
|
115
|
-
`,
|
|
116
|
-
${({panel:t})=>
|
|
115
|
+
`,Wr=Tt.default.input`
|
|
116
|
+
${({panel:t})=>gi(t)}
|
|
117
117
|
${({inputType:t,inputActionButton:r})=>t==="password"||r?"padding-right: 40px;":""};
|
|
118
118
|
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
119
|
-
`,
|
|
119
|
+
`,is=Tt.default.span`
|
|
120
120
|
position: absolute;
|
|
121
121
|
right: 0;
|
|
122
122
|
line-height: normal;
|
|
@@ -126,45 +126,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
126
126
|
cursor: pointer;
|
|
127
127
|
text-align: center;
|
|
128
128
|
color: var(--samples-panel-text-color);
|
|
129
|
-
`;function
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
margin-right: 5px;
|
|
133
|
-
height: 20px;
|
|
134
|
-
|
|
135
|
-
align-self: baseline;
|
|
136
|
-
margin-top: 0;
|
|
137
|
-
margin-bottom: 0;
|
|
138
|
-
`,Yh=Tt.default.label`
|
|
139
|
-
display: inline-block;
|
|
140
|
-
cursor: pointer;
|
|
141
|
-
vertical-align: middle;
|
|
142
|
-
position: relative;
|
|
143
|
-
text-overflow: ellipsis;
|
|
144
|
-
overflow: hidden;
|
|
145
|
-
|
|
146
|
-
overflow-wrap: break-word;
|
|
147
|
-
line-height: 20px;
|
|
148
|
-
`,Jh=Tt.default.div`
|
|
149
|
-
width: ${({fullWidth:t})=>t?"100%":"50%"};
|
|
150
|
-
display: inline-flex;
|
|
129
|
+
`;function yi(t,r){var i=t,{fullWidth:o,errorMessage:s,type:p,inputActionButton:y,panel:A="samples"}=i,w=Ca(i,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[E,F]=d.useState(p==="password"),G=d.useCallback(()=>{F(!E)},[E]);return d.createElement(Jr,{fullWidth:o,type:p},d.createElement(ni,null,d.createElement(Wr,dr({fullWidth:o,inputActionButton:y,type:E?"password":"text",inputType:p,ref:r,panel:A},w)),y?d.createElement(is,{onClick:y.onClick},y.label):p==="password"?d.createElement(is,{onClick:G},E?"show":"hide"):null),s?d.createElement(it.Xq,null,s):null)}const Kn=d.forwardRef(yi);function Lr(t){const r=Pn(dr({fieldType:"text"},t)),{userProps:i,render:o,fieldState:s}=r,p=r.informed;return o(d.createElement(Kn,cn(dr(dr({},i),p),{errorMessage:s.error})))}const ii=$r(({initValue:t,options:r,fieldApi:i,fieldState:o})=>{const s=r.map((E,F)=>({value:E.title||E.value,idx:F,origValue:E.value})),p=s.find(E=>E.origValue===t),[y,A]=d.useState(p==null?void 0:p.value);(0,Sr.b6)(()=>{t&&i.setValue(t)});const w=d.useCallback(E=>{i.setValue(s[E.idx].origValue),A(s[E.idx].value)},[s,i]);return d.createElement(Jr,{fullWidth:!0},d.createElement(vr.Dropdown,{fullWidth:!0,variant:"dark",value:y,options:s,onChange:w}),o.error?d.createElement(it.Xq,null,o.error):null)});var an=a(25973);const Ph=$r(({initValue:t,paramEnum:r,fieldApi:i})=>{const[o,s]=d.useState(),p=r.map((w,E)=>({idx:E,value:w})),y=w=>{i.setValue(w.value),s(w.value)};(0,Sr.b6)(()=>{if(!!t)if(Array.isArray(t)){const w=t.length?t[0]:"";s(w),i.setValue(w)}else s(t),i.setValue(t)});const A=()=>{i.setValue(""),s("")};return d.createElement(an.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:o,options:p,handleClear:A,onChange:y})}),Ih=({name:t,param:r,place:i,renderParameter:o})=>{var s,p,y,A,w;const[E,F]=d.useState([]),G=()=>{F([...E,E.length?E[E.length-1]+1:0])},te=oe=>{F(E.filter(ye=>ye!==oe))},ne=((s=r.schema.items)==null?void 0:s.fields)?(p=r.schema.items)==null?void 0:p.fields:[{schema:((y=r.schema.items)==null?void 0:y.schema)||r.schema.items,name:"",required:r.required,description:(A=r.schema.items)==null?void 0:A.description,externalDocs:(w=r.schema.items)==null?void 0:w.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return d.createElement(d.Fragment,null,d.createElement(Pd,null,d.createElement(it.lX,{required:r.required},t,"(",E.length," items)"),d.createElement("span",{onClick:G},"Add item +")),E==null?void 0:E.map((oe,ye)=>d.createElement(Pd,{key:oe},d.createElement(Fh,{onClick:()=>te(oe)},"delete"),ne.map(ge=>o(ge,i,`${t}.[${oe}]`,`[${ye}]${ge.name&&"."+ge.name}`)))))},Pd=Tt.default.div`
|
|
130
|
+
display: flex;
|
|
131
|
+
width: 100%;
|
|
151
132
|
align-items: center;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
133
|
+
justify-content: space-between;
|
|
134
|
+
flex-wrap: wrap;
|
|
135
|
+
margin-bottom: 10px;
|
|
136
|
+
label {
|
|
137
|
+
padding-bottom: 0;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
text-overflow: ellipsis;
|
|
140
|
+
line-height: 1.5;
|
|
155
141
|
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
:
|
|
159
|
-
|
|
142
|
+
span {
|
|
143
|
+
cursor: pointer;
|
|
144
|
+
margin-left: auto;
|
|
145
|
+
color: var(--color-content-secondary);
|
|
146
|
+
&:hover {
|
|
147
|
+
color: #fff;
|
|
160
148
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
`;
|
|
149
|
+
}
|
|
150
|
+
`,Fh=Tt.default.span`
|
|
151
|
+
background: transparent;
|
|
152
|
+
border: none;
|
|
153
|
+
cursor: pointer;
|
|
154
|
+
position: relative;
|
|
155
|
+
`;var as;(function(t){t.ARRAY="array",t.OBJECT="object"})(as||(as={}));function kh({schema:t,example:r}){return`(${t.type})`+(r?` ${r}`:"")}function Mh(t){const r={};return t.forEach(i=>{i.in&&(r[i.in]||(r[i.in]=[]),r[i.in].push(i))}),r}function Rh({schema:t,required:r}){return i=>{if(r&&!i)return"Field is required";if(r&&t.type===as.ARRAY&&Array.isArray(i)){if(i.length>(t.rawSchema&&t.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${t.rawSchema.maxItems}`;if(i.length<(t.rawSchema&&t.rawSchema.minItems||0)){const o=t.rawSchema.minItems;return`You should select at least ${o===1?`${o} item`:`${o} items`}`}}}}function Lh(t){if(t.type===as.ARRAY){const r=t.default||t.example;if(!r&&typeof t.rawSchema.items!="boolean"&&Array.isArray(t.rawSchema.items)){if(t.rawSchema.items[0].default)return[t.rawSchema.items[0].default];if(t.rawSchema.items[0].example)return[t.rawSchema.items[0].example]}if(!r&&typeof t.rawSchema.items!="boolean"&&!Array.isArray(t.rawSchema.items)&&(0,Wt.isObject)(t.rawSchema.items)){if(t.rawSchema.items.default)return[t.rawSchema.items.default];if(t.rawSchema.items.example)return[t.rawSchema.items.example]}return r||[]}else return(Number.isInteger(t.default)?t.default.toString():t.default)||t.example}function Dh({oneOfType:t}){return t}const Nh=["path","query","cookie","header"];function Bh({id:t,param:r,values:i}){const o=(0,d.useMemo)(()=>Rh(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,p=Lh(r.schema),y=t.split(".").map(A=>(0,Ht.dw)(A));return s?d.createElement(it.NI,null,d.createElement(Ph,{initValue:p,paramEnum:s,field:t})):d.createElement(Lr,{fullWidth:!0,"data-cy":"parameter-input",id:t,field:t,placeholder:kh(r),validate:o,initialValue:p||(0,Ht.U2)(i,y),validateOnBlur:!0,validateOnChange:!0})}function Uh({values:t,operation:r}){const i=(0,d.useMemo)(()=>Mh(r.parameters||[]),[r]),o=(p,y,A,w)=>{var E;const F=A?(0,Ht.s1)(A,p.name):p.name,G=Dh(p.schema),te=A?[y,A]:[p.in],ne=(0,Ht.s1)(...te,(0,Ht.A8)(p.name));return G&&console.warn(`Unsupported parameter definition: "${G}"`),p.schema.type===as.ARRAY?d.createElement(Ih,{key:ne,name:F,param:p,place:y,renderParameter:o}):p.schema.type===as.OBJECT?(E=p.schema.fields)==null?void 0:E.map(oe=>o(oe,y,F)):d.createElement(it.NI,{key:ne},d.createElement(it.lX,{required:p.required},w||F,":"),G?d.createElement(it.GE,null,"Unsupported field schema definition"):d.createElement(Bh,{id:ne,param:p,values:t}))},s=p=>{const y=i[p];return!y||!y.length?null:d.createElement(d.Fragment,{key:p},d.createElement(it.NI,null,d.createElement(it.iG,null," # ",p," parameters "),d.createElement("span",null,"\xA0")),y.map(A=>o(A,p)))};return d.createElement(it.iA,null,Nh.map(s))}var nr=a(7241),jh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function Vh(t){return jh(this,null,function*(){return(yield fetch(t)).json()})}const Wh=Tt.default.div`
|
|
168
156
|
position: relative;
|
|
169
157
|
height: 4px;
|
|
170
158
|
display: block;
|
|
@@ -266,62 +254,97 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
266
254
|
right: -8%;
|
|
267
255
|
}
|
|
268
256
|
}
|
|
269
|
-
`,
|
|
257
|
+
`,Id=()=>d.createElement(Wh,null,d.createElement("div",{className:"indeterminate"}));var mi=a(45756),Hh=Object.defineProperty,zh=Object.defineProperties,Gh=Object.getOwnPropertyDescriptors,Fd=Object.getOwnPropertySymbols,$h=Object.prototype.hasOwnProperty,Kh=Object.prototype.propertyIsEnumerable,kd=(t,r,i)=>r in t?Hh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Yh=(t,r)=>{for(var i in r||(r={}))$h.call(r,i)&&kd(t,i,r[i]);if(Fd)for(var i of Fd(r))Kh.call(r,i)&&kd(t,i,r[i]);return t},Jh=(t,r)=>zh(t,Gh(r));const Xh=Tt.default.input`
|
|
258
|
+
cursor: pointer;
|
|
259
|
+
margin-left: 0;
|
|
260
|
+
margin-right: 5px;
|
|
261
|
+
height: 20px;
|
|
262
|
+
|
|
263
|
+
align-self: baseline;
|
|
264
|
+
margin-top: 0;
|
|
265
|
+
margin-bottom: 0;
|
|
266
|
+
`,Qh=Tt.default.label`
|
|
267
|
+
display: inline-block;
|
|
268
|
+
cursor: pointer;
|
|
269
|
+
vertical-align: middle;
|
|
270
|
+
position: relative;
|
|
271
|
+
text-overflow: ellipsis;
|
|
272
|
+
overflow: hidden;
|
|
273
|
+
|
|
274
|
+
overflow-wrap: break-word;
|
|
275
|
+
line-height: 20px;
|
|
276
|
+
`,Zh=Tt.default.div`
|
|
277
|
+
width: ${({fullWidth:t})=>t?"100%":"50%"};
|
|
278
|
+
display: inline-flex;
|
|
279
|
+
align-items: center;
|
|
280
|
+
|
|
281
|
+
& > label {
|
|
282
|
+
white-space: ${({nowrap:t})=>t?"nowrap":"normal"};
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
${({nowrap:t})=>t?"":`
|
|
286
|
+
:not(:first-child) {
|
|
287
|
+
margin-top: 5px;
|
|
288
|
+
}
|
|
289
|
+
`}
|
|
290
|
+
`;function _h(t,r){const{fullWidth:i,id:o,label:s,nowrap:p}=t;return d.createElement(Zh,{fullWidth:i,nowrap:p},d.createElement(Xh,Jh(Yh({},t),{type:"checkbox",ref:r})),d.createElement(Qh,{htmlFor:o},s))}const Md=d.forwardRef(_h);var qh=Object.defineProperty,ev=(t,r,i)=>r in t?qh(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,tv=(t,r,i)=>(ev(t,typeof r!="symbol"?r+"":r,i),i);const rv=11;class nv extends d.Component{constructor(){super(...arguments);tv(this,"state",{collapsed:!0})}onCheckBoxClick(r){const i=r.target.value,o=r.target.checked;this.props.fieldApi.setTouched(!0);const s=this.props.fieldApi.getValue()||[];let p;if(o)p=[...s,i];else{const y=s.indexOf(i);p=[...s.slice(0,y),...s.slice(y+1)]}this.props.fieldApi.setValue(p)}isFieldChecked(r){return this.props.fieldApi.getValue().includes(r)}toggle(){this.setState({collapsed:!this.state.collapsed})}selectAll(){this.props.fieldApi.setValue(this.props.items)}clearAll(){this.props.fieldApi.setValue([])}render(){const{items:r,fieldApi:i,validateOnChange:o,maxDisplayedItems:s,showControls:p,trimItemsLength:y}=this.props,{collapsed:A}=this.state,w=i.getError(),E=s||rv,F=y&&this.state.collapsed?r.slice(0,E):r;return d.createElement("div",null,p?d.createElement(av,null,d.createElement(mi.SamplesControlButton,{onClick:()=>{this.selectAll()}},"Select all"),d.createElement(mi.SamplesControlButton,{onClick:()=>{this.clearAll()}},"Clear")):null,d.createElement("div",null,F.map(G=>d.createElement(Md,{fullWidth:!0,id:G,value:G,checked:this.isFieldChecked(G),label:G,key:G,onChange:te=>{this.onCheckBoxClick(te),o&&i.validate()}})),r.length>E&&y?d.createElement(ov,{onClick:()=>{this.toggle()}},A?"Show all":"Collapse"):null),w?d.createElement(it.Xq,null,w):"")}}const iv=$r(nv),av=(0,Tt.default)(mi.SampleControls)`
|
|
291
|
+
opacity: 1;
|
|
292
|
+
text-align: left;
|
|
293
|
+
`,ov=(0,Tt.default)(mi.SamplesControlButton)`
|
|
294
|
+
float: right;
|
|
295
|
+
`;function Rd(t){const{scopes:r,id:i}=t;let o=[];try{o=JSON.parse((0,Ht.YQ)(`auth.${i}.scopes`))}catch(s){}return!r||!r.length?d.createElement(d.Fragment,null):d.createElement(it.NI,null,d.createElement(it.lX,null," Scopes: "),d.createElement(iv,{field:`auth.${i}.scopes`,initialValue:o,items:r,showControls:!0,trimItemsLength:!0}))}var sv=Object.defineProperty,lv=Object.defineProperties,uv=Object.getOwnPropertyDescriptors,Ld=Object.getOwnPropertySymbols,fv=Object.prototype.hasOwnProperty,cv=Object.prototype.propertyIsEnumerable,Bc=(t,r,i)=>r in t?sv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,uf=(t,r)=>{for(var i in r||(r={}))fv.call(r,i)&&Bc(t,i,r[i]);if(Ld)for(var i of Ld(r))cv.call(r,i)&&Bc(t,i,r[i]);return t},Uc=(t,r)=>lv(t,uv(r)),wl=(t,r,i)=>(Bc(t,typeof r!="symbol"?r+"":r,i),i),dv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function pv(t){if(!t)return"Field is required"}class Sl extends d.Component{constructor(){super(...arguments);wl(this,"state",{error:null,loading:!1,showPkceOptions:!1}),wl(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,"")}),wl(this,"togglePkceOptions",()=>{this.setState(({showPkceOptions:r})=>({showPkceOptions:!r}))}),wl(this,"handleCodeVerifierChange",r=>dv(this,[r],function*({target:{value:i}}){const o=yield H(i);this.setState({codeVerifier:i,validCodeChallenge:o})}))}get values(){var r,i;return((i=(r=this.props.form.values)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}get pkceInputActionButtonProps(){if(this.state.codeVerifier!==void 0&&this.state.codeChallenge!==this.state.validCodeChallenge)return{label:"sync",onClick:()=>{this.state.codeVerifier&&this.setState({codeChallenge:this.state.validCodeChallenge})}}}componentDidMount(){if(this.props.usePkce){const r=(0,$n.CY)(43);H(r).then(i=>{this.setState({codeVerifier:r,codeChallenge:i,validCodeChallenge:i})})}}handleAuthorize(r){if(!r)return;this.props.formApi.validate();const{flow:i,usePkce:o,id:s,tokenUrl:p,authCorsProxyUrl:y,tokenEndpointAuthMethod:A}=this.props;if(!(0,$n.Qr)(this.errors))return;this.setState({loading:!0,error:null});const w=y?y+(0,nr.jg)(r):r,E=y&&p?y+(0,nr.jg)(p):p,F=this.props.formApi.getValue(`auth.${s}.scopes`),G={authorizationUrl:w.startsWith("http")?w:this.props.server+w,clientId:this.values.client_id,scopes:F,redirectUri:this.context.oAuth2RedirectURI,routingBasePath:this.context.routingBasePath,successCallback:te=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,te),this.setState({loading:!1,error:null})},errorCallback:te=>{this.setState({loading:!1,error:(te==null?void 0:te.message)||"Failed to retrieve the access token"})}};if(i==="implicit"&&m.authorizeImplicit(G),!(0,nr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}i==="authorizationCode"&&m.authorizeAuthorizationCode(uf(Uc(uf({},G),{tokenUrl:(E==null?void 0:E.startsWith("http"))?E:this.props.server+E,clientSecret:this.values.client_secret,extraHeaders:(0,nr.Or)({authMethod:A,clientId:this.values.client_id,clientSecret:this.values.client_secret})}),o&&{codeVerifier:this.state.codeVerifier,codeChallenge:this.state.codeChallenge}))}handleLogout(){this.clearToken(),this.setState({error:null})}handleCancel(){this.setState({loading:!1,error:null}),m.clearRedirectData(this.props.flow)}render(){const{error:r,loading:i}=this.state,{id:o,scopes:s,authorizationUrl:p,flow:y,usePkce:A,defaultValues:w}=this.props;if(!p)return d.createElement(it.Xq,null,"No flow info");let E=(0,Ht.YQ)(`auth.${o}.token`)||JSON.stringify(w==null?void 0:w.token);E=E?JSON.parse(E):"";const F=(0,Ht.Al)(o,"client_id"),G={field:`auth.${o}.client_id`,fullWidth:!0,initialValue:(0,Ht.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),initValue:(0,Ht.YQ)(`auth.${o}.client_id`)||this.props.clientId||(w==null?void 0:w.client_id),placeholder:"Your OAuth2 app Client ID",validate:pv,validateOnBlur:!0,validateOnChange:!0};return d.createElement("div",null,d.createElement(it.n5,null,d.createElement(it.NI,null,d.createElement(it.lX,null," Client ID: "),F?d.createElement(ii,Uc(uf({},G),{options:F})):d.createElement(Lr,Uc(uf({},G),{"data-cy":"client-id-input",panel:"try-it"}))),y==="authorizationCode"&&d.createElement(d.Fragment,null,(!(A==null?void 0:A.hideClientSecretInput)||!A)&&d.createElement(it.NI,null,d.createElement(it.lX,null,"Client Secret:"),d.createElement(Lr,{type:"password",fullWidth:!0,field:`auth.${o}.client_secret`,initialValue:(0,Ht.YQ)(`auth.${o}.client_secret`)||(w==null?void 0:w.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),A&&!A.disableManualConfiguration&&d.createElement(gv,null,d.createElement(Md,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:this.state.showPkceOptions,onChange:this.togglePkceOptions,"data-cy":"pkce-options-toggle"}),this.state.showPkceOptions&&d.createElement(yv,null,d.createElement(it.NI,null,d.createElement(it.lX,null,"Code Verifier"),d.createElement(Kn,{fullWidth:!0,value:this.state.codeVerifier,onChange:this.handleCodeVerifierChange,panel:"try-it","data-cy":"code-verifier-input"})),d.createElement(it.NI,null,d.createElement(it.lX,null,"Code Challenge"),d.createElement(Kn,{fullWidth:!0,value:this.state.codeChallenge,onChange:({target:{value:te}})=>{this.setState({codeChallenge:te})},inputActionButton:this.pkceInputActionButtonProps,panel:"try-it","data-cy":"code-challenge-input"}))))),d.createElement(Lr,{fullWidth:!0,field:`auth.${o}.token`,type:"hidden",initialValue:E,panel:"try-it"}),d.createElement(Rd,{id:o,scopes:s}),this.values.token&&this.values.token.access_token?d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token: "),d.createElement(Kn,{disabled:!0,type:"password",fullWidth:!0,value:this.values.token.access_token,panel:"try-it"})):null),d.createElement(vv,null,this.values.token&&this.values.token.access_token?d.createElement(mi.Button,{fullWidth:!0,onClick:()=>{this.handleLogout()}},"Log out"):i?d.createElement(d.Fragment,null,d.createElement(mi.Button,{fullWidth:!0,onClick:()=>{this.handleCancel()}},"Cancel"),d.createElement(Id,null)):d.createElement(mi.Button,{fullWidth:!0,disabled:!(0,$n.Qr)(this.errors),onClick:()=>{this.handleAuthorize(p)}},"Authorize")),i||r||!this.values.token||!this.values.token.access_token&&d.createElement(it.n5,null,d.createElement(it.NI,null,i?d.createElement(it.GE,null,"Please, finish your authorization flow or cancel authorization."):r?d.createElement(d.Fragment,null,d.createElement(hv,null,d.createElement(it.Xq,null,r))):!this.values.token||!this.values.token.access_token?d.createElement(it.GE,null," No Access Token. Please, Authorize. "):null)))}}wl(Sl,"contextType",Wt.OptionsContext);const hv=Tt.default.div`
|
|
270
296
|
font-family: var(--font-family-monospaced);
|
|
271
297
|
margin-top: 10px;
|
|
272
298
|
line-height: 1;
|
|
273
299
|
padding-left: 10px;
|
|
274
300
|
border-left: 1px solid gray;
|
|
275
|
-
`,
|
|
301
|
+
`,vv=Tt.default.div`
|
|
276
302
|
margin-bottom: 15px;
|
|
277
|
-
`,
|
|
303
|
+
`,gv=Tt.default.div`
|
|
278
304
|
padding: 8px 0 20px;
|
|
279
|
-
`,
|
|
305
|
+
`,yv=Tt.default.div`
|
|
280
306
|
padding: 4px 0;
|
|
281
|
-
`;var Cv=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});function Ov(t){return Cv(this,null,function*(){return(yield fetch(t)).json()})}var Tv=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});function Pv(t){var r;const{scheme:n,defaultValues:o}=t,[s,p]=d.useState({}),[y,E]=d.useState(),[w,A]=d.useState(!1);d.useEffect(()=>{k(n.openIdConnectUrl)},[n.openIdConnectUrl]);const k=G=>Tv(this,null,function*(){A(!0),E("");try{const ne=yield Ov(G);p(ne)}catch(ne){E(ne.message)}A(!1)});return d.createElement("div",null,w?d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(jd,null)):d.createElement("div",null,y?d.createElement(at.Xq,null,y):((r=s==null?void 0:s.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(Iv,null,"OAuth2 Implicit Flow"),d.createElement(cf,{key:t.id,authorizationUrl:s.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:s.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:o})):d.createElement("div",null,"Unsupported flow")))}const Iv=Tt.default.div`
|
|
282
|
-
margin-top: 5px;
|
|
283
|
-
margin-bottom: 10px;
|
|
284
|
-
`;var Fv=Object.defineProperty,kv=Object.defineProperties,Mv=Object.getOwnPropertyDescriptors,Wd=Object.getOwnPropertySymbols,Rv=Object.prototype.hasOwnProperty,Lv=Object.prototype.propertyIsEnumerable,Wc=(t,r,n)=>r in t?Fv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,os=(t,r)=>{for(var n in r||(r={}))Rv.call(r,n)&&Wc(t,n,r[n]);if(Wd)for(var n of Wd(r))Lv.call(r,n)&&Wc(t,n,r[n]);return t},ss=(t,r)=>kv(t,Mv(r)),Hd=(t,r,n)=>(Wc(t,typeof r!="symbol"?r+"":r,n),n);class Dv extends d.Component{constructor(){super(...arguments);Hd(this,"state",{activeScheme:0}),Hd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,Gt.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const o=r.operation.security.map(y=>y.schemes.map(E=>E.id).join(" and ")),s=(0,Gt.YQ)("securityRequirementName"),p=o.findIndex(y=>y===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:n}=this.state,o=this.props.operation.security,p=o.map(y=>y.schemes.map(E=>E.id).join(" and ")).map((y,E)=>({value:y,idx:E}));return p.length===0?null:d.createElement(d.Fragment,null,d.createElement(at.n5,null,p.length>1&&d.createElement(at.NI,null,d.createElement(at.lX,null," Security scheme: "),d.createElement(Kn.VD,{variant:"dark",fullWidth:!0,options:p,value:p[n].value,onChange:this.handleSchemeChange}))||null,o[n].schemes.map(y=>{var E,w,A,k,G,ne,re;const ce=(0,Gt.A8)(y.id);if(y.type==="apiKey"){const xe=(0,Gt.Al)(ce,""),ge={field:`auth.${ce}`,fullWidth:!0,initialValue:(0,gr.NG)(y)||(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:(0,gr.NG)(y)||(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:gr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(at.NI,{key:ce},d.createElement(at.lX,null," ",y.name,": "),xe?d.createElement(oa,ss(os({},ge),{options:xe})):d.createElement(nr,ss(os({},ge),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(y.type==="http"){if(y.scheme==="basic"){const xe=(0,Gt.Al)(ce,"username"),ge={field:`auth.${ce}.username`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${ce}.username`)||((E=r==null?void 0:r[ce])==null?void 0:E.username),initValue:(0,Gt.YQ)(`auth.${ce}.username`)||((w=r==null?void 0:r[ce])==null?void 0:w.username),validate:gr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(at.NI,null,d.createElement(at.lX,null," ",(0,uo.l)("tryItAuthBasicUsername"),": "),xe?d.createElement(oa,ss(os({},ge),{options:xe})):d.createElement(nr,ss(os({},ge),{panel:"try-it"}))),d.createElement(at.NI,null,d.createElement(at.lX,null," ",(0,uo.l)("tryItAuthBasicPassword"),": "),d.createElement(nr,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ce}.password`,initialValue:(0,Gt.YQ)(`auth.${ce}.password`)||((A=r==null?void 0:r[ce])==null?void 0:A.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.scheme==="bearer"){const xe=(0,Gt.Al)(ce,""),ge={field:`auth.${ce}`,fullWidth:!0,initialValue:(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),initValue:(0,Gt.YQ)(`auth.${ce}`)||(r==null?void 0:r[ce]),validate:gr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:ce},d.createElement(at.NI,null,d.createElement(at.lX,null," Bearer Token: "),xe?d.createElement(oa,ss(os({},ge),{options:xe})):d.createElement(nr,ss(os({},ge),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(y.type==="oauth2"&&y.flows&&y.flows.clientCredentials)return d.createElement(dv,{key:ce,flow:y.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.clientCredentials["x-defaultClientId"]||y["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]});if(y.type==="oauth2"&&y.flows&&y.flows.implicit)return d.createElement(cf,{key:ce,authorizationUrl:y.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((G=(k=y==null?void 0:y.flows)==null?void 0:k.implicit)==null?void 0:G.scopes)||{}),server:this.props.activeServer,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.implicit["x-defaultClientId"]||y["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[ce]});if(y.type==="oauth2"&&y.flows&&y.flows.authorizationCode)return d.createElement(cf,{key:ce,authorizationUrl:y.flows.authorizationCode.authorizationUrl,tokenUrl:y.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((ne=y.flows.authorizationCode)==null?void 0:ne.scopes)||{}),server:this.props.activeServer,id:ce,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.authorizationCode["x-defaultClientId"]||y["x-defaultClientId"],flow:"authorizationCode",usePkce:y.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[ce]});if(y.type==="oauth2"){let xe=(0,Gt.YQ)(`auth.${ce}.token`)||JSON.stringify((re=r==null?void 0:r[ce])==null?void 0:re.token);return xe=xe?JSON.parse(xe):{},d.createElement(d.Fragment,{key:ce},d.createElement(at.NI,null,d.createElement(at.lX,null," Access Token Type: "),d.createElement(nr,{fullWidth:!0,field:`auth.${ce}.token.token_type`,initialValue:xe.token_type||"Bearer",panel:"try-it"})),d.createElement(at.NI,null,d.createElement(at.lX,null," Access Token: "),d.createElement(nr,{type:"password",fullWidth:!0,field:`auth.${ce}.token.access_token`,validate:gr.np,initialValue:xe.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.type==="openIdConnect")return d.createElement(Pv,{key:ce,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:ce,form:this.props.form,formApi:this.props.formApi,scheme:y,clientId:y["x-defaultClientId"],defaultValues:r==null?void 0:r[ce]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Nv=a(9996),zd=a.n(Nv),Hc=a(67897),Al=a(49376),Bv=Object.defineProperty,df=Object.getOwnPropertySymbols,Gd=Object.prototype.hasOwnProperty,$d=Object.prototype.propertyIsEnumerable,Kd=(t,r,n)=>r in t?Bv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,Uv=(t,r)=>{for(var n in r||(r={}))Gd.call(r,n)&&Kd(t,n,r[n]);if(df)for(var n of df(r))$d.call(r,n)&&Kd(t,n,r[n]);return t},jv=(t,r)=>{var n={};for(var o in t)Gd.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&df)for(var o of df(t))r.indexOf(o)<0&&$d.call(t,o)&&(n[o]=t[o]);return n},Vv=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});const Yd=d.forwardRef((t,r)=>{var n=jv(t,[]);const{schema:o,contentName:s,onChange:p,name:y}=n,{render:E}=On(Uv({field:y},n)),w=A=>Vv(void 0,null,function*(){const k=yield It(A.target.files,o);p(s,k)});return E(d.createElement("input",{"data-cy":"file-upload-input",type:"file",id:n.id,className:n.className,name:n.name,onChange:w,multiple:n.multiple,accept:n.accept,ref:r}))});Yd.displayName="FileUpload";const Wv=(0,Fa.Pi)(t=>{var r;const{mediaType:n,onChange:o,formApi:s}=t,p=n.examples||{},{exampleKey:y}=(0,Hc.C6)(n.operation,p),E=(r=p[y])==null?void 0:r.rawValue,w=Hv(n);(0,d.useEffect)(()=>s&&w.forEach(k=>{var G,ne;const re=E==null?void 0:E[k.name],ce=(ne=(G=k.example)!=null?G:re==null?void 0:re.example)!=null?ne:re,xe=typeof ce=="object"?JSON.stringify(ce):ce;ce!==void 0&&s.setValue("body."+k.name,`${xe}`)}),[y]);const A=n.schema||{};return dt(A,n.name)?d.createElement(Jd,null,d.createElement(at.NI,null,d.createElement(Xd,{fullWidth:!0,id:`body.${n.name}`,name:`body.${n.name}`,accept:ot(n.name),schema:A,contentName:n.name,onChange:o}))):A.type!==me.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${n.name}"`,A),null):d.createElement(Jd,null,w.map(k=>{const G=k.schema||{},ne=n.name===Al.T.MULTIPART&>(G),re=G.contentMediaType||"",ce=ne?d.createElement(Xd,{fullWidth:!0,id:"body."+k.name,name:"body."+k.name,accept:ot(re),multiple:G.type==="array",schema:G,contentName:k.name,onChange:o}):d.createElement(nr,{fullWidth:!0,id:"body."+k.name,field:"body."+k.name,placeholder:G.description||k.name,panel:"try-it"});return d.createElement(at.NI,{key:k.name},d.createElement(at.lX,null,k.name,":"),ce)}))});function Hv(t){var r,n,o,s,p;return(((n=(r=t.schema)==null?void 0:r.oneOf)==null?void 0:n.length)?((s=t.schema)==null?void 0:s.oneOf[(o=t.schema)==null?void 0:o.activeOneOf].fields)||[]:((p=t.schema)==null?void 0:p.fields)||[]).filter(y=>!y.schema.readOnly)}const Jd=Tt.default.div`
|
|
307
|
+
`;var mv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function xv(t){var r,i;const{scheme:o,defaultValues:s}=t,[p,y]=(0,d.useState)({}),[A,w]=(0,d.useState)(),[E,F]=(0,d.useState)(!1);(0,d.useEffect)(()=>{G(o.openIdConnectUrl)},[o.openIdConnectUrl]);const G=te=>mv(this,null,function*(){F(!0),w("");try{const ne=yield Vh(te);y(ne)}catch(ne){w(ne.message)}F(!1)});return E?d.createElement(bv,null):A?d.createElement(Dd,{message:A}):d.createElement("div",null,d.createElement("div",null,((r=p==null?void 0:p.response_types_supported)==null?void 0:r.includes("token"))?d.createElement(d.Fragment,null,d.createElement(an.S6,null,"OAuth2 Implicit Flow"),d.createElement(Sl,{key:t.id,authorizationUrl:p.authorization_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:p.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,flow:"implicit",defaultValues:s})):((i=p==null?void 0:p.response_types_supported)==null?void 0:i.includes("code"))?d.createElement(d.Fragment,null,d.createElement(an.S6,null,"OAuth2 Authorization Flow"),d.createElement(Sl,{key:t.id,authorizationUrl:p.authorization_endpoint,tokenUrl:p.token_endpoint,authCorsProxyUrl:t.authCorsProxyUrl,scopes:p.scopes_supported,server:t.server,id:t.id,form:t.form,formApi:t.formApi,clientId:t.clientId,tokenEndpointAuthMethod:p==null?void 0:p.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):d.createElement("div",null,"Unsupported flow")))}function bv(){return d.createElement("div",null,d.createElement("div",null,d.createElement("div",null,"Fetching OpenID Connect metadata..."),d.createElement(Id,null)))}function Dd({message:t}){return d.createElement("div",null,d.createElement("div",null,d.createElement(it.Xq,null,t)))}var wv=Object.defineProperty,Sv=Object.defineProperties,Av=Object.getOwnPropertyDescriptors,Nd=Object.getOwnPropertySymbols,Ev=Object.prototype.hasOwnProperty,Cv=Object.prototype.propertyIsEnumerable,jc=(t,r,i)=>r in t?wv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Bd=(t,r)=>{for(var i in r||(r={}))Ev.call(r,i)&&jc(t,i,r[i]);if(Nd)for(var i of Nd(r))Cv.call(r,i)&&jc(t,i,r[i]);return t},Ud=(t,r)=>Sv(t,Av(r)),ff=(t,r,i)=>(jc(t,typeof r!="symbol"?r+"":r,i),i),Ov=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function Tv(t){if(!t)return"Token is required"}class Pv extends d.Component{constructor(){super(...arguments);ff(this,"state",{error:"",loading:!1,tokenMasked:!0}),ff(this,"clearToken",()=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,""),(0,Ht.WW)(`auth.${this.props.id}.token`,"")}),ff(this,"toggleTokenMask",()=>{this.setState({tokenMasked:!this.state.tokenMasked})}),ff(this,"requestToken",()=>Ov(this,null,function*(){if(this.state.loading)return;const{server:r,flow:i,authCorsProxyUrl:o}=this.props,s=o&&i.tokenUrl?o+(0,nr.jg)(i.tokenUrl):i.tokenUrl;if(this.errors.client_id||this.errors.client_secret){console.log("Provide client_id and client_secret");return}const p=this.values.client_id,y=this.values.client_secret;if(!p||!y){console.log("Provide client_id and client_secret");return}this.setState({loading:!0});const A=i["x-tokenEndpointAuthMethod"];if(!(0,nr.xl)(A)){console.log(`Unsupported token endpoint auth method: ${A}`);return}yield m.authorizeClientCredentials({tokenUrl:s.startsWith("http")?s:r+s,clientId:p,clientSecret:y,scopes:this.values.scopes,extraHeaders:(0,nr.Or)({authMethod:A,clientId:p,clientSecret:y}),successCallback:w=>{this.props.formApi.setValue(`auth.${this.props.id}.token`,w),this.setState({loading:!1})},errorCallback:w=>{this.clearToken(),this.setState({error:w.message,loading:!1})}})}))}get values(){var r,i,o;return((o=(i=(r=this.props.form)==null?void 0:r.values)==null?void 0:i.auth)==null?void 0:o[this.props.id])||{}}get errors(){var r,i;return((i=(r=this.props.form.errors)==null?void 0:r.auth)==null?void 0:i[this.props.id])||{}}render(){const{loading:r,error:i,tokenMasked:o}=this.state,{id:s,defaultValues:p}=this.props,y=Object.keys(this.props.flow.scopes);let A=(0,Ht.YQ)(`auth.${s}.token`)||JSON.stringify(p==null?void 0:p.token);A=A?JSON.parse(A):"";const w=(0,Ht.Al)(s,"client_id"),E={field:`auth.${s}.client_id`,fullWidth:!0,initialValue:(0,Ht.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),initValue:(0,Ht.YQ)(`auth.${s}.client_id`)||this.props.clientId||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return d.createElement(d.Fragment,null,d.createElement(it.n5,null,d.createElement(it.NI,null,d.createElement(it.lX,null,"Client ID:"),w?d.createElement(ii,Ud(Bd({},E),{options:w})):d.createElement(Lr,Ud(Bd({},E),{type:"password",panel:"try-it"}))),d.createElement(it.NI,null,d.createElement(it.lX,null,"Client Secret:"),d.createElement(Lr,{type:"password",fullWidth:!0,field:`auth.${s}.client_secret`,initialValue:(0,Ht.YQ)(`auth.${s}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),d.createElement(Lr,{fullWidth:!0,field:`auth.${s}.token`,type:"hidden",initialValue:A,validate:Tv}),d.createElement(Rd,{id:s,scopes:y})),d.createElement(mi.Button,{color:"primary",onClick:this.requestToken,blinking:r},r?"Loading...":"Request Token"),d.createElement(it.ph,null," Access Token "),i?d.createElement(it.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",d.createElement("pre",null,i)," "):this.values.token&&this.values.token.access_token?d.createElement(it.TR,null,d.createElement(it.WA,{length:this.values.token.access_token.length,masked:o},this.values.token.access_token),d.createElement(it.lf,{onClick:this.toggleTokenMask},o?"Show":"Hide"," "),d.createElement(it.h,{onClick:this.clearToken}," Clear ")):d.createElement(it.Xq,{style:{marginBottom:"1em"}},"No token"))}}const Iv=Pv;var Fv=Object.defineProperty,kv=Object.defineProperties,Mv=Object.getOwnPropertyDescriptors,jd=Object.getOwnPropertySymbols,Rv=Object.prototype.hasOwnProperty,Lv=Object.prototype.propertyIsEnumerable,Vc=(t,r,i)=>r in t?Fv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,os=(t,r)=>{for(var i in r||(r={}))Rv.call(r,i)&&Vc(t,i,r[i]);if(jd)for(var i of jd(r))Lv.call(r,i)&&Vc(t,i,r[i]);return t},ss=(t,r)=>kv(t,Mv(r)),Vd=(t,r,i)=>(Vc(t,typeof r!="symbol"?r+"":r,i),i);class Dv extends d.Component{constructor(){super(...arguments);Vd(this,"state",{activeScheme:0}),Vd(this,"handleSchemeChange",r=>{this.setState({activeScheme:r.idx}),(0,Ht.WW)("securityRequirementName",r.value)})}static getDerivedStateFromProps(r){const o=r.operation.security.map(y=>y.schemes.map(A=>A.id).join(" and ")),s=(0,Ht.YQ)("securityRequirementName"),p=o.findIndex(y=>y===s);return{activeScheme:p<0?0:p}}render(){const{securityDefaults:r}=this.props,{activeScheme:i}=this.state,o=this.props.operation.security,p=o.map(y=>y.schemes.map(A=>A.id).join(" and ")).filter(Boolean).map((y,A)=>({value:y,idx:A}));return p.length===0?d.createElement(Dd,{message:"Cannot find security schema in the definition"}):d.createElement(d.Fragment,null,d.createElement(it.n5,null,p.length>1&&d.createElement(it.NI,null,d.createElement(it.lX,null," Security scheme: "),d.createElement(an.VD,{variant:"dark",fullWidth:!0,options:p,value:p[i].value,onChange:this.handleSchemeChange}))||null,o[i].schemes.map(y=>{var A,w,E,F,G,te,ne;const oe=(0,Ht.A8)(y.id);if(y.type==="apiKey"){const ye=(0,Ht.Al)(oe,""),ge={field:`auth.${oe}`,fullWidth:!0,initialValue:(0,nr.NG)(y)||(0,Ht.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),initValue:(0,nr.NG)(y)||(0,Ht.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),validate:nr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(it.NI,{key:oe},d.createElement(it.lX,null," ",y.name,": "),ye?d.createElement(ii,ss(os({},ge),{options:ye})):d.createElement(Lr,ss(os({},ge),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(y.type==="http"){if(y.scheme==="basic"){const ye=(0,Ht.Al)(oe,"username"),ge={field:`auth.${oe}.username`,fullWidth:!0,initialValue:(0,Ht.YQ)(`auth.${oe}.username`)||((A=r==null?void 0:r[oe])==null?void 0:A.username),initValue:(0,Ht.YQ)(`auth.${oe}.username`)||((w=r==null?void 0:r[oe])==null?void 0:w.username),validate:nr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:oe},d.createElement(it.NI,null,d.createElement(it.lX,null," ",(0,uo.l)("tryItAuthBasicUsername"),": "),ye?d.createElement(ii,ss(os({},ge),{options:ye})):d.createElement(Lr,ss(os({},ge),{panel:"try-it"}))),d.createElement(it.NI,null,d.createElement(it.lX,null," ",(0,uo.l)("tryItAuthBasicPassword"),": "),d.createElement(Lr,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${oe}.password`,initialValue:(0,Ht.YQ)(`auth.${oe}.password`)||((E=r==null?void 0:r[oe])==null?void 0:E.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.scheme==="bearer"){const ye=(0,Ht.Al)(oe,""),ge={field:`auth.${oe}`,fullWidth:!0,initialValue:(0,Ht.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),initValue:(0,Ht.YQ)(`auth.${oe}`)||(r==null?void 0:r[oe]),validate:nr.np,validateOnBlur:!0,validateOnChange:!0};return d.createElement(d.Fragment,{key:oe},d.createElement(it.NI,null,d.createElement(it.lX,null," Bearer Token: "),ye?d.createElement(ii,ss(os({},ge),{options:ye})):d.createElement(Lr,ss(os({},ge),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(y.type==="oauth2"&&y.flows&&y.flows.clientCredentials)return d.createElement(Iv,{key:oe,flow:y.flows.clientCredentials,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:oe,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.clientCredentials["x-defaultClientId"]||y["x-defaultClientId"],defaultValues:r==null?void 0:r[oe]});if(y.type==="oauth2"&&y.flows&&y.flows.implicit)return d.createElement(Sl,{key:oe,authorizationUrl:y.flows.implicit.authorizationUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((G=(F=y==null?void 0:y.flows)==null?void 0:F.implicit)==null?void 0:G.scopes)||{}),server:this.props.activeServer,id:oe,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.implicit["x-defaultClientId"]||y["x-defaultClientId"],flow:"implicit",defaultValues:r==null?void 0:r[oe]});if(y.type==="oauth2"&&y.flows&&y.flows.authorizationCode)return d.createElement(Sl,{key:oe,authorizationUrl:y.flows.authorizationCode.authorizationUrl,tokenUrl:y.flows.authorizationCode.tokenUrl,authCorsProxyUrl:this.props.authCorsProxyUrl,scopes:Object.keys(((te=y.flows.authorizationCode)==null?void 0:te.scopes)||{}),server:this.props.activeServer,id:oe,form:this.props.form,formApi:this.props.formApi,clientId:y.flows.authorizationCode["x-defaultClientId"]||y["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:y.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:y.flows.authorizationCode["x-usePkce"],defaultValues:r==null?void 0:r[oe]});if(y.type==="oauth2"){let ye=(0,Ht.YQ)(`auth.${oe}.token`)||JSON.stringify((ne=r==null?void 0:r[oe])==null?void 0:ne.token);return ye=ye?JSON.parse(ye):{},d.createElement(d.Fragment,{key:oe},d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token Type: "),d.createElement(Lr,{fullWidth:!0,field:`auth.${oe}.token.token_type`,initialValue:ye.token_type||"Bearer",panel:"try-it"})),d.createElement(it.NI,null,d.createElement(it.lX,null," Access Token: "),d.createElement(Lr,{type:"password",fullWidth:!0,field:`auth.${oe}.token.access_token`,validate:nr.np,initialValue:ye.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(y.type==="openIdConnect")return d.createElement(xv,{key:oe,server:this.props.activeServer,authCorsProxyUrl:this.props.authCorsProxyUrl,id:oe,form:this.props.form,formApi:this.props.formApi,scheme:y,clientId:y["x-defaultClientId"],defaultValues:r==null?void 0:r[oe]})}})),d.createElement("small",null,d.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))}}var Nv=a(9996),Bv=a.n(Nv),Wc=a(67897),cf=a(49376),Uv=Object.defineProperty,df=Object.getOwnPropertySymbols,Wd=Object.prototype.hasOwnProperty,Hd=Object.prototype.propertyIsEnumerable,zd=(t,r,i)=>r in t?Uv(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,jv=(t,r)=>{for(var i in r||(r={}))Wd.call(r,i)&&zd(t,i,r[i]);if(df)for(var i of df(r))Hd.call(r,i)&&zd(t,i,r[i]);return t},Gd=(t,r)=>{var i={};for(var o in t)Wd.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&df)for(var o of df(t))r.indexOf(o)<0&&Hd.call(t,o)&&(i[o]=t[o]);return i},Vv=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const $d=d.forwardRef((t,r)=>{var i=Gd(t,[]);const o=i,{schema:s,contentName:p,onChange:y,name:A}=o,w=Gd(o,["schema","contentName","onChange","name"]),{render:E}=Pn(jv({field:A},w)),F=G=>Vv(void 0,null,function*(){const te=yield It(G.target.files,s);y(p,te)});return E(d.createElement("input",{"data-cy":"file-upload-input",type:"file",id:i.id,className:i.className,name:i.name,onChange:F,multiple:i.multiple,accept:i.accept,ref:r}))});$d.displayName="FileUpload";const Wv=(0,Fa.Pi)(t=>{var r;const{mediaType:i,onChange:o,formApi:s}=t,p=i.examples||{},{exampleKey:y}=(0,Wc.C6)(i.operation,p),A=(r=p[y])==null?void 0:r.rawValue,w=Hv(i);(0,d.useEffect)(()=>s&&w.forEach(F=>{var G,te;const ne=A==null?void 0:A[F.name],oe=(te=(G=F.example)!=null?G:ne==null?void 0:ne.example)!=null?te:ne,ye=typeof oe=="object"?JSON.stringify(oe):oe;oe!==void 0&&s.setValue("body."+F.name,`${ye}`)}),[y]);const E=i.schema||{};return dt(E,i.name)?d.createElement(Kd,null,d.createElement(it.NI,null,d.createElement(Yd,{fullWidth:!0,id:`body.${i.name}`,name:`body.${i.name}`,accept:ot(i.name),schema:E,contentName:i.name,onChange:o}))):E.type!==be.OBJECT&&!w?(console.warn(`Invalid schema for request body and mime type: "${i.name}"`,E),null):d.createElement(Kd,null,w.map(F=>{const G=F.schema||{},te=i.name===cf.T.MULTIPART&&yt(G),ne=G.contentMediaType||"",oe=te?d.createElement(Yd,{fullWidth:!0,id:"body."+F.name,name:"body."+F.name,accept:ot(ne),multiple:G.type==="array",schema:G,contentName:F.name,onChange:o}):d.createElement(Lr,{fullWidth:!0,id:"body."+F.name,field:"body."+F.name,placeholder:G.description||F.name,panel:"try-it"});return d.createElement(it.NI,{key:F.name},d.createElement(it.lX,null,F.name,":"),oe)}))});function Hv(t){var r,i,o,s,p;return(((i=(r=t.schema)==null?void 0:r.oneOf)==null?void 0:i.length)?((s=t.schema)==null?void 0:s.oneOf[(o=t.schema)==null?void 0:o.activeOneOf].fields)||[]:((p=t.schema)==null?void 0:p.fields)||[]).filter(y=>!y.schema.readOnly)}const Kd=Tt.default.div`
|
|
285
308
|
> div {
|
|
286
309
|
margin-top: 10px;
|
|
287
310
|
}
|
|
288
|
-
`,
|
|
289
|
-
${
|
|
311
|
+
`,Yd=(0,Tt.default)($d)`
|
|
312
|
+
${gi("try-it")};
|
|
290
313
|
${({inputType:t})=>t==="password"?"padding-right: 40px;":""};
|
|
291
314
|
${({fullWidth:t})=>t?"width: 100%;":""}
|
|
292
|
-
`;var
|
|
315
|
+
`;var Jd=a(72409);const zv=(0,Tt.default)(Jd.A3)`
|
|
293
316
|
border-radius: var(--panels-border-radius);
|
|
294
317
|
margin-bottom: 10px;
|
|
295
|
-
`;var Gv=a(35310),ls=a(4631);function pf(t,r){r===void 0&&(r=!1);var
|
|
296
|
-
`;break;case 114:Te+="\r";break;case 116:Te+=" ";break;case 117:var
|
|
297
|
-
`),E
|
|
318
|
+
`;var Gv=a(35310),ls=a(4631);function pf(t,r){r===void 0&&(r=!1);var i=t.length,o=0,s="",p=0,y=16,A=0,w=0,E=0,F=0,G=0;function te(Te,He){for(var Ve=0,ze=0;Ve<Te||!He;){var De=t.charCodeAt(o);if(De>=48&&De<=57)ze=ze*16+De-48;else if(De>=65&&De<=70)ze=ze*16+De-65+10;else if(De>=97&&De<=102)ze=ze*16+De-97+10;else break;o++,Ve++}return Ve<Te&&(ze=-1),ze}function ne(Te){o=Te,s="",p=0,y=16,G=0}function oe(){var Te=o;if(t.charCodeAt(o)===48)o++;else for(o++;o<t.length&&us(t.charCodeAt(o));)o++;if(o<t.length&&t.charCodeAt(o)===46)if(o++,o<t.length&&us(t.charCodeAt(o)))for(o++;o<t.length&&us(t.charCodeAt(o));)o++;else return G=3,t.substring(Te,o);var He=o;if(o<t.length&&(t.charCodeAt(o)===69||t.charCodeAt(o)===101))if(o++,(o<t.length&&t.charCodeAt(o)===43||t.charCodeAt(o)===45)&&o++,o<t.length&&us(t.charCodeAt(o))){for(o++;o<t.length&&us(t.charCodeAt(o));)o++;He=o}else G=3;return t.substring(Te,He)}function ye(){for(var Te="",He=o;;){if(o>=i){Te+=t.substring(He,o),G=2;break}var Ve=t.charCodeAt(o);if(Ve===34){Te+=t.substring(He,o),o++;break}if(Ve===92){if(Te+=t.substring(He,o),o++,o>=i){G=2;break}var ze=t.charCodeAt(o++);switch(ze){case 34:Te+='"';break;case 92:Te+="\\";break;case 47:Te+="/";break;case 98:Te+="\b";break;case 102:Te+="\f";break;case 110:Te+=`
|
|
319
|
+
`;break;case 114:Te+="\r";break;case 116:Te+=" ";break;case 117:var De=te(4,!0);De>=0?Te+=String.fromCharCode(De):G=4;break;default:G=5}He=o;continue}if(Ve>=0&&Ve<=31)if(Al(Ve)){Te+=t.substring(He,o),G=2;break}else G=6;o++}return Te}function ge(){if(s="",G=0,p=o,w=A,F=E,o>=i)return p=i,y=17;var Te=t.charCodeAt(o);if(Hc(Te)){do o++,s+=String.fromCharCode(Te),Te=t.charCodeAt(o);while(Hc(Te));return y=15}if(Al(Te))return o++,s+=String.fromCharCode(Te),Te===13&&t.charCodeAt(o)===10&&(o++,s+=`
|
|
320
|
+
`),A++,E=o,y=14;switch(Te){case 123:return o++,y=1;case 125:return o++,y=2;case 91:return o++,y=3;case 93:return o++,y=4;case 58:return o++,y=6;case 44:return o++,y=5;case 34:return o++,s=ye(),y=10;case 47:var He=o-1;if(t.charCodeAt(o+1)===47){for(o+=2;o<i&&!Al(t.charCodeAt(o));)o++;return s=t.substring(He,o),y=12}if(t.charCodeAt(o+1)===42){o+=2;for(var Ve=i-1,ze=!1;o<Ve;){var De=t.charCodeAt(o);if(De===42&&t.charCodeAt(o+1)===47){o+=2,ze=!0;break}o++,Al(De)&&(De===13&&t.charCodeAt(o)===10&&o++,A++,E=o)}return ze||(o++,G=1),s=t.substring(He,o),y=13}return s+=String.fromCharCode(Te),o++,y=16;case 45:if(s+=String.fromCharCode(Te),o++,o===i||!us(t.charCodeAt(o)))return y=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=oe(),y=11;default:for(;o<i&&Ae(Te);)o++,Te=t.charCodeAt(o);if(p!==o){switch(s=t.substring(p,o),s){case"true":return y=8;case"false":return y=9;case"null":return y=7}return y=16}return s+=String.fromCharCode(Te),o++,y=16}}function Ae(Te){if(Hc(Te)||Al(Te))return!1;switch(Te){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function me(){var Te;do Te=ge();while(Te>=12&&Te<=15);return Te}return{setPosition:ne,getPosition:function(){return o},scan:r?me:ge,getToken:function(){return y},getTokenValue:function(){return s},getTokenOffset:function(){return p},getTokenLength:function(){return o-p},getTokenStartLine:function(){return w},getTokenStartCharacter:function(){return p-F},getTokenError:function(){return G}}}function Hc(t){return t===32||t===9||t===11||t===12||t===160||t===5760||t>=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Al(t){return t===10||t===13||t===8232||t===8233}function us(t){return t>=48&&t<=57}function $v(t,r,i){var o,s,p,y,A;if(r){for(y=r.offset,A=y+r.length,p=y;p>0&&!Xd(t,p-1);)p--;for(var w=A;w<t.length&&!Xd(t,w);)w++;s=t.substring(p,w),o=Kv(s,i)}else s=t,o=0,p=0,y=0,A=t.length;var E=Yv(i,t),F=!1,G=0,te;i.insertSpaces?te=zc(" ",i.tabSize||4):te=" ";var ne=pf(s,!1),oe=!1;function ye(){return E+zc(te,o+G)}function ge(){var et=ne.scan();for(F=!1;et===15||et===14;)F=F||et===14,et=ne.scan();return oe=et===16||ne.getTokenError()!==0,et}var Ae=[];function me(et,$e,gt){!oe&&$e<A&>>y&&t.substring($e,gt)!==et&&Ae.push({offset:$e,length:gt-$e,content:et})}var Te=ge();if(Te!==17){var He=ne.getTokenOffset()+p,Ve=zc(te,o);me(Ve,p,He)}for(;Te!==17;){for(var ze=ne.getTokenOffset()+ne.getTokenLength()+p,De=ge(),Be="";!F&&(De===12||De===13);){var We=ne.getTokenOffset()+p;me(" ",ze,We),ze=ne.getTokenOffset()+ne.getTokenLength()+p,Be=De===12?ye():"",De=ge()}if(De===2)Te!==1&&(G--,Be=ye());else if(De===4)Te!==3&&(G--,Be=ye());else{switch(Te){case 3:case 1:G++,Be=ye();break;case 5:case 12:Be=ye();break;case 13:F?Be=ye():Be=" ";break;case 6:Be=" ";break;case 10:if(De===6){Be="";break}case 7:case 8:case 9:case 11:case 2:case 4:De===12||De===13?Be=" ":De!==5&&De!==17&&(oe=!0);break;case 16:oe=!0;break}F&&(De===12||De===13)&&(Be=ye())}var Je=ne.getTokenOffset()+p;me(Be,ze,Je),Te=De}return Ae}function zc(t,r){for(var i="",o=0;o<r;o++)i+=t;return i}function Kv(t,r){for(var i=0,o=0,s=r.tabSize||4;i<t.length;){var p=t.charAt(i);if(p===" ")o++;else if(p===" ")o+=s;else break;i++}return Math.floor(o/s)}function Yv(t,r){for(var i=0;i<r.length;i++){var o=r.charAt(i);if(o==="\r")return i+1<r.length&&r.charAt(i+1)===`
|
|
298
321
|
`?`\r
|
|
299
322
|
`:"\r";if(o===`
|
|
300
323
|
`)return`
|
|
301
324
|
`}return t&&t.eol||`
|
|
302
|
-
`}function
|
|
303
|
-
`.indexOf(t.charAt(r))!==-1}var Cl;(function(t){t.DEFAULT={allowTrailingComma:!1}})(Cl||(Cl={}));function Jv(t,r){var n=[],o=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function E(w,A,k,G){p.value=w,p.offset=A,p.length=k,p.type=G,p.colonOffset=void 0,s=p}try{hf(t,{onObjectBegin:function(w,A){if(r<=w)throw o;s=void 0,y=r>w,n.push("")},onObjectProperty:function(w,A,k){if(r<A||(E(w,A,k,"property"),n[n.length-1]=w,r<=A+k))throw o},onObjectEnd:function(w,A){if(r<=w)throw o;s=void 0,n.pop()},onArrayBegin:function(w,A){if(r<=w)throw o;s=void 0,n.push(0)},onArrayEnd:function(w,A){if(r<=w)throw o;s=void 0,n.pop()},onLiteralValue:function(w,A,k){if(r<A||(E(w,A,k,ep(w)),r<=A+k))throw o},onSeparator:function(w,A,k){if(r<=A)throw o;if(w===":"&&s&&s.type==="property")s.colonOffset=A,y=!1,s=void 0;else if(w===","){var G=n[n.length-1];typeof G=="number"?n[n.length-1]=G+1:(y=!0,n[n.length-1]=""),s=void 0}}})}catch(w){if(w!==o)throw w}return{path:n,previousNode:s,isAtPropertyKey:y,matches:function(w){for(var A=0,k=0;A<w.length&&k<n.length;k++)if(w[A]===n[k]||w[A]==="*")A++;else if(w[A]!=="**")return!1;return A===w.length}}}function Xv(t,r,n){r===void 0&&(r=[]),n===void 0&&(n=Cl.DEFAULT);var o=null,s=[],p=[];function y(w){Array.isArray(s)?s.push(w):o!==null&&(s[o]=w)}var E={onObjectBegin:function(){var w={};y(w),p.push(s),s=w,o=null},onObjectProperty:function(w){o=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];y(w),p.push(s),s=w,o=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:y,onError:function(w,A,k){r.push({error:w,offset:A,length:k})}};return hf(t,E,n),s[0]}function Qv(t,r,n){r===void 0&&(r=[]),n===void 0&&(n=Cl.DEFAULT);var o={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){o.type==="property"&&(o.length=w-o.offset,o=o.parent)}function p(w){return o.children.push(w),w}var y={onObjectBegin:function(w){o=p({type:"object",offset:w,length:-1,parent:o,children:[]})},onObjectProperty:function(w,A,k){o=p({type:"property",offset:A,length:-1,parent:o,children:[]}),o.children.push({type:"string",value:w,offset:A,length:k,parent:o})},onObjectEnd:function(w,A){s(w+A),o.length=w+A-o.offset,o=o.parent,s(w+A)},onArrayBegin:function(w,A){o=p({type:"array",offset:w,length:-1,parent:o,children:[]})},onArrayEnd:function(w,A){o.length=w+A-o.offset,o=o.parent,s(w+A)},onLiteralValue:function(w,A,k){p({type:ep(w),offset:A,length:k,parent:o,value:w}),s(A+k)},onSeparator:function(w,A,k){o.type==="property"&&(w===":"?o.colonOffset=A:w===","&&s(A))},onError:function(w,A,k){r.push({error:w,offset:A,length:k})}};hf(t,y,n);var E=o.children[0];return E&&delete E.parent,E}function Zv(t,r){if(!!t){for(var n=t,o=0,s=r;o<s.length;o++){var p=s[o];if(typeof p=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var y=!1,E=0,w=n.children;E<w.length;E++){var A=w[E];if(Array.isArray(A.children)&&A.children[0].value===p){n=A.children[1],y=!0;break}}if(!y)return}else{var k=p;if(n.type!=="array"||k<0||!Array.isArray(n.children)||k>=n.children.length)return;n=n.children[k]}}return n}}function _d(t){if(!t.parent||!t.parent.children)return[];var r=_d(t.parent);if(t.parent.type==="property"){var n=t.parent.children[0].value;r.push(n)}else if(t.parent.type==="array"){var o=t.parent.children.indexOf(t);o!==-1&&r.push(o)}return r}function $c(t){switch(t.type){case"array":return t.children.map($c);case"object":for(var r=Object.create(null),n=0,o=t.children;n<o.length;n++){var s=o[n],p=s.children[1];p&&(r[s.children[0].value]=$c(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function _v(t,r,n){return n===void 0&&(n=!1),r>=t.offset&&r<t.offset+t.length||n&&r===t.offset+t.length}function qd(t,r,n){if(n===void 0&&(n=!1),_v(t,r,n)){var o=t.children;if(Array.isArray(o))for(var s=0;s<o.length&&o[s].offset<=r;s++){var p=qd(o[s],r,n);if(p)return p}return t}}function hf(t,r,n){n===void 0&&(n=Cl.DEFAULT);var o=pf(t,!1);function s(We){return We?function(){return We(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Je){return We(Je,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),E=p(r.onObjectProperty),w=s(r.onObjectEnd),A=s(r.onArrayBegin),k=s(r.onArrayEnd),G=p(r.onLiteralValue),ne=p(r.onSeparator),re=s(r.onComment),ce=p(r.onError),xe=n&&n.disallowComments,ge=n&&n.allowTrailingComma;function Ee(){for(;;){var We=o.scan();switch(o.getTokenError()){case 4:we(14);break;case 5:we(15);break;case 3:we(13);break;case 1:xe||we(11);break;case 2:we(12);break;case 6:we(16);break}switch(We){case 12:case 13:xe?we(10):re();break;case 16:we(1);break;case 15:case 14:break;default:return We}}}function we(We,Je,ze){if(Je===void 0&&(Je=[]),ze===void 0&&(ze=[]),ce(We),Je.length+ze.length>0)for(var et=o.getToken();et!==17;){if(Je.indexOf(et)!==-1){Ee();break}else if(ze.indexOf(et)!==-1)break;et=Ee()}}function Te(We){var Je=o.getTokenValue();return We?G(Je):E(Je),Ee(),!0}function $e(){switch(o.getToken()){case 11:var We=o.getTokenValue(),Je=Number(We);isNaN(Je)&&(we(2),Je=0),G(Je);break;case 7:G(null);break;case 8:G(!0);break;case 9:G(!1);break;default:return!1}return Ee(),!0}function je(){return o.getToken()!==10?(we(3,[],[2,5]),!1):(Te(!1),o.getToken()===6?(ne(":"),Ee(),Ve()||we(4,[],[2,5])):we(5,[],[2,5]),!0)}function He(){y(),Ee();for(var We=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(We||we(4,[],[]),ne(","),Ee(),o.getToken()===2&&ge)break}else We&&we(6,[],[]);je()||we(4,[],[2,5]),We=!0}return w(),o.getToken()!==2?we(7,[2],[]):Ee(),!0}function Ne(){A(),Ee();for(var We=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(We||we(4,[],[]),ne(","),Ee(),o.getToken()===4&&ge)break}else We&&we(6,[],[]);Ve()||we(4,[],[4,5]),We=!0}return k(),o.getToken()!==4?we(8,[4],[]):Ee(),!0}function Ve(){switch(o.getToken()){case 3:return Ne();case 1:return He();case 10:return Te(!0);default:return $e()}}return Ee(),o.getToken()===17?n.allowEmptyContent?!0:(we(4,[],[]),!1):Ve()?(o.getToken()!==17&&we(9,[],[]),!0):(we(4,[],[]),!1)}function qv(t,r){var n=pf(t),o=[],s,p=0,y;do switch(y=n.getPosition(),s=n.scan(),s){case 12:case 13:case 17:p!==y&&o.push(t.substring(p,y)),r!==void 0&&o.push(n.getTokenValue().replace(/[^\r\n]/g,r)),p=n.getPosition();break}while(s!==17);return o.join("")}function ep(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function Am(t,r,n){return eg(t,r,void 0,n)}function eg(t,r,n,o){for(var s,p=r.slice(),y=[],E=parseTree(t,y),w=void 0,A=void 0;p.length>0&&(A=p.pop(),w=findNodeAtLocation(E,p),w===void 0&&n!==void 0);)typeof A=="string"?n=(s={},s[A]=n,s):n=[n];if(w)if(w.type==="object"&&typeof A=="string"&&Array.isArray(w.children)){var k=findNodeAtLocation(w,[A]);if(k!==void 0)if(n===void 0){if(!k.parent)throw new Error("Malformed AST");var G=w.children.indexOf(k.parent),ne=void 0,re=k.parent.offset+k.parent.length;if(G>0){var ce=w.children[G-1];ne=ce.offset+ce.length}else if(ne=w.offset+1,w.children.length>1){var xe=w.children[1];re=xe.offset}return po(t,{offset:ne,length:re-ne,content:""},o)}else return po(t,{offset:k.offset,length:k.length,content:JSON.stringify(n)},o);else{if(n===void 0)return[];var ge=JSON.stringify(A)+": "+JSON.stringify(n),Ee=o.getInsertionIndex?o.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,we=void 0;if(Ee>0){var ce=w.children[Ee-1];we={offset:ce.offset+ce.length,length:0,content:","+ge}}else w.children.length===0?we={offset:w.offset+1,length:0,content:ge}:we={offset:w.offset+1,length:0,content:ge+","};return po(t,we,o)}}else if(w.type==="array"&&typeof A=="number"&&Array.isArray(w.children)){var Te=A;if(Te===-1){var ge=""+JSON.stringify(n),we=void 0;if(w.children.length===0)we={offset:w.offset+1,length:0,content:ge};else{var ce=w.children[w.children.length-1];we={offset:ce.offset+ce.length,length:0,content:","+ge}}return po(t,we,o)}else if(n===void 0&&w.children.length>=0){var $e=A,je=w.children[$e],we=void 0;if(w.children.length===1)we={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===$e){var ce=w.children[$e-1],He=ce.offset+ce.length,Ne=w.offset+w.length;we={offset:He,length:Ne-2-He,content:""}}else we={offset:je.offset,length:w.children[$e+1].offset-je.offset,content:""};return po(t,we,o)}else if(n!==void 0){var we=void 0,ge=""+JSON.stringify(n);if(!o.isArrayInsertion&&w.children.length>A){var Ve=w.children[A];we={offset:Ve.offset,length:Ve.length,content:ge}}else if(w.children.length===0||A===0)we={offset:w.offset+1,length:0,content:w.children.length===0?ge:ge+","};else{var Ee=A>w.children.length?w.children.length:A,ce=w.children[Ee-1];we={offset:ce.offset+ce.length,length:0,content:","+ge}}return po(t,we,o)}else throw new Error("Can not "+(n===void 0?"remove":o.isArrayInsertion?"insert":"modify")+" Array index "+Te+" as length is not sufficient")}else throw new Error("Can not add "+(typeof A!="number"?"index":"property")+" to parent of type "+w.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return po(t,{offset:E?E.offset:0,length:E?E.length:0,content:JSON.stringify(n)},o)}}function po(t,r,n){if(!n.formattingOptions)return[r];var o=tp(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(o,s-1);)s--;for(;p<o.length&&!isEOL(o,p);)p++}for(var y=format(o,{offset:s,length:p-s},n.formattingOptions),E=y.length-1;E>=0;E--){var w=y[E];o=tp(o,w),s=Math.min(s,w.offset),p=Math.max(p,w.offset+w.length),p+=w.content.length-w.length}var A=t.length-(o.length-p)-s;return[{offset:s,length:A,content:o.substring(s,p)}]}function tp(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Em(t,r){return`\r
|
|
304
|
-
`.indexOf(t.charAt(r))!==-1}var fs=pf,Cm=Jv,tg=Xv,Om=Qv,Tm=Zv,rg=qd,ng=_d,ig=$c,Pm=hf,Im=qv;function Fm(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function ag(t,r,n){return $v(t,r,n)}function km(t,r,n,o){return edit.setProperty(t,r,n,o)}function Mm(t,r){for(var n=r.length-1;n>=0;n--)t=edit.applyEdit(t,r[n]);return t}function Ol(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var n,o;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(n=0;n<t.length;n++)if(!Ol(t[n],r[n]))return!1}else{var s=[];for(o in t)s.push(o);s.sort();var p=[];for(o in r)p.push(o);if(p.sort(),!Ol(s,p))return!1;for(n=0;n<s.length;n++)if(!Ol(t[s[n]],r[s[n]]))return!1}return!0}function Yn(t){return typeof t=="number"}function sa(t){return typeof t!="undefined"}function Di(t){return typeof t=="boolean"}function og(t){return typeof t=="string"}var rp;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(rp||(rp={}));var vf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(vf||(vf={}));var gi;(function(t){function r(o,s){return o===Number.MAX_VALUE&&(o=vf.MAX_VALUE),s===Number.MAX_VALUE&&(s=vf.MAX_VALUE),{line:o,character:s}}t.create=r;function n(o){var s=o;return _e.objectLiteral(s)&&_e.uinteger(s.line)&&_e.uinteger(s.character)}t.is=n})(gi||(gi={}));var ur;(function(t){function r(o,s,p,y){if(_e.uinteger(o)&&_e.uinteger(s)&&_e.uinteger(p)&&_e.uinteger(y))return{start:gi.create(o,s),end:gi.create(p,y)};if(gi.is(o)&&gi.is(s))return{start:o,end:s};throw new Error("Range#create called with invalid arguments["+o+", "+s+", "+p+", "+y+"]")}t.create=r;function n(o){var s=o;return _e.objectLiteral(s)&&gi.is(s.start)&&gi.is(s.end)}t.is=n})(ur||(ur={}));var Tl;(function(t){function r(o,s){return{uri:o,range:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.string(s.uri)||_e.undefined(s.uri))}t.is=n})(Tl||(Tl={}));var np;(function(t){function r(o,s,p,y){return{targetUri:o,targetRange:s,targetSelectionRange:p,originSelectionRange:y}}t.create=r;function n(o){var s=o;return _e.defined(s)&&ur.is(s.targetRange)&&_e.string(s.targetUri)&&(ur.is(s.targetSelectionRange)||_e.undefined(s.targetSelectionRange))&&(ur.is(s.originSelectionRange)||_e.undefined(s.originSelectionRange))}t.is=n})(np||(np={}));var Kc;(function(t){function r(o,s,p,y){return{red:o,green:s,blue:p,alpha:y}}t.create=r;function n(o){var s=o;return _e.numberRange(s.red,0,1)&&_e.numberRange(s.green,0,1)&&_e.numberRange(s.blue,0,1)&&_e.numberRange(s.alpha,0,1)}t.is=n})(Kc||(Kc={}));var ip;(function(t){function r(o,s){return{range:o,color:s}}t.create=r;function n(o){var s=o;return ur.is(s.range)&&Kc.is(s.color)}t.is=n})(ip||(ip={}));var ap;(function(t){function r(o,s,p){return{label:o,textEdit:s,additionalTextEdits:p}}t.create=r;function n(o){var s=o;return _e.string(s.label)&&(_e.undefined(s.textEdit)||yi.is(s))&&(_e.undefined(s.additionalTextEdits)||_e.typedArray(s.additionalTextEdits,yi.is))}t.is=n})(ap||(ap={}));var Pl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Pl||(Pl={}));var op;(function(t){function r(o,s,p,y,E){var w={startLine:o,endLine:s};return _e.defined(p)&&(w.startCharacter=p),_e.defined(y)&&(w.endCharacter=y),_e.defined(E)&&(w.kind=E),w}t.create=r;function n(o){var s=o;return _e.uinteger(s.startLine)&&_e.uinteger(s.startLine)&&(_e.undefined(s.startCharacter)||_e.uinteger(s.startCharacter))&&(_e.undefined(s.endCharacter)||_e.uinteger(s.endCharacter))&&(_e.undefined(s.kind)||_e.string(s.kind))}t.is=n})(op||(op={}));var Yc;(function(t){function r(o,s){return{location:o,message:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&Tl.is(s.location)&&_e.string(s.message)}t.is=n})(Yc||(Yc={}));var $t;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})($t||($t={}));var sp;(function(t){t.Unnecessary=1,t.Deprecated=2})(sp||(sp={}));var lp;(function(t){function r(n){var o=n;return o!=null&&_e.string(o.href)}t.is=r})(lp||(lp={}));var la;(function(t){function r(o,s,p,y,E,w){var A={range:o,message:s};return _e.defined(p)&&(A.severity=p),_e.defined(y)&&(A.code=y),_e.defined(E)&&(A.source=E),_e.defined(w)&&(A.relatedInformation=w),A}t.create=r;function n(o){var s,p=o;return _e.defined(p)&&ur.is(p.range)&&_e.string(p.message)&&(_e.number(p.severity)||_e.undefined(p.severity))&&(_e.integer(p.code)||_e.string(p.code)||_e.undefined(p.code))&&(_e.undefined(p.codeDescription)||_e.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(_e.string(p.source)||_e.undefined(p.source))&&(_e.undefined(p.relatedInformation)||_e.typedArray(p.relatedInformation,Yc.is))}t.is=n})(la||(la={}));var Il;(function(t){function r(o,s){for(var p=[],y=2;y<arguments.length;y++)p[y-2]=arguments[y];var E={title:o,command:s};return _e.defined(p)&&p.length>0&&(E.arguments=p),E}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.string(s.title)&&_e.string(s.command)}t.is=n})(Il||(Il={}));var yi;(function(t){function r(p,y){return{range:p,newText:y}}t.replace=r;function n(p,y){return{range:{start:p,end:p},newText:y}}t.insert=n;function o(p){return{range:p,newText:""}}t.del=o;function s(p){var y=p;return _e.objectLiteral(y)&&_e.string(y.newText)&&ur.is(y.range)}t.is=s})(yi||(yi={}));var cs;(function(t){function r(o,s,p){var y={label:o};return s!==void 0&&(y.needsConfirmation=s),p!==void 0&&(y.description=p),y}t.create=r;function n(o){var s=o;return s!==void 0&&_e.objectLiteral(s)&&_e.string(s.label)&&(_e.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(_e.string(s.description)||s.description===void 0)}t.is=n})(cs||(cs={}));var bn;(function(t){function r(n){var o=n;return typeof o=="string"}t.is=r})(bn||(bn={}));var Oa;(function(t){function r(p,y,E){return{range:p,newText:y,annotationId:E}}t.replace=r;function n(p,y,E){return{range:{start:p,end:p},newText:y,annotationId:E}}t.insert=n;function o(p,y){return{range:p,newText:"",annotationId:y}}t.del=o;function s(p){var y=p;return yi.is(y)&&(cs.is(y.annotationId)||bn.is(y.annotationId))}t.is=s})(Oa||(Oa={}));var gf;(function(t){function r(o,s){return{textDocument:o,edits:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&mf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=n})(gf||(gf={}));var Fl;(function(t){function r(o,s,p){var y={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function n(o){var s=o;return s&&s.kind==="create"&&_e.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||bn.is(s.annotationId))}t.is=n})(Fl||(Fl={}));var kl;(function(t){function r(o,s,p,y){var E={kind:"rename",oldUri:o,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(E.options=p),y!==void 0&&(E.annotationId=y),E}t.create=r;function n(o){var s=o;return s&&s.kind==="rename"&&_e.string(s.oldUri)&&_e.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||bn.is(s.annotationId))}t.is=n})(kl||(kl={}));var Ml;(function(t){function r(o,s,p){var y={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function n(o){var s=o;return s&&s.kind==="delete"&&_e.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||_e.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||_e.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||bn.is(s.annotationId))}t.is=n})(Ml||(Ml={}));var Jc;(function(t){function r(n){var o=n;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(s){return _e.string(s.kind)?Fl.is(s)||kl.is(s)||Ml.is(s):gf.is(s)}))}t.is=r})(Jc||(Jc={}));var yf=function(){function t(r,n){this.edits=r,this.changeAnnotations=n}return t.prototype.insert=function(r,n,o){var s,p;if(o===void 0?s=yi.insert(r,n):bn.is(o)?(p=o,s=Oa.insert(r,n,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Oa.insert(r,n,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,n,o){var s,p;if(o===void 0?s=yi.replace(r,n):bn.is(o)?(p=o,s=Oa.replace(r,n,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Oa.replace(r,n,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,n){var o,s;if(n===void 0?o=yi.del(r):bn.is(n)?(s=n,o=Oa.del(r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),o=Oa.del(r,s)),this.edits.push(o),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),up=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,n){var o;if(bn.is(r)?o=r:(o=this.nextId(),n=r),this._annotations[o]!==void 0)throw new Error("Id "+o+" is already in use.");if(n===void 0)throw new Error("No annotation provided for id "+o);return this._annotations[o]=n,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Rm=function(){function t(r){var n=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new up(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(o){if(gf.is(o)){var s=new yf(o.edits,n._changeAnnotations);n._textEditChanges[o.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(o){var s=new yf(r.changes[o]);n._textEditChanges[o]=s})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(mf.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:r.uri,version:r.version},o=this._textEditChanges[n.uri];if(!o){var s=[],p={textDocument:n,edits:s};this._workspaceEdit.documentChanges.push(p),o=new yf(s,this._changeAnnotations),this._textEditChanges[n.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[r];if(!o){var s=[];this._workspaceEdit.changes[r]=s,o=new yf(s),this._textEditChanges[r]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new up,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,n,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;cs.is(n)||bn.is(n)?s=n:o=n;var p,y;if(s===void 0?p=Fl.create(r,o):(y=bn.is(s)?s:this._changeAnnotations.manage(s),p=Fl.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t.prototype.renameFile=function(r,n,o,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;cs.is(o)||bn.is(o)?p=o:s=o;var y,E;if(p===void 0?y=kl.create(r,n,s):(E=bn.is(p)?p:this._changeAnnotations.manage(p),y=kl.create(r,n,s,E)),this._workspaceEdit.documentChanges.push(y),E!==void 0)return E},t.prototype.deleteFile=function(r,n,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;cs.is(n)||bn.is(n)?s=n:o=n;var p,y;if(s===void 0?p=Ml.create(r,o):(y=bn.is(s)?s:this._changeAnnotations.manage(s),p=Ml.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t}(),fp;(function(t){function r(o){return{uri:o}}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.string(s.uri)}t.is=n})(fp||(fp={}));var cp;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.integer(s.version)}t.is=n})(cp||(cp={}));var mf;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&(s.version===null||_e.integer(s.version))}t.is=n})(mf||(mf={}));var dp;(function(t){function r(o,s,p,y){return{uri:o,languageId:s,version:p,text:y}}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.string(s.languageId)&&_e.integer(s.version)&&_e.string(s.text)}t.is=n})(dp||(dp={}));var ua;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(ua||(ua={})),function(t){function r(n){var o=n;return o===t.PlainText||o===t.Markdown}t.is=r}(ua||(ua={}));var Xc;(function(t){function r(n){var o=n;return _e.objectLiteral(n)&&ua.is(o.kind)&&_e.string(o.value)}t.is=r})(Xc||(Xc={}));var Jn;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Jn||(Jn={}));var _r;(function(t){t.PlainText=1,t.Snippet=2})(_r||(_r={}));var pp;(function(t){t.Deprecated=1})(pp||(pp={}));var hp;(function(t){function r(o,s,p){return{newText:o,insert:s,replace:p}}t.create=r;function n(o){var s=o;return s&&_e.string(s.newText)&&ur.is(s.insert)&&ur.is(s.replace)}t.is=n})(hp||(hp={}));var vp;(function(t){t.asIs=1,t.adjustIndentation=2})(vp||(vp={}));var Qc;(function(t){function r(n){return{label:n}}t.create=r})(Qc||(Qc={}));var gp;(function(t){function r(n,o){return{items:n||[],isIncomplete:!!o}}t.create=r})(gp||(gp={}));var xf;(function(t){function r(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function n(o){var s=o;return _e.string(s)||_e.objectLiteral(s)&&_e.string(s.language)&&_e.string(s.value)}t.is=n})(xf||(xf={}));var yp;(function(t){function r(n){var o=n;return!!o&&_e.objectLiteral(o)&&(Xc.is(o.contents)||xf.is(o.contents)||_e.typedArray(o.contents,xf.is))&&(n.range===void 0||ur.is(n.range))}t.is=r})(yp||(yp={}));var mp;(function(t){function r(n,o){return o?{label:n,documentation:o}:{label:n}}t.create=r})(mp||(mp={}));var xp;(function(t){function r(n,o){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var y={label:n};return _e.defined(o)&&(y.documentation=o),_e.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(xp||(xp={}));var bp;(function(t){t.Text=1,t.Read=2,t.Write=3})(bp||(bp={}));var wp;(function(t){function r(n,o){var s={range:n};return _e.number(o)&&(s.kind=o),s}t.create=r})(wp||(wp={}));var Ni;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Ni||(Ni={}));var Sp;(function(t){t.Deprecated=1})(Sp||(Sp={}));var Ap;(function(t){function r(n,o,s,p,y){var E={name:n,kind:o,location:{uri:p,range:s}};return y&&(E.containerName=y),E}t.create=r})(Ap||(Ap={}));var Ep;(function(t){function r(o,s,p,y,E,w){var A={name:o,detail:s,kind:p,range:y,selectionRange:E};return w!==void 0&&(A.children=w),A}t.create=r;function n(o){var s=o;return s&&_e.string(s.name)&&_e.number(s.kind)&&ur.is(s.range)&&ur.is(s.selectionRange)&&(s.detail===void 0||_e.string(s.detail))&&(s.deprecated===void 0||_e.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=n})(Ep||(Ep={}));var Cp;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Cp||(Cp={}));var Op;(function(t){function r(o,s){var p={diagnostics:o};return s!=null&&(p.only=s),p}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.typedArray(s.diagnostics,la.is)&&(s.only===void 0||_e.typedArray(s.only,_e.string))}t.is=n})(Op||(Op={}));var Tp;(function(t){function r(o,s,p){var y={title:o},E=!0;return typeof s=="string"?(E=!1,y.kind=s):Il.is(s)?y.command=s:y.edit=s,E&&p!==void 0&&(y.kind=p),y}t.create=r;function n(o){var s=o;return s&&_e.string(s.title)&&(s.diagnostics===void 0||_e.typedArray(s.diagnostics,la.is))&&(s.kind===void 0||_e.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Il.is(s.command))&&(s.isPreferred===void 0||_e.boolean(s.isPreferred))&&(s.edit===void 0||Jc.is(s.edit))}t.is=n})(Tp||(Tp={}));var Pp;(function(t){function r(o,s){var p={range:o};return _e.defined(s)&&(p.data=s),p}t.create=r;function n(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.undefined(s.command)||Il.is(s.command))}t.is=n})(Pp||(Pp={}));var Ip;(function(t){function r(o,s){return{tabSize:o,insertSpaces:s}}t.create=r;function n(o){var s=o;return _e.defined(s)&&_e.uinteger(s.tabSize)&&_e.boolean(s.insertSpaces)}t.is=n})(Ip||(Ip={}));var Fp;(function(t){function r(o,s,p){return{range:o,target:s,data:p}}t.create=r;function n(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.undefined(s.target)||_e.string(s.target))}t.is=n})(Fp||(Fp={}));var bf;(function(t){function r(o,s){return{range:o,parent:s}}t.create=r;function n(o){var s=o;return s!==void 0&&ur.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=n})(bf||(bf={}));var Lm=null,kp;(function(t){function r(p,y,E,w){return new sg(p,y,E,w)}t.create=r;function n(p){var y=p;return!!(_e.defined(y)&&_e.string(y.uri)&&(_e.undefined(y.languageId)||_e.string(y.languageId))&&_e.uinteger(y.lineCount)&&_e.func(y.getText)&&_e.func(y.positionAt)&&_e.func(y.offsetAt))}t.is=n;function o(p,y){for(var E=p.getText(),w=s(y,function(ce,xe){var ge=ce.range.start.line-xe.range.start.line;return ge===0?ce.range.start.character-xe.range.start.character:ge}),A=E.length,k=w.length-1;k>=0;k--){var G=w[k],ne=p.offsetAt(G.range.start),re=p.offsetAt(G.range.end);if(re<=A)E=E.substring(0,ne)+G.newText+E.substring(re,E.length);else throw new Error("Overlapping edit");A=ne}return E}t.applyEdits=o;function s(p,y){if(p.length<=1)return p;var E=p.length/2|0,w=p.slice(0,E),A=p.slice(E);s(w,y),s(A,y);for(var k=0,G=0,ne=0;k<w.length&&G<A.length;){var re=y(w[k],A[G]);re<=0?p[ne++]=w[k++]:p[ne++]=A[G++]}for(;k<w.length;)p[ne++]=w[k++];for(;G<A.length;)p[ne++]=A[G++];return p}})(kp||(kp={}));var sg=function(){function t(r,n,o,s){this._uri=r,this._languageId=n,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(n,o)}return this._content},t.prototype.update=function(r,n){this._content=r.text,this._version=n,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],n=this._content,o=!0,s=0;s<n.length;s++){o&&(r.push(s),o=!1);var p=n.charAt(s);o=p==="\r"||p===`
|
|
305
|
-
`,p==="\r"&&s+1<
|
|
306
|
-
`&&s++}o&&n.length>0&&r.push(n.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),o=0,s=n.length;if(s===0)return gi.create(0,r);for(;o<s;){var p=Math.floor((o+s)/2);n[p]>r?s=p:o=p+1}var y=o-1;return gi.create(y,r-n[y])},t.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var o=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),_e;(function(t){var r=Object.prototype.toString;function n(re){return typeof re!="undefined"}t.defined=n;function o(re){return typeof re=="undefined"}t.undefined=o;function s(re){return re===!0||re===!1}t.boolean=s;function p(re){return r.call(re)==="[object String]"}t.string=p;function y(re){return r.call(re)==="[object Number]"}t.number=y;function E(re,ce,xe){return r.call(re)==="[object Number]"&&ce<=re&&re<=xe}t.numberRange=E;function w(re){return r.call(re)==="[object Number]"&&-2147483648<=re&&re<=2147483647}t.integer=w;function A(re){return r.call(re)==="[object Number]"&&0<=re&&re<=2147483647}t.uinteger=A;function k(re){return r.call(re)==="[object Function]"}t.func=k;function G(re){return re!==null&&typeof re=="object"}t.objectLiteral=G;function ne(re,ce){return Array.isArray(re)&&re.every(ce)}t.typedArray=ne})(_e||(_e={}));var Mp=function(){function t(r,n,o,s){this._uri=r,this._languageId=n,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(n,o)}return this._content},t.prototype.update=function(r,n){for(var o=0,s=r;o<s.length;o++){var p=s[o];if(t.isIncremental(p)){var y=Lp(p.range),E=this.offsetAt(y.start),w=this.offsetAt(y.end);this._content=this._content.substring(0,E)+p.text+this._content.substring(w,this._content.length);var A=Math.max(y.start.line,0),k=Math.max(y.end.line,0),G=this._lineOffsets,ne=Rp(p.text,!1,E);if(k-A===ne.length)for(var re=0,ce=ne.length;re<ce;re++)G[re+A+1]=ne[re];else ne.length<1e4?G.splice.apply(G,[A+1,k-A].concat(ne)):this._lineOffsets=G=G.slice(0,A+1).concat(ne,G.slice(k+1));var xe=p.text.length-(w-E);if(xe!==0)for(var re=A+1+ne.length,ce=G.length;re<ce;re++)G[re]=G[re]+xe}else if(t.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=n},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=Rp(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),o=0,s=n.length;if(s===0)return{line:0,character:r};for(;o<s;){var p=Math.floor((o+s)/2);n[p]>r?s=p:o=p+1}var y=o-1;return{line:y,character:r-n[y]}},t.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var o=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var n=r;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")},t.isFull=function(r){var n=r;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0},t}(),wf;(function(t){function r(s,p,y,E){return new Mp(s,p,y,E)}t.create=r;function n(s,p,y){if(s instanceof Mp)return s.update(p,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=n;function o(s,p){for(var y=s.getText(),E=Zc(p.map(lg),function(ce,xe){var ge=ce.range.start.line-xe.range.start.line;return ge===0?ce.range.start.character-xe.range.start.character:ge}),w=0,A=[],k=0,G=E;k<G.length;k++){var ne=G[k],re=s.offsetAt(ne.range.start);if(re<w)throw new Error("Overlapping edit");re>w&&A.push(y.substring(w,re)),ne.newText.length&&A.push(ne.newText),w=s.offsetAt(ne.range.end)}return A.push(y.substr(w)),A.join("")}t.applyEdits=o})(wf||(wf={}));function Zc(t,r){if(t.length<=1)return t;var n=t.length/2|0,o=t.slice(0,n),s=t.slice(n);Zc(o,r),Zc(s,r);for(var p=0,y=0,E=0;p<o.length&&y<s.length;){var w=r(o[p],s[y]);w<=0?t[E++]=o[p++]:t[E++]=s[y++]}for(;p<o.length;)t[E++]=o[p++];for(;y<s.length;)t[E++]=s[y++];return t}function Rp(t,r,n){n===void 0&&(n=0);for(var o=r?[n]:[],s=0;s<t.length;s++){var p=t.charCodeAt(s);(p===13||p===10)&&(p===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,o.push(n+s+1))}return o}function Lp(t){var r=t.start,n=t.end;return r.line>n.line||r.line===n.line&&r.character>n.character?{start:n,end:r}:t}function lg(t){var r=Lp(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var tr;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(tr||(tr={}));var Dp;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ua.Markdown,ua.PlainText],commitCharactersSupport:!0}}}}})(Dp||(Dp={}));var ho=function(){var t=function(r,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,n)};return function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),ug={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},vo=function(){function t(r,n,o){this.offset=n,this.length=o,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),fg=function(t){ho(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.type="null",s.value=null,s}return r}(vo),Np=function(t){ho(r,t);function r(n,o,s){var p=t.call(this,n,s)||this;return p.type="boolean",p.value=o,p}return r}(vo),cg=function(t){ho(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(vo),dg=function(t){ho(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(vo),Bp=function(t){ho(r,t);function r(n,o,s){var p=t.call(this,n,o,s)||this;return p.type="string",p.value="",p}return r}(vo),pg=function(t){ho(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(vo),hg=function(t){ho(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(vo);function kn(t){return Di(t)?t?{}:{not:{}}:t}var Up;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(Up||(Up={}));var vg=function(){function t(r,n){r===void 0&&(r=-1),n===void 0&&(n=null),this.focusOffset=r,this.exclude=n,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var n;(n=this.schemas).push.apply(n,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||jp(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),_c=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),Mn=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var n=0,o=r;n<o.length;n++){var s=o[n];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var n=0,o=this.problems;n<o.length;n++){var s=o[n];s.code===tr.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(p){return JSON.stringify(p)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var n=this.hasProblems();return n!==r.hasProblems()?n?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function gg(t,r){return r===void 0&&(r=[]),new Vp(t,r,[])}function Ta(t){return ig(t)}function qc(t){return ng(t)}function jp(t,r,n){return n===void 0&&(n=!1),r>=t.offset&&r<t.offset+t.length||n&&r===t.offset+t.length}var Vp=function(){function t(r,n,o){n===void 0&&(n=[]),o===void 0&&(o=[]),this.root=r,this.syntaxErrors=n,this.comments=o}return t.prototype.getNodeFromOffset=function(r,n){if(n===void 0&&(n=!1),this.root)return rg(this.root,r,n)},t.prototype.visit=function(r){if(this.root){var n=function(o){var s=r(o),p=o.children;if(Array.isArray(p))for(var y=0;y<p.length&&s;y++)s=n(p[y]);return s};n(this.root)}},t.prototype.validate=function(r,n){if(this.root&&n){var o=new Mn;return cn(this.root,n,o,_c.instance),o.problems.map(function(s){var p=ur.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return la.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,n,o){n===void 0&&(n=-1),o===void 0&&(o=null);var s=new vg(n,o);return this.root&&r&&cn(this.root,r,new Mn,s),s.schemas},t}();function cn(t,r,n,o){if(!t||!o.include(t))return;switch(t.type){case"object":w(t,r,n,o);break;case"array":E(t,r,n,o);break;case"string":y(t,r,n,o);break;case"number":p(t,r,n,o);break;case"property":return cn(t.valueNode,r,n,o)}s(),o.add({node:t,schema:r});function s(){function A(et){return t.type===et||et==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(A)||n.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(A(r.type)||n.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var k=0,G=r.allOf;k<G.length;k++){var ne=G[k];cn(t,kn(ne),n,o)}var re=kn(r.not);if(re){var ce=new Mn,xe=o.newSub();cn(t,re,ce,xe),ce.hasProblems()||n.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:"Matches a schema that is not allowed."});for(var ge=0,Ee=xe.schemas;ge<Ee.length;ge++){var we=Ee[ge];we.inverted=!we.inverted,o.add(we)}}var Te=function(et,St){for(var Nt=[],zt=null,or=0,Mr=et;or<Mr.length;or++){var Er=Mr[or],Qr=kn(Er),wr=new Mn,Nr=o.newSub();if(cn(t,Qr,wr,Nr),wr.hasProblems()||Nt.push(Qr),!zt)zt={schema:Qr,validationResult:wr,matchingSchemas:Nr};else if(!St&&!wr.hasProblems()&&!zt.validationResult.hasProblems())zt.matchingSchemas.merge(Nr),zt.validationResult.propertiesMatches+=wr.propertiesMatches,zt.validationResult.propertiesValueMatches+=wr.propertiesValueMatches;else{var wn=wr.compare(zt.validationResult);wn>0?zt={schema:Qr,validationResult:wr,matchingSchemas:Nr}:wn===0&&(zt.matchingSchemas.merge(Nr),zt.validationResult.mergeEnumValues(wr))}}return Nt.length>1&&St&&n.problems.push({location:{offset:t.offset,length:1},severity:$t.Warning,message:"Matches multiple schemas when only one must validate."}),zt!==null&&(n.merge(zt.validationResult),n.propertiesMatches+=zt.validationResult.propertiesMatches,n.propertiesValueMatches+=zt.validationResult.propertiesValueMatches,o.merge(zt.matchingSchemas)),Nt.length};Array.isArray(r.anyOf)&&Te(r.anyOf,!1),Array.isArray(r.oneOf)&&Te(r.oneOf,!0);var $e=function(et){var St=new Mn,Nt=o.newSub();cn(t,kn(et),St,Nt),n.merge(St),n.propertiesMatches+=St.propertiesMatches,n.propertiesValueMatches+=St.propertiesValueMatches,o.merge(Nt)},je=function(et,St,Nt){var zt=kn(et),or=new Mn,Mr=o.newSub();cn(t,zt,or,Mr),o.merge(Mr),or.hasProblems()?Nt&&$e(Nt):St&&$e(St)},He=kn(r.if);if(He&&je(He,kn(r.then),kn(r.else)),Array.isArray(r.enum)){for(var Ne=Ta(t),Ve=!1,We=0,Je=r.enum;We<Je.length;We++){var ze=Je[We];if(Ol(Ne,ze)){Ve=!0;break}}n.enumValues=r.enum,n.enumValueMatch=Ve,Ve||n.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(et){return JSON.stringify(et)}).join(", ")+"."})}if(sa(r.const)){var Ne=Ta(t);Ol(Ne,r.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),n.enumValueMatch=!1),n.enumValues=[r.const]}r.deprecationMessage&&t.parent&&n.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:$t.Warning,message:r.deprecationMessage})}function p(A,k,G,ne){var re=A.value;Yn(k.multipleOf)&&re%k.multipleOf!=0&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is not divisible by "+k.multipleOf+"."});function ce($e,je){if(Yn(je))return je;if(Di(je)&&je)return $e}function xe($e,je){if(!Di(je)||!je)return $e}var ge=ce(k.minimum,k.exclusiveMinimum);Yn(ge)&&re<=ge&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is below the exclusive minimum of "+ge+"."});var Ee=ce(k.maximum,k.exclusiveMaximum);Yn(Ee)&&re>=Ee&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is above the exclusive maximum of "+Ee+"."});var we=xe(k.minimum,k.exclusiveMinimum);Yn(we)&&re<we&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is below the minimum of "+we+"."});var Te=xe(k.maximum,k.exclusiveMaximum);Yn(Te)&&re>Te&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Value is above the maximum of "+Te+"."})}function y(A,k,G,ne){if(Yn(k.minLength)&&A.value.length<k.minLength&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"String is shorter than the minimum length of "+k.minLength+"."}),Yn(k.maxLength)&&A.value.length>k.maxLength&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"String is longer than the maximum length of "+k.maxLength+"."}),og(k.pattern)){var re=new RegExp(k.pattern);re.test(A.value)||G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||'String does not match the pattern of "'+k.pattern+'".'})}if(k.format)switch(k.format){case"uri":case"uri-reference":{var ce=void 0;if(!A.value)ce="URI expected.";else{var xe=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(A.value);xe?!xe[2]&&k.format==="uri"&&(ce="URI with a scheme is expected."):ce="URI is expected."}ce&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||"String is not a URI: "+ce})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var ge=ug[k.format];(!A.value||!ge.pattern.exec(A.value))&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.patternErrorMessage||k.errorMessage||ge.errorMessage});break;default:}}function E(A,k,G,ne){if(Array.isArray(k.items)){for(var re=k.items,ce=0;ce<re.length;ce++){var xe=re[ce],ge=kn(xe),Ee=new Mn,we=A.items[ce];we?(cn(we,ge,Ee,ne),G.mergePropertyMatch(Ee)):A.items.length>=re.length&&G.propertiesValueMatches++}if(A.items.length>re.length)if(typeof k.additionalItems=="object")for(var Te=re.length;Te<A.items.length;Te++){var Ee=new Mn;cn(A.items[Te],k.additionalItems,Ee,ne),G.mergePropertyMatch(Ee)}else k.additionalItems===!1&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too many items according to schema. Expected "+re.length+" or fewer."})}else{var $e=kn(k.items);if($e)for(var je=0,He=A.items;je<He.length;je++){var we=He[je],Ee=new Mn;cn(we,$e,Ee,ne),G.mergePropertyMatch(Ee)}}var Ne=kn(k.contains);if(Ne){var Ve=A.items.some(function(ze){var et=new Mn;return cn(ze,Ne,et,_c.instance),!et.hasProblems()});Ve||G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:k.errorMessage||"Array does not contain required item."})}if(Yn(k.minItems)&&A.items.length<k.minItems&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too few items. Expected "+k.minItems+" or more."}),Yn(k.maxItems)&&A.items.length>k.maxItems&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has too many items. Expected "+k.maxItems+" or fewer."}),k.uniqueItems===!0){var We=Ta(A),Je=We.some(function(ze,et){return et!==We.lastIndexOf(ze)});Je&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Array has duplicate items."})}}function w(A,k,G,ne){for(var re=Object.create(null),ce=[],xe=0,ge=A.properties;xe<ge.length;xe++){var Ee=ge[xe],we=Ee.keyNode.value;re[we]=Ee.valueNode,ce.push(we)}if(Array.isArray(k.required))for(var Te=0,$e=k.required;Te<$e.length;Te++){var je=$e[Te];if(!re[je]){var He=A.parent&&A.parent.type==="property"&&A.parent.keyNode,Ne=He?{offset:He.offset,length:He.length}:{offset:A.offset,length:1};G.problems.push({location:Ne,severity:$t.Warning,message:'Missing property "'+je+'".'})}}var Ve=function(xi){for(var Nl=ce.indexOf(xi);Nl>=0;)ce.splice(Nl,1),Nl=ce.indexOf(xi)};if(k.properties)for(var We=0,Je=Object.keys(k.properties);We<Je.length;We++){var je=Je[We];Ve(je);var ze=k.properties[je],et=re[je];if(et)if(Di(ze))if(ze)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}else{var St=new Mn;cn(et,ze,St,ne),G.mergePropertyMatch(St)}}if(k.patternProperties)for(var Nt=0,zt=Object.keys(k.patternProperties);Nt<zt.length;Nt++)for(var or=zt[Nt],Mr=new RegExp(or),Er=0,Qr=ce.slice(0);Er<Qr.length;Er++){var je=Qr[Er];if(Mr.test(je)){Ve(je);var et=re[je];if(et){var ze=k.patternProperties[or];if(Di(ze))if(ze)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}else{var St=new Mn;cn(et,ze,St,ne),G.mergePropertyMatch(St)}}}}if(typeof k.additionalProperties=="object")for(var wr=0,Nr=ce;wr<Nr.length;wr++){var je=Nr[wr],et=re[je];if(et){var St=new Mn;cn(et,k.additionalProperties,St,ne),G.mergePropertyMatch(St)}}else if(k.additionalProperties===!1&&ce.length>0)for(var wn=0,Yt=ce;wn<Yt.length;wn++){var je=Yt[wn],et=re[je];if(et){var Ee=et.parent;G.problems.push({location:{offset:Ee.keyNode.offset,length:Ee.keyNode.length},severity:$t.Warning,message:k.errorMessage||"Property "+je+" is not allowed."})}}if(Yn(k.maxProperties)&&A.properties.length>k.maxProperties&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object has more properties than limit of "+k.maxProperties+"."}),Yn(k.minProperties)&&A.properties.length<k.minProperties&&G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object has fewer properties than the required number of "+k.minProperties}),k.dependencies)for(var Rt=0,Ut=Object.keys(k.dependencies);Rt<Ut.length;Rt++){var we=Ut[Rt],sr=re[we];if(sr){var an=k.dependencies[we];if(Array.isArray(an))for(var yr=0,gs=an;yr<gs.length;yr++){var Ll=gs[yr];re[Ll]?G.propertiesValueMatches++:G.problems.push({location:{offset:A.offset,length:A.length},severity:$t.Warning,message:"Object is missing property "+Ll+" required by property {$key}."})}else{var ze=kn(an);if(ze){var St=new Mn;cn(A,ze,St,ne),G.mergePropertyMatch(St)}}}}var go=kn(k.propertyNames);if(go)for(var Bi=0,Dl=A.properties;Bi<Dl.length;Bi++){var Pf=Dl[Bi],we=Pf.keyNode;we&&cn(we,go,G,_c.instance)}}}function yg(t,r){var n=[],o=-1,s=t.getText(),p=fs(s,!1),y=r&&r.collectComments?[]:void 0;function E(){for(;;){var He=p.scan();switch(G(),He){case 12:case 13:Array.isArray(y)&&y.push(ur.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return He}}}function w(He){return p.getToken()===He?(E(),!0):!1}function A(He,Ne,Ve,We,Je){if(Je===void 0&&(Je=$t.Error),n.length===0||Ve!==o){var ze=ur.create(t.positionAt(Ve),t.positionAt(We));n.push(la.create(ze,He,Je,Ne,t.languageId)),o=Ve}}function k(He,Ne,Ve,We,Je){Ve===void 0&&(Ve=null),We===void 0&&(We=[]),Je===void 0&&(Je=[]);var ze=p.getTokenOffset(),et=p.getTokenOffset()+p.getTokenLength();if(ze===et&&ze>0){for(ze--;ze>0&&/\s/.test(s.charAt(ze));)ze--;et=ze+1}if(A(He,Ne,ze,et),Ve&&ne(Ve,!1),We.length+Je.length>0)for(var St=p.getToken();St!==17;){if(We.indexOf(St)!==-1){E();break}else if(Je.indexOf(St)!==-1)break;St=E()}return Ve}function G(){switch(p.getTokenError()){case 4:return k("Invalid unicode sequence in string.",tr.InvalidUnicode),!0;case 5:return k("Invalid escape character in string.",tr.InvalidEscapeCharacter),!0;case 3:return k("Unexpected end of number.",tr.UnexpectedEndOfNumber),!0;case 1:return k("Unexpected end of comment.",tr.UnexpectedEndOfComment),!0;case 2:return k("Unexpected end of string.",tr.UnexpectedEndOfString),!0;case 6:return k("Invalid characters in string. Control characters must be escaped.",tr.InvalidCharacter),!0}return!1}function ne(He,Ne){return He.length=p.getTokenOffset()+p.getTokenLength()-He.offset,Ne&&E(),He}function re(He){if(p.getToken()!==3)return null;var Ne=new cg(He,p.getTokenOffset());E();for(var Ve=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||k("Value expected",tr.ValueExpected);var Je=p.getTokenOffset();if(E(),p.getToken()===4){We&&A("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&k("Expected comma",tr.CommaExpected);var ze=Te(Ne,Ve++);ze?Ne.items.push(ze):k("Value expected",tr.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?k("Expected comma or closing bracket",tr.CommaOrCloseBacketExpected,Ne):ne(Ne,!0)}function ce(He,Ne){var Ve=new pg(He,p.getTokenOffset()),We=ge(Ve);if(!We)if(p.getToken()===16){k("Property keys must be doublequoted",tr.Undefined);var Je=new Bp(Ve,p.getTokenOffset(),p.getTokenLength());Je.value=p.getTokenValue(),We=Je,E()}else return null;Ve.keyNode=We;var ze=Ne[We.value];if(ze?(A("Duplicate object key",tr.DuplicateKey,Ve.keyNode.offset,Ve.keyNode.offset+Ve.keyNode.length,$t.Warning),typeof ze=="object"&&A("DuplicateKeyWarning",tr.DuplicateKey,ze.keyNode.offset,ze.keyNode.offset+ze.keyNode.length,$t.Warning),Ne[We.value]=!0):Ne[We.value]=Ve,p.getToken()===6)Ve.colonOffset=p.getTokenOffset(),E();else if(k("Colon expected",tr.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return Ve.length=We.length,Ve;var et=Te(Ve,We.value);return et?(Ve.valueNode=et,Ve.length=et.offset+et.length-Ve.offset,Ve):k("Value expected",tr.ValueExpected,Ve,[],[2,5])}function xe(He){if(p.getToken()!==1)return null;var Ne=new hg(He,p.getTokenOffset()),Ve=Object.create(null);E();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||k("Property expected",tr.PropertyExpected);var Je=p.getTokenOffset();if(E(),p.getToken()===2){We&&A("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&k("Expected comma",tr.CommaExpected);var ze=ce(Ne,Ve);ze?Ne.properties.push(ze):k("Property expected",tr.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?k("Expected comma or closing brace",tr.CommaOrCloseBraceExpected,Ne):ne(Ne,!0)}function ge(He){if(p.getToken()!==10)return null;var Ne=new Bp(He,p.getTokenOffset());return Ne.value=p.getTokenValue(),ne(Ne,!0)}function Ee(He){if(p.getToken()!==11)return null;var Ne=new dg(He,p.getTokenOffset());if(p.getTokenError()===0){var Ve=p.getTokenValue();try{var We=JSON.parse(Ve);if(!Yn(We))return k("Invalid number format.",tr.Undefined,Ne);Ne.value=We}catch(Je){return k("Invalid number format.",tr.Undefined,Ne)}Ne.isInteger=Ve.indexOf(".")===-1}return ne(Ne,!0)}function we(He){var Ne;switch(p.getToken()){case 7:return ne(new fg(He,p.getTokenOffset()),!0);case 8:return ne(new Np(He,!0,p.getTokenOffset()),!0);case 9:return ne(new Np(He,!1,p.getTokenOffset()),!0);default:return null}}function Te(He,Ne){return re(He)||xe(He)||ge(He)||Ee(He)||we(He)}var $e=null,je=E();return je!==17&&($e=Te(null,null),$e?p.getToken()!==17&&k("End of file expected.",tr.Undefined):k("Expected a JSON object, array or literal.",tr.Undefined)),new Vp($e,n,y)}function ed(t,r,n){if(t!==null&&typeof t=="object"){var o=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
|
|
307
|
-
`,p=0;p<t.length;p++)s+=o+
|
|
325
|
+
`}function Xd(t,r){return`\r
|
|
326
|
+
`.indexOf(t.charAt(r))!==-1}var El;(function(t){t.DEFAULT={allowTrailingComma:!1}})(El||(El={}));function Jv(t,r){var i=[],o=new Object,s=void 0,p={value:{},offset:0,length:0,type:"object",parent:void 0},y=!1;function A(w,E,F,G){p.value=w,p.offset=E,p.length=F,p.type=G,p.colonOffset=void 0,s=p}try{hf(t,{onObjectBegin:function(w,E){if(r<=w)throw o;s=void 0,y=r>w,i.push("")},onObjectProperty:function(w,E,F){if(r<E||(A(w,E,F,"property"),i[i.length-1]=w,r<=E+F))throw o},onObjectEnd:function(w,E){if(r<=w)throw o;s=void 0,i.pop()},onArrayBegin:function(w,E){if(r<=w)throw o;s=void 0,i.push(0)},onArrayEnd:function(w,E){if(r<=w)throw o;s=void 0,i.pop()},onLiteralValue:function(w,E,F){if(r<E||(A(w,E,F,_d(w)),r<=E+F))throw o},onSeparator:function(w,E,F){if(r<=E)throw o;if(w===":"&&s&&s.type==="property")s.colonOffset=E,y=!1,s=void 0;else if(w===","){var G=i[i.length-1];typeof G=="number"?i[i.length-1]=G+1:(y=!0,i[i.length-1]=""),s=void 0}}})}catch(w){if(w!==o)throw w}return{path:i,previousNode:s,isAtPropertyKey:y,matches:function(w){for(var E=0,F=0;E<w.length&&F<i.length;F++)if(w[E]===i[F]||w[E]==="*")E++;else if(w[E]!=="**")return!1;return E===w.length}}}function Xv(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=El.DEFAULT);var o=null,s=[],p=[];function y(w){Array.isArray(s)?s.push(w):o!==null&&(s[o]=w)}var A={onObjectBegin:function(){var w={};y(w),p.push(s),s=w,o=null},onObjectProperty:function(w){o=w},onObjectEnd:function(){s=p.pop()},onArrayBegin:function(){var w=[];y(w),p.push(s),s=w,o=null},onArrayEnd:function(){s=p.pop()},onLiteralValue:y,onError:function(w,E,F){r.push({error:w,offset:E,length:F})}};return hf(t,A,i),s[0]}function Qv(t,r,i){r===void 0&&(r=[]),i===void 0&&(i=El.DEFAULT);var o={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(w){o.type==="property"&&(o.length=w-o.offset,o=o.parent)}function p(w){return o.children.push(w),w}var y={onObjectBegin:function(w){o=p({type:"object",offset:w,length:-1,parent:o,children:[]})},onObjectProperty:function(w,E,F){o=p({type:"property",offset:E,length:-1,parent:o,children:[]}),o.children.push({type:"string",value:w,offset:E,length:F,parent:o})},onObjectEnd:function(w,E){s(w+E),o.length=w+E-o.offset,o=o.parent,s(w+E)},onArrayBegin:function(w,E){o=p({type:"array",offset:w,length:-1,parent:o,children:[]})},onArrayEnd:function(w,E){o.length=w+E-o.offset,o=o.parent,s(w+E)},onLiteralValue:function(w,E,F){p({type:_d(w),offset:E,length:F,parent:o,value:w}),s(E+F)},onSeparator:function(w,E,F){o.type==="property"&&(w===":"?o.colonOffset=E:w===","&&s(E))},onError:function(w,E,F){r.push({error:w,offset:E,length:F})}};hf(t,y,i);var A=o.children[0];return A&&delete A.parent,A}function Zv(t,r){if(!!t){for(var i=t,o=0,s=r;o<s.length;o++){var p=s[o];if(typeof p=="string"){if(i.type!=="object"||!Array.isArray(i.children))return;for(var y=!1,A=0,w=i.children;A<w.length;A++){var E=w[A];if(Array.isArray(E.children)&&E.children[0].value===p){i=E.children[1],y=!0;break}}if(!y)return}else{var F=p;if(i.type!=="array"||F<0||!Array.isArray(i.children)||F>=i.children.length)return;i=i.children[F]}}return i}}function Qd(t){if(!t.parent||!t.parent.children)return[];var r=Qd(t.parent);if(t.parent.type==="property"){var i=t.parent.children[0].value;r.push(i)}else if(t.parent.type==="array"){var o=t.parent.children.indexOf(t);o!==-1&&r.push(o)}return r}function Gc(t){switch(t.type){case"array":return t.children.map(Gc);case"object":for(var r=Object.create(null),i=0,o=t.children;i<o.length;i++){var s=o[i],p=s.children[1];p&&(r[s.children[0].value]=Gc(p))}return r;case"null":case"string":case"number":case"boolean":return t.value;default:return}}function _v(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}function Zd(t,r,i){if(i===void 0&&(i=!1),_v(t,r,i)){var o=t.children;if(Array.isArray(o))for(var s=0;s<o.length&&o[s].offset<=r;s++){var p=Zd(o[s],r,i);if(p)return p}return t}}function hf(t,r,i){i===void 0&&(i=El.DEFAULT);var o=pf(t,!1);function s(We){return We?function(){return We(o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}function p(We){return We?function(Je){return We(Je,o.getTokenOffset(),o.getTokenLength(),o.getTokenStartLine(),o.getTokenStartCharacter())}:function(){return!0}}var y=s(r.onObjectBegin),A=p(r.onObjectProperty),w=s(r.onObjectEnd),E=s(r.onArrayBegin),F=s(r.onArrayEnd),G=p(r.onLiteralValue),te=p(r.onSeparator),ne=s(r.onComment),oe=p(r.onError),ye=i&&i.disallowComments,ge=i&&i.allowTrailingComma;function Ae(){for(;;){var We=o.scan();switch(o.getTokenError()){case 4:me(14);break;case 5:me(15);break;case 3:me(13);break;case 1:ye||me(11);break;case 2:me(12);break;case 6:me(16);break}switch(We){case 12:case 13:ye?me(10):ne();break;case 16:me(1);break;case 15:case 14:break;default:return We}}}function me(We,Je,et){if(Je===void 0&&(Je=[]),et===void 0&&(et=[]),oe(We),Je.length+et.length>0)for(var $e=o.getToken();$e!==17;){if(Je.indexOf($e)!==-1){Ae();break}else if(et.indexOf($e)!==-1)break;$e=Ae()}}function Te(We){var Je=o.getTokenValue();return We?G(Je):A(Je),Ae(),!0}function He(){switch(o.getToken()){case 11:var We=o.getTokenValue(),Je=Number(We);isNaN(Je)&&(me(2),Je=0),G(Je);break;case 7:G(null);break;case 8:G(!0);break;case 9:G(!1);break;default:return!1}return Ae(),!0}function Ve(){return o.getToken()!==10?(me(3,[],[2,5]),!1):(Te(!1),o.getToken()===6?(te(":"),Ae(),Be()||me(4,[],[2,5])):me(5,[],[2,5]),!0)}function ze(){y(),Ae();for(var We=!1;o.getToken()!==2&&o.getToken()!==17;){if(o.getToken()===5){if(We||me(4,[],[]),te(","),Ae(),o.getToken()===2&&ge)break}else We&&me(6,[],[]);Ve()||me(4,[],[2,5]),We=!0}return w(),o.getToken()!==2?me(7,[2],[]):Ae(),!0}function De(){E(),Ae();for(var We=!1;o.getToken()!==4&&o.getToken()!==17;){if(o.getToken()===5){if(We||me(4,[],[]),te(","),Ae(),o.getToken()===4&&ge)break}else We&&me(6,[],[]);Be()||me(4,[],[4,5]),We=!0}return F(),o.getToken()!==4?me(8,[4],[]):Ae(),!0}function Be(){switch(o.getToken()){case 3:return De();case 1:return ze();case 10:return Te(!0);default:return He()}}return Ae(),o.getToken()===17?i.allowEmptyContent?!0:(me(4,[],[]),!1):Be()?(o.getToken()!==17&&me(9,[],[]),!0):(me(4,[],[]),!1)}function qv(t,r){var i=pf(t),o=[],s,p=0,y;do switch(y=i.getPosition(),s=i.scan(),s){case 12:case 13:case 17:p!==y&&o.push(t.substring(p,y)),r!==void 0&&o.push(i.getTokenValue().replace(/[^\r\n]/g,r)),p=i.getPosition();break}while(s!==17);return o.join("")}function _d(t){switch(typeof t){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(t){if(Array.isArray(t))return"array"}else return"null";return"object"}default:return"null"}}function Sm(t,r,i){return eg(t,r,void 0,i)}function eg(t,r,i,o){for(var s,p=r.slice(),y=[],A=parseTree(t,y),w=void 0,E=void 0;p.length>0&&(E=p.pop(),w=findNodeAtLocation(A,p),w===void 0&&i!==void 0);)typeof E=="string"?i=(s={},s[E]=i,s):i=[i];if(w)if(w.type==="object"&&typeof E=="string"&&Array.isArray(w.children)){var F=findNodeAtLocation(w,[E]);if(F!==void 0)if(i===void 0){if(!F.parent)throw new Error("Malformed AST");var G=w.children.indexOf(F.parent),te=void 0,ne=F.parent.offset+F.parent.length;if(G>0){var oe=w.children[G-1];te=oe.offset+oe.length}else if(te=w.offset+1,w.children.length>1){var ye=w.children[1];ne=ye.offset}return fo(t,{offset:te,length:ne-te,content:""},o)}else return fo(t,{offset:F.offset,length:F.length,content:JSON.stringify(i)},o);else{if(i===void 0)return[];var ge=JSON.stringify(E)+": "+JSON.stringify(i),Ae=o.getInsertionIndex?o.getInsertionIndex(w.children.map(function(We){return We.children[0].value})):w.children.length,me=void 0;if(Ae>0){var oe=w.children[Ae-1];me={offset:oe.offset+oe.length,length:0,content:","+ge}}else w.children.length===0?me={offset:w.offset+1,length:0,content:ge}:me={offset:w.offset+1,length:0,content:ge+","};return fo(t,me,o)}}else if(w.type==="array"&&typeof E=="number"&&Array.isArray(w.children)){var Te=E;if(Te===-1){var ge=""+JSON.stringify(i),me=void 0;if(w.children.length===0)me={offset:w.offset+1,length:0,content:ge};else{var oe=w.children[w.children.length-1];me={offset:oe.offset+oe.length,length:0,content:","+ge}}return fo(t,me,o)}else if(i===void 0&&w.children.length>=0){var He=E,Ve=w.children[He],me=void 0;if(w.children.length===1)me={offset:w.offset+1,length:w.length-2,content:""};else if(w.children.length-1===He){var oe=w.children[He-1],ze=oe.offset+oe.length,De=w.offset+w.length;me={offset:ze,length:De-2-ze,content:""}}else me={offset:Ve.offset,length:w.children[He+1].offset-Ve.offset,content:""};return fo(t,me,o)}else if(i!==void 0){var me=void 0,ge=""+JSON.stringify(i);if(!o.isArrayInsertion&&w.children.length>E){var Be=w.children[E];me={offset:Be.offset,length:Be.length,content:ge}}else if(w.children.length===0||E===0)me={offset:w.offset+1,length:0,content:w.children.length===0?ge:ge+","};else{var Ae=E>w.children.length?w.children.length:E,oe=w.children[Ae-1];me={offset:oe.offset+oe.length,length:0,content:","+ge}}return fo(t,me,o)}else throw new Error("Can not "+(i===void 0?"remove":o.isArrayInsertion?"insert":"modify")+" Array index "+Te+" as length is not sufficient")}else throw new Error("Can not add "+(typeof E!="number"?"index":"property")+" to parent of type "+w.type);else{if(i===void 0)throw new Error("Can not delete in empty document");return fo(t,{offset:A?A.offset:0,length:A?A.length:0,content:JSON.stringify(i)},o)}}function fo(t,r,i){if(!i.formattingOptions)return[r];var o=qd(t,r),s=r.offset,p=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(o,s-1);)s--;for(;p<o.length&&!isEOL(o,p);)p++}for(var y=format(o,{offset:s,length:p-s},i.formattingOptions),A=y.length-1;A>=0;A--){var w=y[A];o=qd(o,w),s=Math.min(s,w.offset),p=Math.max(p,w.offset+w.length),p+=w.content.length-w.length}var E=t.length-(o.length-p)-s;return[{offset:s,length:E,content:o.substring(s,p)}]}function qd(t,r){return t.substring(0,r.offset)+r.content+t.substring(r.offset+r.length)}function Am(t,r){return`\r
|
|
327
|
+
`.indexOf(t.charAt(r))!==-1}var fs=pf,Em=Jv,tg=Xv,Cm=Qv,Om=Zv,rg=Zd,ng=Qd,ig=Gc,Tm=hf,Pm=qv;function Im(t){switch(t){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function ag(t,r,i){return $v(t,r,i)}function Fm(t,r,i,o){return edit.setProperty(t,r,i,o)}function km(t,r){for(var i=r.length-1;i>=0;i--)t=edit.applyEdit(t,r[i]);return t}function Cl(t,r){if(t===r)return!0;if(t==null||r===null||r===void 0||typeof t!=typeof r||typeof t!="object"||Array.isArray(t)!==Array.isArray(r))return!1;var i,o;if(Array.isArray(t)){if(t.length!==r.length)return!1;for(i=0;i<t.length;i++)if(!Cl(t[i],r[i]))return!1}else{var s=[];for(o in t)s.push(o);s.sort();var p=[];for(o in r)p.push(o);if(p.sort(),!Cl(s,p))return!1;for(i=0;i<s.length;i++)if(!Cl(t[s[i]],r[s[i]]))return!1}return!0}function Yn(t){return typeof t=="number"}function sa(t){return typeof t!="undefined"}function Bi(t){return typeof t=="boolean"}function og(t){return typeof t=="string"}var ep;(function(t){t.MIN_VALUE=-2147483648,t.MAX_VALUE=2147483647})(ep||(ep={}));var vf;(function(t){t.MIN_VALUE=0,t.MAX_VALUE=2147483647})(vf||(vf={}));var xi;(function(t){function r(o,s){return o===Number.MAX_VALUE&&(o=vf.MAX_VALUE),s===Number.MAX_VALUE&&(s=vf.MAX_VALUE),{line:o,character:s}}t.create=r;function i(o){var s=o;return _e.objectLiteral(s)&&_e.uinteger(s.line)&&_e.uinteger(s.character)}t.is=i})(xi||(xi={}));var ur;(function(t){function r(o,s,p,y){if(_e.uinteger(o)&&_e.uinteger(s)&&_e.uinteger(p)&&_e.uinteger(y))return{start:xi.create(o,s),end:xi.create(p,y)};if(xi.is(o)&&xi.is(s))return{start:o,end:s};throw new Error("Range#create called with invalid arguments["+o+", "+s+", "+p+", "+y+"]")}t.create=r;function i(o){var s=o;return _e.objectLiteral(s)&&xi.is(s.start)&&xi.is(s.end)}t.is=i})(ur||(ur={}));var Ol;(function(t){function r(o,s){return{uri:o,range:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.string(s.uri)||_e.undefined(s.uri))}t.is=i})(Ol||(Ol={}));var tp;(function(t){function r(o,s,p,y){return{targetUri:o,targetRange:s,targetSelectionRange:p,originSelectionRange:y}}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.targetRange)&&_e.string(s.targetUri)&&(ur.is(s.targetSelectionRange)||_e.undefined(s.targetSelectionRange))&&(ur.is(s.originSelectionRange)||_e.undefined(s.originSelectionRange))}t.is=i})(tp||(tp={}));var $c;(function(t){function r(o,s,p,y){return{red:o,green:s,blue:p,alpha:y}}t.create=r;function i(o){var s=o;return _e.numberRange(s.red,0,1)&&_e.numberRange(s.green,0,1)&&_e.numberRange(s.blue,0,1)&&_e.numberRange(s.alpha,0,1)}t.is=i})($c||($c={}));var rp;(function(t){function r(o,s){return{range:o,color:s}}t.create=r;function i(o){var s=o;return ur.is(s.range)&&$c.is(s.color)}t.is=i})(rp||(rp={}));var np;(function(t){function r(o,s,p){return{label:o,textEdit:s,additionalTextEdits:p}}t.create=r;function i(o){var s=o;return _e.string(s.label)&&(_e.undefined(s.textEdit)||bi.is(s))&&(_e.undefined(s.additionalTextEdits)||_e.typedArray(s.additionalTextEdits,bi.is))}t.is=i})(np||(np={}));var Tl;(function(t){t.Comment="comment",t.Imports="imports",t.Region="region"})(Tl||(Tl={}));var ip;(function(t){function r(o,s,p,y,A){var w={startLine:o,endLine:s};return _e.defined(p)&&(w.startCharacter=p),_e.defined(y)&&(w.endCharacter=y),_e.defined(A)&&(w.kind=A),w}t.create=r;function i(o){var s=o;return _e.uinteger(s.startLine)&&_e.uinteger(s.startLine)&&(_e.undefined(s.startCharacter)||_e.uinteger(s.startCharacter))&&(_e.undefined(s.endCharacter)||_e.uinteger(s.endCharacter))&&(_e.undefined(s.kind)||_e.string(s.kind))}t.is=i})(ip||(ip={}));var Kc;(function(t){function r(o,s){return{location:o,message:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&Ol.is(s.location)&&_e.string(s.message)}t.is=i})(Kc||(Kc={}));var $t;(function(t){t.Error=1,t.Warning=2,t.Information=3,t.Hint=4})($t||($t={}));var ap;(function(t){t.Unnecessary=1,t.Deprecated=2})(ap||(ap={}));var op;(function(t){function r(i){var o=i;return o!=null&&_e.string(o.href)}t.is=r})(op||(op={}));var la;(function(t){function r(o,s,p,y,A,w){var E={range:o,message:s};return _e.defined(p)&&(E.severity=p),_e.defined(y)&&(E.code=y),_e.defined(A)&&(E.source=A),_e.defined(w)&&(E.relatedInformation=w),E}t.create=r;function i(o){var s,p=o;return _e.defined(p)&&ur.is(p.range)&&_e.string(p.message)&&(_e.number(p.severity)||_e.undefined(p.severity))&&(_e.integer(p.code)||_e.string(p.code)||_e.undefined(p.code))&&(_e.undefined(p.codeDescription)||_e.string((s=p.codeDescription)===null||s===void 0?void 0:s.href))&&(_e.string(p.source)||_e.undefined(p.source))&&(_e.undefined(p.relatedInformation)||_e.typedArray(p.relatedInformation,Kc.is))}t.is=i})(la||(la={}));var Pl;(function(t){function r(o,s){for(var p=[],y=2;y<arguments.length;y++)p[y-2]=arguments[y];var A={title:o,command:s};return _e.defined(p)&&p.length>0&&(A.arguments=p),A}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.title)&&_e.string(s.command)}t.is=i})(Pl||(Pl={}));var bi;(function(t){function r(p,y){return{range:p,newText:y}}t.replace=r;function i(p,y){return{range:{start:p,end:p},newText:y}}t.insert=i;function o(p){return{range:p,newText:""}}t.del=o;function s(p){var y=p;return _e.objectLiteral(y)&&_e.string(y.newText)&&ur.is(y.range)}t.is=s})(bi||(bi={}));var cs;(function(t){function r(o,s,p){var y={label:o};return s!==void 0&&(y.needsConfirmation=s),p!==void 0&&(y.description=p),y}t.create=r;function i(o){var s=o;return s!==void 0&&_e.objectLiteral(s)&&_e.string(s.label)&&(_e.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(_e.string(s.description)||s.description===void 0)}t.is=i})(cs||(cs={}));var Sn;(function(t){function r(i){var o=i;return typeof o=="string"}t.is=r})(Sn||(Sn={}));var Oa;(function(t){function r(p,y,A){return{range:p,newText:y,annotationId:A}}t.replace=r;function i(p,y,A){return{range:{start:p,end:p},newText:y,annotationId:A}}t.insert=i;function o(p,y){return{range:p,newText:"",annotationId:y}}t.del=o;function s(p){var y=p;return bi.is(y)&&(cs.is(y.annotationId)||Sn.is(y.annotationId))}t.is=s})(Oa||(Oa={}));var gf;(function(t){function r(o,s){return{textDocument:o,edits:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&mf.is(s.textDocument)&&Array.isArray(s.edits)}t.is=i})(gf||(gf={}));var Il;(function(t){function r(o,s,p){var y={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(o){var s=o;return s&&s.kind==="create"&&_e.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Sn.is(s.annotationId))}t.is=i})(Il||(Il={}));var Fl;(function(t){function r(o,s,p,y){var A={kind:"rename",oldUri:o,newUri:s};return p!==void 0&&(p.overwrite!==void 0||p.ignoreIfExists!==void 0)&&(A.options=p),y!==void 0&&(A.annotationId=y),A}t.create=r;function i(o){var s=o;return s&&s.kind==="rename"&&_e.string(s.oldUri)&&_e.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||_e.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||_e.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Sn.is(s.annotationId))}t.is=i})(Fl||(Fl={}));var kl;(function(t){function r(o,s,p){var y={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(y.options=s),p!==void 0&&(y.annotationId=p),y}t.create=r;function i(o){var s=o;return s&&s.kind==="delete"&&_e.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||_e.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||_e.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Sn.is(s.annotationId))}t.is=i})(kl||(kl={}));var Yc;(function(t){function r(i){var o=i;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(function(s){return _e.string(s.kind)?Il.is(s)||Fl.is(s)||kl.is(s):gf.is(s)}))}t.is=r})(Yc||(Yc={}));var yf=function(){function t(r,i){this.edits=r,this.changeAnnotations=i}return t.prototype.insert=function(r,i,o){var s,p;if(o===void 0?s=bi.insert(r,i):Sn.is(o)?(p=o,s=Oa.insert(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Oa.insert(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.replace=function(r,i,o){var s,p;if(o===void 0?s=bi.replace(r,i):Sn.is(o)?(p=o,s=Oa.replace(r,i,o)):(this.assertChangeAnnotations(this.changeAnnotations),p=this.changeAnnotations.manage(o),s=Oa.replace(r,i,p)),this.edits.push(s),p!==void 0)return p},t.prototype.delete=function(r,i){var o,s;if(i===void 0?o=bi.del(r):Sn.is(i)?(s=i,o=Oa.del(r,i)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(i),o=Oa.del(r,s)),this.edits.push(o),s!==void 0)return s},t.prototype.add=function(r){this.edits.push(r)},t.prototype.all=function(){return this.edits},t.prototype.clear=function(){this.edits.splice(0,this.edits.length)},t.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},t}(),sp=function(){function t(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return t.prototype.all=function(){return this._annotations},Object.defineProperty(t.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),t.prototype.manage=function(r,i){var o;if(Sn.is(r)?o=r:(o=this.nextId(),i=r),this._annotations[o]!==void 0)throw new Error("Id "+o+" is already in use.");if(i===void 0)throw new Error("No annotation provided for id "+o);return this._annotations[o]=i,this._size++,o},t.prototype.nextId=function(){return this._counter++,this._counter.toString()},t}(),Mm=function(){function t(r){var i=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new sp(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(o){if(gf.is(o)){var s=new yf(o.edits,i._changeAnnotations);i._textEditChanges[o.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(o){var s=new yf(r.changes[o]);i._textEditChanges[o]=s})):this._workspaceEdit={}}return Object.defineProperty(t.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),t.prototype.getTextEditChange=function(r){if(mf.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i={uri:r.uri,version:r.version},o=this._textEditChanges[i.uri];if(!o){var s=[],p={textDocument:i,edits:s};this._workspaceEdit.documentChanges.push(p),o=new yf(s,this._changeAnnotations),this._textEditChanges[i.uri]=o}return o}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var o=this._textEditChanges[r];if(!o){var s=[];this._workspaceEdit.changes[r]=s,o=new yf(s),this._textEditChanges[r]=o}return o}},t.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new sp,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},t.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},t.prototype.createFile=function(r,i,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;cs.is(i)||Sn.is(i)?s=i:o=i;var p,y;if(s===void 0?p=Il.create(r,o):(y=Sn.is(s)?s:this._changeAnnotations.manage(s),p=Il.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t.prototype.renameFile=function(r,i,o,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var p;cs.is(o)||Sn.is(o)?p=o:s=o;var y,A;if(p===void 0?y=Fl.create(r,i,s):(A=Sn.is(p)?p:this._changeAnnotations.manage(p),y=Fl.create(r,i,s,A)),this._workspaceEdit.documentChanges.push(y),A!==void 0)return A},t.prototype.deleteFile=function(r,i,o){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;cs.is(i)||Sn.is(i)?s=i:o=i;var p,y;if(s===void 0?p=kl.create(r,o):(y=Sn.is(s)?s:this._changeAnnotations.manage(s),p=kl.create(r,o,y)),this._workspaceEdit.documentChanges.push(p),y!==void 0)return y},t}(),lp;(function(t){function r(o){return{uri:o}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)}t.is=i})(lp||(lp={}));var up;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.integer(s.version)}t.is=i})(up||(up={}));var mf;(function(t){function r(o,s){return{uri:o,version:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&(s.version===null||_e.integer(s.version))}t.is=i})(mf||(mf={}));var fp;(function(t){function r(o,s,p,y){return{uri:o,languageId:s,version:p,text:y}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.string(s.uri)&&_e.string(s.languageId)&&_e.integer(s.version)&&_e.string(s.text)}t.is=i})(fp||(fp={}));var ua;(function(t){t.PlainText="plaintext",t.Markdown="markdown"})(ua||(ua={})),function(t){function r(i){var o=i;return o===t.PlainText||o===t.Markdown}t.is=r}(ua||(ua={}));var Jc;(function(t){function r(i){var o=i;return _e.objectLiteral(i)&&ua.is(o.kind)&&_e.string(o.value)}t.is=r})(Jc||(Jc={}));var Jn;(function(t){t.Text=1,t.Method=2,t.Function=3,t.Constructor=4,t.Field=5,t.Variable=6,t.Class=7,t.Interface=8,t.Module=9,t.Property=10,t.Unit=11,t.Value=12,t.Enum=13,t.Keyword=14,t.Snippet=15,t.Color=16,t.File=17,t.Reference=18,t.Folder=19,t.EnumMember=20,t.Constant=21,t.Struct=22,t.Event=23,t.Operator=24,t.TypeParameter=25})(Jn||(Jn={}));var _r;(function(t){t.PlainText=1,t.Snippet=2})(_r||(_r={}));var cp;(function(t){t.Deprecated=1})(cp||(cp={}));var dp;(function(t){function r(o,s,p){return{newText:o,insert:s,replace:p}}t.create=r;function i(o){var s=o;return s&&_e.string(s.newText)&&ur.is(s.insert)&&ur.is(s.replace)}t.is=i})(dp||(dp={}));var pp;(function(t){t.asIs=1,t.adjustIndentation=2})(pp||(pp={}));var Xc;(function(t){function r(i){return{label:i}}t.create=r})(Xc||(Xc={}));var hp;(function(t){function r(i,o){return{items:i||[],isIncomplete:!!o}}t.create=r})(hp||(hp={}));var xf;(function(t){function r(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}t.fromPlainText=r;function i(o){var s=o;return _e.string(s)||_e.objectLiteral(s)&&_e.string(s.language)&&_e.string(s.value)}t.is=i})(xf||(xf={}));var vp;(function(t){function r(i){var o=i;return!!o&&_e.objectLiteral(o)&&(Jc.is(o.contents)||xf.is(o.contents)||_e.typedArray(o.contents,xf.is))&&(i.range===void 0||ur.is(i.range))}t.is=r})(vp||(vp={}));var gp;(function(t){function r(i,o){return o?{label:i,documentation:o}:{label:i}}t.create=r})(gp||(gp={}));var yp;(function(t){function r(i,o){for(var s=[],p=2;p<arguments.length;p++)s[p-2]=arguments[p];var y={label:i};return _e.defined(o)&&(y.documentation=o),_e.defined(s)?y.parameters=s:y.parameters=[],y}t.create=r})(yp||(yp={}));var mp;(function(t){t.Text=1,t.Read=2,t.Write=3})(mp||(mp={}));var xp;(function(t){function r(i,o){var s={range:i};return _e.number(o)&&(s.kind=o),s}t.create=r})(xp||(xp={}));var Ui;(function(t){t.File=1,t.Module=2,t.Namespace=3,t.Package=4,t.Class=5,t.Method=6,t.Property=7,t.Field=8,t.Constructor=9,t.Enum=10,t.Interface=11,t.Function=12,t.Variable=13,t.Constant=14,t.String=15,t.Number=16,t.Boolean=17,t.Array=18,t.Object=19,t.Key=20,t.Null=21,t.EnumMember=22,t.Struct=23,t.Event=24,t.Operator=25,t.TypeParameter=26})(Ui||(Ui={}));var bp;(function(t){t.Deprecated=1})(bp||(bp={}));var wp;(function(t){function r(i,o,s,p,y){var A={name:i,kind:o,location:{uri:p,range:s}};return y&&(A.containerName=y),A}t.create=r})(wp||(wp={}));var Sp;(function(t){function r(o,s,p,y,A,w){var E={name:o,detail:s,kind:p,range:y,selectionRange:A};return w!==void 0&&(E.children=w),E}t.create=r;function i(o){var s=o;return s&&_e.string(s.name)&&_e.number(s.kind)&&ur.is(s.range)&&ur.is(s.selectionRange)&&(s.detail===void 0||_e.string(s.detail))&&(s.deprecated===void 0||_e.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}t.is=i})(Sp||(Sp={}));var Ap;(function(t){t.Empty="",t.QuickFix="quickfix",t.Refactor="refactor",t.RefactorExtract="refactor.extract",t.RefactorInline="refactor.inline",t.RefactorRewrite="refactor.rewrite",t.Source="source",t.SourceOrganizeImports="source.organizeImports",t.SourceFixAll="source.fixAll"})(Ap||(Ap={}));var Ep;(function(t){function r(o,s){var p={diagnostics:o};return s!=null&&(p.only=s),p}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.typedArray(s.diagnostics,la.is)&&(s.only===void 0||_e.typedArray(s.only,_e.string))}t.is=i})(Ep||(Ep={}));var Cp;(function(t){function r(o,s,p){var y={title:o},A=!0;return typeof s=="string"?(A=!1,y.kind=s):Pl.is(s)?y.command=s:y.edit=s,A&&p!==void 0&&(y.kind=p),y}t.create=r;function i(o){var s=o;return s&&_e.string(s.title)&&(s.diagnostics===void 0||_e.typedArray(s.diagnostics,la.is))&&(s.kind===void 0||_e.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Pl.is(s.command))&&(s.isPreferred===void 0||_e.boolean(s.isPreferred))&&(s.edit===void 0||Yc.is(s.edit))}t.is=i})(Cp||(Cp={}));var Op;(function(t){function r(o,s){var p={range:o};return _e.defined(s)&&(p.data=s),p}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.undefined(s.command)||Pl.is(s.command))}t.is=i})(Op||(Op={}));var Tp;(function(t){function r(o,s){return{tabSize:o,insertSpaces:s}}t.create=r;function i(o){var s=o;return _e.defined(s)&&_e.uinteger(s.tabSize)&&_e.boolean(s.insertSpaces)}t.is=i})(Tp||(Tp={}));var Pp;(function(t){function r(o,s,p){return{range:o,target:s,data:p}}t.create=r;function i(o){var s=o;return _e.defined(s)&&ur.is(s.range)&&(_e.undefined(s.target)||_e.string(s.target))}t.is=i})(Pp||(Pp={}));var bf;(function(t){function r(o,s){return{range:o,parent:s}}t.create=r;function i(o){var s=o;return s!==void 0&&ur.is(s.range)&&(s.parent===void 0||t.is(s.parent))}t.is=i})(bf||(bf={}));var Rm=null,Ip;(function(t){function r(p,y,A,w){return new sg(p,y,A,w)}t.create=r;function i(p){var y=p;return!!(_e.defined(y)&&_e.string(y.uri)&&(_e.undefined(y.languageId)||_e.string(y.languageId))&&_e.uinteger(y.lineCount)&&_e.func(y.getText)&&_e.func(y.positionAt)&&_e.func(y.offsetAt))}t.is=i;function o(p,y){for(var A=p.getText(),w=s(y,function(oe,ye){var ge=oe.range.start.line-ye.range.start.line;return ge===0?oe.range.start.character-ye.range.start.character:ge}),E=A.length,F=w.length-1;F>=0;F--){var G=w[F],te=p.offsetAt(G.range.start),ne=p.offsetAt(G.range.end);if(ne<=E)A=A.substring(0,te)+G.newText+A.substring(ne,A.length);else throw new Error("Overlapping edit");E=te}return A}t.applyEdits=o;function s(p,y){if(p.length<=1)return p;var A=p.length/2|0,w=p.slice(0,A),E=p.slice(A);s(w,y),s(E,y);for(var F=0,G=0,te=0;F<w.length&&G<E.length;){var ne=y(w[F],E[G]);ne<=0?p[te++]=w[F++]:p[te++]=E[G++]}for(;F<w.length;)p[te++]=w[F++];for(;G<E.length;)p[te++]=E[G++];return p}})(Ip||(Ip={}));var sg=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(i,o)}return this._content},t.prototype.update=function(r,i){this._content=r.text,this._version=i,this._lineOffsets=void 0},t.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],i=this._content,o=!0,s=0;s<i.length;s++){o&&(r.push(s),o=!1);var p=i.charAt(s);o=p==="\r"||p===`
|
|
328
|
+
`,p==="\r"&&s+1<i.length&&i.charAt(s+1)===`
|
|
329
|
+
`&&s++}o&&i.length>0&&r.push(i.length),this._lineOffsets=r}return this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),o=0,s=i.length;if(s===0)return xi.create(0,r);for(;o<s;){var p=Math.floor((o+s)/2);i[p]>r?s=p:o=p+1}var y=o-1;return xi.create(y,r-i[y])},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),t}(),_e;(function(t){var r=Object.prototype.toString;function i(ne){return typeof ne!="undefined"}t.defined=i;function o(ne){return typeof ne=="undefined"}t.undefined=o;function s(ne){return ne===!0||ne===!1}t.boolean=s;function p(ne){return r.call(ne)==="[object String]"}t.string=p;function y(ne){return r.call(ne)==="[object Number]"}t.number=y;function A(ne,oe,ye){return r.call(ne)==="[object Number]"&&oe<=ne&&ne<=ye}t.numberRange=A;function w(ne){return r.call(ne)==="[object Number]"&&-2147483648<=ne&&ne<=2147483647}t.integer=w;function E(ne){return r.call(ne)==="[object Number]"&&0<=ne&&ne<=2147483647}t.uinteger=E;function F(ne){return r.call(ne)==="[object Function]"}t.func=F;function G(ne){return ne!==null&&typeof ne=="object"}t.objectLiteral=G;function te(ne,oe){return Array.isArray(ne)&&ne.every(oe)}t.typedArray=te})(_e||(_e={}));var Fp=function(){function t(r,i,o,s){this._uri=r,this._languageId=i,this._version=o,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._version},enumerable:!0,configurable:!0}),t.prototype.getText=function(r){if(r){var i=this.offsetAt(r.start),o=this.offsetAt(r.end);return this._content.substring(i,o)}return this._content},t.prototype.update=function(r,i){for(var o=0,s=r;o<s.length;o++){var p=s[o];if(t.isIncremental(p)){var y=Mp(p.range),A=this.offsetAt(y.start),w=this.offsetAt(y.end);this._content=this._content.substring(0,A)+p.text+this._content.substring(w,this._content.length);var E=Math.max(y.start.line,0),F=Math.max(y.end.line,0),G=this._lineOffsets,te=kp(p.text,!1,A);if(F-E===te.length)for(var ne=0,oe=te.length;ne<oe;ne++)G[ne+E+1]=te[ne];else te.length<1e4?G.splice.apply(G,[E+1,F-E].concat(te)):this._lineOffsets=G=G.slice(0,E+1).concat(te,G.slice(F+1));var ye=p.text.length-(w-A);if(ye!==0)for(var ne=E+1+te.length,oe=G.length;ne<oe;ne++)G[ne]=G[ne]+ye}else if(t.isFull(p))this._content=p.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=i},t.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=kp(this._content,!0)),this._lineOffsets},t.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var i=this.getLineOffsets(),o=0,s=i.length;if(s===0)return{line:0,character:r};for(;o<s;){var p=Math.floor((o+s)/2);i[p]>r?s=p:o=p+1}var y=o-1;return{line:y,character:r-i[y]}},t.prototype.offsetAt=function(r){var i=this.getLineOffsets();if(r.line>=i.length)return this._content.length;if(r.line<0)return 0;var o=i[r.line],s=r.line+1<i.length?i[r.line+1]:this._content.length;return Math.max(Math.min(o+r.character,s),o)},Object.defineProperty(t.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!0,configurable:!0}),t.isIncremental=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range!==void 0&&(i.rangeLength===void 0||typeof i.rangeLength=="number")},t.isFull=function(r){var i=r;return i!=null&&typeof i.text=="string"&&i.range===void 0&&i.rangeLength===void 0},t}(),wf;(function(t){function r(s,p,y,A){return new Fp(s,p,y,A)}t.create=r;function i(s,p,y){if(s instanceof Fp)return s.update(p,y),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}t.update=i;function o(s,p){for(var y=s.getText(),A=Qc(p.map(lg),function(oe,ye){var ge=oe.range.start.line-ye.range.start.line;return ge===0?oe.range.start.character-ye.range.start.character:ge}),w=0,E=[],F=0,G=A;F<G.length;F++){var te=G[F],ne=s.offsetAt(te.range.start);if(ne<w)throw new Error("Overlapping edit");ne>w&&E.push(y.substring(w,ne)),te.newText.length&&E.push(te.newText),w=s.offsetAt(te.range.end)}return E.push(y.substr(w)),E.join("")}t.applyEdits=o})(wf||(wf={}));function Qc(t,r){if(t.length<=1)return t;var i=t.length/2|0,o=t.slice(0,i),s=t.slice(i);Qc(o,r),Qc(s,r);for(var p=0,y=0,A=0;p<o.length&&y<s.length;){var w=r(o[p],s[y]);w<=0?t[A++]=o[p++]:t[A++]=s[y++]}for(;p<o.length;)t[A++]=o[p++];for(;y<s.length;)t[A++]=s[y++];return t}function kp(t,r,i){i===void 0&&(i=0);for(var o=r?[i]:[],s=0;s<t.length;s++){var p=t.charCodeAt(s);(p===13||p===10)&&(p===13&&s+1<t.length&&t.charCodeAt(s+1)===10&&s++,o.push(i+s+1))}return o}function Mp(t){var r=t.start,i=t.end;return r.line>i.line||r.line===i.line&&r.character>i.character?{start:i,end:r}:t}function lg(t){var r=Mp(t.range);return r!==t.range?{newText:t.newText,range:r}:t}var tr;(function(t){t[t.Undefined=0]="Undefined",t[t.EnumValueMismatch=1]="EnumValueMismatch",t[t.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",t[t.UnexpectedEndOfString=258]="UnexpectedEndOfString",t[t.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",t[t.InvalidUnicode=260]="InvalidUnicode",t[t.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",t[t.InvalidCharacter=262]="InvalidCharacter",t[t.PropertyExpected=513]="PropertyExpected",t[t.CommaExpected=514]="CommaExpected",t[t.ColonExpected=515]="ColonExpected",t[t.ValueExpected=516]="ValueExpected",t[t.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",t[t.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",t[t.TrailingComma=519]="TrailingComma",t[t.DuplicateKey=520]="DuplicateKey",t[t.CommentNotPermitted=521]="CommentNotPermitted",t[t.SchemaResolveError=768]="SchemaResolveError"})(tr||(tr={}));var Rp;(function(t){t.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ua.Markdown,ua.PlainText],commitCharactersSupport:!0}}}}})(Rp||(Rp={}));var co=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),ug={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},po=function(){function t(r,i,o){this.offset=i,this.length=o,this.parent=r}return Object.defineProperty(t.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},t}(),fg=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="null",s.value=null,s}return r}(po),Lp=function(t){co(r,t);function r(i,o,s){var p=t.call(this,i,s)||this;return p.type="boolean",p.value=o,p}return r}(po),cg=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(po),dg=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(po),Dp=function(t){co(r,t);function r(i,o,s){var p=t.call(this,i,o,s)||this;return p.type="string",p.value="",p}return r}(po),pg=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(po),hg=function(t){co(r,t);function r(i,o){var s=t.call(this,i,o)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(po);function Mn(t){return Bi(t)?t?{}:{not:{}}:t}var Np;(function(t){t[t.Key=0]="Key",t[t.Enum=1]="Enum"})(Np||(Np={}));var vg=function(){function t(r,i){r===void 0&&(r=-1),i===void 0&&(i=null),this.focusOffset=r,this.exclude=i,this.schemas=[]}return t.prototype.add=function(r){this.schemas.push(r)},t.prototype.merge=function(r){var i;(i=this.schemas).push.apply(i,r.schemas)},t.prototype.include=function(r){return(this.focusOffset===-1||Bp(r,this.focusOffset))&&r!==this.exclude},t.prototype.newSub=function(){return new t(-1,this.exclude)},t}(),Zc=function(){function t(){}return Object.defineProperty(t.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.add=function(r){},t.prototype.merge=function(r){},t.prototype.include=function(r){return!0},t.prototype.newSub=function(){return this},t.instance=new t,t}(),Rn=function(){function t(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return t.prototype.hasProblems=function(){return!!this.problems.length},t.prototype.mergeAll=function(r){for(var i=0,o=r;i<o.length;i++){var s=o[i];this.merge(s)}},t.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},t.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var i=0,o=this.problems;i<o.length;i++){var s=o[i];s.code===tr.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(p){return JSON.stringify(p)}).join(", ")+".")}}},t.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},t.prototype.compare=function(r){var i=this.hasProblems();return i!==r.hasProblems()?i?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},t}();function gg(t,r){return r===void 0&&(r=[]),new Up(t,r,[])}function Ta(t){return ig(t)}function _c(t){return ng(t)}function Bp(t,r,i){return i===void 0&&(i=!1),r>=t.offset&&r<t.offset+t.length||i&&r===t.offset+t.length}var Up=function(){function t(r,i,o){i===void 0&&(i=[]),o===void 0&&(o=[]),this.root=r,this.syntaxErrors=i,this.comments=o}return t.prototype.getNodeFromOffset=function(r,i){if(i===void 0&&(i=!1),this.root)return rg(this.root,r,i)},t.prototype.visit=function(r){if(this.root){var i=function(o){var s=r(o),p=o.children;if(Array.isArray(p))for(var y=0;y<p.length&&s;y++)s=i(p[y]);return s};i(this.root)}},t.prototype.validate=function(r,i){if(this.root&&i){var o=new Rn;return pn(this.root,i,o,Zc.instance),o.problems.map(function(s){var p=ur.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return la.create(p,s.message,s.severity,s.code)})}return null},t.prototype.getMatchingSchemas=function(r,i,o){i===void 0&&(i=-1),o===void 0&&(o=null);var s=new vg(i,o);return this.root&&r&&pn(this.root,r,new Rn,s),s.schemas},t}();function pn(t,r,i,o){if(!t||!o.include(t))return;switch(t.type){case"object":w(t,r,i,o);break;case"array":A(t,r,i,o);break;case"string":y(t,r,i,o);break;case"number":p(t,r,i,o);break;case"property":return pn(t.valueNode,r,i,o)}s(),o.add({node:t,schema:r});function s(){function E($e){return t.type===$e||$e==="integer"&&t.type==="number"&&t.isInteger||r.nullable&&t.value===null}if(Array.isArray(r.type)?r.type.some(E)||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(E(r.type)||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var F=0,G=r.allOf;F<G.length;F++){var te=G[F];pn(t,Mn(te),i,o)}var ne=Mn(r.not);if(ne){var oe=new Rn,ye=o.newSub();pn(t,ne,oe,ye),oe.hasProblems()||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,message:"Matches a schema that is not allowed."});for(var ge=0,Ae=ye.schemas;ge<Ae.length;ge++){var me=Ae[ge];me.inverted=!me.inverted,o.add(me)}}var Te=function($e,gt){for(var Nt=[],Gt=null,or=0,kr=$e;or<kr.length;or++){var Er=kr[or],Qr=Mn(Er),br=new Rn,Dr=o.newSub();if(pn(t,Qr,br,Dr),br.hasProblems()||Nt.push(Qr),!Gt)Gt={schema:Qr,validationResult:br,matchingSchemas:Dr};else if(!gt&&!br.hasProblems()&&!Gt.validationResult.hasProblems())Gt.matchingSchemas.merge(Dr),Gt.validationResult.propertiesMatches+=br.propertiesMatches,Gt.validationResult.propertiesValueMatches+=br.propertiesValueMatches;else{var An=br.compare(Gt.validationResult);An>0?Gt={schema:Qr,validationResult:br,matchingSchemas:Dr}:An===0&&(Gt.matchingSchemas.merge(Dr),Gt.validationResult.mergeEnumValues(br))}}return Nt.length>1&>&&i.problems.push({location:{offset:t.offset,length:1},severity:$t.Warning,message:"Matches multiple schemas when only one must validate."}),Gt!==null&&(i.merge(Gt.validationResult),i.propertiesMatches+=Gt.validationResult.propertiesMatches,i.propertiesValueMatches+=Gt.validationResult.propertiesValueMatches,o.merge(Gt.matchingSchemas)),Nt.length};Array.isArray(r.anyOf)&&Te(r.anyOf,!1),Array.isArray(r.oneOf)&&Te(r.oneOf,!0);var He=function($e){var gt=new Rn,Nt=o.newSub();pn(t,Mn($e),gt,Nt),i.merge(gt),i.propertiesMatches+=gt.propertiesMatches,i.propertiesValueMatches+=gt.propertiesValueMatches,o.merge(Nt)},Ve=function($e,gt,Nt){var Gt=Mn($e),or=new Rn,kr=o.newSub();pn(t,Gt,or,kr),o.merge(kr),or.hasProblems()?Nt&&He(Nt):gt&&He(gt)},ze=Mn(r.if);if(ze&&Ve(ze,Mn(r.then),Mn(r.else)),Array.isArray(r.enum)){for(var De=Ta(t),Be=!1,We=0,Je=r.enum;We<Je.length;We++){var et=Je[We];if(Cl(De,et)){Be=!0;break}}i.enumValues=r.enum,i.enumValueMatch=Be,Be||i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function($e){return JSON.stringify($e)}).join(", ")+"."})}if(sa(r.const)){var De=Ta(t);Cl(De,r.const)?i.enumValueMatch=!0:(i.problems.push({location:{offset:t.offset,length:t.length},severity:$t.Warning,code:tr.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),i.enumValueMatch=!1),i.enumValues=[r.const]}r.deprecationMessage&&t.parent&&i.problems.push({location:{offset:t.parent.offset,length:t.parent.length},severity:$t.Warning,message:r.deprecationMessage})}function p(E,F,G,te){var ne=E.value;Yn(F.multipleOf)&&ne%F.multipleOf!=0&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is not divisible by "+F.multipleOf+"."});function oe(He,Ve){if(Yn(Ve))return Ve;if(Bi(Ve)&&Ve)return He}function ye(He,Ve){if(!Bi(Ve)||!Ve)return He}var ge=oe(F.minimum,F.exclusiveMinimum);Yn(ge)&&ne<=ge&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is below the exclusive minimum of "+ge+"."});var Ae=oe(F.maximum,F.exclusiveMaximum);Yn(Ae)&&ne>=Ae&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is above the exclusive maximum of "+Ae+"."});var me=ye(F.minimum,F.exclusiveMinimum);Yn(me)&&ne<me&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is below the minimum of "+me+"."});var Te=ye(F.maximum,F.exclusiveMaximum);Yn(Te)&&ne>Te&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Value is above the maximum of "+Te+"."})}function y(E,F,G,te){if(Yn(F.minLength)&&E.value.length<F.minLength&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"String is shorter than the minimum length of "+F.minLength+"."}),Yn(F.maxLength)&&E.value.length>F.maxLength&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"String is longer than the maximum length of "+F.maxLength+"."}),og(F.pattern)){var ne=new RegExp(F.pattern);ne.test(E.value)||G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.patternErrorMessage||F.errorMessage||'String does not match the pattern of "'+F.pattern+'".'})}if(F.format)switch(F.format){case"uri":case"uri-reference":{var oe=void 0;if(!E.value)oe="URI expected.";else{var ye=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(E.value);ye?!ye[2]&&F.format==="uri"&&(oe="URI with a scheme is expected."):oe="URI is expected."}oe&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.patternErrorMessage||F.errorMessage||"String is not a URI: "+oe})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var ge=ug[F.format];(!E.value||!ge.pattern.exec(E.value))&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.patternErrorMessage||F.errorMessage||ge.errorMessage});break;default:}}function A(E,F,G,te){if(Array.isArray(F.items)){for(var ne=F.items,oe=0;oe<ne.length;oe++){var ye=ne[oe],ge=Mn(ye),Ae=new Rn,me=E.items[oe];me?(pn(me,ge,Ae,te),G.mergePropertyMatch(Ae)):E.items.length>=ne.length&&G.propertiesValueMatches++}if(E.items.length>ne.length)if(typeof F.additionalItems=="object")for(var Te=ne.length;Te<E.items.length;Te++){var Ae=new Rn;pn(E.items[Te],F.additionalItems,Ae,te),G.mergePropertyMatch(Ae)}else F.additionalItems===!1&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too many items according to schema. Expected "+ne.length+" or fewer."})}else{var He=Mn(F.items);if(He)for(var Ve=0,ze=E.items;Ve<ze.length;Ve++){var me=ze[Ve],Ae=new Rn;pn(me,He,Ae,te),G.mergePropertyMatch(Ae)}}var De=Mn(F.contains);if(De){var Be=E.items.some(function(et){var $e=new Rn;return pn(et,De,$e,Zc.instance),!$e.hasProblems()});Be||G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:F.errorMessage||"Array does not contain required item."})}if(Yn(F.minItems)&&E.items.length<F.minItems&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too few items. Expected "+F.minItems+" or more."}),Yn(F.maxItems)&&E.items.length>F.maxItems&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has too many items. Expected "+F.maxItems+" or fewer."}),F.uniqueItems===!0){var We=Ta(E),Je=We.some(function(et,$e){return $e!==We.lastIndexOf(et)});Je&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Array has duplicate items."})}}function w(E,F,G,te){for(var ne=Object.create(null),oe=[],ye=0,ge=E.properties;ye<ge.length;ye++){var Ae=ge[ye],me=Ae.keyNode.value;ne[me]=Ae.valueNode,oe.push(me)}if(Array.isArray(F.required))for(var Te=0,He=F.required;Te<He.length;Te++){var Ve=He[Te];if(!ne[Ve]){var ze=E.parent&&E.parent.type==="property"&&E.parent.keyNode,De=ze?{offset:ze.offset,length:ze.length}:{offset:E.offset,length:1};G.problems.push({location:De,severity:$t.Warning,message:'Missing property "'+Ve+'".'})}}var Be=function(Si){for(var Nl=oe.indexOf(Si);Nl>=0;)oe.splice(Nl,1),Nl=oe.indexOf(Si)};if(F.properties)for(var We=0,Je=Object.keys(F.properties);We<Je.length;We++){var Ve=Je[We];Be(Ve);var et=F.properties[Ve],$e=ne[Ve];if($e)if(Bi(et))if(et)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ae=$e.parent;G.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:F.errorMessage||"Property "+Ve+" is not allowed."})}else{var gt=new Rn;pn($e,et,gt,te),G.mergePropertyMatch(gt)}}if(F.patternProperties)for(var Nt=0,Gt=Object.keys(F.patternProperties);Nt<Gt.length;Nt++)for(var or=Gt[Nt],kr=new RegExp(or),Er=0,Qr=oe.slice(0);Er<Qr.length;Er++){var Ve=Qr[Er];if(kr.test(Ve)){Be(Ve);var $e=ne[Ve];if($e){var et=F.patternProperties[or];if(Bi(et))if(et)G.propertiesMatches++,G.propertiesValueMatches++;else{var Ae=$e.parent;G.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:F.errorMessage||"Property "+Ve+" is not allowed."})}else{var gt=new Rn;pn($e,et,gt,te),G.mergePropertyMatch(gt)}}}}if(typeof F.additionalProperties=="object")for(var br=0,Dr=oe;br<Dr.length;br++){var Ve=Dr[br],$e=ne[Ve];if($e){var gt=new Rn;pn($e,F.additionalProperties,gt,te),G.mergePropertyMatch(gt)}}else if(F.additionalProperties===!1&&oe.length>0)for(var An=0,Yt=oe;An<Yt.length;An++){var Ve=Yt[An],$e=ne[Ve];if($e){var Ae=$e.parent;G.problems.push({location:{offset:Ae.keyNode.offset,length:Ae.keyNode.length},severity:$t.Warning,message:F.errorMessage||"Property "+Ve+" is not allowed."})}}if(Yn(F.maxProperties)&&E.properties.length>F.maxProperties&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object has more properties than limit of "+F.maxProperties+"."}),Yn(F.minProperties)&&E.properties.length<F.minProperties&&G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object has fewer properties than the required number of "+F.minProperties}),F.dependencies)for(var Rt=0,Ut=Object.keys(F.dependencies);Rt<Ut.length;Rt++){var me=Ut[Rt],sr=ne[me];if(sr){var on=F.dependencies[me];if(Array.isArray(on))for(var yr=0,gs=on;yr<gs.length;yr++){var Ll=gs[yr];ne[Ll]?G.propertiesValueMatches++:G.problems.push({location:{offset:E.offset,length:E.length},severity:$t.Warning,message:"Object is missing property "+Ll+" required by property {$key}."})}else{var et=Mn(on);if(et){var gt=new Rn;pn(E,et,gt,te),G.mergePropertyMatch(gt)}}}}var ho=Mn(F.propertyNames);if(ho)for(var ji=0,Dl=E.properties;ji<Dl.length;ji++){var Tf=Dl[ji],me=Tf.keyNode;me&&pn(me,ho,G,Zc.instance)}}}function yg(t,r){var i=[],o=-1,s=t.getText(),p=fs(s,!1),y=r&&r.collectComments?[]:void 0;function A(){for(;;){var ze=p.scan();switch(G(),ze){case 12:case 13:Array.isArray(y)&&y.push(ur.create(t.positionAt(p.getTokenOffset()),t.positionAt(p.getTokenOffset()+p.getTokenLength())));break;case 15:case 14:break;default:return ze}}}function w(ze){return p.getToken()===ze?(A(),!0):!1}function E(ze,De,Be,We,Je){if(Je===void 0&&(Je=$t.Error),i.length===0||Be!==o){var et=ur.create(t.positionAt(Be),t.positionAt(We));i.push(la.create(et,ze,Je,De,t.languageId)),o=Be}}function F(ze,De,Be,We,Je){Be===void 0&&(Be=null),We===void 0&&(We=[]),Je===void 0&&(Je=[]);var et=p.getTokenOffset(),$e=p.getTokenOffset()+p.getTokenLength();if(et===$e&&et>0){for(et--;et>0&&/\s/.test(s.charAt(et));)et--;$e=et+1}if(E(ze,De,et,$e),Be&&te(Be,!1),We.length+Je.length>0)for(var gt=p.getToken();gt!==17;){if(We.indexOf(gt)!==-1){A();break}else if(Je.indexOf(gt)!==-1)break;gt=A()}return Be}function G(){switch(p.getTokenError()){case 4:return F("Invalid unicode sequence in string.",tr.InvalidUnicode),!0;case 5:return F("Invalid escape character in string.",tr.InvalidEscapeCharacter),!0;case 3:return F("Unexpected end of number.",tr.UnexpectedEndOfNumber),!0;case 1:return F("Unexpected end of comment.",tr.UnexpectedEndOfComment),!0;case 2:return F("Unexpected end of string.",tr.UnexpectedEndOfString),!0;case 6:return F("Invalid characters in string. Control characters must be escaped.",tr.InvalidCharacter),!0}return!1}function te(ze,De){return ze.length=p.getTokenOffset()+p.getTokenLength()-ze.offset,De&&A(),ze}function ne(ze){if(p.getToken()!==3)return null;var De=new cg(ze,p.getTokenOffset());A();for(var Be=0,We=!1;p.getToken()!==4&&p.getToken()!==17;){if(p.getToken()===5){We||F("Value expected",tr.ValueExpected);var Je=p.getTokenOffset();if(A(),p.getToken()===4){We&&E("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&F("Expected comma",tr.CommaExpected);var et=Te(De,Be++);et?De.items.push(et):F("Value expected",tr.ValueExpected,null,[],[4,5]),We=!0}return p.getToken()!==4?F("Expected comma or closing bracket",tr.CommaOrCloseBacketExpected,De):te(De,!0)}function oe(ze,De){var Be=new pg(ze,p.getTokenOffset()),We=ge(Be);if(!We)if(p.getToken()===16){F("Property keys must be doublequoted",tr.Undefined);var Je=new Dp(Be,p.getTokenOffset(),p.getTokenLength());Je.value=p.getTokenValue(),We=Je,A()}else return null;Be.keyNode=We;var et=De[We.value];if(et?(E("Duplicate object key",tr.DuplicateKey,Be.keyNode.offset,Be.keyNode.offset+Be.keyNode.length,$t.Warning),typeof et=="object"&&E("DuplicateKeyWarning",tr.DuplicateKey,et.keyNode.offset,et.keyNode.offset+et.keyNode.length,$t.Warning),De[We.value]=!0):De[We.value]=Be,p.getToken()===6)Be.colonOffset=p.getTokenOffset(),A();else if(F("Colon expected",tr.ColonExpected),p.getToken()===10&&t.positionAt(We.offset+We.length).line<t.positionAt(p.getTokenOffset()).line)return Be.length=We.length,Be;var $e=Te(Be,We.value);return $e?(Be.valueNode=$e,Be.length=$e.offset+$e.length-Be.offset,Be):F("Value expected",tr.ValueExpected,Be,[],[2,5])}function ye(ze){if(p.getToken()!==1)return null;var De=new hg(ze,p.getTokenOffset()),Be=Object.create(null);A();for(var We=!1;p.getToken()!==2&&p.getToken()!==17;){if(p.getToken()===5){We||F("Property expected",tr.PropertyExpected);var Je=p.getTokenOffset();if(A(),p.getToken()===2){We&&E("Trailing comma",tr.TrailingComma,Je,Je+1);continue}}else We&&F("Expected comma",tr.CommaExpected);var et=oe(De,Be);et?De.properties.push(et):F("Property expected",tr.PropertyExpected,null,[],[2,5]),We=!0}return p.getToken()!==2?F("Expected comma or closing brace",tr.CommaOrCloseBraceExpected,De):te(De,!0)}function ge(ze){if(p.getToken()!==10)return null;var De=new Dp(ze,p.getTokenOffset());return De.value=p.getTokenValue(),te(De,!0)}function Ae(ze){if(p.getToken()!==11)return null;var De=new dg(ze,p.getTokenOffset());if(p.getTokenError()===0){var Be=p.getTokenValue();try{var We=JSON.parse(Be);if(!Yn(We))return F("Invalid number format.",tr.Undefined,De);De.value=We}catch(Je){return F("Invalid number format.",tr.Undefined,De)}De.isInteger=Be.indexOf(".")===-1}return te(De,!0)}function me(ze){var De;switch(p.getToken()){case 7:return te(new fg(ze,p.getTokenOffset()),!0);case 8:return te(new Lp(ze,!0,p.getTokenOffset()),!0);case 9:return te(new Lp(ze,!1,p.getTokenOffset()),!0);default:return null}}function Te(ze,De){return ne(ze)||ye(ze)||ge(ze)||Ae(ze)||me(ze)}var He=null,Ve=A();return Ve!==17&&(He=Te(null,null),He?p.getToken()!==17&&F("End of file expected.",tr.Undefined):F("Expected a JSON object, array or literal.",tr.Undefined)),new Up(He,i,y)}function qc(t,r,i){if(t!==null&&typeof t=="object"){var o=r+" ";if(Array.isArray(t)){if(t.length===0)return"[]";for(var s=`[
|
|
330
|
+
`,p=0;p<t.length;p++)s+=o+qc(t[p],o,i),p<t.length-1&&(s+=","),s+=`
|
|
308
331
|
`;return s+=r+"]",s}else{var y=Object.keys(t);if(y.length===0)return"{}";for(var s=`{
|
|
309
|
-
`,p=0;p<y.length;p++){var
|
|
310
|
-
`}return s+=r+"}",s}}return
|
|
332
|
+
`,p=0;p<y.length;p++){var A=y[p];s+=o+JSON.stringify(A)+": "+qc(t[A],o,i),p<y.length-1&&(s+=","),s+=`
|
|
333
|
+
`}return s+=r+"}",s}}return i(t)}function mg(t,r){if(t.length<r.length)return!1;for(var i=0;i<r.length;i++)if(t[i]!==r[i])return!1;return!0}function ed(t,r){var i=t.length-r.length;return i>0?t.lastIndexOf(r)===i:i===0?t===r:!1}function xg(t){return t.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function Lm(t,r){for(var i="";r>0;)(r&1)==1&&(i+=t),t+=t,r=r>>>1;return i}var bg=[",","}","]"],wg=[":"],Sg=function(){function t(r,i,o,s){i===void 0&&(i=[]),o===void 0&&(o=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=i,this.promiseConstructor=o,this.clientCapabilities=s,this.templateVarIdCounter=0}return t.prototype.doResolve=function(r){for(var i=this.contributions.length-1;i>=0;i--)if(this.contributions[i].resolveCompletion){var o=this.contributions[i].resolveCompletion(r);if(o)return o}return this.promiseConstructor.resolve(r)},t.prototype.doComplete=function(r,i,o){var s=this,p={items:[],isIncomplete:!1},y=r.getText(),A=r.offsetAt(i),w=o.getNodeFromOffset(A,!0);if(this.isInComment(r,w?w.offset:0,A))return Promise.resolve(p);if(w&&A===w.offset+w.length&&A>0){var E=y[A-1];(w.type==="object"&&E==="}"||w.type==="array"&&E==="]")&&(w=w.parent)}var F=this.getCurrentWord(r,A),G=null;if(w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null"))G=ur.create(r.positionAt(w.offset),r.positionAt(w.offset+w.length));else{var te=A-F.length;te>0&&y[te-1]==='"'&&te--,G=ur.create(r.positionAt(te),i)}var ne=this.doesSupportsCommitCharacters(),oe={},ye={add:function(ge){var Ae=oe[ge.label];Ae?Ae.documentation||(Ae.documentation=ge.documentation):(oe[ge.label]=ge,G&&(ge.textEdit=bi.replace(G,ge.insertText)),ne&&(ge.commitCharacters=ge.kind===Jn.Property?wg:bg),p.items.push(ge))},setAsIncomplete:function(){p.isIncomplete=!0},error:function(ge){console.error(ge)},log:function(ge){console.log(ge)},getNumberOfProposals:function(){return p.items.length}};return this.schemaService.getSchemaForResource(r.uri,o).then(function(ge){var Ae=[],me=!0,Te="",He=null;if(w&&w.type==="string"){var Ve=w.parent;Ve&&Ve.type==="property"&&Ve.keyNode===w&&(me=!Ve.valueNode,He=Ve,Te=y.substr(w.offset+1,w.length-2),Ve&&(w=Ve.parent))}if(w&&w.type==="object"){if(w.offset===A)return p;var ze=w.properties;ze.forEach(function(Je){(!He||He!==Je)&&(oe[Je.keyNode.value]=Xc.create("__"))});var De="";me&&(De=s.evaluateSeparatorAfter(r,r.offsetAt(G.end))),ge?s.getPropertyCompletions(ge,o,w,me,De,ye):s.getSchemaLessPropertyCompletions(o,w,Te,ye);var Be=_c(w);s.contributions.forEach(function(Je){var et=Je.collectPropertyCompletions(r.uri,Be,F,me,De==="",ye);et&&Ae.push(et)}),!ge&&F.length>0&&y.charAt(A-F.length-1)!=='"'&&(ye.add({kind:Jn.Property,label:s.getLabelForValue(F),insertText:s.getInsertTextForProperty(F,null,!1,De),insertTextFormat:_r.Snippet,documentation:""}),ye.setAsIncomplete())}var We={};return ge?s.getValueCompletions(ge,o,w,A,r,ye,We):s.getSchemaLessValueCompletions(o,w,A,r,ye),s.contributions.length>0&&s.getContributedValueCompletions(o,w,A,r,ye,Ae),s.promiseConstructor.all(Ae).then(function(){if(ye.getNumberOfProposals()===0){var Je=A;w&&(w.type==="string"||w.type==="number"||w.type==="boolean"||w.type==="null")&&(Je=w.offset+w.length);var et=s.evaluateSeparatorAfter(r,Je);s.addFillerValueCompletions(We,et,ye)}return p})})},t.prototype.getPropertyCompletions=function(r,i,o,s,p,y){var A=this,w=i.getMatchingSchemas(r.schema,o.offset);w.forEach(function(E){if(E.node===o&&!E.inverted){var F=E.schema.properties;F&&Object.keys(F).forEach(function(G){var te=F[G],ne=!1;if(typeof te=="object"&&te.allOf)for(var oe=0,ye=te.allOf;oe<ye.length;oe++){var ge=ye[oe];if(ge.readOnly){ne=!0;break}}if(typeof te=="object"&&!te.deprecationMessage&&!te.doNotSuggest&&!ne){var Ae={kind:Jn.Property,label:A.sanitizeLabel(G),insertText:A.getInsertTextForProperty(G,te,s,p),insertTextFormat:_r.Snippet,filterText:A.getFilterTextForValue(G),documentation:A.fromMarkup(te.markdownDescription)||te.description||""};ed(Ae.insertText,"$1"+p)&&(Ae.command={title:"Suggest",command:"editor.action.triggerSuggest"}),y.add(Ae)}})}})},t.prototype.getSchemaLessPropertyCompletions=function(r,i,o,s){var p=this,y=function(w){w.properties.forEach(function(E){var F=E.keyNode.value;s.add({kind:Jn.Property,label:p.sanitizeLabel(F),insertText:p.getInsertTextForValue(F,""),insertTextFormat:_r.Snippet,filterText:p.getFilterTextForValue(F),documentation:""})})};if(i.parent)if(i.parent.type==="property"){var A=i.parent.keyNode.value;r.visit(function(w){return w.type==="property"&&w!==i.parent&&w.keyNode.value===A&&w.valueNode&&w.valueNode.type==="object"&&y(w.valueNode),!0})}else i.parent.type==="array"&&i.parent.items.forEach(function(w){w.type==="object"&&w!==i&&y(w)});else i.type==="object"&&s.add({kind:Jn.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:_r.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},t.prototype.getSchemaLessValueCompletions=function(r,i,o,s,p){var y=this,A=o;if(i&&(i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(A=i.offset+i.length,i=i.parent),!i){p.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:_r.Snippet,documentation:""}),p.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:_r.Snippet,documentation:""});return}var w=this.evaluateSeparatorAfter(s,A),E=function(ne){Bp(ne.parent,o,!0)||p.add({kind:y.getSuggestionKind(ne.type),label:y.getLabelTextForMatchingNode(ne,s),insertText:y.getInsertTextForMatchingNode(ne,s,w),insertTextFormat:_r.Snippet,documentation:""}),ne.type==="boolean"&&y.addBooleanValueCompletion(!ne.value,w,p)};if(i.type==="property"&&o>i.colonOffset){var F=i.valueNode;if(F&&(o>F.offset+F.length||F.type==="object"||F.type==="array"))return;var G=i.keyNode.value;r.visit(function(ne){return ne.type==="property"&&ne.keyNode.value===G&&ne.valueNode&&E(ne.valueNode),!0}),G==="$schema"&&i.parent&&!i.parent.parent&&this.addDollarSchemaCompletions(w,p)}if(i.type==="array")if(i.parent&&i.parent.type==="property"){var te=i.parent.keyNode.value;r.visit(function(ne){return ne.type==="property"&&ne.keyNode.value===te&&ne.valueNode&&ne.valueNode.type==="array"&&ne.valueNode.items.forEach(E),!0})}else i.items.forEach(E)},t.prototype.getValueCompletions=function(r,i,o,s,p,y,A){var w=this,E=s,F=null,G=null;if(o&&(o.type==="string"||o.type==="number"||o.type==="boolean"||o.type==="null")&&(E=o.offset+o.length,G=o,o=o.parent),!o){this.addSchemaValueCompletions(r.schema,"",y,A);return}if(o.type==="property"&&s>o.colonOffset){var te=o.valueNode;if(te&&s>te.offset+te.length)return;F=o.keyNode.value,o=o.parent}if(o&&(F!==null||o.type==="array")){var ne=this.evaluateSeparatorAfter(p,E),oe=i.getMatchingSchemas(r.schema,o.offset,G);oe.forEach(function(ye){if(ye.node===o&&!ye.inverted&&ye.schema){if(o.type==="array"&&ye.schema.items)if(Array.isArray(ye.schema.items)){var ge=w.findItemAtOffset(o,p,s);ge<ye.schema.items.length&&w.addSchemaValueCompletions(ye.schema.items[ge],ne,y,A)}else w.addSchemaValueCompletions(ye.schema.items,ne,y,A);if(ye.schema.properties){var Ae=ye.schema.properties[F];Ae&&w.addSchemaValueCompletions(Ae,ne,y,A)}}}),F==="$schema"&&!o.parent&&this.addDollarSchemaCompletions(ne,y),A.boolean&&(this.addBooleanValueCompletion(!0,ne,y),this.addBooleanValueCompletion(!1,ne,y)),A.null&&this.addNullValueCompletion(ne,y)}},t.prototype.getContributedValueCompletions=function(r,i,o,s,p,y){if(!i)this.contributions.forEach(function(F){var G=F.collectDefaultCompletions(s.uri,p);G&&y.push(G)});else if((i.type==="string"||i.type==="number"||i.type==="boolean"||i.type==="null")&&(i=i.parent),i.type==="property"&&o>i.colonOffset){var A=i.keyNode.value,w=i.valueNode;if(!w||o<=w.offset+w.length){var E=_c(i.parent);this.contributions.forEach(function(F){var G=F.collectValueCompletions(s.uri,E,A,p);G&&y.push(G)})}}},t.prototype.addSchemaValueCompletions=function(r,i,o,s){var p=this;typeof r=="object"&&(this.addEnumValueCompletions(r,i,o),this.addDefaultValueCompletions(r,i,o),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,o,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,o,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(y){return p.addSchemaValueCompletions(y,i,o,s)}))},t.prototype.addDefaultValueCompletions=function(r,i,o,s){var p=this;s===void 0&&(s=0);var y=!1;if(sa(r.default)){for(var A=r.type,w=r.default,E=s;E>0;E--)w=[w],A="array";o.add({kind:this.getSuggestionKind(A),label:this.getLabelForValue(w),insertText:this.getInsertTextForValue(w,i),insertTextFormat:_r.Snippet}),y=!0}Array.isArray(r.examples)&&r.examples.forEach(function(F){for(var G=r.type,te=F,ne=s;ne>0;ne--)te=[te],G="array";o.add({kind:p.getSuggestionKind(G),label:p.getLabelForValue(te),insertText:p.getInsertTextForValue(te,i),insertTextFormat:_r.Snippet}),y=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(F){var G=r.type,te=F.body,ne=F.label,oe,ye;if(sa(te)){for(var ge=r.type,Ae=s;Ae>0;Ae--)te=[te],ge="array";oe=p.getInsertTextForSnippetValue(te,i),ye=p.getFilterTextForSnippetValue(te),ne=ne||p.getLabelForSnippetValue(te)}else if(typeof F.bodyText=="string"){for(var me="",Te="",He="",Ae=s;Ae>0;Ae--)me=me+He+`[
|
|
311
334
|
`,Te=Te+`
|
|
312
|
-
|
|
335
|
+
`+He+"]",He+=" ",G="array";oe=me+He+F.bodyText.split(`
|
|
313
336
|
`).join(`
|
|
314
|
-
|
|
315
|
-
\r\v":{[,]}`.indexOf(s.charAt(o))===-1;)o--;return s.substring(o+1,
|
|
337
|
+
`+He)+Te+i,ne=ne||p.sanitizeLabel(oe),ye=oe.replace(/[\n]/g,"")}o.add({kind:p.getSuggestionKind(G),label:ne,documentation:p.fromMarkup(F.markdownDescription)||F.description,insertText:oe,insertTextFormat:_r.Snippet,filterText:ye}),y=!0}),!y&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,i,o,s+1)},t.prototype.addEnumValueCompletions=function(r,i,o){if(sa(r.const)&&o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,i),insertTextFormat:_r.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,p=r.enum.length;s<p;s++){var y=r.enum[s],A=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?A=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(A=r.enumDescriptions[s]),o.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(y),insertText:this.getInsertTextForValue(y,i),insertTextFormat:_r.Snippet,documentation:A})}},t.prototype.collectTypes=function(r,i){if(!(Array.isArray(r.enum)||sa(r.const))){var o=r.type;Array.isArray(o)?o.forEach(function(s){return i[s]=!0}):i[o]=!0}},t.prototype.addFillerValueCompletions=function(r,i,o){r.object&&o.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},i),insertTextFormat:_r.Snippet,detail:"New object",documentation:""}),r.array&&o.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],i),insertTextFormat:_r.Snippet,detail:"New array",documentation:""})},t.prototype.addBooleanValueCompletion=function(r,i,o){o.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,i),insertTextFormat:_r.Snippet,documentation:""})},t.prototype.addNullValueCompletion=function(r,i){i.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:_r.Snippet,documentation:""})},t.prototype.addDollarSchemaCompletions=function(r,i){var o=this,s=this.schemaService.getRegisteredSchemaIds(function(p){return p==="http"||p==="https"});s.forEach(function(p){return i.add({kind:Jn.Module,label:o.getLabelForValue(p),filterText:o.getFilterTextForValue(p),insertText:o.getInsertTextForValue(p,r),insertTextFormat:_r.Snippet,documentation:""})})},t.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},t.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},t.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},t.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},t.prototype.getLabelForSnippetValue=function(r){var i=JSON.stringify(r);return i=i.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(i)},t.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},t.prototype.getInsertTextForValue=function(r,i){var o=JSON.stringify(r,null," ");return o==="{}"?"{$1}"+i:o==="[]"?"[$1]"+i:this.getInsertTextForPlainText(o+i)},t.prototype.getInsertTextForSnippetValue=function(r,i){var o=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return qc(r,"",o)+i},t.prototype.getInsertTextForGuessedValue=function(r,i){switch(typeof r){case"object":return r===null?"${1:null}"+i:this.getInsertTextForValue(r,i);case"string":var o=JSON.stringify(r);return o=o.substr(1,o.length-2),o=this.getInsertTextForPlainText(o),'"${1:'+o+'}"'+i;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+i}return this.getInsertTextForValue(r,i)},t.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var i=r;r=i.length>0?i[0]:null}if(!r)return Jn.Value;switch(r){case"string":return Jn.Value;case"object":return Jn.Module;case"property":return Jn.Property;default:return Jn.Value}},t.prototype.getLabelTextForMatchingNode=function(r,i){switch(r.type){case"array":return"[]";case"object":return"{}";default:var o=i.getText().substr(r.offset,r.length);return o}},t.prototype.getInsertTextForMatchingNode=function(r,i,o){switch(r.type){case"array":return this.getInsertTextForValue([],o);case"object":return this.getInsertTextForValue({},o);default:var s=i.getText().substr(r.offset,r.length)+o;return this.getInsertTextForPlainText(s)}},t.prototype.getInsertTextForProperty=function(r,i,o,s){var p=this.getInsertTextForValue(r,"");if(!o)return p;var y=p+": ",A,w=0;if(i){if(Array.isArray(i.defaultSnippets)){if(i.defaultSnippets.length===1){var E=i.defaultSnippets[0].body;sa(E)&&(A=this.getInsertTextForSnippetValue(E,""))}w+=i.defaultSnippets.length}if(i.enum&&(!A&&i.enum.length===1&&(A=this.getInsertTextForGuessedValue(i.enum[0],"")),w+=i.enum.length),sa(i.default)&&(A||(A=this.getInsertTextForGuessedValue(i.default,"")),w++),w===0){var F=Array.isArray(i.type)?i.type[0]:i.type;switch(F||(i.properties?F="object":i.items&&(F="array")),F){case"boolean":A="$1";break;case"string":A='"$1"';break;case"object":A="{$1}";break;case"array":A="[$1]";break;case"number":case"integer":A="${1:0}";break;case"null":A="${1:null}";break;default:return p}}}return(!A||w>1)&&(A="$1"),y+A+s},t.prototype.getCurrentWord=function(r,i){for(var o=i-1,s=r.getText();o>=0&&`
|
|
338
|
+
\r\v":{[,]}`.indexOf(s.charAt(o))===-1;)o--;return s.substring(o+1,i)},t.prototype.evaluateSeparatorAfter=function(r,i){var o=fs(r.getText(),!0);o.setPosition(i);var s=o.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},t.prototype.findItemAtOffset=function(r,i,o){for(var s=fs(i.getText(),!0),p=r.items,y=p.length-1;y>=0;y--){var A=p[y];if(o>A.offset+A.length){s.setPosition(A.offset+A.length);var w=s.scan();return w===5&&o>=s.getTokenOffset()+s.getTokenLength()?y+1:y}else if(o>=A.offset)return y}return 0},t.prototype.isInComment=function(r,i,o){var s=fs(r.getText(),!1);s.setPosition(i);for(var p=s.scan();p!==17&&s.getTokenOffset()+s.getTokenLength()<o;)p=s.scan();return(p===12||p===13)&&s.getTokenOffset()<=o},t.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:ua.Markdown,value:r}},t.prototype.doesSupportMarkdown=function(){if(!sa(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(ua.Markdown)!==-1}return this.supportsMarkdown},t.prototype.doesSupportsCommitCharacters=function(){if(!sa(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},t}(),Ag=function(){function t(r,i,o){i===void 0&&(i=[]),this.schemaService=r,this.contributions=i,this.promise=o||Promise}return t.prototype.doHover=function(r,i,o){var s=r.offsetAt(i),p=o.getNodeFromOffset(s);if(!p||(p.type==="object"||p.type==="array")&&s>p.offset+1&&s<p.offset+p.length-1)return this.promise.resolve(null);var y=p;if(p.type==="string"){var A=p.parent;if(A&&A.type==="property"&&A.keyNode===p&&(p=A.valueNode,!p))return this.promise.resolve(null)}for(var w=ur.create(r.positionAt(y.offset),r.positionAt(y.offset+y.length)),E=function(oe){var ye={contents:oe,range:w};return ye},F=_c(p),G=this.contributions.length-1;G>=0;G--){var te=this.contributions[G],ne=te.getInfoContribution(r.uri,F);if(ne)return ne.then(function(oe){return E(oe)})}return this.schemaService.getSchemaForResource(r.uri,o).then(function(oe){if(oe){var ye=o.getMatchingSchemas(oe.schema,p.offset),ge=null,Ae=null,me=null,Te=null;ye.every(function(Ve){if(Ve.node===p&&!Ve.inverted&&Ve.schema&&(ge=ge||Ve.schema.title,Ae=Ae||Ve.schema.markdownDescription||td(Ve.schema.description),Ve.schema.enum)){var ze=Ve.schema.enum.indexOf(Ta(p));Ve.schema.markdownEnumDescriptions?me=Ve.schema.markdownEnumDescriptions[ze]:Ve.schema.enumDescriptions&&(me=td(Ve.schema.enumDescriptions[ze])),me&&(Te=Ve.schema.enum[ze],typeof Te!="string"&&(Te=JSON.stringify(Te)))}return!0});var He="";return ge&&(He=td(ge)),Ae&&(He.length>0&&(He+=`
|
|
316
339
|
|
|
317
|
-
`)
|
|
340
|
+
`),He+=Ae),me&&(He.length>0&&(He+=`
|
|
318
341
|
|
|
319
|
-
`)
|
|
342
|
+
`),He+="`"+Eg(Te)+"`: "+me),E([He])}return null})},t}();function td(t){if(t){var r=t.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
|
|
320
343
|
|
|
321
|
-
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Eg(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Cg=function(){var t=function(r,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,n)};return function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hr,Rl;if(typeof process=="object")Rl=!1;else if(typeof navigator=="object"){var Og=navigator.userAgent;Rl=Og.indexOf("Windows")>=0}function Nm(t){return 55296<=t&&t<=56319}function Bm(t){return 56320<=t&&t<=57343}function Um(t){return t>=97&&t<=102}function Tg(t){return t>=97&&t<=122}function Pg(t){return t>=65&&t<=90}function jm(t){return Tg(t)||Pg(t)}var Ig=/^\w[\w\d+.-]*$/,Fg=/^\//,kg=/^\/\//;function Mg(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!Ig.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Fg.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(kg.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Rg(t,r){return!t&&!r?"file":t}function Lg(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==mi&&(r=mi+r):r=mi;break}return r}var hr="",mi="/",Dg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,nd=function(){function t(r,n,o,s,p,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||hr,this.authority=r.authority||hr,this.path=r.path||hr,this.query=r.query||hr,this.fragment=r.fragment||hr):(this.scheme=Rg(r,y),this.authority=n||hr,this.path=Lg(this.scheme,o||hr),this.query=s||hr,this.fragment=p||hr,Mg(this,y))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return Gp(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var n=r.scheme,o=r.authority,s=r.path,p=r.query,y=r.fragment;return n===void 0?n=this.scheme:n===null&&(n=hr),o===void 0?o=this.authority:o===null&&(o=hr),s===void 0?s=this.path:s===null&&(s=hr),p===void 0?p=this.query:p===null&&(p=hr),y===void 0?y=this.fragment:y===null&&(y=hr),n===this.scheme&&o===this.authority&&s===this.path&&p===this.query&&y===this.fragment?this:new ds(n,o,s,p,y)},t.parse=function(r,n){n===void 0&&(n=!1);var o=Dg.exec(r);return o?new ds(o[2]||hr,Sf(o[4]||hr),Sf(o[5]||hr),Sf(o[7]||hr),Sf(o[9]||hr),n):new ds(hr,hr,hr,hr,hr)},t.file=function(r){var n=hr;if(Rl&&(r=r.replace(/\\/g,mi)),r[0]===mi&&r[1]===mi){var o=r.indexOf(mi,2);o===-1?(n=r.substring(2),r=mi):(n=r.substring(2,o),r=r.substring(o)||mi)}return new ds("file",n,r,hr,hr)},t.from=function(r){return new ds(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),id(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var n=new ds(r);return n._formatted=r.external,n._fsPath=r._sep===Wp?r.fsPath:null,n}else return r},t}(),Wp=Rl?1:void 0,ds=function(t){Cg(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Gp(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(n){return n===void 0&&(n=!1),n?id(this,!0):(this._formatted||(this._formatted=id(this,!1)),this._formatted)},r.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=Wp),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n},r}(nd),Hp=(Hr={},Hr[58]="%3A",Hr[47]="%2F",Hr[63]="%3F",Hr[35]="%23",Hr[91]="%5B",Hr[93]="%5D",Hr[64]="%40",Hr[33]="%21",Hr[36]="%24",Hr[38]="%26",Hr[39]="%27",Hr[40]="%28",Hr[41]="%29",Hr[42]="%2A",Hr[43]="%2B",Hr[44]="%2C",Hr[59]="%3B",Hr[61]="%3D",Hr[32]="%20",Hr);function zp(t,r){for(var n=void 0,o=-1,s=0;s<t.length;s++){var p=t.charCodeAt(s);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||r&&p===47)o!==-1&&(n+=encodeURIComponent(t.substring(o,s)),o=-1),n!==void 0&&(n+=t.charAt(s));else{n===void 0&&(n=t.substr(0,s));var y=Hp[p];y!==void 0?(o!==-1&&(n+=encodeURIComponent(t.substring(o,s)),o=-1),n+=y):o===-1&&(o=s)}}return o!==-1&&(n+=encodeURIComponent(t.substring(o))),n!==void 0?n:t}function Ng(t){for(var r=void 0,n=0;n<t.length;n++){var o=t.charCodeAt(n);o===35||o===63?(r===void 0&&(r=t.substr(0,n)),r+=Hp[o]):r!==void 0&&(r+=t[n])}return r!==void 0?r:t}function Gp(t,r){var n;return t.authority&&t.path.length>1&&t.scheme==="file"?n="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?n=t.path.substr(1):n=t.path[1].toLowerCase()+t.path.substr(2):n=t.path,Rl&&(n=n.replace(/\//g,"\\")),n}function id(t,r){var n=r?Ng:zp,o="",s=t.scheme,p=t.authority,y=t.path,E=t.query,w=t.fragment;if(s&&(o+=s,o+=":"),(p||s==="file")&&(o+=mi,o+=mi),p){var A=p.indexOf("@");if(A!==-1){var k=p.substr(0,A);p=p.substr(A+1),A=k.indexOf(":"),A===-1?o+=n(k,!1):(o+=n(k.substr(0,A),!1),o+=":",o+=n(k.substr(A+1),!1)),o+="@"}p=p.toLowerCase(),A=p.indexOf(":"),A===-1?o+=n(p,!1):(o+=n(p.substr(0,A),!1),o+=p.substr(A))}if(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var G=y.charCodeAt(1);G>=65&&G<=90&&(y="/"+String.fromCharCode(G+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var G=y.charCodeAt(0);G>=65&&G<=90&&(y=String.fromCharCode(G+32)+":"+y.substr(2))}o+=n(y,!0)}return E&&(o+="?",o+=n(E,!1)),w&&(o+="#",o+=r?w:zp(w,!1)),o}function $p(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+$p(t.substr(3)):t}}var Kp=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Sf(t){return t.match(Kp)?t.replace(Kp,function(r){return $p(r)}):t}var Bg=function(){function t(r){try{this.patternRegExp=new RegExp(xg(r)+"$")}catch(n){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),Ug=function(){function t(r,n,o){this.service=r,this.url=n,this.dependencies={},o&&(this.unresolvedSchema=this.service.promise.resolve(new ps(o)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return r.service.resolveSchemaContent(n,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),ps=function(){function t(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return t}(),Yp=function(){function t(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return t.prototype.getSection=function(r){return kn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,n){if(!n||typeof n=="boolean"||r.length===0)return n;var o=r.shift();if(n.properties&&typeof n.properties[o])return this.getSectionRecursive(r,n.properties[o]);if(n.patternProperties)for(var s=0,p=Object.keys(n.patternProperties);s<p.length;s++){var y=p[s],E=new RegExp(y);if(E.test(o))return this.getSectionRecursive(r,n.patternProperties[y])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(r,n.additionalProperties);if(o.match("[0-9]+")){if(Array.isArray(n.items)){var w=parseInt(o,10);if(!isNaN(w)&&n.items[w])return this.getSectionRecursive(r,n.items[w])}else if(n.items)return this.getSectionRecursive(r,n.items)}}return null},t}(),jg=function(){function t(r,n,o){this.contextService=n,this.requestService=r,this.promiseConstructor=o||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(n){var o=nd.parse(n).scheme;return o!=="schemaservice"&&(!r||r(o))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var n=this,o=!1;r=this.normalizeId(r);for(var s=[r],p=Object.keys(this.schemasById).map(function(A){return n.schemasById[A]});s.length;)for(var y=s.pop(),E=0;E<p.length;E++){var w=p[E];w&&(w.url===y||w.dependencies[y])&&(w.url!==y&&s.push(w.url),w.clearSchema(),p[E]=void 0,o=!0)}return o},t.prototype.normalizeId=function(r){try{return nd.parse(r).toString()}catch(n){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var n=r.schemas;for(var o in n){var s=this.normalizeId(o);this.contributionSchemas[s]=this.addSchemaHandle(s,n[o])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var y in p){var E=p[y];this.contributionAssociations[y]=E;for(var w=this.getOrAddFilePatternAssociation(y),A=0,k=E;A<k.length;A++){var G=k[A],o=this.normalizeId(G);w.addSchema(o)}}}},t.prototype.addSchemaHandle=function(r,n){var o=new Ug(this,r,n);return this.schemasById[r]=o,o},t.prototype.getOrAddSchemaHandle=function(r,n){return this.schemasById[r]||this.addSchemaHandle(r,n)},t.prototype.getOrAddFilePatternAssociation=function(r){var n=this.filePatternAssociationById[r];return n||(n=new Bg(r),this.filePatternAssociationById[r]=n,this.filePatternAssociations.push(n)),n},t.prototype.registerExternalSchema=function(r,n,o){n===void 0&&(n=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,n)for(var p=0,y=n;p<y.length;p++){var E=y[p];this.getOrAddFilePatternAssociation(E).addSchema(s)}return o?this.addSchemaHandle(s,o):this.getOrAddSchemaHandle(s)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var n in this.contributionAssociations)for(var o=this.getOrAddFilePatternAssociation(n),s=0,p=this.contributionAssociations[n];s<p.length;s++){var y=p[s],r=this.normalizeId(y);o.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var n=this.normalizeId(r),o=this.schemasById[n];return o?o.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var n="Unable to load schema from '"+Af(r)+"'. No schema request service available";return this.promise.resolve(new ps({},[n]))}return this.requestService(r).then(function(o){if(!o){var s="Unable to load schema from '"+Af(r)+"': No content.";return new ps({},[s])}var p={},y=[];p=tg(o,y);var E=y.length?["Unable to parse content from '"+Af(r)+"': Parse error at offset "+y[0].offset]:[];return new ps(p,E)},function(o){var s="Unable to load schema from '"+Af(r)+"': "+o.toString();return new ps({},[s])})},t.prototype.resolveSchemaContent=function(r,n,o){var s=this,p=r.errors.slice(0),y=r.schema;if(y.$schema){var E=this.normalizeId(y.$schema);if(E==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Yp({},["Draft-03 schemas are not supported."]));E==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var w=this.contextService,A=function(re,ce){if(!ce)return re;var xe=re;return ce[0]==="/"&&(ce=ce.substr(1)),ce.split("/").some(function(ge){return xe=xe[ge],!xe}),xe},k=function(re,ce,xe,ge){var Ee=A(ce,ge);if(Ee)for(var we in Ee)Ee.hasOwnProperty(we)&&!re.hasOwnProperty(we)&&(re[we]=Ee[we]);else p.push("$ref '"+ge+"' in '"+xe+"' can not be resolved.")},G=function(re,ce,xe,ge,Ee){w&&!/^\w+:\/\/.*/.test(ce)&&(ce=w.resolveRelativePath(ce,ge)),ce=s.normalizeId(ce);var we=s.getOrAddSchemaHandle(ce);return we.getUnresolvedSchema().then(function(Te){if(Ee[ce]=!0,Te.errors.length){var $e=xe?ce+"#"+xe:ce;p.push("Problems loading reference '"+$e+"': "+Te.errors[0]+".")}return k(re,Te.schema,ce,xe),ne(re,Te.schema,ce,we.dependencies)})},ne=function(re,ce,xe,ge){if(!re||typeof re!="object")return Promise.resolve(null);for(var Ee=[re],we=[],Te=[],$e=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var St=et[ze];typeof St=="object"&&Ee.push(St)}},je=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var St=et[ze];if(typeof St=="object")for(var Nt in St){var zt=St[Nt];typeof zt=="object"&&Ee.push(zt)}}},He=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var ze=0,et=We;ze<et.length;ze++){var St=et[ze];if(Array.isArray(St))for(var Nt=0,zt=St;Nt<zt.length;Nt++){var or=zt[Nt];typeof or=="object"&&Ee.push(or)}}},Ne=function(We){for(var Je=[];We.$ref;){var ze=We.$ref,et=ze.split("#",2);if(delete We.$ref,et[0].length>0){Te.push(G(We,et[0],et[1],xe,ge));return}else Je.indexOf(ze)===-1&&(k(We,ce,xe,et[1]),Je.push(ze))}$e(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),je(We.definitions,We.properties,We.patternProperties,We.dependencies),He(We.anyOf,We.allOf,We.oneOf,We.items)};Ee.length;){var Ve=Ee.pop();we.indexOf(Ve)>=0||(we.push(Ve),Ne(Ve))}return s.promise.all(Te)};return ne(y,y,n,o).then(function(re){return new Yp(y,p)})},t.prototype.getSchemaForResource=function(r,n){if(n&&n.root&&n.root.type==="object"){var o=n.root.properties.filter(function(ce){return ce.keyNode.value==="$schema"&&ce.valueNode&&ce.valueNode.type==="string"});if(o.length>0){var s=Ta(o[0].valueNode);if(s&&mg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var y=Object.create(null),E=[],w=0,A=this.filePatternAssociations;w<A.length;w++){var k=A[w];if(k.matchesPattern(r))for(var G=0,ne=k.getSchemas();G<ne.length;G++){var re=ne[G];y[re]||(E.push(re),y[re]=!0)}}return E.length>0?this.createCombinedSchema(r,E).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var o="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:n.map(function(p){return{$ref:p}})};return this.addSchemaHandle(o,s)},t}();function Af(t){try{}catch(r){}return t}var Vg=function(){function t(r,n){this.jsonSchemaService=r,this.promise=n,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:$t.Error)},t.prototype.doValidation=function(r,n,o,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],E={},w=function(G){var ne=G.range.start.line+" "+G.range.start.character+" "+G.message;E[ne]||(E[ne]=!0,y.push(G))},A=function(G){var ne=o?Qp(o.trailingCommas):$t.Error,re=o?Qp(o.comments):p.commentSeverity;if(G){if(G.errors.length&&n.root){var ce=n.root,xe=ce.type==="object"?ce.properties[0]:null;if(xe&&xe.keyNode.value==="$schema"){var ge=xe.valueNode||xe,Ee=ur.create(r.positionAt(ge.offset),r.positionAt(ge.offset+ge.length));w(la.create(Ee,G.errors[0],$t.Warning,tr.SchemaResolveError))}else{var Ee=ur.create(r.positionAt(ce.offset),r.positionAt(ce.offset+1));w(la.create(Ee,G.errors[0],$t.Warning,tr.SchemaResolveError))}}else{var we=n.validate(r,G.schema);we&&we.forEach(w)}Jp(G.schema)&&(re=void 0),Xp(G.schema)&&(ne=void 0)}for(var Te=0,$e=n.syntaxErrors;Te<$e.length;Te++){var je=$e[Te];if(je.code===tr.TrailingComma){if(typeof ne!="number")continue;je.severity=ne}w(je)}if(typeof re=="number"){var He="Comments are not permitted in JSON.";n.comments.forEach(function(Ne){w(la.create(Ne,He,re,tr.CommentNotPermitted))})}return y};if(s){var k=s.id||"schemaservice://untitled/"+Wg++;return this.jsonSchemaService.resolveSchemaContent(new ps(s),k,{}).then(function(G){return A(G)})}return this.jsonSchemaService.getSchemaForResource(r.uri,n).then(function(G){return A(G)})},t}(),Wg=0;function Jp(t){if(t&&typeof t=="object"){if(Di(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,n=t.allOf;r<n.length;r++){var o=n[r],s=Jp(o);if(Di(s))return s}}}function Xp(t){if(t&&typeof t=="object"){if(Di(t.allowTrailingCommas))return t.allowTrailingCommas;if(Di(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,n=t.allOf;r<n.length;r++){var o=n[r],s=Xp(o);if(Di(s))return s}}}function Qp(t){switch(t){case"error":return $t.Error;case"warning":return $t.Warning;case"ignore":return}}var Zp=48,Hg=57,zg=65,Ef=97,Gg=102;function zr(t){return t<Zp?0:t<=Hg?t-Zp:(t<Ef&&(t+=Ef-zg),t>=Ef&&t<=Gg?t-Ef+10:0)}function $g(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:zr(t.charCodeAt(1))*17/255,green:zr(t.charCodeAt(2))*17/255,blue:zr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:zr(t.charCodeAt(1))*17/255,green:zr(t.charCodeAt(2))*17/255,blue:zr(t.charCodeAt(3))*17/255,alpha:zr(t.charCodeAt(4))*17/255};case 7:return{red:(zr(t.charCodeAt(1))*16+zr(t.charCodeAt(2)))/255,green:(zr(t.charCodeAt(3))*16+zr(t.charCodeAt(4)))/255,blue:(zr(t.charCodeAt(5))*16+zr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(zr(t.charCodeAt(1))*16+zr(t.charCodeAt(2)))/255,green:(zr(t.charCodeAt(3))*16+zr(t.charCodeAt(4)))/255,blue:(zr(t.charCodeAt(5))*16+zr(t.charCodeAt(6)))/255,alpha:(zr(t.charCodeAt(7))*16+zr(t.charCodeAt(8)))/255}}return null}function Vm(t,r,n,o){return o===void 0&&(o=1),{red:t/255,green:r/255,blue:n/255,alpha:o}}var Kg=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,n,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=n.root;if(!p)return null;var y=o.resultLimit,E=r.uri;if((E==="vscode://defaultsettings/keybindings.json"||td(E.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],A=0,k=p.items;A<k.length;A++){var G=k[A];if(G.type==="object")for(var ne=0,re=G.properties;ne<re.length;ne++){var ce=re[ne];if(ce.keyNode.value==="key"&&ce.valueNode){var xe=Tl.create(r.uri,Pa(r,G));if(w.push({name:Ta(ce.valueNode),kind:Ni.Function,location:xe}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E),w}}}return w}var ge=function(we,Te,$e){return y>=0&&(Te.type==="array"?Te.items.forEach(function(je){return ge(we,je,$e)}):Te.type==="object"&&Te.properties.forEach(function(je){if(y>=0){var He=je.valueNode;if(He){y--;var Ne=Tl.create(r.uri,Pa(r,je)),Ve=$e?$e+"."+je.keyNode.value:je.keyNode.value;we.push({name:s.getKeyLabel(je),kind:s.getSymbolKind(He.type),location:Ne,containerName:$e}),ge(we,He,Ve)}}})),we},Ee=ge([],p,void 0);return y<0&&(Ee.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E)),Ee},t.prototype.findDocumentSymbols2=function(r,n,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=n.root;if(!p)return null;var y=o.resultLimit,E=r.uri;if((E==="vscode://defaultsettings/keybindings.json"||td(E.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],A=0,k=p.items;A<k.length;A++){var G=k[A];if(G.type==="object")for(var ne=0,re=G.properties;ne<re.length;ne++){var ce=re[ne];if(ce.keyNode.value==="key"&&ce.valueNode){var xe=Pa(r,G),ge=Pa(r,ce.keyNode);if(w.push({name:Ta(ce.valueNode),kind:Ni.Function,range:xe,selectionRange:ge}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E),w}}}return w}var Ee=function(Te,$e){return y>=0&&($e.type==="array"?$e.items.forEach(function(je,He){if(je&&y>=0){y--;var Ne=Pa(r,je),Ve=Ne,We=String(He),Je=Ee([],je);Te.push({name:We,kind:s.getSymbolKind(je.type),range:Ne,selectionRange:Ve,children:Je})}}):$e.type==="object"&&$e.properties.forEach(function(je){var He=je.valueNode;if(He&&y>=0){y--;var Ne=Pa(r,je),Ve=Pa(r,je.keyNode),We=Ee([],He);Te.push({name:s.getKeyLabel(je),kind:s.getSymbolKind(He.type),range:Ne,selectionRange:Ve,children:We})}})),Te},we=Ee([],p);return y<0&&(we.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(E)),we},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Ni.Module;case"string":return Ni.String;case"number":return Ni.Number;case"array":return Ni.Array;case"boolean":return Ni.Boolean;default:return Ni.Variable}},t.prototype.getKeyLabel=function(r){var n=r.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},t.prototype.findDocumentColors=function(r,n,o){return this.schemaService.getSchemaForResource(r.uri,n).then(function(s){var p=[];if(s)for(var y=o&&typeof o.resultLimit=="number"?o.resultLimit:Number.MAX_VALUE,E=n.getMatchingSchemas(s.schema),w={},A=0,k=E;A<k.length;A++){var G=k[A];if(!G.inverted&&G.schema&&(G.schema.format==="color"||G.schema.format==="color-hex")&&G.node&&G.node.type==="string"){var ne=String(G.node.offset);if(!w[ne]){var re=$g(Ta(G.node));if(re){var ce=Pa(r,G.node);p.push({color:re,range:ce})}if(w[ne]=!0,y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,n,o,s){var p=[],y=Math.round(o.red*255),E=Math.round(o.green*255),w=Math.round(o.blue*255);function A(G){var ne=G.toString(16);return ne.length!==2?"0"+ne:ne}var k;return o.alpha===1?k="#"+A(y)+A(E)+A(w):k="#"+A(y)+A(E)+A(w)+A(Math.round(o.alpha*255)),p.push({label:k,textEdit:yi.replace(s,JSON.stringify(k))}),p},t}();function Pa(t,r){return ur.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Yg={schemaAssociations:{},schemas:{}};function Jg(t,r){var n=[],o=[],s=[],p=-1,y=fs(t.getText(),!1),E=y.scan();function w(Je){n.push(Je),o.push(s.length)}for(;E!==17;){switch(E){case 1:case 3:{var A=t.positionAt(y.getTokenOffset()).line,k={startLine:A,endLine:A,kind:E===1?"object":"array"};s.push(k);break}case 2:case 4:{var G=E===2?"object":"array";if(s.length>0&&s[s.length-1].kind===G){var k=s.pop(),ne=t.positionAt(y.getTokenOffset()).line;k&&ne>k.startLine+1&&p!==k.startLine&&(k.endLine=ne-1,w(k),p=k.startLine)}break}case 13:{var A=t.positionAt(y.getTokenOffset()).line,re=t.positionAt(y.getTokenOffset()+y.getTokenLength()).line;y.getTokenError()===1&&A+1<t.lineCount?y.setPosition(t.offsetAt(gi.create(A+1,0))):A<re&&(w({startLine:A,endLine:re,kind:Pl.Comment}),p=A);break}case 12:{var ce=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),xe=ce.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(xe){var ne=t.positionAt(y.getTokenOffset()).line;if(xe[1]){var k={startLine:ne,endLine:ne,kind:Pl.Region};s.push(k)}else{for(var ge=s.length-1;ge>=0&&s[ge].kind!==Pl.Region;)ge--;if(ge>=0){var k=s[ge];s.length=ge,ne>k.startLine&&p!==k.startLine&&(k.endLine=ne,w(k),p=k.startLine)}}}break}}E=y.scan()}var Ee=r&&r.rangeLimit;if(typeof Ee!="number"||n.length<=Ee)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var we=[],Te=0,$e=o;Te<$e.length;Te++){var je=$e[Te];je<30&&(we[je]=(we[je]||0)+1)}for(var He=0,Ne=0,ge=0;ge<we.length;ge++){var Ve=we[ge];if(Ve){if(Ve+He>Ee){Ne=ge;break}He+=Ve}}for(var We=[],ge=0;ge<n.length;ge++){var je=o[ge];typeof je=="number"&&(je<Ne||je===Ne&&He++<Ee)&&We.push(n[ge])}return We}function Xg(t,r,n){function o(E){for(var w=t.offsetAt(E),A=n.getNodeFromOffset(w,!0),k=[];A;){switch(A.type){case"string":case"object":case"array":var G=A.offset+1,ne=A.offset+A.length-1;G<ne&&w>=G&&w<=ne&&k.push(s(G,ne)),k.push(s(A.offset,A.offset+A.length));break;case"number":case"boolean":case"null":case"property":k.push(s(A.offset,A.offset+A.length));break}if(A.type==="property"||A.parent&&A.parent.type==="array"){var re=y(A.offset+A.length,5);re!==-1&&k.push(s(A.offset,re))}A=A.parent}for(var ce=void 0,xe=k.length-1;xe>=0;xe--)ce=bf.create(k[xe],ce);return ce||(ce=bf.create(ur.create(E,E))),ce}function s(E,w){return ur.create(t.positionAt(E),t.positionAt(w))}var p=fs(t.getText(),!0);function y(E,w){p.setPosition(E);var A=p.scan();return A===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(o)}function Qg(t){var r=t.promiseConstructor||Promise,n=new jg(t.schemaRequestService,t.workspaceContext,r);n.setSchemaContributions(Yg);var o=new Sg(n,t.contributions,r,t.clientCapabilities),s=new Ag(n,t.contributions,r),p=new Kg(n),y=new Vg(n,r);return{configure:function(E){n.clearExternalSchemas(),E.schemas&&E.schemas.forEach(function(w){n.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),y.configure(E)},resetSchema:function(E){return n.onResourceChange(E)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(E){return yg(E,{collectComments:!0})},newJSONDocument:function(E,w){return gg(E,w)},doComplete:o.doComplete.bind(o),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(E,w){return p.findDocumentColors(E,w).then(function(A){return A.map(function(k){return k.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:Jg,getSelectionRanges:Xg,format:function(E,w,A){var k=void 0;if(w){var G=E.offsetAt(w.start),ne=E.offsetAt(w.end)-G;k={offset:G,length:ne}}var re={tabSize:A?A.tabSize:4,insertSpaces:A?A.insertSpaces:!0,eol:`
|
|
322
|
-
`};return ag(
|
|
323
|
-
`)>-1){const
|
|
324
|
-
`+w(
|
|
344
|
+
$3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Eg(t){return t.indexOf("`")!==-1?"`` "+t+" ``":t}var Cg=function(){var t=function(r,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,s){o.__proto__=s}||function(o,s){for(var p in s)s.hasOwnProperty(p)&&(o[p]=s[p])},t(r,i)};return function(r,i){t(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}(),Hr,Ml;if(typeof process=="object")Ml=!1;else if(typeof navigator=="object"){var Og=navigator.userAgent;Ml=Og.indexOf("Windows")>=0}function Dm(t){return 55296<=t&&t<=56319}function Nm(t){return 56320<=t&&t<=57343}function Bm(t){return t>=97&&t<=102}function Tg(t){return t>=97&&t<=122}function Pg(t){return t>=65&&t<=90}function Um(t){return Tg(t)||Pg(t)}var Ig=/^\w[\w\d+.-]*$/,Fg=/^\//,kg=/^\/\//;function Mg(t,r){if(!t.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+t.authority+'", path: "'+t.path+'", query: "'+t.query+'", fragment: "'+t.fragment+'"}');if(t.scheme&&!Ig.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path){if(t.authority){if(!Fg.test(t.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(kg.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function Rg(t,r){return!t&&!r?"file":t}function Lg(t,r){switch(t){case"https":case"http":case"file":r?r[0]!==wi&&(r=wi+r):r=wi;break}return r}var gr="",wi="/",Dg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,rd=function(){function t(r,i,o,s,p,y){y===void 0&&(y=!1),typeof r=="object"?(this.scheme=r.scheme||gr,this.authority=r.authority||gr,this.path=r.path||gr,this.query=r.query||gr,this.fragment=r.fragment||gr):(this.scheme=Rg(r,y),this.authority=i||gr,this.path=Lg(this.scheme,o||gr),this.query=s||gr,this.fragment=p||gr,Mg(this,y))}return t.isUri=function(r){return r instanceof t?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(t.prototype,"fsPath",{get:function(){return Hp(this,!1)},enumerable:!0,configurable:!0}),t.prototype.with=function(r){if(!r)return this;var i=r.scheme,o=r.authority,s=r.path,p=r.query,y=r.fragment;return i===void 0?i=this.scheme:i===null&&(i=gr),o===void 0?o=this.authority:o===null&&(o=gr),s===void 0?s=this.path:s===null&&(s=gr),p===void 0?p=this.query:p===null&&(p=gr),y===void 0?y=this.fragment:y===null&&(y=gr),i===this.scheme&&o===this.authority&&s===this.path&&p===this.query&&y===this.fragment?this:new ds(i,o,s,p,y)},t.parse=function(r,i){i===void 0&&(i=!1);var o=Dg.exec(r);return o?new ds(o[2]||gr,Sf(o[4]||gr),Sf(o[5]||gr),Sf(o[7]||gr),Sf(o[9]||gr),i):new ds(gr,gr,gr,gr,gr)},t.file=function(r){var i=gr;if(Ml&&(r=r.replace(/\\/g,wi)),r[0]===wi&&r[1]===wi){var o=r.indexOf(wi,2);o===-1?(i=r.substring(2),r=wi):(i=r.substring(2,o),r=r.substring(o)||wi)}return new ds("file",i,r,gr,gr)},t.from=function(r){return new ds(r.scheme,r.authority,r.path,r.query,r.fragment)},t.prototype.toString=function(r){return r===void 0&&(r=!1),nd(this,r)},t.prototype.toJSON=function(){return this},t.revive=function(r){if(r){if(r instanceof t)return r;var i=new ds(r);return i._formatted=r.external,i._fsPath=r._sep===jp?r.fsPath:null,i}else return r},t}(),jp=Ml?1:void 0,ds=function(t){Cg(r,t);function r(){var i=t!==null&&t.apply(this,arguments)||this;return i._formatted=null,i._fsPath=null,i}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Hp(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(i){return i===void 0&&(i=!1),i?nd(this,!0):(this._formatted||(this._formatted=nd(this,!1)),this._formatted)},r.prototype.toJSON=function(){var i={$mid:1};return this._fsPath&&(i.fsPath=this._fsPath,i._sep=jp),this._formatted&&(i.external=this._formatted),this.path&&(i.path=this.path),this.scheme&&(i.scheme=this.scheme),this.authority&&(i.authority=this.authority),this.query&&(i.query=this.query),this.fragment&&(i.fragment=this.fragment),i},r}(rd),Vp=(Hr={},Hr[58]="%3A",Hr[47]="%2F",Hr[63]="%3F",Hr[35]="%23",Hr[91]="%5B",Hr[93]="%5D",Hr[64]="%40",Hr[33]="%21",Hr[36]="%24",Hr[38]="%26",Hr[39]="%27",Hr[40]="%28",Hr[41]="%29",Hr[42]="%2A",Hr[43]="%2B",Hr[44]="%2C",Hr[59]="%3B",Hr[61]="%3D",Hr[32]="%20",Hr);function Wp(t,r){for(var i=void 0,o=-1,s=0;s<t.length;s++){var p=t.charCodeAt(s);if(p>=97&&p<=122||p>=65&&p<=90||p>=48&&p<=57||p===45||p===46||p===95||p===126||r&&p===47)o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i!==void 0&&(i+=t.charAt(s));else{i===void 0&&(i=t.substr(0,s));var y=Vp[p];y!==void 0?(o!==-1&&(i+=encodeURIComponent(t.substring(o,s)),o=-1),i+=y):o===-1&&(o=s)}}return o!==-1&&(i+=encodeURIComponent(t.substring(o))),i!==void 0?i:t}function Ng(t){for(var r=void 0,i=0;i<t.length;i++){var o=t.charCodeAt(i);o===35||o===63?(r===void 0&&(r=t.substr(0,i)),r+=Vp[o]):r!==void 0&&(r+=t[i])}return r!==void 0?r:t}function Hp(t,r){var i;return t.authority&&t.path.length>1&&t.scheme==="file"?i="//"+t.authority+t.path:t.path.charCodeAt(0)===47&&(t.path.charCodeAt(1)>=65&&t.path.charCodeAt(1)<=90||t.path.charCodeAt(1)>=97&&t.path.charCodeAt(1)<=122)&&t.path.charCodeAt(2)===58?r?i=t.path.substr(1):i=t.path[1].toLowerCase()+t.path.substr(2):i=t.path,Ml&&(i=i.replace(/\//g,"\\")),i}function nd(t,r){var i=r?Ng:Wp,o="",s=t.scheme,p=t.authority,y=t.path,A=t.query,w=t.fragment;if(s&&(o+=s,o+=":"),(p||s==="file")&&(o+=wi,o+=wi),p){var E=p.indexOf("@");if(E!==-1){var F=p.substr(0,E);p=p.substr(E+1),E=F.indexOf(":"),E===-1?o+=i(F,!1):(o+=i(F.substr(0,E),!1),o+=":",o+=i(F.substr(E+1),!1)),o+="@"}p=p.toLowerCase(),E=p.indexOf(":"),E===-1?o+=i(p,!1):(o+=i(p.substr(0,E),!1),o+=p.substr(E))}if(y){if(y.length>=3&&y.charCodeAt(0)===47&&y.charCodeAt(2)===58){var G=y.charCodeAt(1);G>=65&&G<=90&&(y="/"+String.fromCharCode(G+32)+":"+y.substr(3))}else if(y.length>=2&&y.charCodeAt(1)===58){var G=y.charCodeAt(0);G>=65&&G<=90&&(y=String.fromCharCode(G+32)+":"+y.substr(2))}o+=i(y,!0)}return A&&(o+="?",o+=i(A,!1)),w&&(o+="#",o+=r?w:Wp(w,!1)),o}function zp(t){try{return decodeURIComponent(t)}catch(r){return t.length>3?t.substr(0,3)+zp(t.substr(3)):t}}var Gp=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Sf(t){return t.match(Gp)?t.replace(Gp,function(r){return zp(r)}):t}var Bg=function(){function t(r){try{this.patternRegExp=new RegExp(xg(r)+"$")}catch(i){this.patternRegExp=null}this.schemas=[]}return t.prototype.addSchema=function(r){this.schemas.push(r)},t.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},t.prototype.getSchemas=function(){return this.schemas},t}(),Ug=function(){function t(r,i,o){this.service=r,this.url=i,this.dependencies={},o&&(this.unresolvedSchema=this.service.promise.resolve(new ps(o)))}return t.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},t.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(i){return r.service.resolveSchemaContent(i,r.url,r.dependencies)})),this.resolvedSchema},t.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},t}(),ps=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t}(),$p=function(){function t(r,i){i===void 0&&(i=[]),this.schema=r,this.errors=i}return t.prototype.getSection=function(r){return Mn(this.getSectionRecursive(r,this.schema))},t.prototype.getSectionRecursive=function(r,i){if(!i||typeof i=="boolean"||r.length===0)return i;var o=r.shift();if(i.properties&&typeof i.properties[o])return this.getSectionRecursive(r,i.properties[o]);if(i.patternProperties)for(var s=0,p=Object.keys(i.patternProperties);s<p.length;s++){var y=p[s],A=new RegExp(y);if(A.test(o))return this.getSectionRecursive(r,i.patternProperties[y])}else{if(typeof i.additionalProperties=="object")return this.getSectionRecursive(r,i.additionalProperties);if(o.match("[0-9]+")){if(Array.isArray(i.items)){var w=parseInt(o,10);if(!isNaN(w)&&i.items[w])return this.getSectionRecursive(r,i.items[w])}else if(i.items)return this.getSectionRecursive(r,i.items)}}return null},t}(),jg=function(){function t(r,i,o){this.contextService=i,this.requestService=r,this.promiseConstructor=o||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return t.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(i){var o=rd.parse(i).scheme;return o!=="schemaservice"&&(!r||r(o))})},Object.defineProperty(t.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},t.prototype.onResourceChange=function(r){var i=this,o=!1;r=this.normalizeId(r);for(var s=[r],p=Object.keys(this.schemasById).map(function(E){return i.schemasById[E]});s.length;)for(var y=s.pop(),A=0;A<p.length;A++){var w=p[A];w&&(w.url===y||w.dependencies[y])&&(w.url!==y&&s.push(w.url),w.clearSchema(),p[A]=void 0,o=!0)}return o},t.prototype.normalizeId=function(r){try{return rd.parse(r).toString()}catch(i){return r}},t.prototype.setSchemaContributions=function(r){if(r.schemas){var i=r.schemas;for(var o in i){var s=this.normalizeId(o);this.contributionSchemas[s]=this.addSchemaHandle(s,i[o])}}if(r.schemaAssociations){var p=r.schemaAssociations;for(var y in p){var A=p[y];this.contributionAssociations[y]=A;for(var w=this.getOrAddFilePatternAssociation(y),E=0,F=A;E<F.length;E++){var G=F[E],o=this.normalizeId(G);w.addSchema(o)}}}},t.prototype.addSchemaHandle=function(r,i){var o=new Ug(this,r,i);return this.schemasById[r]=o,o},t.prototype.getOrAddSchemaHandle=function(r,i){return this.schemasById[r]||this.addSchemaHandle(r,i)},t.prototype.getOrAddFilePatternAssociation=function(r){var i=this.filePatternAssociationById[r];return i||(i=new Bg(r),this.filePatternAssociationById[r]=i,this.filePatternAssociations.push(i)),i},t.prototype.registerExternalSchema=function(r,i,o){i===void 0&&(i=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,i)for(var p=0,y=i;p<y.length;p++){var A=y[p];this.getOrAddFilePatternAssociation(A).addSchema(s)}return o?this.addSchemaHandle(s,o):this.getOrAddSchemaHandle(s)},t.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var i in this.contributionAssociations)for(var o=this.getOrAddFilePatternAssociation(i),s=0,p=this.contributionAssociations[i];s<p.length;s++){var y=p[s],r=this.normalizeId(y);o.addSchema(r)}},t.prototype.getResolvedSchema=function(r){var i=this.normalizeId(r),o=this.schemasById[i];return o?o.getResolvedSchema():this.promise.resolve(null)},t.prototype.loadSchema=function(r){if(!this.requestService){var i="Unable to load schema from '"+Af(r)+"'. No schema request service available";return this.promise.resolve(new ps({},[i]))}return this.requestService(r).then(function(o){if(!o){var s="Unable to load schema from '"+Af(r)+"': No content.";return new ps({},[s])}var p={},y=[];p=tg(o,y);var A=y.length?["Unable to parse content from '"+Af(r)+"': Parse error at offset "+y[0].offset]:[];return new ps(p,A)},function(o){var s="Unable to load schema from '"+Af(r)+"': "+o.toString();return new ps({},[s])})},t.prototype.resolveSchemaContent=function(r,i,o){var s=this,p=r.errors.slice(0),y=r.schema;if(y.$schema){var A=this.normalizeId(y.$schema);if(A==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new $p({},["Draft-03 schemas are not supported."]));A==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var w=this.contextService,E=function(ne,oe){if(!oe)return ne;var ye=ne;return oe[0]==="/"&&(oe=oe.substr(1)),oe.split("/").some(function(ge){return ye=ye[ge],!ye}),ye},F=function(ne,oe,ye,ge){var Ae=E(oe,ge);if(Ae)for(var me in Ae)Ae.hasOwnProperty(me)&&!ne.hasOwnProperty(me)&&(ne[me]=Ae[me]);else p.push("$ref '"+ge+"' in '"+ye+"' can not be resolved.")},G=function(ne,oe,ye,ge,Ae){w&&!/^\w+:\/\/.*/.test(oe)&&(oe=w.resolveRelativePath(oe,ge)),oe=s.normalizeId(oe);var me=s.getOrAddSchemaHandle(oe);return me.getUnresolvedSchema().then(function(Te){if(Ae[oe]=!0,Te.errors.length){var He=ye?oe+"#"+ye:oe;p.push("Problems loading reference '"+He+"': "+Te.errors[0]+".")}return F(ne,Te.schema,oe,ye),te(ne,Te.schema,oe,me.dependencies)})},te=function(ne,oe,ye,ge){if(!ne||typeof ne!="object")return Promise.resolve(null);for(var Ae=[ne],me=[],Te=[],He=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var et=0,$e=We;et<$e.length;et++){var gt=$e[et];typeof gt=="object"&&Ae.push(gt)}},Ve=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var et=0,$e=We;et<$e.length;et++){var gt=$e[et];if(typeof gt=="object")for(var Nt in gt){var Gt=gt[Nt];typeof Gt=="object"&&Ae.push(Gt)}}},ze=function(){for(var We=[],Je=0;Je<arguments.length;Je++)We[Je]=arguments[Je];for(var et=0,$e=We;et<$e.length;et++){var gt=$e[et];if(Array.isArray(gt))for(var Nt=0,Gt=gt;Nt<Gt.length;Nt++){var or=Gt[Nt];typeof or=="object"&&Ae.push(or)}}},De=function(We){for(var Je=[];We.$ref;){var et=We.$ref,$e=et.split("#",2);if(delete We.$ref,$e[0].length>0){Te.push(G(We,$e[0],$e[1],ye,ge));return}else Je.indexOf(et)===-1&&(F(We,oe,ye,$e[1]),Je.push(et))}He(We.items,We.additionalProperties,We.not,We.contains,We.propertyNames,We.if,We.then,We.else),Ve(We.definitions,We.properties,We.patternProperties,We.dependencies),ze(We.anyOf,We.allOf,We.oneOf,We.items)};Ae.length;){var Be=Ae.pop();me.indexOf(Be)>=0||(me.push(Be),De(Be))}return s.promise.all(Te)};return te(y,y,i,o).then(function(ne){return new $p(y,p)})},t.prototype.getSchemaForResource=function(r,i){if(i&&i.root&&i.root.type==="object"){var o=i.root.properties.filter(function(oe){return oe.keyNode.value==="$schema"&&oe.valueNode&&oe.valueNode.type==="string"});if(o.length>0){var s=Ta(o[0].valueNode);if(s&&mg(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var p=this.normalizeId(s);return this.getOrAddSchemaHandle(p).getResolvedSchema()}}}for(var y=Object.create(null),A=[],w=0,E=this.filePatternAssociations;w<E.length;w++){var F=E[w];if(F.matchesPattern(r))for(var G=0,te=F.getSchemas();G<te.length;G++){var ne=te[G];y[ne]||(A.push(ne),y[ne]=!0)}}return A.length>0?this.createCombinedSchema(r,A).getResolvedSchema():this.promise.resolve(null)},t.prototype.createCombinedSchema=function(r,i){if(i.length===1)return this.getOrAddSchemaHandle(i[0]);var o="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:i.map(function(p){return{$ref:p}})};return this.addSchemaHandle(o,s)},t}();function Af(t){try{}catch(r){}return t}var Vg=function(){function t(r,i){this.jsonSchemaService=r,this.promise=i,this.validationEnabled=!0}return t.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:$t.Error)},t.prototype.doValidation=function(r,i,o,s){var p=this;if(!this.validationEnabled)return this.promise.resolve([]);var y=[],A={},w=function(G){var te=G.range.start.line+" "+G.range.start.character+" "+G.message;A[te]||(A[te]=!0,y.push(G))},E=function(G){var te=o?Jp(o.trailingCommas):$t.Error,ne=o?Jp(o.comments):p.commentSeverity;if(G){if(G.errors.length&&i.root){var oe=i.root,ye=oe.type==="object"?oe.properties[0]:null;if(ye&&ye.keyNode.value==="$schema"){var ge=ye.valueNode||ye,Ae=ur.create(r.positionAt(ge.offset),r.positionAt(ge.offset+ge.length));w(la.create(Ae,G.errors[0],$t.Warning,tr.SchemaResolveError))}else{var Ae=ur.create(r.positionAt(oe.offset),r.positionAt(oe.offset+1));w(la.create(Ae,G.errors[0],$t.Warning,tr.SchemaResolveError))}}else{var me=i.validate(r,G.schema);me&&me.forEach(w)}Kp(G.schema)&&(ne=void 0),Yp(G.schema)&&(te=void 0)}for(var Te=0,He=i.syntaxErrors;Te<He.length;Te++){var Ve=He[Te];if(Ve.code===tr.TrailingComma){if(typeof te!="number")continue;Ve.severity=te}w(Ve)}if(typeof ne=="number"){var ze="Comments are not permitted in JSON.";i.comments.forEach(function(De){w(la.create(De,ze,ne,tr.CommentNotPermitted))})}return y};if(s){var F=s.id||"schemaservice://untitled/"+Wg++;return this.jsonSchemaService.resolveSchemaContent(new ps(s),F,{}).then(function(G){return E(G)})}return this.jsonSchemaService.getSchemaForResource(r.uri,i).then(function(G){return E(G)})},t}(),Wg=0;function Kp(t){if(t&&typeof t=="object"){if(Bi(t.allowComments))return t.allowComments;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Kp(o);if(Bi(s))return s}}}function Yp(t){if(t&&typeof t=="object"){if(Bi(t.allowTrailingCommas))return t.allowTrailingCommas;if(Bi(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(t.allOf)for(var r=0,i=t.allOf;r<i.length;r++){var o=i[r],s=Yp(o);if(Bi(s))return s}}}function Jp(t){switch(t){case"error":return $t.Error;case"warning":return $t.Warning;case"ignore":return}}var Xp=48,Hg=57,zg=65,Ef=97,Gg=102;function zr(t){return t<Xp?0:t<=Hg?t-Xp:(t<Ef&&(t+=Ef-zg),t>=Ef&&t<=Gg?t-Ef+10:0)}function $g(t){if(t[0]!=="#")return null;switch(t.length){case 4:return{red:zr(t.charCodeAt(1))*17/255,green:zr(t.charCodeAt(2))*17/255,blue:zr(t.charCodeAt(3))*17/255,alpha:1};case 5:return{red:zr(t.charCodeAt(1))*17/255,green:zr(t.charCodeAt(2))*17/255,blue:zr(t.charCodeAt(3))*17/255,alpha:zr(t.charCodeAt(4))*17/255};case 7:return{red:(zr(t.charCodeAt(1))*16+zr(t.charCodeAt(2)))/255,green:(zr(t.charCodeAt(3))*16+zr(t.charCodeAt(4)))/255,blue:(zr(t.charCodeAt(5))*16+zr(t.charCodeAt(6)))/255,alpha:1};case 9:return{red:(zr(t.charCodeAt(1))*16+zr(t.charCodeAt(2)))/255,green:(zr(t.charCodeAt(3))*16+zr(t.charCodeAt(4)))/255,blue:(zr(t.charCodeAt(5))*16+zr(t.charCodeAt(6)))/255,alpha:(zr(t.charCodeAt(7))*16+zr(t.charCodeAt(8)))/255}}return null}function jm(t,r,i,o){return o===void 0&&(o=1),{red:t/255,green:r/255,blue:i/255,alpha:o}}var Kg=function(){function t(r){this.schemaService=r}return t.prototype.findDocumentSymbols=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var y=o.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||ed(A.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,F=p.items;E<F.length;E++){var G=F[E];if(G.type==="object")for(var te=0,ne=G.properties;te<ne.length;te++){var oe=ne[te];if(oe.keyNode.value==="key"&&oe.valueNode){var ye=Ol.create(r.uri,Pa(r,G));if(w.push({name:Ta(oe.valueNode),kind:Ui.Function,location:ye}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),w}}}return w}var ge=function(me,Te,He){return y>=0&&(Te.type==="array"?Te.items.forEach(function(Ve){return ge(me,Ve,He)}):Te.type==="object"&&Te.properties.forEach(function(Ve){if(y>=0){var ze=Ve.valueNode;if(ze){y--;var De=Ol.create(r.uri,Pa(r,Ve)),Be=He?He+"."+Ve.keyNode.value:Ve.keyNode.value;me.push({name:s.getKeyLabel(Ve),kind:s.getSymbolKind(ze.type),location:De,containerName:He}),ge(me,ze,Be)}}})),me},Ae=ge([],p,void 0);return y<0&&(Ae.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),Ae},t.prototype.findDocumentSymbols2=function(r,i,o){var s=this;o===void 0&&(o={resultLimit:Number.MAX_VALUE});var p=i.root;if(!p)return null;var y=o.resultLimit,A=r.uri;if((A==="vscode://defaultsettings/keybindings.json"||ed(A.toLowerCase(),"/user/keybindings.json"))&&p.type==="array"){for(var w=[],E=0,F=p.items;E<F.length;E++){var G=F[E];if(G.type==="object")for(var te=0,ne=G.properties;te<ne.length;te++){var oe=ne[te];if(oe.keyNode.value==="key"&&oe.valueNode){var ye=Pa(r,G),ge=Pa(r,oe.keyNode);if(w.push({name:Ta(oe.valueNode),kind:Ui.Function,range:ye,selectionRange:ge}),y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A),w}}}return w}var Ae=function(Te,He){return y>=0&&(He.type==="array"?He.items.forEach(function(Ve,ze){if(Ve&&y>=0){y--;var De=Pa(r,Ve),Be=De,We=String(ze),Je=Ae([],Ve);Te.push({name:We,kind:s.getSymbolKind(Ve.type),range:De,selectionRange:Be,children:Je})}}):He.type==="object"&&He.properties.forEach(function(Ve){var ze=Ve.valueNode;if(ze&&y>=0){y--;var De=Pa(r,Ve),Be=Pa(r,Ve.keyNode),We=Ae([],ze);Te.push({name:s.getKeyLabel(Ve),kind:s.getSymbolKind(ze.type),range:De,selectionRange:Be,children:We})}})),Te},me=Ae([],p);return y<0&&(me.pop(),o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(A)),me},t.prototype.getSymbolKind=function(r){switch(r){case"object":return Ui.Module;case"string":return Ui.String;case"number":return Ui.Number;case"array":return Ui.Array;case"boolean":return Ui.Boolean;default:return Ui.Variable}},t.prototype.getKeyLabel=function(r){var i=r.keyNode.value;return i&&(i=i.replace(/[\n]/g,"\u21B5")),i&&i.trim()?i:'"'+i+'"'},t.prototype.findDocumentColors=function(r,i,o){return this.schemaService.getSchemaForResource(r.uri,i).then(function(s){var p=[];if(s)for(var y=o&&typeof o.resultLimit=="number"?o.resultLimit:Number.MAX_VALUE,A=i.getMatchingSchemas(s.schema),w={},E=0,F=A;E<F.length;E++){var G=F[E];if(!G.inverted&&G.schema&&(G.schema.format==="color"||G.schema.format==="color-hex")&&G.node&&G.node.type==="string"){var te=String(G.node.offset);if(!w[te]){var ne=$g(Ta(G.node));if(ne){var oe=Pa(r,G.node);p.push({color:ne,range:oe})}if(w[te]=!0,y--,y<=0)return o&&o.onResultLimitExceeded&&o.onResultLimitExceeded(r.uri),p}}}return p})},t.prototype.getColorPresentations=function(r,i,o,s){var p=[],y=Math.round(o.red*255),A=Math.round(o.green*255),w=Math.round(o.blue*255);function E(G){var te=G.toString(16);return te.length!==2?"0"+te:te}var F;return o.alpha===1?F="#"+E(y)+E(A)+E(w):F="#"+E(y)+E(A)+E(w)+E(Math.round(o.alpha*255)),p.push({label:F,textEdit:bi.replace(s,JSON.stringify(F))}),p},t}();function Pa(t,r){return ur.create(t.positionAt(r.offset),t.positionAt(r.offset+r.length))}var Yg={schemaAssociations:{},schemas:{}};function Jg(t,r){var i=[],o=[],s=[],p=-1,y=fs(t.getText(),!1),A=y.scan();function w(Je){i.push(Je),o.push(s.length)}for(;A!==17;){switch(A){case 1:case 3:{var E=t.positionAt(y.getTokenOffset()).line,F={startLine:E,endLine:E,kind:A===1?"object":"array"};s.push(F);break}case 2:case 4:{var G=A===2?"object":"array";if(s.length>0&&s[s.length-1].kind===G){var F=s.pop(),te=t.positionAt(y.getTokenOffset()).line;F&&te>F.startLine+1&&p!==F.startLine&&(F.endLine=te-1,w(F),p=F.startLine)}break}case 13:{var E=t.positionAt(y.getTokenOffset()).line,ne=t.positionAt(y.getTokenOffset()+y.getTokenLength()).line;y.getTokenError()===1&&E+1<t.lineCount?y.setPosition(t.offsetAt(xi.create(E+1,0))):E<ne&&(w({startLine:E,endLine:ne,kind:Tl.Comment}),p=E);break}case 12:{var oe=t.getText().substr(y.getTokenOffset(),y.getTokenLength()),ye=oe.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(ye){var te=t.positionAt(y.getTokenOffset()).line;if(ye[1]){var F={startLine:te,endLine:te,kind:Tl.Region};s.push(F)}else{for(var ge=s.length-1;ge>=0&&s[ge].kind!==Tl.Region;)ge--;if(ge>=0){var F=s[ge];s.length=ge,te>F.startLine&&p!==F.startLine&&(F.endLine=te,w(F),p=F.startLine)}}}break}}A=y.scan()}var Ae=r&&r.rangeLimit;if(typeof Ae!="number"||i.length<=Ae)return i;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(t.uri);for(var me=[],Te=0,He=o;Te<He.length;Te++){var Ve=He[Te];Ve<30&&(me[Ve]=(me[Ve]||0)+1)}for(var ze=0,De=0,ge=0;ge<me.length;ge++){var Be=me[ge];if(Be){if(Be+ze>Ae){De=ge;break}ze+=Be}}for(var We=[],ge=0;ge<i.length;ge++){var Ve=o[ge];typeof Ve=="number"&&(Ve<De||Ve===De&&ze++<Ae)&&We.push(i[ge])}return We}function Xg(t,r,i){function o(A){for(var w=t.offsetAt(A),E=i.getNodeFromOffset(w,!0),F=[];E;){switch(E.type){case"string":case"object":case"array":var G=E.offset+1,te=E.offset+E.length-1;G<te&&w>=G&&w<=te&&F.push(s(G,te)),F.push(s(E.offset,E.offset+E.length));break;case"number":case"boolean":case"null":case"property":F.push(s(E.offset,E.offset+E.length));break}if(E.type==="property"||E.parent&&E.parent.type==="array"){var ne=y(E.offset+E.length,5);ne!==-1&&F.push(s(E.offset,ne))}E=E.parent}for(var oe=void 0,ye=F.length-1;ye>=0;ye--)oe=bf.create(F[ye],oe);return oe||(oe=bf.create(ur.create(A,A))),oe}function s(A,w){return ur.create(t.positionAt(A),t.positionAt(w))}var p=fs(t.getText(),!0);function y(A,w){p.setPosition(A);var E=p.scan();return E===w?p.getTokenOffset()+p.getTokenLength():-1}return r.map(o)}function Qg(t){var r=t.promiseConstructor||Promise,i=new jg(t.schemaRequestService,t.workspaceContext,r);i.setSchemaContributions(Yg);var o=new Sg(i,t.contributions,r,t.clientCapabilities),s=new Ag(i,t.contributions,r),p=new Kg(i),y=new Vg(i,r);return{configure:function(A){i.clearExternalSchemas(),A.schemas&&A.schemas.forEach(function(w){i.registerExternalSchema(w.uri,w.fileMatch,w.schema)}),y.configure(A)},resetSchema:function(A){return i.onResourceChange(A)},doValidation:y.doValidation.bind(y),parseJSONDocument:function(A){return yg(A,{collectComments:!0})},newJSONDocument:function(A,w){return gg(A,w)},doComplete:o.doComplete.bind(o),findDocumentSymbols:p.findDocumentSymbols.bind(p),findDocumentSymbols2:p.findDocumentSymbols2.bind(p),findColorSymbols:function(A,w){return p.findDocumentColors(A,w).then(function(E){return E.map(function(F){return F.range})})},findDocumentColors:p.findDocumentColors.bind(p),getColorPresentations:p.getColorPresentations.bind(p),doHover:s.doHover.bind(s),getFoldingRanges:Jg,getSelectionRanges:Xg,format:function(A,w,E){var F=void 0;if(w){var G=A.offsetAt(w.start),te=A.offsetAt(w.end)-G;F={offset:G,length:te}}var ne={tabSize:E?E.tabSize:4,insertSpaces:E?E.insertSpaces:!0,eol:`
|
|
345
|
+
`};return ag(A.getText(),F,ne).map(function(oe){return bi.replace(ur.create(A.positionAt(oe.offset),A.positionAt(oe.offset+oe.length)),oe.content)})}}}var Vm=a(96876),Wm=a(4328),Hm=a(3256),zm=a(71707),Gm=a(82801),$m=a(32095),Km=a(86081),Ym=a(44254),Jm=a(75019),Xm=a(13837),Qp=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});const hs=Qg({});ls.registerHelper("lint","json",function(t,r){return Qp(this,null,function*(){const{schema:i,setError:o}=r;hs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const s=wf.create(r.id+".json","json",0,t),p=hs.parseJSONDocument(s),y=yield hs.doValidation(s,p);return y.length?o&&o(y[0].message):o&&o(void 0),y.map(A=>({from:ls.Pos(A.range.start.line,A.range.start.character),to:ls.Pos(A.range.end.line,A.range.end.character),message:A.message}))})}),ls.registerHelper("hint","json",(t,r)=>Qp(void 0,null,function*(){const i=r.schema;if(!i)return;hs.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:i}]});const o=t.getDoc().getCursor(),s=t.getTokenAt(o),p=wf.create(r.id+".json","json",0,t.getValue()),y=hs.parseJSONDocument(p),A=yield hs.doComplete(p,{line:o.line,character:o.ch},y),w=F=>{let G="";for(;F--;)G+=" ";return G};let E=A?A.items.map(F=>({text:F.insertText,displayText:F.label,filter:F.filterText||F.label,from:{line:F.textEdit.range.start.line,ch:F.textEdit.range.start.character},to:{line:F.textEdit.range.end.line,ch:F.textEdit.range.end.character},hint:(G,te,ne)=>{const oe="_$__REDOC_CURSOR_HERE";let ye=ne.text.replace(/(\$1|\${1:[^}]+})/,oe)||"";if(ye=ye.replace(/(\$\d+|\${[^}]+})/g,"")||"",G.setSelection(ne.from,ne.to),ye.indexOf(`
|
|
346
|
+
`)>-1){const Ae=G.getLine(G.getCursor().line).search(/(\S|$)/);ye=ye.replace(/\n/g,`
|
|
347
|
+
`+w(Ae))}G.replaceSelection(ye);const ge=G.getSearchCursor(oe,ne.from);ge.findNext()&&(G.setCursor(ge.from()),ge.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(E=E.filter(F=>F.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:ls.Pos(o.line,s.start),to:ls.Pos(o.line,o.ch),list:E}}));var Zg=Object.defineProperty,_g=(t,r,i)=>r in t?Zg(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Rl=(t,r,i)=>(_g(t,typeof r!="symbol"?r+"":r,i),i);const qg=Tt.createGlobalStyle`
|
|
325
348
|
.cm-s-material.CodeMirror {
|
|
326
349
|
background-color: var(--samples-panel-controls-background-color)!important;
|
|
327
350
|
color: var(--color-content-inverse)!important;
|
|
@@ -369,47 +392,47 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Eg(t){return t.i
|
|
|
369
392
|
flex: 1;
|
|
370
393
|
border-radius: var(--panels-border-radius);
|
|
371
394
|
}
|
|
372
|
-
`;class ey extends d.
|
|
395
|
+
`;class ey extends d.PureComponent{constructor(){super(...arguments);Rl(this,"editor"),Rl(this,"_onKeyUp",(r,i)=>{/^[a-zA-Z0-9_":]$/.test(i.key)&&this.editor.execCommand("autocomplete")}),Rl(this,"initEditor",r=>{this.editor=r,r.on("keyup",this._onKeyUp)}),Rl(this,"refreshEditor",()=>{this.editor.refresh()}),Rl(this,"showHintHandler",()=>this.editor.showHint({completeSingle:!0}))}componentDidMount(){setTimeout(()=>{this.editor.refresh()},0),document.addEventListener("click",this.refreshEditor)}componentWillUnmount(){document.removeEventListener("click",this.refreshEditor)}render(){const{value:r}=this.props.fieldState,{setValue:i,setTouched:o,setError:s}=this.props.fieldApi,{onChange:p,onBlur:y,forwardedRef:A}=this.props;return d.createElement(d.Fragment,null,d.createElement(qg,null),d.createElement(Gv.fk,{editorDidMount:this.initEditor,value:r||"",ref:A,onBeforeChange:(w,E,F)=>{i(F),p&&p(F)},onBlur:w=>{o(!1),y&&y(w)},options:{mode:this.props.mode||cf.T.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":this.showHintHandler,"Ctrl-Space":this.showHintHandler},hintOptions:{id:this.props.id,completeSingle:!1,schema:this.props.schema},lint:{id:this.props.id,schema:this.props.schema,setError:s}}}))}}const ty=$r(ey);var ry=Object.defineProperty,ny=Object.defineProperties,iy=Object.getOwnPropertyDescriptors,Zp=Object.getOwnPropertySymbols,ay=Object.prototype.hasOwnProperty,oy=Object.prototype.propertyIsEnumerable,_p=(t,r,i)=>r in t?ry(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,sy=(t,r)=>{for(var i in r||(r={}))ay.call(r,i)&&_p(t,i,r[i]);if(Zp)for(var i of Zp(r))oy.call(r,i)&&_p(t,i,r[i]);return t},ly=(t,r)=>ny(t,iy(r));const uy=(0,Fa.Pi)(({body:t,formApi:r,resolvedBody:i,properties:o,id:s,validate:p})=>{var y;const A=t.content,w=oe=>{var ye;if(!A||!A.hasSample)return"";const ge=(ye=A.active)==null?void 0:ye.examples;if(!(ge==null?void 0:ge[oe]))return"";const Ae=ge==null?void 0:ge[oe].value,me=o?Bv()(Ae,o,{arrayMerge:$n.lN}):Ae;return JSON.stringify(me,null,2)},E=(y=A==null?void 0:A.operation)==null?void 0:y.activeExampleName,F=oe=>{var ye;(ye=A==null?void 0:A.operation)==null||ye.activateExampleName(oe),r.setValue("body",w(oe))},G=(oe,ye)=>{const{setValue:ge}=r;ge(`body.${oe}`,ye)};(0,d.useEffect)(()=>{E!==!1?r.setValue("body",(0,Ht.YQ)(`${s}_${E||""}`)||w(E||"")):r.setValue("body",JSON.stringify(o||{},null,2))},[E]);const te=oe=>d.createElement(Wt.DropdownOrLabel,ly(sy({},oe),{variant:"dark",fullWidth:!0,Label:zv,Dropdown:vr.Dropdown})),ne=(0,d.useCallback)(oe=>ye=>{(0,Ht.WW)(`${s}_${oe}`,ye)},[s]);return d.createElement(d.Fragment,null,d.createElement(Wt.MediaTypesSwitch,{content:t.content,renderDropdown:te},oe=>{const ye=oe.examples||{},ge=Object.keys(ye),Ae=oe.schema,me=dt(Ae||{},oe.name)||oe.name===cf.T.MULTIPART||oe.name===cf.T.URL_ENCODED,{exampleKey:Te}=(0,Wc.C6)(oe.operation,ye),He=(0,Ht.YQ)(`${s}_${Te}`)||(0,nr.oY)(ye[Te],o);return d.createElement(d.Fragment,null,ge.length&&ge.length!==1&&d.createElement(Wc.b_,{examples:ye,onChange:F,exampleKey:Te,panel:"try-it"})||null,me?d.createElement(Wv,{mediaType:oe,formApi:r,onChange:G}):d.createElement(ty,{id:"body"+s,field:"body",initialValue:He,schema:((i==null?void 0:i.content[oe.name])||{}).schema,mode:oe.name,validate:p,onChange:ne(Te)}))}))}),fy=(0,d.memo)(uy);function cy({response:t}){return d.createElement(d.Fragment,null,d.createElement(an.EE,null," Body: "),dy(t))}function dy(t){return t.body?d.createElement(mi.JsonViewer,{data:t.body,jsonSampleExpandLevel:1}):t.fileInfo?d.createElement(Wt.SourceCodeWithFile,{fileInfo:t.fileInfo}):t.data!==null?t.data?d.createElement(mi.SourceCode,{lang:(0,Wt.langFromMime)(t.headers["Content-Type"]||"text/plain"),source:t.data,withCopyButton:!0}):d.createElement(an.w3,null,d.createElement("i",null,"(no content)")):null}function py({headers:t}){const r=d.useContext(Wt.OptionsContext),[i,o]=d.useState(!0),{maxResponseHeadersToShowInTryIt:s}=r,p=Object.keys(t),y=!!s&&p.length>s,A=y&&i?[...p].splice(0,s):[...p],w=()=>{o(!i)};return d.createElement(d.Fragment,null,d.createElement(an.EE,null," Headers: "),d.createElement(an.w3,null,A.map(E=>d.createElement("div",{key:E},d.createElement(qp,null,E,":"),d.createElement("code",null,t[E]))),y&&d.createElement(eh,{onClick:w},i?"Show more...":"Hide headers")))}const qp=Tt.default.strong`
|
|
373
396
|
text-transform: capitalize;
|
|
374
397
|
display: inline-block;
|
|
375
398
|
padding-right: 5px;
|
|
376
|
-
`,
|
|
399
|
+
`,eh=Tt.default.div`
|
|
377
400
|
cursor: pointer;
|
|
378
401
|
margin-top: 5px;
|
|
379
402
|
font-size: 14px;
|
|
380
|
-
`;
|
|
403
|
+
`;qp.displayName="HeaderName",eh.displayName="StyledShowMoreLabel";const hy=Tt.default.div`
|
|
381
404
|
margin-bottom: 10px;
|
|
382
|
-
`,
|
|
405
|
+
`,id=Tt.default.div`
|
|
383
406
|
display: inline-block;
|
|
384
407
|
margin-right: 20px;
|
|
385
408
|
padding: 2px 0;
|
|
386
409
|
text-align: center;
|
|
387
410
|
color: var(--color-content-inverse);
|
|
388
|
-
`,
|
|
411
|
+
`,vy=(0,Tt.default)(id)`
|
|
389
412
|
color: ${({code:t})=>t>=200&&t<300?"var(--response-success-text-color)":t>=300&&t<400?"var(--response-redirect-text-color)":t>400?"var(--response-error-text-color)":"var(--response-info-text-color)"};
|
|
390
|
-
`,
|
|
413
|
+
`,th=Tt.default.header`
|
|
391
414
|
font-weight: bold;
|
|
392
415
|
margin-bottom: 10px;
|
|
393
|
-
`,
|
|
416
|
+
`,gy=Tt.default.code`
|
|
394
417
|
border-left: 3px solid #ff4040;
|
|
395
418
|
padding-left: 5px;
|
|
396
|
-
`;class
|
|
419
|
+
`;class yy extends d.PureComponent{render(){const{error:r,response:i,time:o}=this.props,s=i||r&&r.response,p=s&&s.data&&s.data.length||0;let y;return p>1e6?y=(p/1e6).toFixed(2)+" MB":p>1e3?y=(p/1e3).toFixed(2)+" KB":y=p+" B",r&&!r.response||!s?d.createElement(d.Fragment,null,d.createElement(th,null," Could not get any response "),d.createElement(gy,null,r&&r.message||"Unknown error"),d.createElement("br",null),d.createElement(th,null," Why this might have happened:"),d.createElement("div",null," - CORS is misconfigured on the server"),d.createElement("div",null," - The server couldn't sent a response"),d.createElement("div",null," - No internet access"),d.createElement("div",null," - Documentation issue - contact API owner"),d.createElement("div",null," - Misconfigured security definition")):s?d.createElement(d.Fragment,null,d.createElement(hy,null,d.createElement(vy,{code:s.status},d.createElement("span",null," Status: "),s.status," ",s.statusText),d.createElement(id,null,d.createElement("span",null," Time: "),o,"ms"),d.createElement(id,null,d.createElement("span",null," Size: "),y)),d.createElement("div",null,d.createElement(py,{headers:s.headers}),d.createElement(cy,{response:s}))):d.createElement(d.Fragment,null,"Something went wrong")}}var rh=a(46538);function my(t,r,i){const o=r.path||{},s=r.query||{},p=Object.keys(s);let y=(0,nr.v5)(t,o);const A=w=>i.find(E=>E.name===w&&E.in==="query");return p.length&&(y+="?"+p.map(w=>{if(!s[w])return"";const E=A(w);return E?(0,Wt.serializeParameterValue)(E,s[w]):`${w}=${encodeURIComponent(s[w])}`}).filter(Boolean).join("&")),y}const xy=({loading:t,operation:r,hasResponse:i,execute:o,params:s={}})=>d.createElement(wy,null,d.createElement(rh.__,null,d.createElement(Jd.FH,{type:r.httpVerb},r.httpVerb),d.createElement(rh.y$,{wrap:"true"},my(r.path,s,r.parameters))),d.createElement(by,{"data-cy":"send-button",color:"primary",blinking:t,onClick:()=>!t&&o()},t?"Sending...":i?"Resend":"Send")),by=(0,Tt.default)(mi.Button)`
|
|
397
420
|
width: var(--try-it-panel-action-button-width);
|
|
398
|
-
`,
|
|
421
|
+
`,wy=(0,Tt.default)(Tn.k1)`
|
|
399
422
|
flex-direction: row;
|
|
400
423
|
align-items: flex-start;
|
|
401
424
|
flex-wrap: wrap;
|
|
402
|
-
`,
|
|
425
|
+
`,Sy=d.memo(xy);function Ay(t){const{name:r,value:i,description:o,variableEnum:s,onChange:p,defaultValue:y}=t,A=F=>p(F.target.value),w=F=>p(F.value),E=s?s.map((F,G)=>({value:F,idx:G})):[];return d.createElement(it.NI,null,d.createElement(it.lX,null,r,":"),E&&E.length?d.createElement(an.VD,{fullWidth:!0,variant:"dark",value:i,options:E,onChange:w}):d.createElement(Kn,{fullWidth:!0,value:i,onChange:A,placeholder:y,panel:"try-it"}),o&&d.createElement(Ey,null,o))}const Ey=Tt.default.small`
|
|
403
426
|
display: inline-block;
|
|
404
427
|
margin-top: 5px;
|
|
405
428
|
color: #d0d0d0;
|
|
406
|
-
`;var
|
|
407
|
-
${(0,
|
|
408
|
-
- ${
|
|
409
|
-
`})),
|
|
410
|
-
margin-
|
|
411
|
-
`;var
|
|
412
|
-
${
|
|
429
|
+
`;var Cy=Object.defineProperty,Oy=Object.defineProperties,Ty=Object.getOwnPropertyDescriptors,nh=Object.getOwnPropertySymbols,Py=Object.prototype.hasOwnProperty,Iy=Object.prototype.propertyIsEnumerable,ih=(t,r,i)=>r in t?Cy(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,ah=(t,r)=>{for(var i in r||(r={}))Py.call(r,i)&&ih(t,i,r[i]);if(nh)for(var i of nh(r))Iy.call(r,i)&&ih(t,i,r[i]);return t},oh=(t,r)=>Oy(t,Ty(r));const Fy=(0,Fa.Pi)(({operation:t,onChange:r})=>{const i=(0,Ht.YQ)("serverUrl"),o=t.servers.findIndex(te=>te.url===i),[s,p]=(0,d.useState)(o<0?0:o),[y,A]=(0,d.useState)({});(0,Sr.b6)(()=>{const te=(0,nr.fz)(t.servers,s);r(te),A(te.variables)});const w=te=>{const ne=t.servers.find(ge=>ge.url===te.serverUrl),oe=t.servers.findIndex(ge=>ge.url===te.serverUrl),ye=(0,nr.mj)(ne);r({url:te.serverUrl||"",variables:ye}),(0,Ht.WW)("serverUrl",te.serverUrl||""),p(oe),A(ye)},E=(te,ne)=>{const oe=t.servers[s],ye=ne||ne===""?ne:(0,nr.mj)(oe)[te],ge=oh(ah({},y),{[te]:ye});A(ge),(0,nr.UY)(te,ye),r(oh(ah({},oe),{variables:ge}))},F=t.servers.map((te,ne)=>({idx:ne,serverUrl:te.url,value:`
|
|
430
|
+
${(0,nr.nq)((0,nr.v5)(te.url,y),te.variables)}
|
|
431
|
+
- ${te.description||"Default"}
|
|
432
|
+
`})),G=Object.keys(y);return d.createElement(ky,{"data-cy":"console-target-server"},d.createElement(it.lX,{htmlFor:"server"},"Target server: "),d.createElement(it.NI,null,d.createElement(an.VD,{variant:"dark",value:F[s].value,options:F,fullWidth:!0,onChange:w})),G==null?void 0:G.map(te=>{var ne;const oe=(ne=t.servers[s].variables)==null?void 0:ne[te];if(oe)return d.createElement(Ay,{key:te,name:te,value:y[te],defaultValue:oe.default,onChange:ye=>E(te,ye),variableEnum:oe.enum,description:oe.description})}))}),ky=Tt.default.div`
|
|
433
|
+
margin-bottom: 20px;
|
|
434
|
+
`;var My=a(72940),Ry=Object.defineProperty,Ly=Object.defineProperties,Dy=Object.getOwnPropertyDescriptors,Cf=Object.getOwnPropertySymbols,sh=Object.prototype.hasOwnProperty,lh=Object.prototype.propertyIsEnumerable,uh=(t,r,i)=>r in t?Ry(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Ny=(t,r)=>{for(var i in r||(r={}))sh.call(r,i)&&uh(t,i,r[i]);if(Cf)for(var i of Cf(r))lh.call(r,i)&&uh(t,i,r[i]);return t},By=(t,r)=>Ly(t,Dy(r)),Uy=(t,r)=>{var i={};for(var o in t)sh.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Cf)for(var o of Cf(t))r.indexOf(o)<0&&lh.call(t,o)&&(i[o]=t[o]);return i};function ad(t){var r=t,{header:i,error:o,success:s}=r,p=Uy(r,["header","error","success"]);const y=({toggle:A,expanded:w})=>d.createElement(Tn.h4,{onClick:A,isExpanded:w,"data-cy":p["data-cy"]},d.createElement(Tn.xz,null,d.createElement(Tn.Dx,null,i),d.createElement(Wt.ShelfIcon,{direction:w?"down":"right"})),o&&d.createElement(Wt.CrossIcon,{size:"14px",color:"--color-error-500"})||null,s&&d.createElement(Wt.LockIcon,{size:"14px",color:"--color-success-500"})||null);return d.createElement(jy,By(Ny({},p),{header:y}))}const jy=(0,Tt.default)(Tn.s_)`
|
|
435
|
+
${Tn.h4} {
|
|
413
436
|
color: white;
|
|
414
437
|
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
|
415
438
|
padding: 10px;
|
|
@@ -419,19 +442,19 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Eg(t){return t.i
|
|
|
419
442
|
fill: white;
|
|
420
443
|
}
|
|
421
444
|
|
|
422
|
-
${
|
|
445
|
+
${My.N} {
|
|
423
446
|
padding: 15px 10px;
|
|
424
447
|
background-color: #3e4c59;
|
|
425
448
|
border: 1px solid ${({error:t})=>t?"#ff908b":"#89949f"};
|
|
426
449
|
border-top: 0;
|
|
427
450
|
}
|
|
428
|
-
`,
|
|
451
|
+
`,Vy=Tt.default.div`
|
|
429
452
|
display: flex;
|
|
430
453
|
font-size: 12px;
|
|
431
454
|
button {
|
|
432
455
|
margin: 0;
|
|
433
456
|
}
|
|
434
|
-
`,
|
|
457
|
+
`,fh=Tt.default.button`
|
|
435
458
|
outline: none;
|
|
436
459
|
border: none;
|
|
437
460
|
background-color: var(--try-it-panel-tab-background-color);
|
|
@@ -463,41 +486,41 @@ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Eg(t){return t.i
|
|
|
463
486
|
cursor: default;
|
|
464
487
|
color: var(--try-it-panel-disabled-tab-color);
|
|
465
488
|
`||""}
|
|
466
|
-
`;function Hy({onChange:t,active:r,hasResponse:n}){return d.createElement(Wy,null,d.createElement(dh,{onClick:()=>t(0),active:r===0},n?"Edit Request":"Request"),d.createElement(dh,{onClick:()=>n&&t(1),active:r===1,disabled:!n}," ","Response"," "))}var ph=Object.defineProperty,zy=Object.defineProperties,Gy=Object.getOwnPropertyDescriptor,$y=Object.getOwnPropertyDescriptors,Tf=Object.getOwnPropertySymbols,hh=Object.prototype.hasOwnProperty,vh=Object.prototype.propertyIsEnumerable,fd=(t,r,n)=>r in t?ph(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,Xr=(t,r)=>{for(var n in r||(r={}))hh.call(r,n)&&fd(t,n,r[n]);if(Tf)for(var n of Tf(r))vh.call(r,n)&&fd(t,n,r[n]);return t},Rn=(t,r)=>zy(t,$y(r)),gh=(t,r)=>{var n={};for(var o in t)hh.call(t,o)&&r.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&Tf)for(var o of Tf(t))r.indexOf(o)<0&&vh.call(t,o)&&(n[o]=t[o]);return n},Ky=(t,r,n,o)=>{for(var s=o>1?void 0:o?Gy(r,n):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(o?y(r,n,s):y(s))||s);return o&&s&&ph(r,n,s),s},vs=(t,r,n)=>(fd(t,typeof r!="symbol"?r+"":r,n),n),yh=(t,r,n)=>new Promise((o,s)=>{var p=w=>{try{E(n.next(w))}catch(A){s(A)}},y=w=>{try{E(n.throw(w))}catch(A){s(A)}},E=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);E((n=n.apply(t,r)).next())});function mh(t){return t.startsWith("//")?"https:"+t:t}const Yy={flex:1,display:"flex",flexDirection:"column"};let cd=class extends d.Component{constructor(t){super(t);vs(this,"formApi"),vs(this,"setFormApi",(r,n=r.getState())=>{var o=n,{values:s}=o,p=gh(o,["values"]);this.formApi=r,setTimeout(()=>{const y=Rn(Xr({},p),{values:Rn(Xr({},s),{query:(0,gr.FU)(s.query||{})})});this.setState({form:y})},0)}),vs(this,"handleChange",r=>{var n=r,{values:o}=n,s=gh(n,["values"]);const p=Rn(Xr({},s),{values:Rn(Xr({},o),{query:(0,gr.FU)(o.query||{})})});this.setState({form:p}),(0,gr.Hc)(p),this.props.operation.setRequestValues(o)}),vs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),vs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),vs(this,"handleExecute",()=>yh(this,null,function*(){var r,n,o,s,p,y,E;const{store:w,operation:A,onResponse:k}=this.props,{values:G,invalid:ne}=this.state.form;if(this.formApi.submitForm(),ne){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(n=(r=w==null?void 0:w.options.events)==null?void 0:r.tryItSent)==null||n.call(r,{eventType:bl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:A.operationId,operationPath:A.path,operationHttpVerb:A.httpVerb,operationSummary:A.description});return}const re=this.props.operation.requestBody,ce=re&&re.content&&re.content.active&&re.content.active.name||"";let xe=G.body;if(/json/.test(ce))try{xe=JSON.parse(xe)}catch(ze){console.error(ze)}this.setState({loading:!0});const ge=this.state.resolvedRawSpec,Ee=(A.httpVerb||"").toLowerCase(),we=(0,Gt.U2)(ge,["paths",A.path,Ee,"servers"])||(0,Gt.U2)(ge,["paths",A.path,"servers"])||(0,Gt.U2)(ge,["servers"]);if(!we)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const Te=we.find(ze=>this.state.server.url.endsWith(ze.url.endsWith("/")?ze.url.substring(0,ze.url.length-1):ze.url)),$e=Date.now(),je=!!window.document.documentMode;let He,Ne=G.auth;if(G.auth){const ze=Object.keys(G.auth)[0],et=(0,Gt.dw)(ze);He=Rn(Xr({},ge),{components:Rn(Xr({},ge.components),{securitySchemes:Rn(Xr({},ge.components.securitySchemes),{[et]:Rn(Xr({},ge.components.securitySchemes[et]),{type:ge.components.securitySchemes[et].type==="openIdConnect"?"oauth2":ge.components.securitySchemes[et].type})})})}),Ne=Rn(Xr({},Ne),{[et]:Ne[ze]})}else He=Xr({},ge);const Ve=w.options.corsProxyUrl;Ve&&we.length&&(He.servers=we.map(ze=>Rn(Xr({},ze),{url:Ve+mh(ze.url)})),He.paths=Rn(Xr({},He.paths),{[A.path]:Rn(Xr({},He.paths[A.path]),{[Ee]:Rn(Xr({},He.paths[A.path][Ee]),{servers:void 0}),servers:void 0})}));const We=((s=(o=re==null?void 0:re.content)==null?void 0:o.active)==null?void 0:s.name)||null;if(We&&xe&&ct(We)){const ze=Object.values(xe);xe=ze.length>1?ze:ze[0]}const Je={userFetch:je&&a(54098).fetch,server:Ve?Ve+mh(Te.url):Te.url,serverVariables:this.state.server.variables,spec:He,pathName:A.path,method:A.httpVerb,parameters:Xr(Xr(Xr(Xr({},G.path),G.query),G.header),G.cookie),securities:{authorized:Ne},requestBody:xe,requestContentType:We,responseContentType:((p=G.header)==null?void 0:p.Accept)||null,requestInterceptor:(0,gr.Tz)(w.options,A,Ne==null?void 0:Ne.Authorization)};try{const ze=yield Lc.execute(Je),et=ze==null?void 0:ze.data;et instanceof Blob&&(ct(et.type)&&(ze.fileInfo={rawData:et,fileName:(0,gr.AM)(ze.headers)}),ze.data=yield et.text()),k==null||k({request:Je,response:ze}),this.setState({response:ze,error:void 0})}catch(ze){ze&&ze.response&&ze.response.data instanceof Blob&&(ze.response.data=yield ze.response.data.text(),k==null||k({request:Je,response:ze.response})),this.setState({response:void 0,error:ze})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-$e}),(E=(y=w==null?void 0:w.options.events)==null?void 0:y.tryItSent)==null||E.call(y,{eventType:bl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:A.operationId,operationPath:A.path,operationHttpVerb:A.httpVerb,operationSummary:A.description})}})),this.state={form:{values:{path:(0,gr.ZS)(t.operation.parameters,"path"),cookie:(0,gr.ZS)(t.operation.parameters,"cookie"),header:(0,gr.ZS)(t.operation.parameters,"header"),query:(0,gr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return yh(this,null,function*(){const{store:t,operation:r}=this.props,n=yield t.dereferenceSpecForTryIt(r);this.setState({resolvedRawSpec:n}),this.formApi.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:n}=this.props,{shaking:o,activeTab:s,form:p,response:y,loading:E,error:w}=this.state,A=!!(y||w);return d.createElement(Xy,{shaking:o,className:r,rootElement:n},d.createElement(Cn.k1,null,d.createElement(Hy,{active:s,hasResponse:A,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(Kn.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(Kn.RE,{hidden:s!==0},this.renderRequest()),d.createElement(Kn.RE,{hidden:s!==1},this.renderResponse()),d.createElement(Ay,{hasResponse:A,params:p.values,operation:t,loading:E,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:n,properties:o,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:y,server:E}=this.state,w=p.errors||{},A=w.path||w.cookie||w.header||w.query,k=y&&Wt.JsonPointer.get(y,r.pointer);let G=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!G||!p.values.auth[G])&&(G=void 0),G&&(p.values.auth[G].token!==void 0||p.values.auth[G].client_id!==void 0||p.values.auth[G].client_secret!==void 0)&&(!p.values.auth[G].token||!p.values.auth[G].token.access_token)&&(G=void 0),G&&p.values.auth[G].username!=null&&(!p.values.auth[G].username||!p.values.auth[G].password)&&(G=void 0);const ne=r.parameters||[],re=(t=n==null?void 0:n.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(d.Fragment,null,d.createElement(zl,{onChange:this.handleChange,getApi:this.setFormApi,style:Rn(Xr({},Yy),{margin:0})},d.createElement(Cn.UQ,{initialActiveIdx:r.security.length&&G?1:0},r.security.length&&d.createElement(ud,{header:(0,uo.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!G&&!!w.auth,success:!!G},re?d.createElement(Qy,{field:"auth",validate:gr.np},ce=>d.createElement(of.Q,{Hook:re,props:{server:E,operation:r,onChange:ce,OAuth2:m}})):d.createElement(Dv,{formApi:this.formApi,form:p,operation:r,activeServer:E.url,authCorsProxyUrl:n.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&d.createElement(ud,{header:(0,uo.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(cy,{validate:Jy,console:this,body:r.requestBody,id:r.id,resolvedBody:k.requestBody,properties:o}))||null,ne.length&&d.createElement(ud,{header:(0,uo.l)("tryItParameters"),"data-cy":"parameters-trigger",error:A,renderChildrenHidden:!0},d.createElement(Uh,{operation:r,values:p.values,errors:p.errors||{}}))||null)),d.createElement(ld,{operation:r,onChange:this.handleServerChange}))}renderResponse(){const{response:t,error:r,time:n}=this.state;return d.createElement(my,{response:t,error:r,time:n})}};cd=Ky([Fa.Pi],cd);function Jy(){}function Xy(t){const{shaking:r,className:n,children:o,rootElement:s}=t,[p]=(0,Gt.Bs)(s),y=d.useContext(Wt.StoreContext);return d.createElement(Kn.q2,{scrollYOffset:y==null?void 0:y.options.scrollYOffset,shaking:r,className:n,"data-cy":"console",fullWidth:p==null?void 0:p.width},o)}function Qy(t){const{fieldApi:r,render:n,userProps:o}=On(Xr({},t)),{setValue:s}=r,{children:p}=o;return n(d.createElement(d.Fragment,null,p(s)))}},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";h.exports=function(d){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var S=a.call(arguments,1),g,L=function(){if(this instanceof g){var W=b.apply(this,S.concat(a.call(arguments)));return Object(W)===W?W:this}else return b.apply(d,S.concat(a.call(arguments)))},D=Math.max(0,b.length-S.length),B=[],j=0;j<D;j++)B.push("$"+j);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var q=function(){};q.prototype=b.prototype,g.prototype=new q,q.prototype=null}return g}},58612:(h,I,a)=>{"use strict";var c=a(17648);h.exports=Function.prototype.bind||c},40210:(h,I,a)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(ye){try{return x('"use strict"; return ('+ye+").constructor;")()}catch(be){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(ye){S=null}var g=function(){throw new d},L=S?function(){try{return arguments.callee,g}catch(ye){try{return S(arguments,"callee").get}catch(be){return g}}}():g,D=a(41405)(),B=Object.getPrototypeOf||function(ye){return ye.__proto__},j={},q=typeof Uint8Array=="undefined"?c:B(Uint8Array),W={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":D?B([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!D?c:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!D?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D?B(""[Symbol.iterator]()):c,"%Symbol%":D?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":q,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},M=function ye(be){var he;if(be==="%AsyncFunction%")he=b("async function () {}");else if(be==="%GeneratorFunction%")he=b("function* () {}");else if(be==="%AsyncGeneratorFunction%")he=b("async function* () {}");else if(be==="%AsyncGenerator%"){var ue=ye("%AsyncGeneratorFunction%");ue&&(he=ue.prototype)}else if(be==="%AsyncIteratorPrototype%"){var oe=ye("%AsyncGenerator%");oe&&(he=B(oe.prototype))}return W[be]=he,he},X={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=a(58612),C=a(17642),V=R.call(Function.call,Array.prototype.concat),J=R.call(Function.apply,Array.prototype.splice),_=R.call(Function.call,String.prototype.replace),Q=R.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fe=/\\(\\)?/g,ee=function(be){var he=Q(be,0,1),ue=Q(be,-1);if(he==="%"&&ue!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(ue==="%"&&he!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var oe=[];return _(be,Y,function(Fe,Le,Me,Pe){oe[oe.length]=Me?_(Pe,fe,"$1"):Le||Fe}),oe},ie=function(be,he){var ue=be,oe;if(C(X,ue)&&(oe=X[ue],ue="%"+oe[0]+"%"),C(W,ue)){var Fe=W[ue];if(Fe===j&&(Fe=M(ue)),typeof Fe=="undefined"&&!he)throw new d("intrinsic "+be+" exists, but is not available. Please file an issue!");return{alias:oe,name:ue,value:Fe}}throw new v("intrinsic "+be+" does not exist!")};h.exports=function(be,he){if(typeof be!="string"||be.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof he!="boolean")throw new d('"allowMissing" argument must be a boolean');var ue=ee(be),oe=ue.length>0?ue[0]:"",Fe=ie("%"+oe+"%",he),Le=Fe.name,Me=Fe.value,Pe=!1,rt=Fe.alias;rt&&(oe=rt[0],J(ue,V([0,1],rt)));for(var Ze=1,Xe=!0;Ze<ue.length;Ze+=1){var ft=ue[Ze],ht=Q(ft,0,1),bt=Q(ft,-1);if((ht==='"'||ht==="'"||ht==="`"||bt==='"'||bt==="'"||bt==="`")&&ht!==bt)throw new v("property names with quotes must have matching quotes");if((ft==="constructor"||!Xe)&&(Pe=!0),oe+="."+ft,Le="%"+oe+"%",C(W,Le))Me=W[Le];else if(Me!=null){if(!(ft in Me)){if(!he)throw new d("base intrinsic for "+be+" exists, but the property is not available.");return}if(S&&Ze+1>=ue.length){var nt=S(Me,ft);Xe=!!nt,Xe&&"get"in nt&&!("originalValue"in nt.get)?Me=nt.get:Me=Me[ft]}else Xe=C(Me,ft),Me=Me[ft];Xe&&!Pe&&(W[Le]=Me)}}return Me}},41405:(h,I,a)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=a(55419);h.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var x=42;a[c]=x;for(c in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var d=Object.getOwnPropertySymbols(a);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(a,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(a,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,a)=>{"use strict";var c=a(58612);h.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(h,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(a,c,v,x,d){var b,S,g=d*8-x-1,L=(1<<g)-1,D=L>>1,B=-7,j=v?d-1:0,q=v?-1:1,W=a[c+j];for(j+=q,b=W&(1<<-B)-1,W>>=-B,B+=g;B>0;b=b*256+a[c+j],j+=q,B-=8);for(S=b&(1<<-B)-1,b>>=-B,B+=x;B>0;S=S*256+a[c+j],j+=q,B-=8);if(b===0)b=1-D;else{if(b===L)return S?NaN:(W?-1:1)*(1/0);S=S+Math.pow(2,x),b=b-D}return(W?-1:1)*S*Math.pow(2,b-x)},I.write=function(a,c,v,x,d,b){var S,g,L,D=b*8-d-1,B=(1<<D)-1,j=B>>1,q=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=x?0:b-1,M=x?1:-1,X=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,S=B):(S=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-S))<1&&(S--,L*=2),S+j>=1?c+=q/L:c+=q*Math.pow(2,1-j),c*L>=2&&(S++,L/=2),S+j>=B?(g=0,S=B):S+j>=1?(g=(c*L-1)*Math.pow(2,d),S=S+j):(g=c*Math.pow(2,j-1)*Math.pow(2,d),S=0));d>=8;a[v+W]=g&255,W+=M,g/=256,d-=8);for(S=S<<d|g,D+=d;D>0;a[v+W]=S&255,W+=M,S/=256,D-=8);a[v+W-M]|=X*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(a){return I.call(a)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,a)=>{"use strict";var c=a(51294);h.exports=c},51294:(h,I,a)=>{"use strict";var c=a(40028),v=a(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=a(53899),h.exports.Schema=a(82409),h.exports.FAILSAFE_SCHEMA=a(75322),h.exports.JSON_SCHEMA=a(65796),h.exports.CORE_SCHEMA=a(17318),h.exports.DEFAULT_SAFE_SCHEMA=a(5972),h.exports.DEFAULT_FULL_SCHEMA=a(19321),h.exports.load=c.load,h.exports.loadAll=c.loadAll,h.exports.safeLoad=c.safeLoad,h.exports.safeLoadAll=c.safeLoadAll,h.exports.dump=v.dump,h.exports.safeDump=v.safeDump,h.exports.YAMLException=a(14884),h.exports.MINIMAL_SCHEMA=a(75322),h.exports.SAFE_SCHEMA=a(5972),h.exports.DEFAULT_SCHEMA=a(19321),h.exports.scan=x("scan"),h.exports.parse=x("parse"),h.exports.compose=x("compose"),h.exports.addConstructor=x("addConstructor")},25596:h=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function a(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,S){var g,L,D,B;if(S)for(B=Object.keys(S),g=0,L=B.length;g<L;g+=1)D=B[g],b[D]=S[D];return b}function x(b,S){var g="",L;for(L=0;L<S;L+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=a,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(19321),d=a(5972),b=Object.prototype.toString,S=Object.prototype.hasOwnProperty,g=9,L=10,D=13,B=32,j=33,q=34,W=35,M=37,X=38,R=39,C=42,V=44,J=45,_=58,Q=61,Y=62,fe=63,ee=64,ie=91,ye=93,be=96,he=123,ue=124,oe=125,Fe={};Fe[0]="\\0",Fe[7]="\\a",Fe[8]="\\b",Fe[9]="\\t",Fe[10]="\\n",Fe[11]="\\v",Fe[12]="\\f",Fe[13]="\\r",Fe[27]="\\e",Fe[34]='\\"',Fe[92]="\\\\",Fe[133]="\\N",Fe[160]="\\_",Fe[8232]="\\L",Fe[8233]="\\P";var Le=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Me(N,te){var de,ae,pe,Ae,Be,Ue,Qe;if(te===null)return{};for(de={},ae=Object.keys(te),pe=0,Ae=ae.length;pe<Ae;pe+=1)Be=ae[pe],Ue=String(te[Be]),Be.slice(0,2)==="!!"&&(Be="tag:yaml.org,2002:"+Be.slice(2)),Qe=N.compiledTypeMap.fallback[Be],Qe&&S.call(Qe.styleAliases,Ue)&&(Ue=Qe.styleAliases[Ue]),de[Be]=Ue;return de}function Pe(N){var te,de,ae;if(te=N.toString(16).toUpperCase(),N<=255)de="x",ae=2;else if(N<=65535)de="u",ae=4;else if(N<=4294967295)de="U",ae=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+de+c.repeat("0",ae-te.length)+te}function rt(N){this.schema=N.schema||x,this.indent=Math.max(1,N.indent||2),this.noArrayIndent=N.noArrayIndent||!1,this.skipInvalid=N.skipInvalid||!1,this.flowLevel=c.isNothing(N.flowLevel)?-1:N.flowLevel,this.styleMap=Me(this.schema,N.styles||null),this.sortKeys=N.sortKeys||!1,this.lineWidth=N.lineWidth||80,this.noRefs=N.noRefs||!1,this.noCompatMode=N.noCompatMode||!1,this.condenseFlow=N.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ze(N,te){for(var de=c.repeat(" ",te),ae=0,pe=-1,Ae="",Be,Ue=N.length;ae<Ue;)pe=N.indexOf(`
|
|
467
|
-
`,ae),pe===-1?(
|
|
468
|
-
`&&(
|
|
469
|
-
`+c.repeat(" ",N.indent*
|
|
489
|
+
`;function Wy({onChange:t,active:r,hasResponse:i}){return d.createElement(Vy,null,d.createElement(fh,{onClick:()=>t(0),active:r===0},i?"Edit Request":"Request"),d.createElement(fh,{onClick:()=>i&&t(1),active:r===1,disabled:!i}," ","Response"," "))}var ch=Object.defineProperty,Hy=Object.defineProperties,zy=Object.getOwnPropertyDescriptor,Gy=Object.getOwnPropertyDescriptors,Of=Object.getOwnPropertySymbols,dh=Object.prototype.hasOwnProperty,ph=Object.prototype.propertyIsEnumerable,od=(t,r,i)=>r in t?ch(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i,Xr=(t,r)=>{for(var i in r||(r={}))dh.call(r,i)&&od(t,i,r[i]);if(Of)for(var i of Of(r))ph.call(r,i)&&od(t,i,r[i]);return t},Ln=(t,r)=>Hy(t,Gy(r)),hh=(t,r)=>{var i={};for(var o in t)dh.call(t,o)&&r.indexOf(o)<0&&(i[o]=t[o]);if(t!=null&&Of)for(var o of Of(t))r.indexOf(o)<0&&ph.call(t,o)&&(i[o]=t[o]);return i},$y=(t,r,i,o)=>{for(var s=o>1?void 0:o?zy(r,i):r,p=t.length-1,y;p>=0;p--)(y=t[p])&&(s=(o?y(r,i,s):y(s))||s);return o&&s&&ch(r,i,s),s},vs=(t,r,i)=>(od(t,typeof r!="symbol"?r+"":r,i),i),vh=(t,r,i)=>new Promise((o,s)=>{var p=w=>{try{A(i.next(w))}catch(E){s(E)}},y=w=>{try{A(i.throw(w))}catch(E){s(E)}},A=w=>w.done?o(w.value):Promise.resolve(w.value).then(p,y);A((i=i.apply(t,r)).next())});function gh(t){return t.startsWith("//")?"https:"+t:t}const Ky={flex:1,display:"flex",flexDirection:"column"};let sd=class extends d.Component{constructor(t){super(t);vs(this,"formApi"),vs(this,"setFormApi",(r,i=r.getState())=>{var o=i,{values:s}=o,p=hh(o,["values"]);this.formApi=r,setTimeout(()=>{const y=Ln(Xr({},p),{values:Ln(Xr({},s),{query:(0,nr.FU)(s.query||{})})});this.setState({form:y})},0)}),vs(this,"handleChange",r=>{var i=r,{values:o}=i,s=hh(i,["values"]);const p=Ln(Xr({},s),{values:Ln(Xr({},o),{query:(0,nr.FU)(o.query||{})})});this.setState({form:p}),(0,nr.Hc)(p),this.props.operation.setRequestValues(o)}),vs(this,"handleTabChange",r=>{this.setState({activeTab:r})}),vs(this,"handleServerChange",r=>{this.setState({server:r}),this.props.operation.setActiveServer(r)}),vs(this,"handleExecute",()=>vh(this,null,function*(){var r,i,o,s,p,y,A,w;const{store:E,operation:F,onResponse:G}=this.props,{values:te,invalid:ne}=this.state.form;if((r=this.formApi)==null||r.submitForm(),ne){this.setState({shaking:!0}),setTimeout(()=>this.setState({shaking:!1}),1e3),(o=(i=E==null?void 0:E.options.events)==null?void 0:i.tryItSent)==null||o.call(i,{eventType:bl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:F.operationId,operationPath:F.path,operationHttpVerb:F.httpVerb,operationSummary:F.description});return}const oe=this.props.operation.requestBody,ye=oe&&oe.content&&oe.content.active&&oe.content.active.name||"";let ge=te.body;if(/json/.test(ye))try{ge=JSON.parse(ge)}catch($e){console.error($e)}this.setState({loading:!0});const Ae=this.state.resolvedRawSpec,me=(F.httpVerb||"").toLowerCase(),Te=(0,Ht.U2)(Ae,["paths",F.path,me,"servers"])||(0,Ht.U2)(Ae,["paths",F.path,"servers"])||(0,Ht.U2)(Ae,["servers"]);if(!Te)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const He=Te.find($e=>this.state.server.url.endsWith($e.url.endsWith("/")?$e.url.substring(0,$e.url.length-1):$e.url)),Ve=Date.now(),ze=!!window.document.documentMode;let De,Be=te.auth;if(te.auth){const $e=Object.keys(te.auth)[0],gt=(0,Ht.dw)($e);De=Ln(Xr({},Ae),{components:Ln(Xr({},Ae==null?void 0:Ae.components),{securitySchemes:Ln(Xr({},Ae==null?void 0:Ae.components.securitySchemes),{[gt]:Ln(Xr({},Ae==null?void 0:Ae.components.securitySchemes[gt]),{type:(Ae==null?void 0:Ae.components.securitySchemes[gt].type)==="openIdConnect"?"oauth2":Ae==null?void 0:Ae.components.securitySchemes[gt].type})})})}),Be=Ln(Xr({},Be),{[gt]:Be[$e]})}else De=Xr({},Ae);const We=E.options.corsProxyUrl;We&&Te.length&&(De.servers=Te.map($e=>Ln(Xr({},$e),{url:We+gh($e.url)})),De.paths=Ln(Xr({},De.paths),{[F.path]:Ln(Xr({},De.paths[F.path]),{[me]:Ln(Xr({},De.paths[F.path][me]),{servers:void 0}),servers:void 0})}));const Je=((p=(s=oe==null?void 0:oe.content)==null?void 0:s.active)==null?void 0:p.name)||null;if(Je&&ge&&ct(Je)){const $e=Object.values(ge);ge=$e.length>1?$e:$e[0]}const et={userFetch:ze&&a(54098).fetch,server:We?We+gh(He.url):He.url,serverVariables:this.state.server.variables,spec:De,pathName:F.path,method:F.httpVerb,parameters:Xr(Xr(Xr(Xr({},te.path),te.query),te.header),te.cookie),securities:{authorized:Be},requestBody:ge,requestContentType:Je,responseContentType:((y=te.header)==null?void 0:y.Accept)||null,requestInterceptor:(0,nr.Tz)(E.options,F,Be==null?void 0:Be.Authorization)};try{const $e=yield Rc.execute(et),gt=$e==null?void 0:$e.data;gt instanceof Blob&&(ct(gt.type)&&($e.fileInfo={rawData:gt,fileName:(0,nr.AM)($e.headers)}),$e.data=yield gt.text()),G==null||G({request:et,response:$e}),this.setState({response:$e,error:void 0})}catch($e){$e&&$e.response&&$e.response.data instanceof Blob&&($e.response.data=yield $e.response.data.text(),G==null||G({request:et,response:$e.response})),this.setState({response:void 0,error:$e})}finally{this.setState({loading:!1,activeTab:1,time:Date.now()-Ve}),(w=(A=E==null?void 0:E.options.events)==null?void 0:A.tryItSent)==null||w.call(A,{eventType:bl.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:F.operationId,operationPath:F.path,operationHttpVerb:F.httpVerb,operationSummary:F.description})}})),this.state={form:{values:{path:(0,nr.ZS)(t.operation.parameters,"path"),cookie:(0,nr.ZS)(t.operation.parameters,"cookie"),header:(0,nr.ZS)(t.operation.parameters,"header"),query:(0,nr.ZS)(t.operation.parameters,"query")}},shaking:!1,loading:!1,activeTab:0,server:{}}}componentDidMount(){return vh(this,null,function*(){var t;const{store:r,operation:i}=this.props,o=yield r.dereferenceSpecForTryIt(i);this.setState({resolvedRawSpec:o}),(t=this.formApi)==null||t.setValues({})})}componentDidUpdate(t){t.operation!==this.props.operation&&this.setState({response:void 0,error:void 0,activeTab:0})}render(){const{operation:t,className:r,rootElement:i}=this.props,{shaking:o,activeTab:s,form:p,response:y,loading:A,error:w}=this.state,E=!!(y||w);return d.createElement(Jy,{shaking:o,className:r,rootElement:i},d.createElement(Tn.k1,null,d.createElement(Wy,{active:s,hasResponse:E,onChange:this.handleTabChange}),this.props.onClose&&d.createElement(an.PZ,{onClick:this.props.onClose}," \u2715 ")),d.createElement(an.RE,{hidden:s!==0,"data-cy":"console-request-body"},this.renderRequest()),d.createElement(an.RE,{hidden:s!==1,"data-cy":"console-response-body"},this.renderResponse()),d.createElement(Sy,{hasResponse:E,params:p.values,operation:t,loading:A,execute:this.handleExecute}))}renderRequest(){var t;const{operation:r,store:i,properties:o,securityDefaults:s}=this.props,{form:p,resolvedRawSpec:y,server:A}=this.state,w=p.errors||{},E=w.path||w.cookie||w.header||w.query,F=y&&Wt.JsonPointer.get(y,r.pointer);let G=p.values&&p.values.auth&&Object.keys(p.values.auth)[0];(!G||!p.values.auth[G])&&(G=void 0),G&&(p.values.auth[G].token!==void 0||p.values.auth[G].client_id!==void 0||p.values.auth[G].client_secret!==void 0)&&(!p.values.auth[G].token||!p.values.auth[G].token.access_token)&&(G=void 0),G&&p.values.auth[G].username!=null&&(!p.values.auth[G].username||!p.values.auth[G].password)&&(G=void 0);const te=r.parameters||[],ne=(t=i==null?void 0:i.options.hooks)==null?void 0:t.ReplaceTryItSecurityPanel;return!y&&d.createElement(d.Fragment,null,"Loading...")||d.createElement(zl,{onChange:this.handleChange,getApi:this.setFormApi,style:Ln(Xr({},Ky),{margin:0})},d.createElement(Fy,{operation:r,onChange:this.handleServerChange}),d.createElement(Tn.UQ,{initialActiveIdx:r.security.length&&G?1:0},r.security.length&&this.formApi&&d.createElement(ad,{header:(0,uo.l)("tryItAuth"),"data-cy":"security-trigger",renderChildrenHidden:!0,error:!G&&!!w.auth,success:!!G},ne?d.createElement(Xy,{field:"auth",validate:nr.np},oe=>d.createElement(of.Q,{Hook:ne,props:{server:A,operation:r,onChange:oe,OAuth2:m}})):d.createElement(Dv,{formApi:this.formApi,form:p,operation:r,activeServer:A.url,authCorsProxyUrl:i.options.authCorsProxyUrl,securityDefaults:s}))||null,r.requestBody&&this.formApi&&d.createElement(ad,{header:(0,uo.l)("tryItBody"),"data-cy":"body-trigger",renderChildrenHidden:!0,error:!!w.body},d.createElement(fy,{validate:Yy,formApi:this.formApi,body:r.requestBody,id:r.id,resolvedBody:F==null?void 0:F.requestBody,properties:o}))||null,te.length&&d.createElement(ad,{header:(0,uo.l)("tryItParameters"),"data-cy":"parameters-trigger",error:E,renderChildrenHidden:!0},d.createElement(Uh,{operation:r,values:p.values,errors:p.errors||{}}))||null))}renderResponse(){const{response:t,error:r,time:i}=this.state;return d.createElement(yy,{response:t,error:r,time:i})}};sd=$y([Fa.Pi],sd);function Yy(){}function Jy(t){const{shaking:r,className:i,children:o,rootElement:s}=t,[p]=(0,Sr.Bs)(s),y=d.useContext(Wt.StoreContext);return d.createElement(an.q2,{scrollYOffset:y==null?void 0:y.options.scrollYOffset,shaking:r,className:i,"data-cy":"console",fullWidth:p==null?void 0:p.width},o)}function Xy(t){const{fieldApi:r,render:i,userProps:o}=Pn(Xr({},t)),{setValue:s}=r,{children:p}=o;return i(d.createElement(d.Fragment,null,p(s)))}},68929:()=>{},17648:h=>{"use strict";var I="Function.prototype.bind called on incompatible ",a=Array.prototype.slice,c=Object.prototype.toString,v="[object Function]";h.exports=function(d){var b=this;if(typeof b!="function"||c.call(b)!==v)throw new TypeError(I+b);for(var S=a.call(arguments,1),g,L=function(){if(this instanceof g){var W=b.apply(this,S.concat(a.call(arguments)));return Object(W)===W?W:this}else return b.apply(d,S.concat(a.call(arguments)))},D=Math.max(0,b.length-S.length),B=[],j=0;j<D;j++)B.push("$"+j);if(g=Function("binder","return function ("+B.join(",")+"){ return binder.apply(this,arguments); }")(L),b.prototype){var q=function(){};q.prototype=b.prototype,g.prototype=new q,q.prototype=null}return g}},58612:(h,I,a)=>{"use strict";var c=a(17648);h.exports=Function.prototype.bind||c},40210:(h,I,a)=>{"use strict";var c,v=SyntaxError,x=Function,d=TypeError,b=function(xe){try{return x('"use strict"; return ('+xe+").constructor;")()}catch(we){}},S=Object.getOwnPropertyDescriptor;if(S)try{S({},"")}catch(xe){S=null}var g=function(){throw new d},L=S?function(){try{return arguments.callee,g}catch(xe){try{return S(arguments,"callee").get}catch(we){return g}}}():g,D=a(41405)(),B=Object.getPrototypeOf||function(xe){return xe.__proto__},j={},q=typeof Uint8Array=="undefined"?c:B(Uint8Array),W={"%AggregateError%":typeof AggregateError=="undefined"?c:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?c:ArrayBuffer,"%ArrayIteratorPrototype%":D?B([][Symbol.iterator]()):c,"%AsyncFromSyncIteratorPrototype%":c,"%AsyncFunction%":j,"%AsyncGenerator%":j,"%AsyncGeneratorFunction%":j,"%AsyncIteratorPrototype%":j,"%Atomics%":typeof Atomics=="undefined"?c:Atomics,"%BigInt%":typeof BigInt=="undefined"?c:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?c:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?c:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?c:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?c:FinalizationRegistry,"%Function%":x,"%GeneratorFunction%":j,"%Int8Array%":typeof Int8Array=="undefined"?c:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?c:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?c:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D?B(B([][Symbol.iterator]())):c,"%JSON%":typeof JSON=="object"?JSON:c,"%Map%":typeof Map=="undefined"?c:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!D?c:B(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?c:Promise,"%Proxy%":typeof Proxy=="undefined"?c:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?c:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?c:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!D?c:B(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?c:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D?B(""[Symbol.iterator]()):c,"%Symbol%":D?Symbol:c,"%SyntaxError%":v,"%ThrowTypeError%":L,"%TypedArray%":q,"%TypeError%":d,"%Uint8Array%":typeof Uint8Array=="undefined"?c:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?c:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?c:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?c:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?c:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?c:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?c:WeakSet},M=function xe(we){var he;if(we==="%AsyncFunction%")he=b("async function () {}");else if(we==="%GeneratorFunction%")he=b("function* () {}");else if(we==="%AsyncGeneratorFunction%")he=b("async function* () {}");else if(we==="%AsyncGenerator%"){var fe=xe("%AsyncGeneratorFunction%");fe&&(he=fe.prototype)}else if(we==="%AsyncIteratorPrototype%"){var se=xe("%AsyncGenerator%");se&&(he=B(se.prototype))}return W[we]=he,he},X={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},R=a(58612),C=a(17642),V=R.call(Function.call,Array.prototype.concat),J=R.call(Function.apply,Array.prototype.splice),_=R.call(Function.call,String.prototype.replace),Q=R.call(Function.call,String.prototype.slice),Y=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ce=/\\(\\)?/g,ee=function(we){var he=Q(we,0,1),fe=Q(we,-1);if(he==="%"&&fe!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");if(fe==="%"&&he!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var se=[];return _(we,Y,function(Fe,Le,Me,Pe){se[se.length]=Me?_(Pe,ce,"$1"):Le||Fe}),se},ie=function(we,he){var fe=we,se;if(C(X,fe)&&(se=X[fe],fe="%"+se[0]+"%"),C(W,fe)){var Fe=W[fe];if(Fe===j&&(Fe=M(fe)),typeof Fe=="undefined"&&!he)throw new d("intrinsic "+we+" exists, but is not available. Please file an issue!");return{alias:se,name:fe,value:Fe}}throw new v("intrinsic "+we+" does not exist!")};h.exports=function(we,he){if(typeof we!="string"||we.length===0)throw new d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof he!="boolean")throw new d('"allowMissing" argument must be a boolean');var fe=ee(we),se=fe.length>0?fe[0]:"",Fe=ie("%"+se+"%",he),Le=Fe.name,Me=Fe.value,Pe=!1,rt=Fe.alias;rt&&(se=rt[0],J(fe,V([0,1],rt)));for(var Ze=1,Xe=!0;Ze<fe.length;Ze+=1){var ft=fe[Ze],ht=Q(ft,0,1),wt=Q(ft,-1);if((ht==='"'||ht==="'"||ht==="`"||wt==='"'||wt==="'"||wt==="`")&&ht!==wt)throw new v("property names with quotes must have matching quotes");if((ft==="constructor"||!Xe)&&(Pe=!0),se+="."+ft,Le="%"+se+"%",C(W,Le))Me=W[Le];else if(Me!=null){if(!(ft in Me)){if(!he)throw new d("base intrinsic for "+we+" exists, but the property is not available.");return}if(S&&Ze+1>=fe.length){var nt=S(Me,ft);Xe=!!nt,Xe&&"get"in nt&&!("originalValue"in nt.get)?Me=nt.get:Me=Me[ft]}else Xe=C(Me,ft),Me=Me[ft];Xe&&!Pe&&(W[Le]=Me)}}return Me}},41405:(h,I,a)=>{"use strict";var c=typeof Symbol!="undefined"&&Symbol,v=a(55419);h.exports=function(){return typeof c!="function"||typeof Symbol!="function"||typeof c("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:v()}},55419:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var a={},c=Symbol("test"),v=Object(c);if(typeof c=="string"||Object.prototype.toString.call(c)!=="[object Symbol]"||Object.prototype.toString.call(v)!=="[object Symbol]")return!1;var x=42;a[c]=x;for(c in a)return!1;if(typeof Object.keys=="function"&&Object.keys(a).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(a).length!==0)return!1;var d=Object.getOwnPropertySymbols(a);if(d.length!==1||d[0]!==c||!Object.prototype.propertyIsEnumerable.call(a,c))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var b=Object.getOwnPropertyDescriptor(a,c);if(b.value!==x||b.enumerable!==!0)return!1}return!0}},17642:(h,I,a)=>{"use strict";var c=a(58612);h.exports=c.call(Function.call,Object.prototype.hasOwnProperty)},80645:(h,I)=>{/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */I.read=function(a,c,v,x,d){var b,S,g=d*8-x-1,L=(1<<g)-1,D=L>>1,B=-7,j=v?d-1:0,q=v?-1:1,W=a[c+j];for(j+=q,b=W&(1<<-B)-1,W>>=-B,B+=g;B>0;b=b*256+a[c+j],j+=q,B-=8);for(S=b&(1<<-B)-1,b>>=-B,B+=x;B>0;S=S*256+a[c+j],j+=q,B-=8);if(b===0)b=1-D;else{if(b===L)return S?NaN:(W?-1:1)*(1/0);S=S+Math.pow(2,x),b=b-D}return(W?-1:1)*S*Math.pow(2,b-x)},I.write=function(a,c,v,x,d,b){var S,g,L,D=b*8-d-1,B=(1<<D)-1,j=B>>1,q=d===23?Math.pow(2,-24)-Math.pow(2,-77):0,W=x?0:b-1,M=x?1:-1,X=c<0||c===0&&1/c<0?1:0;for(c=Math.abs(c),isNaN(c)||c===1/0?(g=isNaN(c)?1:0,S=B):(S=Math.floor(Math.log(c)/Math.LN2),c*(L=Math.pow(2,-S))<1&&(S--,L*=2),S+j>=1?c+=q/L:c+=q*Math.pow(2,1-j),c*L>=2&&(S++,L/=2),S+j>=B?(g=0,S=B):S+j>=1?(g=(c*L-1)*Math.pow(2,d),S=S+j):(g=c*Math.pow(2,j-1)*Math.pow(2,d),S=0));d>=8;a[v+W]=g&255,W+=M,g/=256,d-=8);for(S=S<<d|g,D+=d;D>0;a[v+W]=S&255,W+=M,S/=256,D-=8);a[v+W-M]|=X*128}},5826:h=>{var I={}.toString;h.exports=Array.isArray||function(a){return I.call(a)=="[object Array]"}},57514:h=>{h.exports=window.FormData},93320:(h,I,a)=>{"use strict";var c=a(51294);h.exports=c},51294:(h,I,a)=>{"use strict";var c=a(40028),v=a(96157);function x(d){return function(){throw new Error("Function "+d+" is deprecated and cannot be used.")}}h.exports.Type=a(53899),h.exports.Schema=a(82409),h.exports.FAILSAFE_SCHEMA=a(75322),h.exports.JSON_SCHEMA=a(65796),h.exports.CORE_SCHEMA=a(17318),h.exports.DEFAULT_SAFE_SCHEMA=a(5972),h.exports.DEFAULT_FULL_SCHEMA=a(19321),h.exports.load=c.load,h.exports.loadAll=c.loadAll,h.exports.safeLoad=c.safeLoad,h.exports.safeLoadAll=c.safeLoadAll,h.exports.dump=v.dump,h.exports.safeDump=v.safeDump,h.exports.YAMLException=a(14884),h.exports.MINIMAL_SCHEMA=a(75322),h.exports.SAFE_SCHEMA=a(5972),h.exports.DEFAULT_SCHEMA=a(19321),h.exports.scan=x("scan"),h.exports.parse=x("parse"),h.exports.compose=x("compose"),h.exports.addConstructor=x("addConstructor")},25596:h=>{"use strict";function I(b){return typeof b=="undefined"||b===null}function a(b){return typeof b=="object"&&b!==null}function c(b){return Array.isArray(b)?b:I(b)?[]:[b]}function v(b,S){var g,L,D,B;if(S)for(B=Object.keys(S),g=0,L=B.length;g<L;g+=1)D=B[g],b[D]=S[D];return b}function x(b,S){var g="",L;for(L=0;L<S;L+=1)g+=b;return g}function d(b){return b===0&&Number.NEGATIVE_INFINITY===1/b}h.exports.isNothing=I,h.exports.isObject=a,h.exports.toArray=c,h.exports.repeat=x,h.exports.isNegativeZero=d,h.exports.extend=v},96157:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(19321),d=a(5972),b=Object.prototype.toString,S=Object.prototype.hasOwnProperty,g=9,L=10,D=13,B=32,j=33,q=34,W=35,M=37,X=38,R=39,C=42,V=44,J=45,_=58,Q=61,Y=62,ce=63,ee=64,ie=91,xe=93,we=96,he=123,fe=124,se=125,Fe={};Fe[0]="\\0",Fe[7]="\\a",Fe[8]="\\b",Fe[9]="\\t",Fe[10]="\\n",Fe[11]="\\v",Fe[12]="\\f",Fe[13]="\\r",Fe[27]="\\e",Fe[34]='\\"',Fe[92]="\\\\",Fe[133]="\\N",Fe[160]="\\_",Fe[8232]="\\L",Fe[8233]="\\P";var Le=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Me(N,re){var de,ae,pe,Ee,Ue,je,Qe;if(re===null)return{};for(de={},ae=Object.keys(re),pe=0,Ee=ae.length;pe<Ee;pe+=1)Ue=ae[pe],je=String(re[Ue]),Ue.slice(0,2)==="!!"&&(Ue="tag:yaml.org,2002:"+Ue.slice(2)),Qe=N.compiledTypeMap.fallback[Ue],Qe&&S.call(Qe.styleAliases,je)&&(je=Qe.styleAliases[je]),de[Ue]=je;return de}function Pe(N){var re,de,ae;if(re=N.toString(16).toUpperCase(),N<=255)de="x",ae=2;else if(N<=65535)de="u",ae=4;else if(N<=4294967295)de="U",ae=8;else throw new v("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+de+c.repeat("0",ae-re.length)+re}function rt(N){this.schema=N.schema||x,this.indent=Math.max(1,N.indent||2),this.noArrayIndent=N.noArrayIndent||!1,this.skipInvalid=N.skipInvalid||!1,this.flowLevel=c.isNothing(N.flowLevel)?-1:N.flowLevel,this.styleMap=Me(this.schema,N.styles||null),this.sortKeys=N.sortKeys||!1,this.lineWidth=N.lineWidth||80,this.noRefs=N.noRefs||!1,this.noCompatMode=N.noCompatMode||!1,this.condenseFlow=N.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Ze(N,re){for(var de=c.repeat(" ",re),ae=0,pe=-1,Ee="",Ue,je=N.length;ae<je;)pe=N.indexOf(`
|
|
490
|
+
`,ae),pe===-1?(Ue=N.slice(ae),ae=je):(Ue=N.slice(ae,pe+1),ae=pe+1),Ue.length&&Ue!==`
|
|
491
|
+
`&&(Ee+=de),Ee+=Ue;return Ee}function Xe(N,re){return`
|
|
492
|
+
`+c.repeat(" ",N.indent*re)}function ft(N,re){var de,ae,pe;for(de=0,ae=N.implicitTypes.length;de<ae;de+=1)if(pe=N.implicitTypes[de],pe.resolve(re))return!0;return!1}function ht(N){return N===B||N===g}function wt(N){return 32<=N&&N<=126||161<=N&&N<=55295&&N!==8232&&N!==8233||57344<=N&&N<=65533&&N!==65279||65536<=N&&N<=1114111}function nt(N){return wt(N)&&!ht(N)&&N!==65279&&N!==D&&N!==L}function ut(N,re){return wt(N)&&N!==65279&&N!==V&&N!==ie&&N!==xe&&N!==he&&N!==se&&N!==_&&(N!==W||re&&nt(re))}function mt(N){return wt(N)&&N!==65279&&!ht(N)&&N!==J&&N!==ce&&N!==_&&N!==V&&N!==ie&&N!==xe&&N!==he&&N!==se&&N!==W&&N!==X&&N!==C&&N!==j&&N!==fe&&N!==Q&&N!==Y&&N!==R&&N!==q&&N!==M&&N!==ee&&N!==we}function xt(N){var re=/^\n* /;return re.test(N)}var pt=1,Mt=2,kt=3,Et=4,zt=5;function jt(N,re,de,ae,pe){var Ee,Ue,je,Qe=!1,vt=!1,At=ae!==-1,Bt=-1,Pt=mt(N.charCodeAt(0))&&!ht(N.charCodeAt(N.length-1));if(re)for(Ee=0;Ee<N.length;Ee++){if(Ue=N.charCodeAt(Ee),!wt(Ue))return zt;je=Ee>0?N.charCodeAt(Ee-1):null,Pt=Pt&&ut(Ue,je)}else{for(Ee=0;Ee<N.length;Ee++){if(Ue=N.charCodeAt(Ee),Ue===L)Qe=!0,At&&(vt=vt||Ee-Bt-1>ae&&N[Bt+1]!==" ",Bt=Ee);else if(!wt(Ue))return zt;je=Ee>0?N.charCodeAt(Ee-1):null,Pt=Pt&&ut(Ue,je)}vt=vt||At&&Ee-Bt-1>ae&&N[Bt+1]!==" "}return!Qe&&!vt?Pt&&!pe(N)?pt:Mt:de>9&&xt(N)?zt:vt?Et:kt}function Vt(N,re,de,ae){N.dump=function(){if(re.length===0)return"''";if(!N.noCompatMode&&Le.indexOf(re)!==-1)return"'"+re+"'";var pe=N.indent*Math.max(1,de),Ee=N.lineWidth===-1?-1:Math.max(Math.min(N.lineWidth,40),N.lineWidth-pe),Ue=ae||N.flowLevel>-1&&de>=N.flowLevel;function je(Qe){return ft(N,Qe)}switch(jt(re,Ue,N.indent,Ee,je)){case pt:return re;case Mt:return"'"+re.replace(/'/g,"''")+"'";case kt:return"|"+St(re,N.indent)+Dt(Ze(re,pe));case Et:return">"+St(re,N.indent)+Dt(Ze(ve(re,Ee),pe));case zt:return'"'+$(re,Ee)+'"';default:throw new v("impossible error: invalid scalar style")}}()}function St(N,re){var de=xt(N)?String(re):"",ae=N[N.length-1]===`
|
|
470
493
|
`,pe=ae&&(N[N.length-2]===`
|
|
471
494
|
`||N===`
|
|
472
|
-
`),
|
|
495
|
+
`),Ee=pe?"+":ae?"":"-";return de+Ee+`
|
|
473
496
|
`}function Dt(N){return N[N.length-1]===`
|
|
474
|
-
`?N.slice(0,-1):N}function ve(N,
|
|
475
|
-
`);return vt=vt!==-1?vt:N.length,de.lastIndex=vt,z(N.slice(0,vt),
|
|
476
|
-
`||N[0]===" ",
|
|
477
|
-
`:"")+z(Qe,
|
|
478
|
-
`+N.slice(pe,
|
|
479
|
-
`,N.length-pe>
|
|
480
|
-
`+N.slice(
|
|
481
|
-
`:""}function
|
|
482
|
-
`:P===118?"\v":P===102?"\f":P===114?"\r":P===101?"":P===32?" ":P===34?'"':P===47?"/":P===92?"\\":P===78?"\x85":P===95?"\xA0":P===76?"\u2028":P===80?"\u2029":""}function he(P){return P<=65535?String.fromCharCode(P):String.fromCharCode((P-65536>>10)+55296,(P-65536&1023)+56320)}for(var
|
|
483
|
-
`,Re-1))}function
|
|
484
|
-
`,
|
|
485
|
-
`);break}for(T?Q(
|
|
486
|
-
`,
|
|
487
|
-
`,de+1)):de===0?
|
|
497
|
+
`?N.slice(0,-1):N}function ve(N,re){for(var de=/(\n+)([^\n]*)/g,ae=function(){var vt=N.indexOf(`
|
|
498
|
+
`);return vt=vt!==-1?vt:N.length,de.lastIndex=vt,z(N.slice(0,vt),re)}(),pe=N[0]===`
|
|
499
|
+
`||N[0]===" ",Ee,Ue;Ue=de.exec(N);){var je=Ue[1],Qe=Ue[2];Ee=Qe[0]===" ",ae+=je+(!pe&&!Ee&&Qe!==""?`
|
|
500
|
+
`:"")+z(Qe,re),pe=Ee}return ae}function z(N,re){if(N===""||N[0]===" ")return N;for(var de=/ [^ ]/g,ae,pe=0,Ee,Ue=0,je=0,Qe="";ae=de.exec(N);)je=ae.index,je-pe>re&&(Ee=Ue>pe?Ue:je,Qe+=`
|
|
501
|
+
`+N.slice(pe,Ee),pe=Ee+1),Ue=je;return Qe+=`
|
|
502
|
+
`,N.length-pe>re&&Ue>pe?Qe+=N.slice(pe,Ue)+`
|
|
503
|
+
`+N.slice(Ue+1):Qe+=N.slice(pe),Qe.slice(1)}function $(N){for(var re="",de,ae,pe,Ee=0;Ee<N.length;Ee++){if(de=N.charCodeAt(Ee),de>=55296&&de<=56319&&(ae=N.charCodeAt(Ee+1),ae>=56320&&ae<=57343)){re+=Pe((de-55296)*1024+ae-56320+65536),Ee++;continue}pe=Fe[de],re+=!pe&&wt(de)?N[Ee]:pe||Pe(de)}return re}function Se(N,re,de){var ae="",pe=N.tag,Ee,Ue;for(Ee=0,Ue=de.length;Ee<Ue;Ee+=1)Re(N,re,de[Ee],!1,!1)&&(Ee!==0&&(ae+=","+(N.condenseFlow?"":" ")),ae+=N.dump);N.tag=pe,N.dump="["+ae+"]"}function Ie(N,re,de,ae){var pe="",Ee=N.tag,Ue,je;for(Ue=0,je=de.length;Ue<je;Ue+=1)Re(N,re+1,de[Ue],!0,!0)&&((!ae||Ue!==0)&&(pe+=Xe(N,re)),N.dump&&L===N.dump.charCodeAt(0)?pe+="-":pe+="- ",pe+=N.dump);N.tag=Ee,N.dump=pe||"[]"}function Ge(N,re,de){var ae="",pe=N.tag,Ee=Object.keys(de),Ue,je,Qe,vt,At;for(Ue=0,je=Ee.length;Ue<je;Ue+=1)At="",Ue!==0&&(At+=", "),N.condenseFlow&&(At+='"'),Qe=Ee[Ue],vt=de[Qe],!!Re(N,re,Qe,!1,!1)&&(N.dump.length>1024&&(At+="? "),At+=N.dump+(N.condenseFlow?'"':"")+":"+(N.condenseFlow?"":" "),!!Re(N,re,vt,!1,!1)&&(At+=N.dump,ae+=At));N.tag=pe,N.dump="{"+ae+"}"}function Ke(N,re,de,ae){var pe="",Ee=N.tag,Ue=Object.keys(de),je,Qe,vt,At,Bt,Pt;if(N.sortKeys===!0)Ue.sort();else if(typeof N.sortKeys=="function")Ue.sort(N.sortKeys);else if(N.sortKeys)throw new v("sortKeys must be a boolean or a function");for(je=0,Qe=Ue.length;je<Qe;je+=1)Pt="",(!ae||je!==0)&&(Pt+=Xe(N,re)),vt=Ue[je],At=de[vt],!!Re(N,re+1,vt,!0,!0,!0)&&(Bt=N.tag!==null&&N.tag!=="?"||N.dump&&N.dump.length>1024,Bt&&(N.dump&&L===N.dump.charCodeAt(0)?Pt+="?":Pt+="? "),Pt+=N.dump,Bt&&(Pt+=Xe(N,re)),!!Re(N,re+1,At,!0,Bt)&&(N.dump&&L===N.dump.charCodeAt(0)?Pt+=":":Pt+=": ",Pt+=N.dump,pe+=Pt));N.tag=Ee,N.dump=pe||"{}"}function P(N,re,de){var ae,pe,Ee,Ue,je,Qe;for(pe=de?N.explicitTypes:N.implicitTypes,Ee=0,Ue=pe.length;Ee<Ue;Ee+=1)if(je=pe[Ee],(je.instanceOf||je.predicate)&&(!je.instanceOf||typeof re=="object"&&re instanceof je.instanceOf)&&(!je.predicate||je.predicate(re))){if(N.tag=de?je.tag:"?",je.represent){if(Qe=N.styleMap[je.tag]||je.defaultStyle,b.call(je.represent)==="[object Function]")ae=je.represent(re,Qe);else if(S.call(je.represent,Qe))ae=je.represent[Qe](re,Qe);else throw new v("!<"+je.tag+'> tag resolver accepts not "'+Qe+'" style');N.dump=ae}return!0}return!1}function Re(N,re,de,ae,pe,Ee){N.tag=null,N.dump=de,P(N,de,!1)||P(N,de,!0);var Ue=b.call(N.dump);ae&&(ae=N.flowLevel<0||N.flowLevel>re);var je=Ue==="[object Object]"||Ue==="[object Array]",Qe,vt;if(je&&(Qe=N.duplicates.indexOf(de),vt=Qe!==-1),(N.tag!==null&&N.tag!=="?"||vt||N.indent!==2&&re>0)&&(pe=!1),vt&&N.usedDuplicates[Qe])N.dump="*ref_"+Qe;else{if(je&&vt&&!N.usedDuplicates[Qe]&&(N.usedDuplicates[Qe]=!0),Ue==="[object Object]")ae&&Object.keys(N.dump).length!==0?(Ke(N,re,N.dump,pe),vt&&(N.dump="&ref_"+Qe+N.dump)):(Ge(N,re,N.dump),vt&&(N.dump="&ref_"+Qe+" "+N.dump));else if(Ue==="[object Array]"){var At=N.noArrayIndent&&re>0?re-1:re;ae&&N.dump.length!==0?(Ie(N,At,N.dump,pe),vt&&(N.dump="&ref_"+Qe+N.dump)):(Se(N,At,N.dump),vt&&(N.dump="&ref_"+Qe+" "+N.dump))}else if(Ue==="[object String]")N.tag!=="?"&&Vt(N,N.dump,re,Ee);else{if(N.skipInvalid)return!1;throw new v("unacceptable kind of an object to dump "+Ue)}N.tag!==null&&N.tag!=="?"&&(N.dump="!<"+N.tag+"> "+N.dump)}return!0}function K(N,re){var de=[],ae=[],pe,Ee;for(T(N,de,ae),pe=0,Ee=ae.length;pe<Ee;pe+=1)re.duplicates.push(de[ae[pe]]);re.usedDuplicates=new Array(Ee)}function T(N,re,de){var ae,pe,Ee;if(N!==null&&typeof N=="object")if(pe=re.indexOf(N),pe!==-1)de.indexOf(pe)===-1&&de.push(pe);else if(re.push(N),Array.isArray(N))for(pe=0,Ee=N.length;pe<Ee;pe+=1)T(N[pe],re,de);else for(ae=Object.keys(N),pe=0,Ee=ae.length;pe<Ee;pe+=1)T(N[ae[pe]],re,de)}function O(N,re){re=re||{};var de=new rt(re);return de.noRefs||K(N,de),Re(de,0,N,!0,!0)?de.dump+`
|
|
504
|
+
`:""}function le(N,re){return O(N,c.extend({schema:d},re))}h.exports.dump=O,h.exports.safeDump=le},14884:h=>{"use strict";function I(a,c){Error.call(this),this.name="YAMLException",this.reason=a,this.mark=c,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}I.prototype=Object.create(Error.prototype),I.prototype.constructor=I,I.prototype.toString=function(c){var v=this.name+": ";return v+=this.reason||"(unknown reason)",!c&&this.mark&&(v+=" "+this.mark.toString()),v},h.exports=I},40028:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(77334),d=a(5972),b=a(19321),S=Object.prototype.hasOwnProperty,g=1,L=2,D=3,B=4,j=1,q=2,W=3,M=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,X=/[\x85\u2028\u2029]/,R=/[,\[\]\{\}]/,C=/^(?:!|!!|![a-z\-]+!)$/i,V=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function J(P){return Object.prototype.toString.call(P)}function _(P){return P===10||P===13}function Q(P){return P===9||P===32}function Y(P){return P===9||P===32||P===10||P===13}function ce(P){return P===44||P===91||P===93||P===123||P===125}function ee(P){var Re;return 48<=P&&P<=57?P-48:(Re=P|32,97<=Re&&Re<=102?Re-97+10:-1)}function ie(P){return P===120?2:P===117?4:P===85?8:0}function xe(P){return 48<=P&&P<=57?P-48:-1}function we(P){return P===48?"\0":P===97?"\x07":P===98?"\b":P===116||P===9?" ":P===110?`
|
|
505
|
+
`:P===118?"\v":P===102?"\f":P===114?"\r":P===101?"":P===32?" ":P===34?'"':P===47?"/":P===92?"\\":P===78?"\x85":P===95?"\xA0":P===76?"\u2028":P===80?"\u2029":""}function he(P){return P<=65535?String.fromCharCode(P):String.fromCharCode((P-65536>>10)+55296,(P-65536&1023)+56320)}for(var fe=new Array(256),se=new Array(256),Fe=0;Fe<256;Fe++)fe[Fe]=we(Fe)?1:0,se[Fe]=we(Fe);function Le(P,Re){this.input=P,this.filename=Re.filename||null,this.schema=Re.schema||b,this.onWarning=Re.onWarning||null,this.legacy=Re.legacy||!1,this.json=Re.json||!1,this.listener=Re.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=P.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function Me(P,Re){return new v(Re,new x(P.filename,P.input,P.position,P.line,P.position-P.lineStart))}function Pe(P,Re){throw Me(P,Re)}function rt(P,Re){P.onWarning&&P.onWarning.call(null,Me(P,Re))}var Ze={YAML:function(Re,K,T){var O,le,N;Re.version!==null&&Pe(Re,"duplication of %YAML directive"),T.length!==1&&Pe(Re,"YAML directive accepts exactly one argument"),O=/^([0-9]+)\.([0-9]+)$/.exec(T[0]),O===null&&Pe(Re,"ill-formed argument of the YAML directive"),le=parseInt(O[1],10),N=parseInt(O[2],10),le!==1&&Pe(Re,"unacceptable YAML version of the document"),Re.version=T[0],Re.checkLineBreaks=N<2,N!==1&&N!==2&&rt(Re,"unsupported YAML version of the document")},TAG:function(Re,K,T){var O,le;T.length!==2&&Pe(Re,"TAG directive accepts exactly two arguments"),O=T[0],le=T[1],C.test(O)||Pe(Re,"ill-formed tag handle (first argument) of the TAG directive"),S.call(Re.tagMap,O)&&Pe(Re,'there is a previously declared suffix for "'+O+'" tag handle'),V.test(le)||Pe(Re,"ill-formed tag prefix (second argument) of the TAG directive"),Re.tagMap[O]=le}};function Xe(P,Re,K,T){var O,le,N,re;if(Re<K){if(re=P.input.slice(Re,K),T)for(O=0,le=re.length;O<le;O+=1)N=re.charCodeAt(O),N===9||32<=N&&N<=1114111||Pe(P,"expected valid JSON character");else M.test(re)&&Pe(P,"the stream contains non-printable characters");P.result+=re}}function ft(P,Re,K,T){var O,le,N,re;for(c.isObject(K)||Pe(P,"cannot merge mappings; the provided source object is unacceptable"),O=Object.keys(K),N=0,re=O.length;N<re;N+=1)le=O[N],S.call(Re,le)||(Re[le]=K[le],T[le]=!0)}function ht(P,Re,K,T,O,le,N,re){var de,ae;if(Array.isArray(O))for(O=Array.prototype.slice.call(O),de=0,ae=O.length;de<ae;de+=1)Array.isArray(O[de])&&Pe(P,"nested arrays are not supported inside keys"),typeof O=="object"&&J(O[de])==="[object Object]"&&(O[de]="[object Object]");if(typeof O=="object"&&J(O)==="[object Object]"&&(O="[object Object]"),O=String(O),Re===null&&(Re={}),T==="tag:yaml.org,2002:merge")if(Array.isArray(le))for(de=0,ae=le.length;de<ae;de+=1)ft(P,Re,le[de],K);else ft(P,Re,le,K);else!P.json&&!S.call(K,O)&&S.call(Re,O)&&(P.line=N||P.line,P.position=re||P.position,Pe(P,"duplicated mapping key")),Re[O]=le,delete K[O];return Re}function wt(P){var Re;Re=P.input.charCodeAt(P.position),Re===10?P.position++:Re===13?(P.position++,P.input.charCodeAt(P.position)===10&&P.position++):Pe(P,"a line break is expected"),P.line+=1,P.lineStart=P.position}function nt(P,Re,K){for(var T=0,O=P.input.charCodeAt(P.position);O!==0;){for(;Q(O);)O=P.input.charCodeAt(++P.position);if(Re&&O===35)do O=P.input.charCodeAt(++P.position);while(O!==10&&O!==13&&O!==0);if(_(O))for(wt(P),O=P.input.charCodeAt(P.position),T++,P.lineIndent=0;O===32;)P.lineIndent++,O=P.input.charCodeAt(++P.position);else break}return K!==-1&&T!==0&&P.lineIndent<K&&rt(P,"deficient indentation"),T}function ut(P){var Re=P.position,K;return K=P.input.charCodeAt(Re),!!((K===45||K===46)&&K===P.input.charCodeAt(Re+1)&&K===P.input.charCodeAt(Re+2)&&(Re+=3,K=P.input.charCodeAt(Re),K===0||Y(K)))}function mt(P,Re){Re===1?P.result+=" ":Re>1&&(P.result+=c.repeat(`
|
|
506
|
+
`,Re-1))}function xt(P,Re,K){var T,O,le,N,re,de,ae,pe,Ee=P.kind,Ue=P.result,je;if(je=P.input.charCodeAt(P.position),Y(je)||ce(je)||je===35||je===38||je===42||je===33||je===124||je===62||je===39||je===34||je===37||je===64||je===96||(je===63||je===45)&&(O=P.input.charCodeAt(P.position+1),Y(O)||K&&ce(O)))return!1;for(P.kind="scalar",P.result="",le=N=P.position,re=!1;je!==0;){if(je===58){if(O=P.input.charCodeAt(P.position+1),Y(O)||K&&ce(O))break}else if(je===35){if(T=P.input.charCodeAt(P.position-1),Y(T))break}else{if(P.position===P.lineStart&&ut(P)||K&&ce(je))break;if(_(je))if(de=P.line,ae=P.lineStart,pe=P.lineIndent,nt(P,!1,-1),P.lineIndent>=Re){re=!0,je=P.input.charCodeAt(P.position);continue}else{P.position=N,P.line=de,P.lineStart=ae,P.lineIndent=pe;break}}re&&(Xe(P,le,N,!1),mt(P,P.line-de),le=N=P.position,re=!1),Q(je)||(N=P.position+1),je=P.input.charCodeAt(++P.position)}return Xe(P,le,N,!1),P.result?!0:(P.kind=Ee,P.result=Ue,!1)}function pt(P,Re){var K,T,O;if(K=P.input.charCodeAt(P.position),K!==39)return!1;for(P.kind="scalar",P.result="",P.position++,T=O=P.position;(K=P.input.charCodeAt(P.position))!==0;)if(K===39)if(Xe(P,T,P.position,!0),K=P.input.charCodeAt(++P.position),K===39)T=P.position,P.position++,O=P.position;else return!0;else _(K)?(Xe(P,T,O,!0),mt(P,nt(P,!1,Re)),T=O=P.position):P.position===P.lineStart&&ut(P)?Pe(P,"unexpected end of the document within a single quoted scalar"):(P.position++,O=P.position);Pe(P,"unexpected end of the stream within a single quoted scalar")}function Mt(P,Re){var K,T,O,le,N,re;if(re=P.input.charCodeAt(P.position),re!==34)return!1;for(P.kind="scalar",P.result="",P.position++,K=T=P.position;(re=P.input.charCodeAt(P.position))!==0;){if(re===34)return Xe(P,K,P.position,!0),P.position++,!0;if(re===92){if(Xe(P,K,P.position,!0),re=P.input.charCodeAt(++P.position),_(re))nt(P,!1,Re);else if(re<256&&fe[re])P.result+=se[re],P.position++;else if((N=ie(re))>0){for(O=N,le=0;O>0;O--)re=P.input.charCodeAt(++P.position),(N=ee(re))>=0?le=(le<<4)+N:Pe(P,"expected hexadecimal character");P.result+=he(le),P.position++}else Pe(P,"unknown escape sequence");K=T=P.position}else _(re)?(Xe(P,K,T,!0),mt(P,nt(P,!1,Re)),K=T=P.position):P.position===P.lineStart&&ut(P)?Pe(P,"unexpected end of the document within a double quoted scalar"):(P.position++,T=P.position)}Pe(P,"unexpected end of the stream within a double quoted scalar")}function kt(P,Re){var K=!0,T,O=P.tag,le,N=P.anchor,re,de,ae,pe,Ee,Ue={},je,Qe,vt,At;if(At=P.input.charCodeAt(P.position),At===91)de=93,Ee=!1,le=[];else if(At===123)de=125,Ee=!0,le={};else return!1;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),At=P.input.charCodeAt(++P.position);At!==0;){if(nt(P,!0,Re),At=P.input.charCodeAt(P.position),At===de)return P.position++,P.tag=O,P.anchor=N,P.kind=Ee?"mapping":"sequence",P.result=le,!0;K||Pe(P,"missed comma between flow collection entries"),Qe=je=vt=null,ae=pe=!1,At===63&&(re=P.input.charCodeAt(P.position+1),Y(re)&&(ae=pe=!0,P.position++,nt(P,!0,Re))),T=P.line,ve(P,Re,g,!1,!0),Qe=P.tag,je=P.result,nt(P,!0,Re),At=P.input.charCodeAt(P.position),(pe||P.line===T)&&At===58&&(ae=!0,At=P.input.charCodeAt(++P.position),nt(P,!0,Re),ve(P,Re,g,!1,!0),vt=P.result),Ee?ht(P,le,Ue,Qe,je,vt):ae?le.push(ht(P,null,Ue,Qe,je,vt)):le.push(je),nt(P,!0,Re),At=P.input.charCodeAt(P.position),At===44?(K=!0,At=P.input.charCodeAt(++P.position)):K=!1}Pe(P,"unexpected end of the stream within a flow collection")}function Et(P,Re){var K,T,O=j,le=!1,N=!1,re=Re,de=0,ae=!1,pe,Ee;if(Ee=P.input.charCodeAt(P.position),Ee===124)T=!1;else if(Ee===62)T=!0;else return!1;for(P.kind="scalar",P.result="";Ee!==0;)if(Ee=P.input.charCodeAt(++P.position),Ee===43||Ee===45)j===O?O=Ee===43?W:q:Pe(P,"repeat of a chomping mode identifier");else if((pe=xe(Ee))>=0)pe===0?Pe(P,"bad explicit indentation width of a block scalar; it cannot be less than one"):N?Pe(P,"repeat of an indentation width identifier"):(re=Re+pe-1,N=!0);else break;if(Q(Ee)){do Ee=P.input.charCodeAt(++P.position);while(Q(Ee));if(Ee===35)do Ee=P.input.charCodeAt(++P.position);while(!_(Ee)&&Ee!==0)}for(;Ee!==0;){for(wt(P),P.lineIndent=0,Ee=P.input.charCodeAt(P.position);(!N||P.lineIndent<re)&&Ee===32;)P.lineIndent++,Ee=P.input.charCodeAt(++P.position);if(!N&&P.lineIndent>re&&(re=P.lineIndent),_(Ee)){de++;continue}if(P.lineIndent<re){O===W?P.result+=c.repeat(`
|
|
507
|
+
`,le?1+de:de):O===j&&le&&(P.result+=`
|
|
508
|
+
`);break}for(T?Q(Ee)?(ae=!0,P.result+=c.repeat(`
|
|
509
|
+
`,le?1+de:de)):ae?(ae=!1,P.result+=c.repeat(`
|
|
510
|
+
`,de+1)):de===0?le&&(P.result+=" "):P.result+=c.repeat(`
|
|
488
511
|
`,de):P.result+=c.repeat(`
|
|
489
|
-
`,
|
|
490
|
-
`),P.charCodeAt(0)===65279&&(P=P.slice(1)));var K=new Le(P,Re),T=P.indexOf("\0");for(T!==-1&&(K.position=T,Pe(K,"null byte is not allowed in input")),K.input+="\0";K.input.charCodeAt(K.position)===32;)K.lineIndent+=1,K.position+=1;for(;K.position<K.length-1;)z(K);return K.documents}function Se(P,Re,K){Re!==null&&typeof Re=="object"&&typeof K=="undefined"&&(K=Re,Re=null);var T=$(P,K);if(typeof Re!="function")return T;for(var O=0,
|
|
512
|
+
`,le?1+de:de),le=!0,N=!0,de=0,K=P.position;!_(Ee)&&Ee!==0;)Ee=P.input.charCodeAt(++P.position);Xe(P,K,P.position,!1)}return!0}function zt(P,Re){var K,T=P.tag,O=P.anchor,le=[],N,re=!1,de;for(P.anchor!==null&&(P.anchorMap[P.anchor]=le),de=P.input.charCodeAt(P.position);de!==0&&!(de!==45||(N=P.input.charCodeAt(P.position+1),!Y(N)));){if(re=!0,P.position++,nt(P,!0,-1)&&P.lineIndent<=Re){le.push(null),de=P.input.charCodeAt(P.position);continue}if(K=P.line,ve(P,Re,D,!1,!0),le.push(P.result),nt(P,!0,-1),de=P.input.charCodeAt(P.position),(P.line===K||P.lineIndent>Re)&&de!==0)Pe(P,"bad indentation of a sequence entry");else if(P.lineIndent<Re)break}return re?(P.tag=T,P.anchor=O,P.kind="sequence",P.result=le,!0):!1}function jt(P,Re,K){var T,O,le,N,re=P.tag,de=P.anchor,ae={},pe={},Ee=null,Ue=null,je=null,Qe=!1,vt=!1,At;for(P.anchor!==null&&(P.anchorMap[P.anchor]=ae),At=P.input.charCodeAt(P.position);At!==0;){if(T=P.input.charCodeAt(P.position+1),le=P.line,N=P.position,(At===63||At===58)&&Y(T))At===63?(Qe&&(ht(P,ae,pe,Ee,Ue,null),Ee=Ue=je=null),vt=!0,Qe=!0,O=!0):Qe?(Qe=!1,O=!0):Pe(P,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),P.position+=1,At=T;else if(ve(P,K,L,!1,!0))if(P.line===le){for(At=P.input.charCodeAt(P.position);Q(At);)At=P.input.charCodeAt(++P.position);if(At===58)At=P.input.charCodeAt(++P.position),Y(At)||Pe(P,"a whitespace character is expected after the key-value separator within a block mapping"),Qe&&(ht(P,ae,pe,Ee,Ue,null),Ee=Ue=je=null),vt=!0,Qe=!1,O=!1,Ee=P.tag,Ue=P.result;else if(vt)Pe(P,"can not read an implicit mapping pair; a colon is missed");else return P.tag=re,P.anchor=de,!0}else if(vt)Pe(P,"can not read a block mapping entry; a multiline key may not be an implicit key");else return P.tag=re,P.anchor=de,!0;else break;if((P.line===le||P.lineIndent>Re)&&(ve(P,Re,B,!0,O)&&(Qe?Ue=P.result:je=P.result),Qe||(ht(P,ae,pe,Ee,Ue,je,le,N),Ee=Ue=je=null),nt(P,!0,-1),At=P.input.charCodeAt(P.position)),P.lineIndent>Re&&At!==0)Pe(P,"bad indentation of a mapping entry");else if(P.lineIndent<Re)break}return Qe&&ht(P,ae,pe,Ee,Ue,null),vt&&(P.tag=re,P.anchor=de,P.kind="mapping",P.result=ae),vt}function Vt(P){var Re,K=!1,T=!1,O,le,N;if(N=P.input.charCodeAt(P.position),N!==33)return!1;if(P.tag!==null&&Pe(P,"duplication of a tag property"),N=P.input.charCodeAt(++P.position),N===60?(K=!0,N=P.input.charCodeAt(++P.position)):N===33?(T=!0,O="!!",N=P.input.charCodeAt(++P.position)):O="!",Re=P.position,K){do N=P.input.charCodeAt(++P.position);while(N!==0&&N!==62);P.position<P.length?(le=P.input.slice(Re,P.position),N=P.input.charCodeAt(++P.position)):Pe(P,"unexpected end of the stream within a verbatim tag")}else{for(;N!==0&&!Y(N);)N===33&&(T?Pe(P,"tag suffix cannot contain exclamation marks"):(O=P.input.slice(Re-1,P.position+1),C.test(O)||Pe(P,"named tag handle cannot contain such characters"),T=!0,Re=P.position+1)),N=P.input.charCodeAt(++P.position);le=P.input.slice(Re,P.position),R.test(le)&&Pe(P,"tag suffix cannot contain flow indicator characters")}return le&&!V.test(le)&&Pe(P,"tag name cannot contain such characters: "+le),K?P.tag=le:S.call(P.tagMap,O)?P.tag=P.tagMap[O]+le:O==="!"?P.tag="!"+le:O==="!!"?P.tag="tag:yaml.org,2002:"+le:Pe(P,'undeclared tag handle "'+O+'"'),!0}function St(P){var Re,K;if(K=P.input.charCodeAt(P.position),K!==38)return!1;for(P.anchor!==null&&Pe(P,"duplication of an anchor property"),K=P.input.charCodeAt(++P.position),Re=P.position;K!==0&&!Y(K)&&!ce(K);)K=P.input.charCodeAt(++P.position);return P.position===Re&&Pe(P,"name of an anchor node must contain at least one character"),P.anchor=P.input.slice(Re,P.position),!0}function Dt(P){var Re,K,T;if(T=P.input.charCodeAt(P.position),T!==42)return!1;for(T=P.input.charCodeAt(++P.position),Re=P.position;T!==0&&!Y(T)&&!ce(T);)T=P.input.charCodeAt(++P.position);return P.position===Re&&Pe(P,"name of an alias node must contain at least one character"),K=P.input.slice(Re,P.position),S.call(P.anchorMap,K)||Pe(P,'unidentified alias "'+K+'"'),P.result=P.anchorMap[K],nt(P,!0,-1),!0}function ve(P,Re,K,T,O){var le,N,re,de=1,ae=!1,pe=!1,Ee,Ue,je,Qe,vt;if(P.listener!==null&&P.listener("open",P),P.tag=null,P.anchor=null,P.kind=null,P.result=null,le=N=re=B===K||D===K,T&&nt(P,!0,-1)&&(ae=!0,P.lineIndent>Re?de=1:P.lineIndent===Re?de=0:P.lineIndent<Re&&(de=-1)),de===1)for(;Vt(P)||St(P);)nt(P,!0,-1)?(ae=!0,re=le,P.lineIndent>Re?de=1:P.lineIndent===Re?de=0:P.lineIndent<Re&&(de=-1)):re=!1;if(re&&(re=ae||O),(de===1||B===K)&&(g===K||L===K?Qe=Re:Qe=Re+1,vt=P.position-P.lineStart,de===1?re&&(zt(P,vt)||jt(P,vt,Qe))||kt(P,Qe)?pe=!0:(N&&Et(P,Qe)||pt(P,Qe)||Mt(P,Qe)?pe=!0:Dt(P)?(pe=!0,(P.tag!==null||P.anchor!==null)&&Pe(P,"alias node should not have any properties")):xt(P,Qe,g===K)&&(pe=!0,P.tag===null&&(P.tag="?")),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):de===0&&(pe=re&&zt(P,vt))),P.tag!==null&&P.tag!=="!")if(P.tag==="?"){for(P.result!==null&&P.kind!=="scalar"&&Pe(P,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+P.kind+'"'),Ee=0,Ue=P.implicitTypes.length;Ee<Ue;Ee+=1)if(je=P.implicitTypes[Ee],je.resolve(P.result)){P.result=je.construct(P.result),P.tag=je.tag,P.anchor!==null&&(P.anchorMap[P.anchor]=P.result);break}}else S.call(P.typeMap[P.kind||"fallback"],P.tag)?(je=P.typeMap[P.kind||"fallback"][P.tag],P.result!==null&&je.kind!==P.kind&&Pe(P,"unacceptable node kind for !<"+P.tag+'> tag; it should be "'+je.kind+'", not "'+P.kind+'"'),je.resolve(P.result)?(P.result=je.construct(P.result),P.anchor!==null&&(P.anchorMap[P.anchor]=P.result)):Pe(P,"cannot resolve a node with !<"+P.tag+"> explicit tag")):Pe(P,"unknown tag !<"+P.tag+">");return P.listener!==null&&P.listener("close",P),P.tag!==null||P.anchor!==null||pe}function z(P){var Re=P.position,K,T,O,le=!1,N;for(P.version=null,P.checkLineBreaks=P.legacy,P.tagMap={},P.anchorMap={};(N=P.input.charCodeAt(P.position))!==0&&(nt(P,!0,-1),N=P.input.charCodeAt(P.position),!(P.lineIndent>0||N!==37));){for(le=!0,N=P.input.charCodeAt(++P.position),K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);for(T=P.input.slice(K,P.position),O=[],T.length<1&&Pe(P,"directive name must not be less than one character in length");N!==0;){for(;Q(N);)N=P.input.charCodeAt(++P.position);if(N===35){do N=P.input.charCodeAt(++P.position);while(N!==0&&!_(N));break}if(_(N))break;for(K=P.position;N!==0&&!Y(N);)N=P.input.charCodeAt(++P.position);O.push(P.input.slice(K,P.position))}N!==0&&wt(P),S.call(Ze,T)?Ze[T](P,T,O):rt(P,'unknown document directive "'+T+'"')}if(nt(P,!0,-1),P.lineIndent===0&&P.input.charCodeAt(P.position)===45&&P.input.charCodeAt(P.position+1)===45&&P.input.charCodeAt(P.position+2)===45?(P.position+=3,nt(P,!0,-1)):le&&Pe(P,"directives end mark is expected"),ve(P,P.lineIndent-1,B,!1,!0),nt(P,!0,-1),P.checkLineBreaks&&X.test(P.input.slice(Re,P.position))&&rt(P,"non-ASCII line breaks are interpreted as content"),P.documents.push(P.result),P.position===P.lineStart&&ut(P)){P.input.charCodeAt(P.position)===46&&(P.position+=3,nt(P,!0,-1));return}if(P.position<P.length-1)Pe(P,"end of the stream or a document separator is expected");else return}function $(P,Re){P=String(P),Re=Re||{},P.length!==0&&(P.charCodeAt(P.length-1)!==10&&P.charCodeAt(P.length-1)!==13&&(P+=`
|
|
513
|
+
`),P.charCodeAt(0)===65279&&(P=P.slice(1)));var K=new Le(P,Re),T=P.indexOf("\0");for(T!==-1&&(K.position=T,Pe(K,"null byte is not allowed in input")),K.input+="\0";K.input.charCodeAt(K.position)===32;)K.lineIndent+=1,K.position+=1;for(;K.position<K.length-1;)z(K);return K.documents}function Se(P,Re,K){Re!==null&&typeof Re=="object"&&typeof K=="undefined"&&(K=Re,Re=null);var T=$(P,K);if(typeof Re!="function")return T;for(var O=0,le=T.length;O<le;O+=1)Re(T[O])}function Ie(P,Re){var K=$(P,Re);if(K.length!==0){if(K.length===1)return K[0];throw new v("expected a single document in the stream, but found more")}}function Ge(P,Re,K){return typeof Re=="object"&&Re!==null&&typeof K=="undefined"&&(K=Re,Re=null),Se(P,Re,c.extend({schema:d},K))}function Ke(P,Re){return Ie(P,c.extend({schema:d},Re))}h.exports.loadAll=Se,h.exports.load=Ie,h.exports.safeLoadAll=Ge,h.exports.safeLoad=Ke},77334:(h,I,a)=>{"use strict";var c=a(25596);function v(x,d,b,S,g){this.name=x,this.buffer=d,this.position=b,this.line=S,this.column=g}v.prototype.getSnippet=function(d,b){var S,g,L,D,B;if(!this.buffer)return null;for(d=d||4,b=b||75,S="",g=this.position;g>0&&`\0\r
|
|
491
514
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(g-1))===-1;)if(g-=1,this.position-g>b/2-1){S=" ... ",g+=5;break}for(L="",D=this.position;D<this.buffer.length&&`\0\r
|
|
492
515
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(D))===-1;)if(D+=1,D-this.position>b/2-1){L=" ... ",D-=5;break}return B=this.buffer.slice(g,D),c.repeat(" ",d)+S+B+L+`
|
|
493
516
|
`+c.repeat(" ",d+this.position-g+S.length)+"^"},v.prototype.toString=function(d){var b,S="";return this.name&&(S+='in "'+this.name+'" '),S+="at line "+(this.line+1)+", column "+(this.column+1),d||(b=this.getSnippet(),b&&(S+=`:
|
|
494
517
|
`+b)),S},h.exports=v},82409:(h,I,a)=>{"use strict";var c=a(25596),v=a(14884),x=a(53899);function d(g,L,D){var B=[];return g.include.forEach(function(j){D=d(j,L,D)}),g[L].forEach(function(j){D.forEach(function(q,W){q.tag===j.tag&&q.kind===j.kind&&B.push(W)}),D.push(j)}),D.filter(function(j,q){return B.indexOf(q)===-1})}function b(){var g={scalar:{},sequence:{},mapping:{},fallback:{}},L,D;function B(j){g[j.kind][j.tag]=g.fallback[j.tag]=j}for(L=0,D=arguments.length;L<D;L+=1)arguments[L].forEach(B);return g}function S(g){this.include=g.include||[],this.implicit=g.implicit||[],this.explicit=g.explicit||[],this.implicit.forEach(function(L){if(L.loadKind&&L.loadKind!=="scalar")throw new v("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=d(this,"implicit",[]),this.compiledExplicit=d(this,"explicit",[]),this.compiledTypeMap=b(this.compiledImplicit,this.compiledExplicit)}S.DEFAULT=null,S.create=function(){var L,D;switch(arguments.length){case 1:L=S.DEFAULT,D=arguments[0];break;case 2:L=arguments[0],D=arguments[1];break;default:throw new v("Wrong number of arguments for Schema.create function")}if(L=c.toArray(L),D=c.toArray(D),!L.every(function(B){return B instanceof S}))throw new v("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!D.every(function(B){return B instanceof x}))throw new v("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new S({include:L,explicit:D})},h.exports=S},17318:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(65796)]})},19321:(h,I,a)=>{"use strict";var c=a(82409);h.exports=c.DEFAULT=new c({include:[a(5972)],explicit:[a(70575),a(97287),a(89811)]})},5972:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(17318)],implicit:[a(56145),a(243)],explicit:[a(18964),a(3878),a(68244),a(67300)]})},75322:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({explicit:[a(79483),a(43745),a(86553)]})},65796:(h,I,a)=>{"use strict";var c=a(82409);h.exports=new c({include:[a(75322)],implicit:[a(3022),a(2648),a(95979),a(53456)]})},53899:(h,I,a)=>{"use strict";var c=a(14884),v=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],x=["scalar","sequence","mapping"];function d(S){var g={};return S!==null&&Object.keys(S).forEach(function(L){S[L].forEach(function(D){g[String(D)]=L})}),g}function b(S,g){if(g=g||{},Object.keys(g).forEach(function(L){if(v.indexOf(L)===-1)throw new c('Unknown option "'+L+'" is met in definition of "'+S+'" YAML type.')}),this.tag=S,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(L){return L},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.defaultStyle=g.defaultStyle||null,this.styleAliases=d(g.styleAliases||null),x.indexOf(this.kind)===-1)throw new c('Unknown kind "'+this.kind+'" is specified for "'+S+'" YAML type.')}h.exports=b},18964:(h,I,a)=>{"use strict";var c;try{var v=void 0;c=a(48764).Buffer}catch(D){}var x=a(53899),d=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
495
|
-
\r`;function b(D){if(D===null)return!1;var B,j,q=0,W=D.length,M=d;for(j=0;j<W;j++)if(B=M.indexOf(D.charAt(j)),!(B>64)){if(B<0)return!1;q+=6}return q%8==0}function S(D){var B,j,q=D.replace(/[\r\n=]/g,""),W=q.length,M=d,X=0,R=[];for(B=0;B<W;B++)B%4==0&&B&&(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)),X=X<<6|M.indexOf(q.charAt(B));return j=W%4*6,j===0?(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)):j===18?(R.push(X>>10&255),R.push(X>>2&255)):j===12&&R.push(X>>4&255),c?c.from?c.from(R):new c(R):R}function g(D){var B="",j=0,q,W,M=D.length,X=d;for(q=0;q<M;q++)q%3==0&&q&&(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]),j=(j<<8)+D[q];return W=M%3,W===0?(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]):W===2?(B+=X[j>>10&63],B+=X[j>>4&63],B+=X[j<<2&63],B+=X[64]):W===1&&(B+=X[j>>2&63],B+=X[j<<4&63],B+=X[64],B+=X[64]),B}function L(D){return c&&c.isBuffer(D)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:S,predicate:L,represent:g})},2648:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!1;var S=b.length;return S===4&&(b==="true"||b==="True"||b==="TRUE")||S===5&&(b==="false"||b==="False"||b==="FALSE")}function x(b){return b==="true"||b==="True"||b==="TRUE"}function d(b){return Object.prototype.toString.call(b)==="[object Boolean]"}h.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899),x=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(D){return!(D===null||!x.test(D)||D[D.length-1]==="_")}function b(D){var B,j,q,W;return B=D.replace(/_/g,"").toLowerCase(),j=B[0]==="-"?-1:1,W=[],"+-".indexOf(B[0])>=0&&(B=B.slice(1)),B===".inf"?j===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:B===".nan"?NaN:B.indexOf(":")>=0?(B.split(":").forEach(function(M){W.unshift(parseFloat(M,10))}),B=0,q=1,W.forEach(function(M){B+=M*q,q*=60}),j*B):j*parseFloat(B,10)}var S=/^[-+]?[0-9]+e/;function g(D,B){var j;if(isNaN(D))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===D)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===D)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(D))return"-0.0";return j=D.toString(10),S.test(j)?j.replace("e",".e"):j}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&(D%1!=0||c.isNegativeZero(D))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899);function x(D){return 48<=D&&D<=57||65<=D&&D<=70||97<=D&&D<=102}function d(D){return 48<=D&&D<=55}function b(D){return 48<=D&&D<=57}function S(D){if(D===null)return!1;var B=D.length,j=0,q=!1,W;if(!B)return!1;if(W=D[j],(W==="-"||W==="+")&&(W=D[++j]),W==="0"){if(j+1===B)return!0;if(W=D[++j],W==="b"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(W!=="0"&&W!=="1")return!1;q=!0}return q&&W!=="_"}if(W==="x"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(!x(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}for(;j<B;j++)if(W=D[j],W!=="_"){if(!d(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}if(W==="_")return!1;for(;j<B;j++)if(W=D[j],W!=="_"){if(W===":")break;if(!b(D.charCodeAt(j)))return!1;q=!0}return!q||W==="_"?!1:W!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(j))}function g(D){var B=D,j=1,q,W,M=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),q=B[0],(q==="-"||q==="+")&&(q==="-"&&(j=-1),B=B.slice(1),q=B[0]),B==="0"?0:q==="0"?B[1]==="b"?j*parseInt(B.slice(2),2):B[1]==="x"?j*parseInt(B,16):j*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(X){M.unshift(parseInt(X,10))}),B=0,W=1,M.forEach(function(X){B+=X*W,W*=60}),j*B):j*parseInt(B,10)}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&D%1==0&&!c.isNegativeZero(D)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:S,construct:g,predicate:L,represent:{binary:function(D){return D>=0?"0b"+D.toString(2):"-0b"+D.toString(2).slice(1)},octal:function(D){return D>=0?"0"+D.toString(8):"-0"+D.toString(8).slice(1)},decimal:function(D){return D.toString(10)},hexadecimal:function(D){return D>=0?"0x"+D.toString(16).toUpperCase():"-0x"+D.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,a)=>{"use strict";var c;try{var v=void 0;c=a(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=a(53899);function d(L){if(L===null)return!1;try{var D="("+L+")",B=c.parse(D,{range:!0});return!(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")}catch(j){return!1}}function b(L){var D="("+L+")",B=c.parse(D,{range:!0}),j=[],q;if(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return B.body[0].expression.params.forEach(function(W){j.push(W.name)}),q=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,D.slice(q[0]+1,q[1]-1)):new Function(j,"return "+D.slice(q[0],q[1]))}function S(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}h.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:b,predicate:g,represent:S})},97287:(h,I,a)=>{"use strict";var c=a(53899);function v(S){if(S===null||S.length===0)return!1;var g=S,L=/\/([gim]*)$/.exec(S),D="";return!(g[0]==="/"&&(L&&(D=L[1]),D.length>3||g[g.length-D.length-1]!=="/"))}function x(S){var g=S,L=/\/([gim]*)$/.exec(S),D="";return g[0]==="/"&&(L&&(D=L[1]),g=g.slice(1,g.length-D.length-1)),new RegExp(g,D)}function d(S){var g="/"+S.source+"/";return S.global&&(g+="g"),S.multiline&&(g+="m"),S.ignoreCase&&(g+="i"),g}function b(S){return Object.prototype.toString.call(S)==="[object RegExp]"}h.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},70575:(h,I,a)=>{"use strict";var c=a(53899);function v(){return!0}function x(){}function d(){return""}function b(S){return typeof S=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,a)=>{"use strict";var c=a(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!0;var S=b.length;return S===1&&b==="~"||S===4&&(b==="null"||b==="Null"||b==="NULL")}function x(){return null}function d(b){return b===null}h.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(S){if(S===null)return!0;var g=[],L,D,B,j,q,W=S;for(L=0,D=W.length;L<D;L+=1){if(B=W[L],q=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!q)q=!0;else return!1;if(!q)return!1;if(g.indexOf(j)===-1)g.push(j);else return!1}return!0}function b(S){return S!==null?S:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1){if(L=j[S],v.call(L)!=="[object Object]"||(D=Object.keys(L),D.length!==1))return!1;B[S]=[D[0],L[D[0]]]}return!0}function d(b){if(b===null)return[];var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1)L=j[S],D=Object.keys(L),B[S]=[D[0],L[D[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var S,g=b;for(S in g)if(v.call(g,S)&&g[S]!==null)return!1;return!0}function d(b){return b!==null?b:{}}h.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:d})},79483:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,a)=>{"use strict";var c=a(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x=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]))?))?$");function d(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,D,B,j,q,W,M,X=0,R=null,C,V,J;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(D=+L[1],B=+L[2]-1,j=+L[3],!L[4])return new Date(Date.UTC(D,B,j));if(q=+L[4],W=+L[5],M=+L[6],L[7]){for(X=L[7].slice(0,3);X.length<3;)X+="0";X=+X}return L[9]&&(C=+L[10],V=+(L[11]||0),R=(C*60+V)*6e4,L[9]==="-"&&(R=-R)),J=new Date(Date.UTC(D,B,j,q,W,M,X)),R&&J.setTime(J.getTime()-R),J}function S(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:S})},18552:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,a)=>{var c=a(51789),v=a(80401),x=a(57667),d=a(21327),b=a(81866);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},38407:(h,I,a)=>{var c=a(27040),v=a(14125),x=a(82117),d=a(67518),b=a(13399);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},57071:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Map");h.exports=x},83369:(h,I,a)=>{var c=a(24785),v=a(11285),x=a(96e3),d=a(49916),b=a(95265);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},53818:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Set");h.exports=x},88668:(h,I,a)=>{var c=a(83369),v=a(90619),x=a(72385);function d(b){var S=-1,g=b==null?0:b.length;for(this.__data__=new c;++S<g;)this.add(b[S])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,a)=>{var c=a(38407),v=a(37465),x=a(63779),d=a(67599),b=a(44758),S=a(34309);function g(L){var D=this.__data__=new c(L);this.size=D.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=S,h.exports=g},62705:(h,I,a)=>{var c=a(55639),v=c.Symbol;h.exports=v},11149:(h,I,a)=>{var c=a(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(a,c,v){switch(v.length){case 0:return a.call(c);case 1:return a.call(c,v[0]);case 2:return a.call(c,v[0],v[1]);case 3:return a.call(c,v[0],v[1],v[2])}return a.apply(c,v)}h.exports=I},77412:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x&&c(a[v],v,a)!==!1;);return a}h.exports=I},34963:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=0,b=[];++v<x;){var S=a[v];c(S,v,a)&&(b[d++]=S)}return b}h.exports=I},14636:(h,I,a)=>{var c=a(22545),v=a(35694),x=a(1469),d=a(44144),b=a(65776),S=a(36719),g=Object.prototype,L=g.hasOwnProperty;function D(B,j){var q=x(B),W=!q&&v(B),M=!q&&!W&&d(B),X=!q&&!W&&!M&&S(B),R=q||W||M||X,C=R?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(R&&(J=="length"||M&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);return C}h.exports=D},29932:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=Array(x);++v<x;)d[v]=c(a[v],v,a);return d}h.exports=I},62488:h=>{function I(a,c){for(var v=-1,x=c.length,d=a.length;++v<x;)a[d+v]=c[v];return a}h.exports=I},82908:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x;)if(c(a[v],v,a))return!0;return!1}h.exports=I},34865:(h,I,a)=>{var c=a(89465),v=a(77813),x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L){var D=S[g];(!(d.call(S,g)&&v(D,L))||L===void 0&&!(g in S))&&c(S,g,L)}h.exports=b},18470:(h,I,a)=>{var c=a(77813);function v(x,d){for(var b=x.length;b--;)if(c(x[b][0],d))return b;return-1}h.exports=v},44037:(h,I,a)=>{var c=a(98363),v=a(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,a)=>{var c=a(98363),v=a(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,a)=>{var c=a(38777);function v(x,d,b){d=="__proto__"&&c?c(x,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[d]=b}h.exports=v},29750:h=>{function I(a,c,v){return a===a&&(v!==void 0&&(a=a<=v?a:v),c!==void 0&&(a=a>=c?a:c)),a}h.exports=I},85990:(h,I,a)=>{var c=a(46384),v=a(77412),x=a(34865),d=a(44037),b=a(63886),S=a(64626),g=a(278),L=a(18805),D=a(1911),B=a(58234),j=a(46904),q=a(98882),W=a(43824),M=a(29148),X=a(38517),R=a(1469),C=a(44144),V=a(56688),J=a(13218),_=a(72928),Q=a(3674),Y=a(81704),fe=1,ee=2,ie=4,ye="[object Arguments]",be="[object Array]",he="[object Boolean]",ue="[object Date]",oe="[object Error]",Fe="[object Function]",Le="[object GeneratorFunction]",Me="[object Map]",Pe="[object Number]",rt="[object Object]",Ze="[object RegExp]",Xe="[object Set]",ft="[object String]",ht="[object Symbol]",bt="[object WeakMap]",nt="[object ArrayBuffer]",ut="[object DataView]",yt="[object Float32Array]",mt="[object Float64Array]",pt="[object Int8Array]",Mt="[object Int16Array]",kt="[object Int32Array]",Et="[object Uint8Array]",Ht="[object Uint8ClampedArray]",jt="[object Uint16Array]",Vt="[object Uint32Array]",wt={};wt[ye]=wt[be]=wt[nt]=wt[ut]=wt[he]=wt[ue]=wt[yt]=wt[mt]=wt[pt]=wt[Mt]=wt[kt]=wt[Me]=wt[Pe]=wt[rt]=wt[Ze]=wt[Xe]=wt[ft]=wt[ht]=wt[Et]=wt[Ht]=wt[jt]=wt[Vt]=!0,wt[oe]=wt[Fe]=wt[bt]=!1;function Dt(ve,z,$,Se,Ie,Ge){var Ke,P=z&fe,Re=z&ee,K=z&ie;if($&&(Ke=Ie?$(ve,Se,Ie,Ge):$(ve)),Ke!==void 0)return Ke;if(!J(ve))return ve;var T=R(ve);if(T){if(Ke=W(ve),!P)return g(ve,Ke)}else{var O=q(ve),se=O==Fe||O==Le;if(C(ve))return S(ve,P);if(O==rt||O==ye||se&&!Ie){if(Ke=Re||se?{}:X(ve),!P)return Re?D(ve,b(Ke,ve)):L(ve,d(Ke,ve))}else{if(!wt[O])return Ie?ve:{};Ke=M(ve,O,P)}}Ge||(Ge=new c);var N=Ge.get(ve);if(N)return N;Ge.set(ve,Ke),_(ve)?ve.forEach(function(ae){Ke.add(Dt(ae,z,$,ae,ve,Ge))}):V(ve)&&ve.forEach(function(ae,pe){Ke.set(pe,Dt(ae,z,$,pe,ve,Ge))});var te=K?Re?j:B:Re?Y:Q,de=T?void 0:te(ve);return v(de||ve,function(ae,pe){de&&(pe=ae,ae=ve[pe]),x(Ke,pe,Dt(ae,z,$,pe,ve,Ge))}),Ke}h.exports=Dt},3118:(h,I,a)=>{var c=a(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var S=new d;return d.prototype=void 0,S}}();h.exports=x},41848:h=>{function I(a,c,v,x){for(var d=a.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(a[b],b,a))return b;return-1}h.exports=I},35764:(h,I,a)=>{var c=a(62488),v=a(37285);function x(d,b,S,g,L){var D=-1,B=d.length;for(S||(S=v),L||(L=[]);++D<B;){var j=d[D];b>0&&S(j)?b>1?x(j,b-1,S,g,L):c(L,j):g||(L[L.length]=j)}return L}h.exports=x},97786:(h,I,a)=>{var c=a(71811),v=a(40327);function x(d,b){b=c(b,d);for(var S=0,g=b.length;d!=null&&S<g;)d=d[v(b[S++])];return S&&S==g?d:void 0}h.exports=x},68866:(h,I,a)=>{var c=a(62488),v=a(1469);function x(d,b,S){var g=b(d);return v(d)?g:c(g,S(d))}h.exports=x},44239:(h,I,a)=>{var c=a(62705),v=a(89607),x=a(2333),d="[object Null]",b="[object Undefined]",S=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:d:S&&S in Object(L)?v(L):x(L)}h.exports=g},13:h=>{function I(a,c){return a!=null&&c in Object(a)}h.exports=I},9454:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,a)=>{var c=a(2492),v=a(37005);function x(d,b,S,g,L){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,S,g,x,L)}h.exports=x},2492:(h,I,a)=>{var c=a(46384),v=a(67114),x=a(18351),d=a(16096),b=a(98882),S=a(1469),g=a(44144),L=a(36719),D=1,B="[object Arguments]",j="[object Array]",q="[object Object]",W=Object.prototype,M=W.hasOwnProperty;function X(R,C,V,J,_,Q){var Y=S(R),fe=S(C),ee=Y?j:b(R),ie=fe?j:b(C);ee=ee==B?q:ee,ie=ie==B?q:ie;var ye=ee==q,be=ie==q,he=ee==ie;if(he&&g(R)){if(!g(C))return!1;Y=!0,ye=!1}if(he&&!ye)return Q||(Q=new c),Y||L(R)?v(R,C,V,J,_,Q):x(R,C,ee,V,J,_,Q);if(!(V&D)){var ue=ye&&M.call(R,"__wrapped__"),oe=be&&M.call(C,"__wrapped__");if(ue||oe){var Fe=ue?R.value():R,Le=oe?C.value():C;return Q||(Q=new c),_(Fe,Le,V,J,Q)}}return he?(Q||(Q=new c),d(R,C,V,J,_,Q)):!1}h.exports=X},25588:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,a)=>{var c=a(46384),v=a(90939),x=1,d=2;function b(S,g,L,D){var B=L.length,j=B,q=!D;if(S==null)return!j;for(S=Object(S);B--;){var W=L[B];if(q&&W[2]?W[1]!==S[W[0]]:!(W[0]in S))return!1}for(;++B<j;){W=L[B];var M=W[0],X=S[M],R=W[1];if(q&&W[2]){if(X===void 0&&!(M in S))return!1}else{var C=new c;if(D)var V=D(X,R,M,S,g,C);if(!(V===void 0?v(R,X,x|d,D,C):V))return!1}}return!0}h.exports=b},28458:(h,I,a)=>{var c=a(23560),v=a(15346),x=a(13218),d=a(80346),b=/[\\^$.*+?()[\]{}|]/g,S=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,D=g.toString,B=L.hasOwnProperty,j=RegExp("^"+D.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function q(W){if(!x(W)||v(W))return!1;var M=c(W)?j:S;return M.test(d(W))}h.exports=q},29221:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,a)=>{var c=a(44239),v=a(41780),x=a(37005),d="[object Arguments]",b="[object Array]",S="[object Boolean]",g="[object Date]",L="[object Error]",D="[object Function]",B="[object Map]",j="[object Number]",q="[object Object]",W="[object RegExp]",M="[object Set]",X="[object String]",R="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",_="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",fe="[object Int32Array]",ee="[object Uint8Array]",ie="[object Uint8ClampedArray]",ye="[object Uint16Array]",be="[object Uint32Array]",he={};he[J]=he[_]=he[Q]=he[Y]=he[fe]=he[ee]=he[ie]=he[ye]=he[be]=!0,he[d]=he[b]=he[C]=he[S]=he[V]=he[g]=he[L]=he[D]=he[B]=he[j]=he[q]=he[W]=he[M]=he[X]=he[R]=!1;function ue(oe){return x(oe)&&v(oe.length)&&!!he[c(oe)]}h.exports=ue},67206:(h,I,a)=>{var c=a(91573),v=a(16432),x=a(6557),d=a(1469),b=a(39601);function S(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?d(g)?v(g[0],g[1]):c(g):b(g)}h.exports=S},280:(h,I,a)=>{var c=a(25726),v=a(86916),x=Object.prototype,d=x.hasOwnProperty;function b(S){if(!c(S))return v(S);var g=[];for(var L in Object(S))d.call(S,L)&&L!="constructor"&&g.push(L);return g}h.exports=b},10313:(h,I,a)=>{var c=a(13218),v=a(25726),x=a(33498),d=Object.prototype,b=d.hasOwnProperty;function S(g){if(!c(g))return x(g);var L=v(g),D=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||D.push(B);return D}h.exports=S},91573:(h,I,a)=>{var c=a(2958),v=a(1499),x=a(42634);function d(b){var S=v(b);return S.length==1&&S[0][2]?x(S[0][0],S[0][1]):function(g){return g===b||c(g,b,S)}}h.exports=d},16432:(h,I,a)=>{var c=a(90939),v=a(27361),x=a(79095),d=a(15403),b=a(89162),S=a(42634),g=a(40327),L=1,D=2;function B(j,q){return d(j)&&b(q)?S(g(j),q):function(W){var M=v(W,j);return M===void 0&&M===q?x(W,j):c(q,M,L|D)}}h.exports=B},25970:(h,I,a)=>{var c=a(63012),v=a(79095);function x(d,b){return c(d,b,function(S,g){return v(d,g)})}h.exports=x},63012:(h,I,a)=>{var c=a(97786),v=a(10611),x=a(71811);function d(b,S,g){for(var L=-1,D=S.length,B={};++L<D;){var j=S[L],q=c(b,j);g(q,j)&&v(B,x(j,b),q)}return B}h.exports=d},40371:h=>{function I(a){return function(c){return c==null?void 0:c[a]}}h.exports=I},79152:(h,I,a)=>{var c=a(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,a)=>{var c=a(6557),v=a(45357),x=a(30061);function d(b,S){return x(v(b,S,c),b+"")}h.exports=d},10611:(h,I,a)=>{var c=a(34865),v=a(71811),x=a(65776),d=a(13218),b=a(40327);function S(g,L,D,B){if(!d(g))return g;L=v(L,g);for(var j=-1,q=L.length,W=q-1,M=g;M!=null&&++j<q;){var X=b(L[j]),R=D;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=W){var C=M[X];R=B?B(C,X,M):void 0,R===void 0&&(R=d(C)?C:x(L[j+1])?[]:{})}c(M,X,R),M=M[X]}return g}h.exports=S},56560:(h,I,a)=>{var c=a(75703),v=a(38777),x=a(6557),d=v?function(b,S){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(S),writable:!0})}:x;h.exports=d},22545:h=>{function I(a,c){for(var v=-1,x=Array(a);++v<a;)x[v]=c(v);return x}h.exports=I},80531:(h,I,a)=>{var c=a(62705),v=a(29932),x=a(1469),d=a(33448),b=1/0,S=c?c.prototype:void 0,g=S?S.toString:void 0;function L(D){if(typeof D=="string")return D;if(x(D))return v(D,L)+"";if(d(D))return g?g.call(D):"";var B=D+"";return B=="0"&&1/D==-b?"-0":B}h.exports=L},27561:(h,I,a)=>{var c=a(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(a){return function(c){return a(c)}}h.exports=I},74757:h=>{function I(a,c){return a.has(c)}h.exports=I},71811:(h,I,a)=>{var c=a(1469),v=a(15403),x=a(55514),d=a(79833);function b(S,g){return c(S)?S:v(S,g)?[S]:x(d(S))}h.exports=b},74318:(h,I,a)=>{var c=a(11149);function v(x){var d=new x.constructor(x.byteLength);return new c(d).set(new c(x)),d}h.exports=v},64626:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,S=b?b.allocUnsafe:void 0;function g(L,D){if(D)return L.slice();var B=L.length,j=S?S(B):new L.constructor(B);return L.copy(j),j}h.exports=g},57157:(h,I,a)=>{var c=a(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}h.exports=v},93147:h=>{var I=/\w*$/;function a(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=a},40419:(h,I,a)=>{var c=a(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function d(b){return x?Object(x.call(b)):{}}h.exports=d},77133:(h,I,a)=>{var c=a(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}h.exports=v},278:h=>{function I(a,c){var v=-1,x=a.length;for(c||(c=Array(x));++v<x;)c[v]=a[v];return c}h.exports=I},98363:(h,I,a)=>{var c=a(34865),v=a(89465);function x(d,b,S,g){var L=!S;S||(S={});for(var D=-1,B=b.length;++D<B;){var j=b[D],q=g?g(S[j],d[j],j,S,d):void 0;q===void 0&&(q=d[j]),L?v(S,j,q):c(S,j,q)}return S}h.exports=x},18805:(h,I,a)=>{var c=a(98363),v=a(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,a)=>{var c=a(98363),v=a(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,a)=>{var c=a(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,a)=>{var c=a(5976),v=a(16612);function x(d){return c(function(b,S){var g=-1,L=S.length,D=L>1?S[L-1]:void 0,B=L>2?S[2]:void 0;for(D=d.length>3&&typeof D=="function"?(L--,D):void 0,B&&v(S[0],S[1],B)&&(D=L<3?void 0:D,L=1),b=Object(b);++g<L;){var j=S[g];j&&d(b,j,g,D)}return b})}h.exports=x},67740:(h,I,a)=>{var c=a(67206),v=a(98612),x=a(3674);function d(b){return function(S,g,L){var D=Object(S);if(!v(S)){var B=c(g,3);S=x(S),g=function(q){return B(D[q],q,D)}}var j=b(S,g,L);return j>-1?D[B?S[j]:j]:void 0}}h.exports=d},38777:(h,I,a)=>{var c=a(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,a)=>{var c=a(88668),v=a(82908),x=a(74757),d=1,b=2;function S(g,L,D,B,j,q){var W=D&d,M=g.length,X=L.length;if(M!=X&&!(W&&X>M))return!1;var R=q.get(g),C=q.get(L);if(R&&C)return R==L&&C==g;var V=-1,J=!0,_=D&b?new c:void 0;for(q.set(g,L),q.set(L,g);++V<M;){var Q=g[V],Y=L[V];if(B)var fe=W?B(Y,Q,V,L,g,q):B(Q,Y,V,g,L,q);if(fe!==void 0){if(fe)continue;J=!1;break}if(_){if(!v(L,function(ee,ie){if(!x(_,ie)&&(Q===ee||j(Q,ee,D,B,q)))return _.push(ie)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,D,B,q))){J=!1;break}}return q.delete(g),q.delete(L),J}h.exports=S},18351:(h,I,a)=>{var c=a(62705),v=a(11149),x=a(77813),d=a(67114),b=a(68776),S=a(21814),g=1,L=2,D="[object Boolean]",B="[object Date]",j="[object Error]",q="[object Map]",W="[object Number]",M="[object RegExp]",X="[object Set]",R="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",_=c?c.prototype:void 0,Q=_?_.valueOf:void 0;function Y(fe,ee,ie,ye,be,he,ue){switch(ie){case J:if(fe.byteLength!=ee.byteLength||fe.byteOffset!=ee.byteOffset)return!1;fe=fe.buffer,ee=ee.buffer;case V:return!(fe.byteLength!=ee.byteLength||!he(new v(fe),new v(ee)));case D:case B:case W:return x(+fe,+ee);case j:return fe.name==ee.name&&fe.message==ee.message;case M:case R:return fe==ee+"";case q:var oe=b;case X:var Fe=ye&g;if(oe||(oe=S),fe.size!=ee.size&&!Fe)return!1;var Le=ue.get(fe);if(Le)return Le==ee;ye|=L,ue.set(fe,ee);var Me=d(oe(fe),oe(ee),ye,be,he,ue);return ue.delete(fe),Me;case C:if(Q)return Q.call(fe)==Q.call(ee)}return!1}h.exports=Y},16096:(h,I,a)=>{var c=a(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L,D,B,j){var q=L&v,W=c(S),M=W.length,X=c(g),R=X.length;if(M!=R&&!q)return!1;for(var C=M;C--;){var V=W[C];if(!(q?V in g:d.call(g,V)))return!1}var J=j.get(S),_=j.get(g);if(J&&_)return J==g&&_==S;var Q=!0;j.set(S,g),j.set(g,S);for(var Y=q;++C<M;){V=W[C];var fe=S[V],ee=g[V];if(D)var ie=q?D(ee,fe,V,g,S,j):D(fe,ee,V,S,g,j);if(!(ie===void 0?fe===ee||B(fe,ee,L,D,j):ie)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var ye=S.constructor,be=g.constructor;ye!=be&&"constructor"in S&&"constructor"in g&&!(typeof ye=="function"&&ye instanceof ye&&typeof be=="function"&&be instanceof be)&&(Q=!1)}return j.delete(S),j.delete(g),Q}h.exports=b},99021:(h,I,a)=>{var c=a(85564),v=a(45357),x=a(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,a)=>{var c=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g;h.exports=c},58234:(h,I,a)=>{var c=a(68866),v=a(99551),x=a(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,a)=>{var c=a(68866),v=a(51442),x=a(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,a)=>{var c=a(37019);function v(x,d){var b=x.__data__;return c(d)?b[typeof d=="string"?"string":"hash"]:b.map}h.exports=v},1499:(h,I,a)=>{var c=a(89162),v=a(3674);function x(d){for(var b=v(d),S=b.length;S--;){var g=b[S],L=d[g];b[S]=[g,L,c(L)]}return b}h.exports=x},10852:(h,I,a)=>{var c=a(28458),v=a(47801);function x(d,b){var S=v(d,b);return c(S)?S:void 0}h.exports=x},85924:(h,I,a)=>{var c=a(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,a)=>{var c=a(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function S(g){var L=x.call(g,b),D=g[b];try{g[b]=void 0;var B=!0}catch(q){}var j=d.call(g);return B&&(L?g[b]=D:delete g[b]),j}h.exports=S},99551:(h,I,a)=>{var c=a(34963),v=a(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,S=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return d.call(g,L)}))}:v;h.exports=S},51442:(h,I,a)=>{var c=a(62488),v=a(85924),x=a(99551),d=a(70479),b=Object.getOwnPropertySymbols,S=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:d;h.exports=S},98882:(h,I,a)=>{var c=a(18552),v=a(57071),x=a(53818),d=a(58525),b=a(70577),S=a(44239),g=a(80346),L="[object Map]",D="[object Object]",B="[object Promise]",j="[object Set]",q="[object WeakMap]",W="[object DataView]",M=g(c),X=g(v),R=g(x),C=g(d),V=g(b),J=S;(c&&J(new c(new ArrayBuffer(1)))!=W||v&&J(new v)!=L||x&&J(x.resolve())!=B||d&&J(new d)!=j||b&&J(new b)!=q)&&(J=function(_){var Q=S(_),Y=Q==D?_.constructor:void 0,fe=Y?g(Y):"";if(fe)switch(fe){case M:return W;case X:return L;case R:return B;case C:return j;case V:return q}return Q}),h.exports=J},47801:h=>{function I(a,c){return a==null?void 0:a[c]}h.exports=I},222:(h,I,a)=>{var c=a(71811),v=a(35694),x=a(1469),d=a(65776),b=a(41780),S=a(40327);function g(L,D,B){D=c(D,L);for(var j=-1,q=D.length,W=!1;++j<q;){var M=S(D[j]);if(!(W=L!=null&&B(L,M)))break;L=L[M]}return W||++j!=q?W:(q=L==null?0:L.length,!!q&&b(q)&&d(M,q)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,a)=>{var c=a(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(S){var g=this.__data__;if(c){var L=g[S];return L===v?void 0:L}return d.call(g,S)?g[S]:void 0}h.exports=b},21327:(h,I,a)=>{var c=a(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var S=this.__data__;return c?S[b]!==void 0:x.call(S,b)}h.exports=d},81866:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__";function x(d,b){var S=this.__data__;return this.size+=this.has(d)?0:1,S[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,a=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&a.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,a)=>{var c=a(74318),v=a(57157),x=a(93147),d=a(40419),b=a(77133),S="[object Boolean]",g="[object Date]",L="[object Map]",D="[object Number]",B="[object RegExp]",j="[object Set]",q="[object String]",W="[object Symbol]",M="[object ArrayBuffer]",X="[object DataView]",R="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",_="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",fe="[object Uint16Array]",ee="[object Uint32Array]";function ie(ye,be,he){var ue=ye.constructor;switch(be){case M:return c(ye);case S:case g:return new ue(+ye);case X:return v(ye,he);case R:case C:case V:case J:case _:case Q:case Y:case fe:case ee:return b(ye,he);case L:return new ue;case D:case q:return new ue(ye);case B:return x(ye);case j:return new ue;case W:return d(ye)}}h.exports=ie},38517:(h,I,a)=>{var c=a(3118),v=a(85924),x=a(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,a)=>{var c=a(62705),v=a(35694),x=a(1469),d=c?c.isConcatSpreadable:void 0;function b(S){return x(S)||v(S)||!!(d&&S&&S[d])}h.exports=b},65776:h=>{var I=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&a.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,a)=>{var c=a(77813),v=a(98612),x=a(65776),d=a(13218);function b(S,g,L){if(!d(L))return!1;var D=typeof g;return(D=="number"?v(L)&&x(g,L.length):D=="string"&&g in L)?c(L[g],S):!1}h.exports=b},15403:(h,I,a)=>{var c=a(1469),v=a(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(S,g){if(c(S))return!1;var L=typeof S;return L=="number"||L=="symbol"||L=="boolean"||S==null||v(S)?!0:d.test(S)||!x.test(S)||g!=null&&S in Object(g)}h.exports=b},37019:h=>{function I(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}h.exports=I},15346:(h,I,a)=>{var c=a(14429),v=function(){var d=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function x(d){return!!v&&v in d}h.exports=x},25726:h=>{var I=Object.prototype;function a(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=a},89162:(h,I,a)=>{var c=a(13218);function v(x){return x===x&&!c(x)}h.exports=v},27040:h=>{function I(){this.__data__=[],this.size=0}h.exports=I},14125:(h,I,a)=>{var c=a(18470),v=Array.prototype,x=v.splice;function d(b){var S=this.__data__,g=c(S,b);if(g<0)return!1;var L=S.length-1;return g==L?S.pop():x.call(S,g,1),--this.size,!0}h.exports=d},82117:(h,I,a)=>{var c=a(18470);function v(x){var d=this.__data__,b=c(d,x);return b<0?void 0:d[b][1]}h.exports=v},67518:(h,I,a)=>{var c=a(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,a)=>{var c=a(18470);function v(x,d){var b=this.__data__,S=c(b,x);return S<0?(++this.size,b.push([x,d])):b[S][1]=d,this}h.exports=v},24785:(h,I,a)=>{var c=a(1989),v=a(38407),x=a(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,a)=>{var c=a(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,a)=>{var c=a(45050);function v(x,d){var b=c(this,x),S=b.size;return b.set(x,d),this.size+=b.size==S?0:1,this}h.exports=v},68776:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(a,c){return function(v){return v==null?!1:v[a]===c&&(c!==void 0||a in Object(v))}}h.exports=I},24523:(h,I,a)=>{var c=a(88306),v=500;function x(d){var b=c(d,function(g){return S.size===v&&S.clear(),g}),S=b.cache;return b}h.exports=x},94536:(h,I,a)=>{var c=a(10852),v=c(Object,"create");h.exports=v},86916:(h,I,a)=>{var c=a(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(a){var c=[];if(a!=null)for(var v in Object(a))c.push(v);return c}h.exports=I},31167:(h,I,a)=>{h=a.nmd(h);var c=a(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,S=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();h.exports=S},2333:h=>{var I=Object.prototype,a=I.toString;function c(v){return a.call(v)}h.exports=c},5569:h=>{function I(a,c){return function(v){return a(c(v))}}h.exports=I},45357:(h,I,a)=>{var c=a(96874),v=Math.max;function x(d,b,S){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,L=-1,D=v(g.length-b,0),B=Array(D);++L<D;)B[L]=g[b+L];L=-1;for(var j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=S(B),c(d,this,j)}}h.exports=x},55639:(h,I,a)=>{var c=a(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();h.exports=x},90619:h=>{var I="__lodash_hash_undefined__";function a(c){return this.__data__.set(c,I),this}h.exports=a},72385:h=>{function I(a){return this.__data__.has(a)}h.exports=I},21814:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,a)=>{var c=a(56560),v=a(21275),x=v(c);h.exports=x},21275:h=>{var I=800,a=16,c=Date.now;function v(x){var d=0,b=0;return function(){var S=c(),g=a-(S-b);if(b=S,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,a)=>{var c=a(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(a){var c=this.__data__,v=c.delete(a);return this.size=c.size,v}h.exports=I},67599:h=>{function I(a){return this.__data__.get(a)}h.exports=I},44758:h=>{function I(a){return this.__data__.has(a)}h.exports=I},34309:(h,I,a)=>{var c=a(38407),v=a(57071),x=a(83369),d=200;function b(S,g){var L=this.__data__;if(L instanceof c){var D=L.__data__;if(!v||D.length<d-1)return D.push([S,g]),this.size=++L.size,this;L=this.__data__=new x(D)}return L.set(S,g),this.size=L.size,this}h.exports=b},55514:(h,I,a)=>{var c=a(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var S=[];return b.charCodeAt(0)===46&&S.push(""),b.replace(v,function(g,L,D,B){S.push(D?B.replace(x,"$1"):L||g)}),S});h.exports=d},40327:(h,I,a)=>{var c=a(33448),v=1/0;function x(d){if(typeof d=="string"||c(d))return d;var b=d+"";return b=="0"&&1/d==-v?"-0":b}h.exports=x},80346:h=>{var I=Function.prototype,a=I.toString;function c(v){if(v!=null){try{return a.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function a(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=a},28583:(h,I,a)=>{var c=a(34865),v=a(98363),x=a(21463),d=a(98612),b=a(25726),S=a(3674),g=Object.prototype,L=g.hasOwnProperty,D=x(function(B,j){if(b(j)||d(j)){v(j,S(j),B);return}for(var q in j)L.call(j,q)&&c(B,q,j[q])});h.exports=D},50361:(h,I,a)=>{var c=a(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(a){return function(){return a}}h.exports=I},77813:h=>{function I(a,c){return a===c||a!==a&&c!==c}h.exports=I},13311:(h,I,a)=>{var c=a(67740),v=a(30998),x=c(v);h.exports=x},30998:(h,I,a)=>{var c=a(41848),v=a(67206),x=a(40554),d=Math.max;function b(S,g,L){var D=S==null?0:S.length;if(!D)return-1;var B=L==null?0:x(L);return B<0&&(B=d(D+B,0)),c(S,v(g,3),B)}h.exports=b},85564:(h,I,a)=>{var c=a(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,a)=>{var c=a(97786);function v(x,d,b){var S=x==null?void 0:c(x,d);return S===void 0?b:S}h.exports=v},79095:(h,I,a)=>{var c=a(13),v=a(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(a){return a}h.exports=I},35694:(h,I,a)=>{var c=a(9454),v=a(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,S=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=S},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,a)=>{var c=a(23560),v=a(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=a(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,S=b?c.Buffer:void 0,g=S?S.isBuffer:void 0,L=g||v;h.exports=L},41609:(h,I,a)=>{var c=a(280),v=a(98882),x=a(35694),d=a(1469),b=a(98612),S=a(44144),g=a(25726),L=a(36719),D="[object Map]",B="[object Set]",j=Object.prototype,q=j.hasOwnProperty;function W(M){if(M==null)return!0;if(b(M)&&(d(M)||typeof M=="string"||typeof M.splice=="function"||S(M)||L(M)||x(M)))return!M.length;var X=v(M);if(X==D||X==B)return!M.size;if(g(M))return!c(M).length;for(var R in M)if(q.call(M,R))return!1;return!0}h.exports=W},23560:(h,I,a)=>{var c=a(44239),v=a(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",S="[object Proxy]";function g(L){if(!v(L))return!1;var D=c(L);return D==d||D==b||D==x||D==S}h.exports=g},41780:h=>{var I=9007199254740991;function a(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=a},56688:(h,I,a)=>{var c=a(25588),v=a(7518),x=a(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(a){return a!=null&&typeof a=="object"}h.exports=I},68630:(h,I,a)=>{var c=a(44239),v=a(85924),x=a(37005),d="[object Object]",b=Function.prototype,S=Object.prototype,g=b.toString,L=S.hasOwnProperty,D=g.call(Object);function B(j){if(!x(j)||c(j)!=d)return!1;var q=v(j);if(q===null)return!0;var W=L.call(q,"constructor")&&q.constructor;return typeof W=="function"&&W instanceof W&&g.call(W)==D}h.exports=B},72928:(h,I,a)=>{var c=a(29221),v=a(7518),x=a(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,a)=>{var c=a(44239),v=a(1469),x=a(37005),d="[object String]";function b(S){return typeof S=="string"||!v(S)&&x(S)&&c(S)==d}h.exports=b},33448:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,a)=>{var c=a(38749),v=a(7518),x=a(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,a)=>{var c=a(14636),v=a(280),x=a(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,a)=>{var c=a(14636),v=a(10313),x=a(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,a)=>{var c=a(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var S=function(){var g=arguments,L=b?b.apply(this,g):g[0],D=S.cache;if(D.has(L))return D.get(L);var B=d.apply(this,g);return S.cache=D.set(L,B)||D,B};return S.cache=new(x.Cache||c),S}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,a)=>{var c=a(25970),v=a(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,a)=>{var c=a(40371),v=a(79152),x=a(15403),d=a(40327);function b(S){return x(S)?c(d(S)):v(S)}h.exports=b},10240:(h,I,a)=>{var c=a(29750),v=a(80531),x=a(40554),d=a(79833);function b(S,g,L){return S=d(S),L=L==null?0:c(x(L),0,S.length),g=v(g),S.slice(L,L+g.length)==g}h.exports=b},70479:h=>{function I(){return[]}h.exports=I},95062:h=>{function I(){return!1}h.exports=I},18601:(h,I,a)=>{var c=a(14841),v=1/0,x=17976931348623157e292;function d(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var S=b<0?-1:1;return S*x}return b===b?b:0}h.exports=d},40554:(h,I,a)=>{var c=a(18601);function v(x){var d=c(x),b=d%1;return d===d?b?d-b:d:0}h.exports=v},14841:(h,I,a)=>{var c=a(27561),v=a(13218),x=a(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function D(B){if(typeof B=="number")return B;if(x(B))return d;if(v(B)){var j=typeof B.valueOf=="function"?B.valueOf():B;B=v(j)?j+"":j}if(typeof B!="string")return B===0?B:+B;B=c(B);var q=S.test(B);return q||g.test(B)?L(B.slice(2),q?2:8):b.test(B)?d:+B}h.exports=D},79833:(h,I,a)=>{var c=a(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,a)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,x=c&&v&&typeof v.get=="function"?v.get:null,d=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,S=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&S&&typeof S.get=="function"?S.get:null,L=b&&Set.prototype.forEach,D=typeof WeakMap=="function"&&WeakMap.prototype,B=D?WeakMap.prototype.has:null,j=typeof WeakSet=="function"&&WeakSet.prototype,q=j?WeakSet.prototype.has:null,W=typeof WeakRef=="function"&&WeakRef.prototype,M=W?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,R=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=String.prototype.slice,_=String.prototype.replace,Q=String.prototype.toUpperCase,Y=String.prototype.toLowerCase,fe=RegExp.prototype.test,ee=Array.prototype.concat,ie=Array.prototype.join,ye=Array.prototype.slice,be=Math.floor,he=typeof BigInt=="function"?BigInt.prototype.valueOf:null,ue=Object.getOwnPropertySymbols,oe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe?"object":"symbol")?Symbol.toStringTag:null,Me=Object.prototype.propertyIsEnumerable,Pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function rt(ae,pe){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||fe.call(/e/,pe))return pe;var Ae=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var Be=ae<0?-be(-ae):be(ae);if(Be!==ae){var Ue=String(Be),Qe=J.call(pe,Ue.length+1);return _.call(Ue,Ae,"$&_")+"."+_.call(_.call(Qe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(pe,Ae,"$&_")}var Ze=a(24654),Xe=Ze.custom,ft=Et(Xe)?Xe:null;h.exports=function ae(pe,Ae,Be,Ue){var Qe=Ae||{};if(Vt(Qe,"quoteStyle")&&Qe.quoteStyle!=="single"&&Qe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Vt(Qe,"maxStringLength")&&(typeof Qe.maxStringLength=="number"?Qe.maxStringLength<0&&Qe.maxStringLength!==1/0:Qe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var vt=Vt(Qe,"customInspect")?Qe.customInspect:!0;if(typeof vt!="boolean"&&vt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Vt(Qe,"indent")&&Qe.indent!==null&&Qe.indent!==" "&&!(parseInt(Qe.indent,10)===Qe.indent&&Qe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Vt(Qe,"numericSeparator")&&typeof Qe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var At=Qe.numericSeparator;if(typeof pe=="undefined")return"undefined";if(pe===null)return"null";if(typeof pe=="boolean")return pe?"true":"false";if(typeof pe=="string")return P(pe,Qe);if(typeof pe=="number"){if(pe===0)return 1/0/pe>0?"0":"-0";var Bt=String(pe);return At?rt(pe,Bt):Bt}if(typeof pe=="bigint"){var Pt=String(pe)+"n";return At?rt(pe,Pt):Pt}var dn=typeof Qe.depth=="undefined"?5:Qe.depth;if(typeof Be=="undefined"&&(Be=0),Be>=dn&&dn>0&&typeof pe=="object")return nt(pe)?"[Array]":"[Object]";var Br=N(Qe,Be);if(typeof Ue=="undefined")Ue=[];else if(ve(Ue,pe)>=0)return"[Circular]";function Cr(Ur,Kr,Qn){if(Kr&&(Ue=ye.call(Ue),Ue.push(Kr)),Qn){var fr={depth:Qe.depth};return Vt(Qe,"quoteStyle")&&(fr.quoteStyle=Qe.quoteStyle),ae(Ur,fr,Be+1,Ue)}return ae(Ur,Qe,Be+1,Ue)}if(typeof pe=="function"&&!yt(pe)){var bi=Dt(pe),Gr=de(pe,Cr);return"[Function"+(bi?": "+bi:" (anonymous)")+"]"+(Gr.length>0?" { "+ie.call(Gr,", ")+" }":"")}if(Et(pe)){var ji=Fe?_.call(String(pe),/^(Symbol\(.*\))_[^)]*$/,"$1"):oe.call(pe);return typeof pe=="object"&&!Fe?K(ji):ji}if(Ke(pe)){for(var Nn="<"+Y.call(String(pe.nodeName)),pn=pe.attributes||[],On=0;On<pn.length;On++)Nn+=" "+pn[On].name+"="+ht(bt(pn[On].value),"double",Qe);return Nn+=">",pe.childNodes&&pe.childNodes.length&&(Nn+="..."),Nn+="</"+Y.call(String(pe.nodeName))+">",Nn}if(nt(pe)){if(pe.length===0)return"[]";var $r=de(pe,Cr);return Br&&!se($r)?"["+te($r,Br)+"]":"[ "+ie.call($r,", ")+" ]"}if(mt(pe)){var wi=de(pe,Cr);return!("cause"in Error.prototype)&&"cause"in pe&&!Me.call(pe,"cause")?"{ ["+String(pe)+"] "+ie.call(ee.call("[cause]: "+Cr(pe.cause),wi),", ")+" }":wi.length===0?"["+String(pe)+"]":"{ ["+String(pe)+"] "+ie.call(wi,", ")+" }"}if(typeof pe=="object"&&vt){if(ft&&typeof pe[ft]=="function"&&Ze)return Ze(pe,{depth:dn-Be});if(vt!=="symbol"&&typeof pe.inspect=="function")return pe.inspect()}if(z(pe)){var Si=[];return d.call(pe,function(Ur,Kr){Si.push(Cr(Kr,pe,!0)+" => "+Cr(Ur,pe))}),O("Map",x.call(pe),Si,Br)}if(Ie(pe)){var en=[];return L.call(pe,function(Ur){en.push(Cr(Ur,pe))}),O("Set",g.call(pe),en,Br)}if($(pe))return T("WeakMap");if(Ge(pe))return T("WeakSet");if(Se(pe))return T("WeakRef");if(Mt(pe))return K(Cr(Number(pe)));if(Ht(pe))return K(Cr(he.call(pe)));if(kt(pe))return K(X.call(pe));if(pt(pe))return K(Cr(String(pe)));if(!ut(pe)&&!yt(pe)){var hn=de(pe,Cr),Bn=Pe?Pe(pe)===Object.prototype:pe instanceof Object||pe.constructor===Object,Un=pe instanceof Object?"":"null prototype",vn=!Bn&&Le&&Object(pe)===pe&&Le in pe?J.call(wt(pe),8,-1):Un?"Object":"",Xn=Bn||typeof pe.constructor!="function"?"":pe.constructor.name?pe.constructor.name+" ":"",Ai=Xn+(vn||Un?"["+ie.call(ee.call([],vn||[],Un||[]),": ")+"] ":"");return hn.length===0?Ai+"{}":Br?Ai+"{"+te(hn,Br)+"}":Ai+"{ "+ie.call(hn,", ")+" }"}return String(pe)};function ht(ae,pe,Ae){var Be=(Ae.quoteStyle||pe)==="double"?'"':"'";return Be+ae+Be}function bt(ae){return _.call(String(ae),/"/g,""")}function nt(ae){return wt(ae)==="[object Array]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function ut(ae){return wt(ae)==="[object Date]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function yt(ae){return wt(ae)==="[object RegExp]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function mt(ae){return wt(ae)==="[object Error]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function pt(ae){return wt(ae)==="[object String]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Mt(ae){return wt(ae)==="[object Number]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function kt(ae){return wt(ae)==="[object Boolean]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Et(ae){if(Fe)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!oe)return!1;try{return oe.call(ae),!0}catch(pe){}return!1}function Ht(ae){if(!ae||typeof ae!="object"||!he)return!1;try{return he.call(ae),!0}catch(pe){}return!1}var jt=Object.prototype.hasOwnProperty||function(ae){return ae in this};function Vt(ae,pe){return jt.call(ae,pe)}function wt(ae){return R.call(ae)}function Dt(ae){if(ae.name)return ae.name;var pe=V.call(C.call(ae),/^function\s*([\w$]+)/);return pe?pe[1]:null}function ve(ae,pe){if(ae.indexOf)return ae.indexOf(pe);for(var Ae=0,Be=ae.length;Ae<Be;Ae++)if(ae[Ae]===pe)return Ae;return-1}function z(ae){if(!x||!ae||typeof ae!="object")return!1;try{x.call(ae);try{g.call(ae)}catch(pe){return!0}return ae instanceof Map}catch(pe){}return!1}function $(ae){if(!B||!ae||typeof ae!="object")return!1;try{B.call(ae,B);try{q.call(ae,q)}catch(pe){return!0}return ae instanceof WeakMap}catch(pe){}return!1}function Se(ae){if(!M||!ae||typeof ae!="object")return!1;try{return M.call(ae),!0}catch(pe){}return!1}function Ie(ae){if(!g||!ae||typeof ae!="object")return!1;try{g.call(ae);try{x.call(ae)}catch(pe){return!0}return ae instanceof Set}catch(pe){}return!1}function Ge(ae){if(!q||!ae||typeof ae!="object")return!1;try{q.call(ae,q);try{B.call(ae,B)}catch(pe){return!0}return ae instanceof WeakSet}catch(pe){}return!1}function Ke(ae){return!ae||typeof ae!="object"?!1:typeof HTMLElement!="undefined"&&ae instanceof HTMLElement?!0:typeof ae.nodeName=="string"&&typeof ae.getAttribute=="function"}function P(ae,pe){if(ae.length>pe.maxStringLength){var Ae=ae.length-pe.maxStringLength,Be="... "+Ae+" more character"+(Ae>1?"s":"");return P(J.call(ae,0,pe.maxStringLength),pe)+Be}var Ue=_.call(_.call(ae,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Re);return ht(Ue,"single",pe)}function Re(ae){var pe=ae.charCodeAt(0),Ae={8:"b",9:"t",10:"n",12:"f",13:"r"}[pe];return Ae?"\\"+Ae:"\\x"+(pe<16?"0":"")+Q.call(pe.toString(16))}function K(ae){return"Object("+ae+")"}function T(ae){return ae+" { ? }"}function O(ae,pe,Ae,Be){var Ue=Be?te(Ae,Be):ie.call(Ae,", ");return ae+" ("+pe+") {"+Ue+"}"}function se(ae){for(var pe=0;pe<ae.length;pe++)if(ve(ae[pe],`
|
|
496
|
-
`)>=0)return!1;return!0}function N(ae,pe){var
|
|
497
|
-
`+pe.prev+pe.base;return
|
|
498
|
-
`+pe.prev}function de(ae,pe){var Ae=nt(ae),Be=[];if(Ae){Be.length=ae.length;for(var Ue=0;Ue<ae.length;Ue++)Be[Ue]=Vt(ae,Ue)?pe(ae[Ue],ae):""}var Qe=typeof ue=="function"?ue(ae):[],vt;if(Fe){vt={};for(var At=0;At<Qe.length;At++)vt["$"+Qe[At]]=Qe[At]}for(var Bt in ae)!Vt(ae,Bt)||Ae&&String(Number(Bt))===Bt&&Bt<ae.length||Fe&&vt["$"+Bt]instanceof Symbol||(fe.call(/[^\w$]/,Bt)?Be.push(pe(Bt,ae)+": "+pe(ae[Bt],ae)):Be.push(Bt+": "+pe(ae[Bt],ae)));if(typeof ue=="function")for(var Pt=0;Pt<Qe.length;Pt++)Me.call(ae,Qe[Pt])&&Be.push("["+pe(Qe[Pt])+"]: "+pe(ae[Qe[Pt]],ae));return Be}},9779:(h,I,a)=>{"use strict";var c=I,v=a(48764).Buffer;c.unescapeBuffer=function(L,D){for(var B=new v(L.length),j=0,q,W,M,X=0,R=0;X<=L.length;X++){var C=X<L.length?L.charCodeAt(X):NaN;switch(j){case 0:switch(C){case 37:q=0,W=0,j=1;break;case 43:D&&(C=32);default:B[R++]=C;break}break;case 1:if(M=C,C>=48&&C<=57)q=C-48;else if(C>=65&&C<=70)q=C-65+10;else if(C>=97&&C<=102)q=C-97+10;else{B[R++]=37,B[R++]=C,j=0;break}j=2;break;case 2:if(j=0,C>=48&&C<=57)W=C-48;else if(C>=65&&C<=70)W=C-65+10;else if(C>=97&&C<=102)W=C-97+10;else{B[R++]=37,B[R++]=M,B[R++]=C;break}B[R++]=16*q+W;break}}return B.slice(0,R-1)};function x(L,D){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,D).toString()}}c.unescape=x;for(var d=new Array(256),b=0;b<256;++b)d[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var D="",B=0,j=0;j<L.length;++j){var q=L.charCodeAt(j);if(!(q===33||q===45||q===46||q===95||q===126||q>=39&&q<=42||q>=48&&q<=57||q>=65&&q<=90||q>=97&&q<=122)){if(j-B>0&&(D+=L.slice(B,j)),q<128){B=j+1,D+=d[q];continue}if(q<2048){B=j+1,D+=d[192|q>>6]+d[128|q&63];continue}if(q<55296||q>=57344){B=j+1,D+=d[224|q>>12]+d[128|q>>6&63]+d[128|q&63];continue}++j;var W;if(j<L.length)W=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,q=65536+((q&1023)<<10|W),D+=d[240|q>>18]+d[128|q>>12&63]+d[128|q>>6&63]+d[128|q&63]}}return B===0?L:B<L.length?D+L.slice(B):D};var S=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,D,B,j){D=D||"&",B=B||"=";var q=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(q=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var W=Object.keys(L),M=W.length,X=M-1,R="",C=0;C<M;++C){var V=W[C],J=L[V],_=q(S(V))+B;if(Array.isArray(J)){for(var Q=J.length,Y=Q-1,fe=0;fe<Q;++fe)R+=_+q(S(J[fe])),fe<Y&&(R+=D);Q&&C<X&&(R+=D)}else R+=_+q(S(J)),C<X&&(R+=D)}return R}return""},c.parse=c.decode=function(L,D,B,j){D=D||"&",B=B||"=";var q={};if(typeof L!="string"||L.length===0)return q;typeof D!="string"&&(D+="");var W=B.length,M=D.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var R=1/0;X>0&&(R=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],_=0,Q=0,Y=0,fe="",ee="",ie=V,ye=V,be=0,he=0;he<L.length;++he){var ue=L.charCodeAt(he);if(ue===D.charCodeAt(Q)){if(++Q===M){var oe=he-Q+1;if(Y<W?_<oe&&(fe+=L.slice(_,oe)):_<oe&&(ee+=L.slice(_,oe)),ie&&(fe=g(fe,C)),ye&&(ee=g(ee,C)),J.indexOf(fe)===-1)q[fe]=ee,J[J.length]=fe;else{var Fe=q[fe];Fe instanceof Array?Fe[Fe.length]=ee:q[fe]=[Fe,ee]}if(--R==0)break;ie=ye=V,be=0,fe=ee="",_=he+1,Q=Y=0}continue}else Q=0,ye||(ue===37?be=1:be>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++be==3&&(ye=!0):be=0);if(Y<W)if(ue===B.charCodeAt(Y)){if(++Y===W){var oe=he-Y+1;_<oe&&(fe+=L.slice(_,oe)),be=0,_=he+1}continue}else Y=0,ie||(ue===37?be=1:be>0&&(ue>=48&&ue<=57||ue>=65&&ue<=70||ue>=97&&ue<=102)?++be==3&&(ie=!0):be=0);ue===43&&(Y<W?(he-_>0&&(fe+=L.slice(_,he)),fe+="%20",ie=!0):(he-_>0&&(ee+=L.slice(_,he)),ee+="%20",ye=!0),_=he+1)}if(R>0&&(_<L.length||Y>0))if(_<L.length&&(Y<W?fe+=L.slice(_):Q<M&&(ee+=L.slice(_))),ie&&(fe=g(fe,C)),ye&&(ee=g(ee,C)),J.indexOf(fe)===-1)q[fe]=ee,J[J.length]=fe;else{var Fe=q[fe];Fe instanceof Array?Fe[Fe.length]=ee:q[fe]=[Fe,ee]}return q};function g(L,D){try{return D(L)}catch(B){return c.unescape(L,!0)}}},35310:(h,I,a)=>{"use strict";var c;function v(){return v=Object.assign||function(q){for(var W=1;W<arguments.length;W++){var M=arguments[W];for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&(q[X]=M[X])}return q},v.apply(this,arguments)}function x(q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(M){return typeof M}:x=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},x(q)}var d=function(){var q=function(M,X){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,C){R.__proto__=C}||function(R,C){for(var V in C)C.hasOwnProperty(V)&&(R[V]=C[V])},q(M,X)};return function(W,M){q(W,M);function X(){this.constructor=W}W.prototype=M===null?Object.create(M):(X.prototype=M.prototype,new X)}}();c={value:!0},c=I.fk=void 0;var b=a(67294),S=typeof navigator=="undefined"||a.g.PREVENT_CODEMIRROR_RENDER===!0,g;S||(g=a(4631));var L=function(){function q(){}return q.equals=function(W,M){var X=this,R=Object.keys,C=x(W),V=x(M);return W&&M&&C==="object"&&C===V?R(W).length===R(M).length&&R(W).every(function(J){return X.equals(W[J],M[J])}):W===M},q}(),D=function(){function q(W,M){this.editor=W,this.props=M}return q.prototype.delegateCursor=function(W,M,X){var R=this.editor.getDoc();X&&this.editor.focus(),M?R.setCursor(W):R.setCursor(W,null,{scroll:!1})},q.prototype.delegateScroll=function(W){this.editor.scrollTo(W.x,W.y)},q.prototype.delegateSelection=function(W,M){var X=this.editor.getDoc();X.setSelections(W),M&&this.editor.focus()},q.prototype.apply=function(W){W&&W.selection&&W.selection.ranges&&this.delegateSelection(W.selection.ranges,W.selection.focus||!1),W&&W.cursor&&this.delegateCursor(W.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1),W&&W.scroll&&this.delegateScroll(W.scroll)},q.prototype.applyNext=function(W,M,X){W&&W.selection&&W.selection.ranges&&M&&M.selection&&M.selection.ranges&&!L.equals(W.selection.ranges,M.selection.ranges)&&this.delegateSelection(M.selection.ranges,M.selection.focus||!1),W&&W.cursor&&M&&M.cursor&&!L.equals(W.cursor,M.cursor)&&this.delegateCursor(X.cursor||M.cursor,M.autoScroll||!1,M.autoCursor||!1),W&&W.scroll&&M&&M.scroll&&!L.equals(W.scroll,M.scroll)&&this.delegateScroll(M.scroll)},q.prototype.applyUserDefined=function(W,M){M&&M.cursor&&this.delegateCursor(M.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1)},q.prototype.wire=function(W){var M=this;Object.keys(W||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":M.editor.on("blur",function(R,C){M.props.onBlur(M.editor,C)});break;case"onContextMenu":{M.editor.on("contextmenu",function(R,C){M.props.onContextMenu(M.editor,C)});break}case"onCopy":{M.editor.on("copy",function(R,C){M.props.onCopy(M.editor,C)});break}case"onCursor":M.editor.on("cursorActivity",function(R){M.props.onCursor(M.editor,M.editor.getDoc().getCursor())});break;case"onCursorActivity":M.editor.on("cursorActivity",function(R){M.props.onCursorActivity(M.editor)});break;case"onCut":{M.editor.on("cut",function(R,C){M.props.onCut(M.editor,C)});break}case"onDblClick":{M.editor.on("dblclick",function(R,C){M.props.onDblClick(M.editor,C)});break}case"onDragEnter":M.editor.on("dragenter",function(R,C){M.props.onDragEnter(M.editor,C)});break;case"onDragLeave":{M.editor.on("dragleave",function(R,C){M.props.onDragLeave(M.editor,C)});break}case"onDragOver":M.editor.on("dragover",function(R,C){M.props.onDragOver(M.editor,C)});break;case"onDragStart":{M.editor.on("dragstart",function(R,C){M.props.onDragStart(M.editor,C)});break}case"onDrop":M.editor.on("drop",function(R,C){M.props.onDrop(M.editor,C)});break;case"onFocus":M.editor.on("focus",function(R,C){M.props.onFocus(M.editor,C)});break;case"onGutterClick":M.editor.on("gutterClick",function(R,C,V,J){M.props.onGutterClick(M.editor,C,V,J)});break;case"onInputRead":M.editor.on("inputRead",function(R,C){M.props.onInputRead(M.editor,C)});break;case"onKeyDown":M.editor.on("keydown",function(R,C){M.props.onKeyDown(M.editor,C)});break;case"onKeyHandled":M.editor.on("keyHandled",function(R,C,V){M.props.onKeyHandled(M.editor,C,V)});break;case"onKeyPress":M.editor.on("keypress",function(R,C){M.props.onKeyPress(M.editor,C)});break;case"onKeyUp":M.editor.on("keyup",function(R,C){M.props.onKeyUp(M.editor,C)});break;case"onMouseDown":{M.editor.on("mousedown",function(R,C){M.props.onMouseDown(M.editor,C)});break}case"onPaste":{M.editor.on("paste",function(R,C){M.props.onPaste(M.editor,C)});break}case"onRenderLine":{M.editor.on("renderLine",function(R,C,V){M.props.onRenderLine(M.editor,C,V)});break}case"onScroll":M.editor.on("scroll",function(R){M.props.onScroll(M.editor,M.editor.getScrollInfo())});break;case"onSelection":M.editor.on("beforeSelectionChange",function(R,C){M.props.onSelection(M.editor,C)});break;case"onTouchStart":{M.editor.on("touchstart",function(R,C){M.props.onTouchStart(M.editor,C)});break}case"onUpdate":M.editor.on("update",function(R){M.props.onUpdate(M.editor)});break;case"onViewportChange":M.editor.on("viewportChange",function(R,C,V){M.props.onViewportChange(M.editor,C,V)});break}})},q}(),B=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedNext=!1,X.appliedUserDefined=!1,X.deferred=null,X.emulating=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){R.hasOwnProperty(J)&&X.editor.getOption(J)!==C[J]&&(X.editor.setOption(J,C[J]),X.mirror.setOption(J,C[J]))}),this.hydrated||(this.deferred?this.resolveChange(M.value):this.initChange(M.value||"")),this.hydrated=!0},W.prototype.initChange=function(M){this.emulating=!0;var X=this.editor.getDoc(),R=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(M||"",{line:0,ch:0},{line:R,ch:C}),this.mirror.setValue(M),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},W.prototype.resolveChange=function(M){this.emulating=!0;var X=this.editor.getDoc();if(this.deferred.origin==="undo"?X.undo():this.deferred.origin==="redo"?X.redo():X.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),M&&M!==X.getValue()){var R=X.getCursor();X.setValue(M),X.setCursor(R)}this.emulating=!1,this.deferred=null},W.prototype.mirrorChange=function(M){var X=this.editor.getDoc();return M.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):M.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(M.text,M.from,M.to,M.origin),this.mirror.getValue()},W.prototype.componentDidMount=function(){var M=this;S||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.mirror=g(function(){},this.props.options),this.editor.on("electricInput",function(){M.mirror.setHistory(M.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){M.mirror.setCursor(M.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,R){if(!M.emulating){R.cancel(),M.deferred=R;var C=M.mirrorChange(M.deferred);M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,M.deferred,C)}}),this.editor.on("change",function(X,R){!M.mounted||M.props.onChange&&M.props.onChange(M.editor,R,M.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},W.prototype.componentDidUpdate=function(M){if(!S){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(M,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){return!S},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.ref=C}})},W}(b.Component);I.fk=B;var j=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedUserDefined=!1,X.continueChange=!1,X.detached=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1,X.onBeforeChangeCb=function(){X.continueChange=!0}),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){R.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!this.hydrated){var J=this.editor.getDoc(),_=J.lastLine(),Q=J.getLine(J.lastLine()).length;J.replaceRange(M.value||"",{line:0,ch:0},{line:_,ch:Q})}this.hydrated=!0},W.prototype.componentDidMount=function(){var M=this;S||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.editor.on("beforeChange",function(X,R){M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,R,M.editor.getValue(),M.onBeforeChangeCb)}),this.editor.on("change",function(X,R){!M.mounted||!M.props.onChange||(M.props.onBeforeChange?M.continueChange&&M.props.onChange(M.editor,R,M.editor.getValue()):M.props.onChange(M.editor,R,M.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},W.prototype.componentDidUpdate=function(M){if(this.detached&&this.props.detach===!1&&(this.detached=!1,M.editorDidAttach&&M.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,M.editorDidDetach&&M.editorDidDetach(this.editor)),!(S||this.detached)){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!M.autoCursor&&M.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(M),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0)}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){var R=!0;return S&&(R=!1),this.detached&&M.detach&&(R=!1),R},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.ref=C}})},W}(b.Component);c=j},35666:h=>{var I=function(a){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",S=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function L(Le,Me,Pe){return Object.defineProperty(Le,Me,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),Le[Me]}try{L({},"")}catch(Le){L=function(Me,Pe,rt){return Me[Pe]=rt}}function D(Le,Me,Pe,rt){var Ze=Me&&Me.prototype instanceof R?Me:R,Xe=Object.create(Ze.prototype),ft=new ue(rt||[]);return Xe._invoke=ie(Le,Pe,ft),Xe}a.wrap=D;function B(Le,Me,Pe){try{return{type:"normal",arg:Le.call(Me,Pe)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",q="suspendedYield",W="executing",M="completed",X={};function R(){}function C(){}function V(){}var J={};J[b]=function(){return this};var _=Object.getPrototypeOf,Q=_&&_(_(oe([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=R.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function fe(Le){["next","throw","return"].forEach(function(Me){L(Le,Me,function(Pe){return this._invoke(Me,Pe)})})}a.isGeneratorFunction=function(Le){var Me=typeof Le=="function"&&Le.constructor;return Me?Me===C||(Me.displayName||Me.name)==="GeneratorFunction":!1},a.mark=function(Le){return Object.setPrototypeOf?Object.setPrototypeOf(Le,V):(Le.__proto__=V,L(Le,g,"GeneratorFunction")),Le.prototype=Object.create(Y),Le},a.awrap=function(Le){return{__await:Le}};function ee(Le,Me){function Pe(Xe,ft,ht,bt){var nt=B(Le[Xe],Le,ft);if(nt.type==="throw")bt(nt.arg);else{var ut=nt.arg,yt=ut.value;return yt&&typeof yt=="object"&&v.call(yt,"__await")?Me.resolve(yt.__await).then(function(mt){Pe("next",mt,ht,bt)},function(mt){Pe("throw",mt,ht,bt)}):Me.resolve(yt).then(function(mt){ut.value=mt,ht(ut)},function(mt){return Pe("throw",mt,ht,bt)})}}var rt;function Ze(Xe,ft){function ht(){return new Me(function(bt,nt){Pe(Xe,ft,bt,nt)})}return rt=rt?rt.then(ht,ht):ht()}this._invoke=Ze}fe(ee.prototype),ee.prototype[S]=function(){return this},a.AsyncIterator=ee,a.async=function(Le,Me,Pe,rt,Ze){Ze===void 0&&(Ze=Promise);var Xe=new ee(D(Le,Me,Pe,rt),Ze);return a.isGeneratorFunction(Me)?Xe:Xe.next().then(function(ft){return ft.done?ft.value:Xe.next()})};function ie(Le,Me,Pe){var rt=j;return function(Xe,ft){if(rt===W)throw new Error("Generator is already running");if(rt===M){if(Xe==="throw")throw ft;return Fe()}for(Pe.method=Xe,Pe.arg=ft;;){var ht=Pe.delegate;if(ht){var bt=ye(ht,Pe);if(bt){if(bt===X)continue;return bt}}if(Pe.method==="next")Pe.sent=Pe._sent=Pe.arg;else if(Pe.method==="throw"){if(rt===j)throw rt=M,Pe.arg;Pe.dispatchException(Pe.arg)}else Pe.method==="return"&&Pe.abrupt("return",Pe.arg);rt=W;var nt=B(Le,Me,Pe);if(nt.type==="normal"){if(rt=Pe.done?M:q,nt.arg===X)continue;return{value:nt.arg,done:Pe.done}}else nt.type==="throw"&&(rt=M,Pe.method="throw",Pe.arg=nt.arg)}}}function ye(Le,Me){var Pe=Le.iterator[Me.method];if(Pe===x){if(Me.delegate=null,Me.method==="throw"){if(Le.iterator.return&&(Me.method="return",Me.arg=x,ye(Le,Me),Me.method==="throw"))return X;Me.method="throw",Me.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(Pe,Le.iterator,Me.arg);if(rt.type==="throw")return Me.method="throw",Me.arg=rt.arg,Me.delegate=null,X;var Ze=rt.arg;if(!Ze)return Me.method="throw",Me.arg=new TypeError("iterator result is not an object"),Me.delegate=null,X;if(Ze.done)Me[Le.resultName]=Ze.value,Me.next=Le.nextLoc,Me.method!=="return"&&(Me.method="next",Me.arg=x);else return Ze;return Me.delegate=null,X}fe(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function be(Le){var Me={tryLoc:Le[0]};1 in Le&&(Me.catchLoc=Le[1]),2 in Le&&(Me.finallyLoc=Le[2],Me.afterLoc=Le[3]),this.tryEntries.push(Me)}function he(Le){var Me=Le.completion||{};Me.type="normal",delete Me.arg,Le.completion=Me}function ue(Le){this.tryEntries=[{tryLoc:"root"}],Le.forEach(be,this),this.reset(!0)}a.keys=function(Le){var Me=[];for(var Pe in Le)Me.push(Pe);return Me.reverse(),function rt(){for(;Me.length;){var Ze=Me.pop();if(Ze in Le)return rt.value=Ze,rt.done=!1,rt}return rt.done=!0,rt}};function oe(Le){if(Le){var Me=Le[b];if(Me)return Me.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Pe=-1,rt=function Ze(){for(;++Pe<Le.length;)if(v.call(Le,Pe))return Ze.value=Le[Pe],Ze.done=!1,Ze;return Ze.value=x,Ze.done=!0,Ze};return rt.next=rt}}return{next:Fe}}a.values=oe;function Fe(){return{value:x,done:!0}}return ue.prototype={constructor:ue,reset:function(Le){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(he),!Le)for(var Me in this)Me.charAt(0)==="t"&&v.call(this,Me)&&!isNaN(+Me.slice(1))&&(this[Me]=x)},stop:function(){this.done=!0;var Le=this.tryEntries[0],Me=Le.completion;if(Me.type==="throw")throw Me.arg;return this.rval},dispatchException:function(Le){if(this.done)throw Le;var Me=this;function Pe(bt,nt){return Xe.type="throw",Xe.arg=Le,Me.next=bt,nt&&(Me.method="next",Me.arg=x),!!nt}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Ze=this.tryEntries[rt],Xe=Ze.completion;if(Ze.tryLoc==="root")return Pe("end");if(Ze.tryLoc<=this.prev){var ft=v.call(Ze,"catchLoc"),ht=v.call(Ze,"finallyLoc");if(ft&&ht){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0);if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else if(ft){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0)}else if(ht){if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Le,Me){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var rt=this.tryEntries[Pe];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Ze=rt;break}}Ze&&(Le==="break"||Le==="continue")&&Ze.tryLoc<=Me&&Me<=Ze.finallyLoc&&(Ze=null);var Xe=Ze?Ze.completion:{};return Xe.type=Le,Xe.arg=Me,Ze?(this.method="next",this.next=Ze.finallyLoc,X):this.complete(Xe)},complete:function(Le,Me){if(Le.type==="throw")throw Le.arg;return Le.type==="break"||Le.type==="continue"?this.next=Le.arg:Le.type==="return"?(this.rval=this.arg=Le.arg,this.method="return",this.next="end"):Le.type==="normal"&&Me&&(this.next=Me),X},finish:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Pe=this.tryEntries[Me];if(Pe.finallyLoc===Le)return this.complete(Pe.completion,Pe.afterLoc),he(Pe),X}},catch:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Pe=this.tryEntries[Me];if(Pe.tryLoc===Le){var rt=Pe.completion;if(rt.type==="throw"){var Ze=rt.arg;he(Pe)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(Le,Me,Pe){return this.delegate={iterator:oe(Le),resultName:Me,nextLoc:Pe},this.method==="next"&&(this.arg=x),X}},a}(h.exports);try{regeneratorRuntime=I}catch(a){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,a)=>{"use strict";var c=a(40210),v=a(21924),x=a(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),S=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),D=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),j=v("Map.prototype.set",!0),q=v("Map.prototype.has",!0),W=function(C,V){for(var J=C,_;(_=J.next)!==null;J=_)if(_.key===V)return J.next=_.next,_.next=C.next,C.next=_,_},M=function(C,V){var J=W(C,V);return J&&J.value},X=function(C,V,J){var _=W(C,V);_?_.value=J:C.next={key:V,next:C.next,value:J}},R=function(C,V){return!!W(C,V)};h.exports=function(){var V,J,_,Q={assert:function(Y){if(!Q.has(Y))throw new d("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(S){if(J)return B(J,Y)}else if(_)return M(_,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return D(V,Y)}else if(S){if(J)return q(J,Y)}else if(_)return R(_,Y);return!1},set:function(Y,fe){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,fe)):S?(J||(J=new S),j(J,Y,fe)):(_||(_={key:{},next:null}),X(_,Y,fe))}};return Q}},13837:(h,I,a)=>{var c=a(93379),v=a(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},75019:(h,I,a)=>{var c=a(93379),v=a(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},86081:(h,I,a)=>{var c=a(93379),v=a(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},44254:(h,I,a)=>{var c=a(93379),v=a(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},88996:(h,I,a)=>{"use strict";/*!
|
|
518
|
+
\r`;function b(D){if(D===null)return!1;var B,j,q=0,W=D.length,M=d;for(j=0;j<W;j++)if(B=M.indexOf(D.charAt(j)),!(B>64)){if(B<0)return!1;q+=6}return q%8==0}function S(D){var B,j,q=D.replace(/[\r\n=]/g,""),W=q.length,M=d,X=0,R=[];for(B=0;B<W;B++)B%4==0&&B&&(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)),X=X<<6|M.indexOf(q.charAt(B));return j=W%4*6,j===0?(R.push(X>>16&255),R.push(X>>8&255),R.push(X&255)):j===18?(R.push(X>>10&255),R.push(X>>2&255)):j===12&&R.push(X>>4&255),c?c.from?c.from(R):new c(R):R}function g(D){var B="",j=0,q,W,M=D.length,X=d;for(q=0;q<M;q++)q%3==0&&q&&(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]),j=(j<<8)+D[q];return W=M%3,W===0?(B+=X[j>>18&63],B+=X[j>>12&63],B+=X[j>>6&63],B+=X[j&63]):W===2?(B+=X[j>>10&63],B+=X[j>>4&63],B+=X[j<<2&63],B+=X[64]):W===1&&(B+=X[j>>2&63],B+=X[j<<4&63],B+=X[64],B+=X[64]),B}function L(D){return c&&c.isBuffer(D)}h.exports=new x("tag:yaml.org,2002:binary",{kind:"scalar",resolve:b,construct:S,predicate:L,represent:g})},2648:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!1;var S=b.length;return S===4&&(b==="true"||b==="True"||b==="TRUE")||S===5&&(b==="false"||b==="False"||b==="FALSE")}function x(b){return b==="true"||b==="True"||b==="TRUE"}function d(b){return Object.prototype.toString.call(b)==="[object Boolean]"}h.exports=new c("tag:yaml.org,2002:bool",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{lowercase:function(b){return b?"true":"false"},uppercase:function(b){return b?"TRUE":"FALSE"},camelcase:function(b){return b?"True":"False"}},defaultStyle:"lowercase"})},53456:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899),x=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function d(D){return!(D===null||!x.test(D)||D[D.length-1]==="_")}function b(D){var B,j,q,W;return B=D.replace(/_/g,"").toLowerCase(),j=B[0]==="-"?-1:1,W=[],"+-".indexOf(B[0])>=0&&(B=B.slice(1)),B===".inf"?j===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:B===".nan"?NaN:B.indexOf(":")>=0?(B.split(":").forEach(function(M){W.unshift(parseFloat(M,10))}),B=0,q=1,W.forEach(function(M){B+=M*q,q*=60}),j*B):j*parseFloat(B,10)}var S=/^[-+]?[0-9]+e/;function g(D,B){var j;if(isNaN(D))switch(B){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===D)switch(B){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===D)switch(B){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(c.isNegativeZero(D))return"-0.0";return j=D.toString(10),S.test(j)?j.replace("e",".e"):j}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&(D%1!=0||c.isNegativeZero(D))}h.exports=new v("tag:yaml.org,2002:float",{kind:"scalar",resolve:d,construct:b,predicate:L,represent:g,defaultStyle:"lowercase"})},95979:(h,I,a)=>{"use strict";var c=a(25596),v=a(53899);function x(D){return 48<=D&&D<=57||65<=D&&D<=70||97<=D&&D<=102}function d(D){return 48<=D&&D<=55}function b(D){return 48<=D&&D<=57}function S(D){if(D===null)return!1;var B=D.length,j=0,q=!1,W;if(!B)return!1;if(W=D[j],(W==="-"||W==="+")&&(W=D[++j]),W==="0"){if(j+1===B)return!0;if(W=D[++j],W==="b"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(W!=="0"&&W!=="1")return!1;q=!0}return q&&W!=="_"}if(W==="x"){for(j++;j<B;j++)if(W=D[j],W!=="_"){if(!x(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}for(;j<B;j++)if(W=D[j],W!=="_"){if(!d(D.charCodeAt(j)))return!1;q=!0}return q&&W!=="_"}if(W==="_")return!1;for(;j<B;j++)if(W=D[j],W!=="_"){if(W===":")break;if(!b(D.charCodeAt(j)))return!1;q=!0}return!q||W==="_"?!1:W!==":"?!0:/^(:[0-5]?[0-9])+$/.test(D.slice(j))}function g(D){var B=D,j=1,q,W,M=[];return B.indexOf("_")!==-1&&(B=B.replace(/_/g,"")),q=B[0],(q==="-"||q==="+")&&(q==="-"&&(j=-1),B=B.slice(1),q=B[0]),B==="0"?0:q==="0"?B[1]==="b"?j*parseInt(B.slice(2),2):B[1]==="x"?j*parseInt(B,16):j*parseInt(B,8):B.indexOf(":")!==-1?(B.split(":").forEach(function(X){M.unshift(parseInt(X,10))}),B=0,W=1,M.forEach(function(X){B+=X*W,W*=60}),j*B):j*parseInt(B,10)}function L(D){return Object.prototype.toString.call(D)==="[object Number]"&&D%1==0&&!c.isNegativeZero(D)}h.exports=new v("tag:yaml.org,2002:int",{kind:"scalar",resolve:S,construct:g,predicate:L,represent:{binary:function(D){return D>=0?"0b"+D.toString(2):"-0b"+D.toString(2).slice(1)},octal:function(D){return D>=0?"0"+D.toString(8):"-0"+D.toString(8).slice(1)},decimal:function(D){return D.toString(10)},hexadecimal:function(D){return D>=0?"0x"+D.toString(16).toUpperCase():"-0x"+D.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},89811:(h,I,a)=>{"use strict";var c;try{var v=void 0;c=a(88150)}catch(L){typeof window!="undefined"&&(c=window.esprima)}var x=a(53899);function d(L){if(L===null)return!1;try{var D="("+L+")",B=c.parse(D,{range:!0});return!(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")}catch(j){return!1}}function b(L){var D="("+L+")",B=c.parse(D,{range:!0}),j=[],q;if(B.type!=="Program"||B.body.length!==1||B.body[0].type!=="ExpressionStatement"||B.body[0].expression.type!=="ArrowFunctionExpression"&&B.body[0].expression.type!=="FunctionExpression")throw new Error("Failed to resolve function");return B.body[0].expression.params.forEach(function(W){j.push(W.name)}),q=B.body[0].expression.body.range,B.body[0].expression.body.type==="BlockStatement"?new Function(j,D.slice(q[0]+1,q[1]-1)):new Function(j,"return "+D.slice(q[0],q[1]))}function S(L){return L.toString()}function g(L){return Object.prototype.toString.call(L)==="[object Function]"}h.exports=new x("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:d,construct:b,predicate:g,represent:S})},97287:(h,I,a)=>{"use strict";var c=a(53899);function v(S){if(S===null||S.length===0)return!1;var g=S,L=/\/([gim]*)$/.exec(S),D="";return!(g[0]==="/"&&(L&&(D=L[1]),D.length>3||g[g.length-D.length-1]!=="/"))}function x(S){var g=S,L=/\/([gim]*)$/.exec(S),D="";return g[0]==="/"&&(L&&(D=L[1]),g=g.slice(1,g.length-D.length-1)),new RegExp(g,D)}function d(S){var g="/"+S.source+"/";return S.global&&(g+="g"),S.multiline&&(g+="m"),S.ignoreCase&&(g+="i"),g}function b(S){return Object.prototype.toString.call(S)==="[object RegExp]"}h.exports=new c("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},70575:(h,I,a)=>{"use strict";var c=a(53899);function v(){return!0}function x(){}function d(){return""}function b(S){return typeof S=="undefined"}h.exports=new c("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:v,construct:x,predicate:b,represent:d})},86553:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:map",{kind:"mapping",construct:function(v){return v!==null?v:{}}})},243:(h,I,a)=>{"use strict";var c=a(53899);function v(x){return x==="<<"||x===null}h.exports=new c("tag:yaml.org,2002:merge",{kind:"scalar",resolve:v})},3022:(h,I,a)=>{"use strict";var c=a(53899);function v(b){if(b===null)return!0;var S=b.length;return S===1&&b==="~"||S===4&&(b==="null"||b==="Null"||b==="NULL")}function x(){return null}function d(b){return b===null}h.exports=new c("tag:yaml.org,2002:null",{kind:"scalar",resolve:v,construct:x,predicate:d,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},3878:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty,x=Object.prototype.toString;function d(S){if(S===null)return!0;var g=[],L,D,B,j,q,W=S;for(L=0,D=W.length;L<D;L+=1){if(B=W[L],q=!1,x.call(B)!=="[object Object]")return!1;for(j in B)if(v.call(B,j))if(!q)q=!0;else return!1;if(!q)return!1;if(g.indexOf(j)===-1)g.push(j);else return!1}return!0}function b(S){return S!==null?S:[]}h.exports=new c("tag:yaml.org,2002:omap",{kind:"sequence",resolve:d,construct:b})},68244:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.toString;function x(b){if(b===null)return!0;var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1){if(L=j[S],v.call(L)!=="[object Object]"||(D=Object.keys(L),D.length!==1))return!1;B[S]=[D[0],L[D[0]]]}return!0}function d(b){if(b===null)return[];var S,g,L,D,B,j=b;for(B=new Array(j.length),S=0,g=j.length;S<g;S+=1)L=j[S],D=Object.keys(L),B[S]=[D[0],L[D[0]]];return B}h.exports=new c("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:x,construct:d})},43745:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(v){return v!==null?v:[]}})},67300:(h,I,a)=>{"use strict";var c=a(53899),v=Object.prototype.hasOwnProperty;function x(b){if(b===null)return!0;var S,g=b;for(S in g)if(v.call(g,S)&&g[S]!==null)return!1;return!0}function d(b){return b!==null?b:{}}h.exports=new c("tag:yaml.org,2002:set",{kind:"mapping",resolve:x,construct:d})},79483:(h,I,a)=>{"use strict";var c=a(53899);h.exports=new c("tag:yaml.org,2002:str",{kind:"scalar",construct:function(v){return v!==null?v:""}})},56145:(h,I,a)=>{"use strict";var c=a(53899),v=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),x=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]))?))?$");function d(g){return g===null?!1:v.exec(g)!==null||x.exec(g)!==null}function b(g){var L,D,B,j,q,W,M,X=0,R=null,C,V,J;if(L=v.exec(g),L===null&&(L=x.exec(g)),L===null)throw new Error("Date resolve error");if(D=+L[1],B=+L[2]-1,j=+L[3],!L[4])return new Date(Date.UTC(D,B,j));if(q=+L[4],W=+L[5],M=+L[6],L[7]){for(X=L[7].slice(0,3);X.length<3;)X+="0";X=+X}return L[9]&&(C=+L[10],V=+(L[11]||0),R=(C*60+V)*6e4,L[9]==="-"&&(R=-R)),J=new Date(Date.UTC(D,B,j,q,W,M,X)),R&&J.setTime(J.getTime()-R),J}function S(g){return g.toISOString()}h.exports=new c("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:d,construct:b,instanceOf:Date,represent:S})},18552:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"DataView");h.exports=x},1989:(h,I,a)=>{var c=a(51789),v=a(80401),x=a(57667),d=a(21327),b=a(81866);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},38407:(h,I,a)=>{var c=a(27040),v=a(14125),x=a(82117),d=a(67518),b=a(13399);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},57071:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Map");h.exports=x},83369:(h,I,a)=>{var c=a(24785),v=a(11285),x=a(96e3),d=a(49916),b=a(95265);function S(g){var L=-1,D=g==null?0:g.length;for(this.clear();++L<D;){var B=g[L];this.set(B[0],B[1])}}S.prototype.clear=c,S.prototype.delete=v,S.prototype.get=x,S.prototype.has=d,S.prototype.set=b,h.exports=S},53818:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Promise");h.exports=x},58525:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"Set");h.exports=x},88668:(h,I,a)=>{var c=a(83369),v=a(90619),x=a(72385);function d(b){var S=-1,g=b==null?0:b.length;for(this.__data__=new c;++S<g;)this.add(b[S])}d.prototype.add=d.prototype.push=v,d.prototype.has=x,h.exports=d},46384:(h,I,a)=>{var c=a(38407),v=a(37465),x=a(63779),d=a(67599),b=a(44758),S=a(34309);function g(L){var D=this.__data__=new c(L);this.size=D.size}g.prototype.clear=v,g.prototype.delete=x,g.prototype.get=d,g.prototype.has=b,g.prototype.set=S,h.exports=g},62705:(h,I,a)=>{var c=a(55639),v=c.Symbol;h.exports=v},11149:(h,I,a)=>{var c=a(55639),v=c.Uint8Array;h.exports=v},70577:(h,I,a)=>{var c=a(10852),v=a(55639),x=c(v,"WeakMap");h.exports=x},96874:h=>{function I(a,c,v){switch(v.length){case 0:return a.call(c);case 1:return a.call(c,v[0]);case 2:return a.call(c,v[0],v[1]);case 3:return a.call(c,v[0],v[1],v[2])}return a.apply(c,v)}h.exports=I},77412:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x&&c(a[v],v,a)!==!1;);return a}h.exports=I},34963:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=0,b=[];++v<x;){var S=a[v];c(S,v,a)&&(b[d++]=S)}return b}h.exports=I},14636:(h,I,a)=>{var c=a(22545),v=a(35694),x=a(1469),d=a(44144),b=a(65776),S=a(36719),g=Object.prototype,L=g.hasOwnProperty;function D(B,j){var q=x(B),W=!q&&v(B),M=!q&&!W&&d(B),X=!q&&!W&&!M&&S(B),R=q||W||M||X,C=R?c(B.length,String):[],V=C.length;for(var J in B)(j||L.call(B,J))&&!(R&&(J=="length"||M&&(J=="offset"||J=="parent")||X&&(J=="buffer"||J=="byteLength"||J=="byteOffset")||b(J,V)))&&C.push(J);return C}h.exports=D},29932:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length,d=Array(x);++v<x;)d[v]=c(a[v],v,a);return d}h.exports=I},62488:h=>{function I(a,c){for(var v=-1,x=c.length,d=a.length;++v<x;)a[d+v]=c[v];return a}h.exports=I},82908:h=>{function I(a,c){for(var v=-1,x=a==null?0:a.length;++v<x;)if(c(a[v],v,a))return!0;return!1}h.exports=I},34865:(h,I,a)=>{var c=a(89465),v=a(77813),x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L){var D=S[g];(!(d.call(S,g)&&v(D,L))||L===void 0&&!(g in S))&&c(S,g,L)}h.exports=b},18470:(h,I,a)=>{var c=a(77813);function v(x,d){for(var b=x.length;b--;)if(c(x[b][0],d))return b;return-1}h.exports=v},44037:(h,I,a)=>{var c=a(98363),v=a(3674);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},63886:(h,I,a)=>{var c=a(98363),v=a(81704);function x(d,b){return d&&c(b,v(b),d)}h.exports=x},89465:(h,I,a)=>{var c=a(38777);function v(x,d,b){d=="__proto__"&&c?c(x,d,{configurable:!0,enumerable:!0,value:b,writable:!0}):x[d]=b}h.exports=v},29750:h=>{function I(a,c,v){return a===a&&(v!==void 0&&(a=a<=v?a:v),c!==void 0&&(a=a>=c?a:c)),a}h.exports=I},85990:(h,I,a)=>{var c=a(46384),v=a(77412),x=a(34865),d=a(44037),b=a(63886),S=a(64626),g=a(278),L=a(18805),D=a(1911),B=a(58234),j=a(46904),q=a(98882),W=a(43824),M=a(29148),X=a(38517),R=a(1469),C=a(44144),V=a(56688),J=a(13218),_=a(72928),Q=a(3674),Y=a(81704),ce=1,ee=2,ie=4,xe="[object Arguments]",we="[object Array]",he="[object Boolean]",fe="[object Date]",se="[object Error]",Fe="[object Function]",Le="[object GeneratorFunction]",Me="[object Map]",Pe="[object Number]",rt="[object Object]",Ze="[object RegExp]",Xe="[object Set]",ft="[object String]",ht="[object Symbol]",wt="[object WeakMap]",nt="[object ArrayBuffer]",ut="[object DataView]",mt="[object Float32Array]",xt="[object Float64Array]",pt="[object Int8Array]",Mt="[object Int16Array]",kt="[object Int32Array]",Et="[object Uint8Array]",zt="[object Uint8ClampedArray]",jt="[object Uint16Array]",Vt="[object Uint32Array]",St={};St[xe]=St[we]=St[nt]=St[ut]=St[he]=St[fe]=St[mt]=St[xt]=St[pt]=St[Mt]=St[kt]=St[Me]=St[Pe]=St[rt]=St[Ze]=St[Xe]=St[ft]=St[ht]=St[Et]=St[zt]=St[jt]=St[Vt]=!0,St[se]=St[Fe]=St[wt]=!1;function Dt(ve,z,$,Se,Ie,Ge){var Ke,P=z&ce,Re=z&ee,K=z&ie;if($&&(Ke=Ie?$(ve,Se,Ie,Ge):$(ve)),Ke!==void 0)return Ke;if(!J(ve))return ve;var T=R(ve);if(T){if(Ke=W(ve),!P)return g(ve,Ke)}else{var O=q(ve),le=O==Fe||O==Le;if(C(ve))return S(ve,P);if(O==rt||O==xe||le&&!Ie){if(Ke=Re||le?{}:X(ve),!P)return Re?D(ve,b(Ke,ve)):L(ve,d(Ke,ve))}else{if(!St[O])return Ie?ve:{};Ke=M(ve,O,P)}}Ge||(Ge=new c);var N=Ge.get(ve);if(N)return N;Ge.set(ve,Ke),_(ve)?ve.forEach(function(ae){Ke.add(Dt(ae,z,$,ae,ve,Ge))}):V(ve)&&ve.forEach(function(ae,pe){Ke.set(pe,Dt(ae,z,$,pe,ve,Ge))});var re=K?Re?j:B:Re?Y:Q,de=T?void 0:re(ve);return v(de||ve,function(ae,pe){de&&(pe=ae,ae=ve[pe]),x(Ke,pe,Dt(ae,z,$,pe,ve,Ge))}),Ke}h.exports=Dt},3118:(h,I,a)=>{var c=a(13218),v=Object.create,x=function(){function d(){}return function(b){if(!c(b))return{};if(v)return v(b);d.prototype=b;var S=new d;return d.prototype=void 0,S}}();h.exports=x},41848:h=>{function I(a,c,v,x){for(var d=a.length,b=v+(x?1:-1);x?b--:++b<d;)if(c(a[b],b,a))return b;return-1}h.exports=I},35764:(h,I,a)=>{var c=a(62488),v=a(37285);function x(d,b,S,g,L){var D=-1,B=d.length;for(S||(S=v),L||(L=[]);++D<B;){var j=d[D];b>0&&S(j)?b>1?x(j,b-1,S,g,L):c(L,j):g||(L[L.length]=j)}return L}h.exports=x},97786:(h,I,a)=>{var c=a(71811),v=a(40327);function x(d,b){b=c(b,d);for(var S=0,g=b.length;d!=null&&S<g;)d=d[v(b[S++])];return S&&S==g?d:void 0}h.exports=x},68866:(h,I,a)=>{var c=a(62488),v=a(1469);function x(d,b,S){var g=b(d);return v(d)?g:c(g,S(d))}h.exports=x},44239:(h,I,a)=>{var c=a(62705),v=a(89607),x=a(2333),d="[object Null]",b="[object Undefined]",S=c?c.toStringTag:void 0;function g(L){return L==null?L===void 0?b:d:S&&S in Object(L)?v(L):x(L)}h.exports=g},13:h=>{function I(a,c){return a!=null&&c in Object(a)}h.exports=I},9454:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Arguments]";function d(b){return v(b)&&c(b)==x}h.exports=d},90939:(h,I,a)=>{var c=a(2492),v=a(37005);function x(d,b,S,g,L){return d===b?!0:d==null||b==null||!v(d)&&!v(b)?d!==d&&b!==b:c(d,b,S,g,x,L)}h.exports=x},2492:(h,I,a)=>{var c=a(46384),v=a(67114),x=a(18351),d=a(16096),b=a(98882),S=a(1469),g=a(44144),L=a(36719),D=1,B="[object Arguments]",j="[object Array]",q="[object Object]",W=Object.prototype,M=W.hasOwnProperty;function X(R,C,V,J,_,Q){var Y=S(R),ce=S(C),ee=Y?j:b(R),ie=ce?j:b(C);ee=ee==B?q:ee,ie=ie==B?q:ie;var xe=ee==q,we=ie==q,he=ee==ie;if(he&&g(R)){if(!g(C))return!1;Y=!0,xe=!1}if(he&&!xe)return Q||(Q=new c),Y||L(R)?v(R,C,V,J,_,Q):x(R,C,ee,V,J,_,Q);if(!(V&D)){var fe=xe&&M.call(R,"__wrapped__"),se=we&&M.call(C,"__wrapped__");if(fe||se){var Fe=fe?R.value():R,Le=se?C.value():C;return Q||(Q=new c),_(Fe,Le,V,J,Q)}}return he?(Q||(Q=new c),d(R,C,V,J,_,Q)):!1}h.exports=X},25588:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Map]";function d(b){return v(b)&&c(b)==x}h.exports=d},2958:(h,I,a)=>{var c=a(46384),v=a(90939),x=1,d=2;function b(S,g,L,D){var B=L.length,j=B,q=!D;if(S==null)return!j;for(S=Object(S);B--;){var W=L[B];if(q&&W[2]?W[1]!==S[W[0]]:!(W[0]in S))return!1}for(;++B<j;){W=L[B];var M=W[0],X=S[M],R=W[1];if(q&&W[2]){if(X===void 0&&!(M in S))return!1}else{var C=new c;if(D)var V=D(X,R,M,S,g,C);if(!(V===void 0?v(R,X,x|d,D,C):V))return!1}}return!0}h.exports=b},28458:(h,I,a)=>{var c=a(23560),v=a(15346),x=a(13218),d=a(80346),b=/[\\^$.*+?()[\]{}|]/g,S=/^\[object .+?Constructor\]$/,g=Function.prototype,L=Object.prototype,D=g.toString,B=L.hasOwnProperty,j=RegExp("^"+D.call(B).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function q(W){if(!x(W)||v(W))return!1;var M=c(W)?j:S;return M.test(d(W))}h.exports=q},29221:(h,I,a)=>{var c=a(98882),v=a(37005),x="[object Set]";function d(b){return v(b)&&c(b)==x}h.exports=d},38749:(h,I,a)=>{var c=a(44239),v=a(41780),x=a(37005),d="[object Arguments]",b="[object Array]",S="[object Boolean]",g="[object Date]",L="[object Error]",D="[object Function]",B="[object Map]",j="[object Number]",q="[object Object]",W="[object RegExp]",M="[object Set]",X="[object String]",R="[object WeakMap]",C="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",_="[object Float64Array]",Q="[object Int8Array]",Y="[object Int16Array]",ce="[object Int32Array]",ee="[object Uint8Array]",ie="[object Uint8ClampedArray]",xe="[object Uint16Array]",we="[object Uint32Array]",he={};he[J]=he[_]=he[Q]=he[Y]=he[ce]=he[ee]=he[ie]=he[xe]=he[we]=!0,he[d]=he[b]=he[C]=he[S]=he[V]=he[g]=he[L]=he[D]=he[B]=he[j]=he[q]=he[W]=he[M]=he[X]=he[R]=!1;function fe(se){return x(se)&&v(se.length)&&!!he[c(se)]}h.exports=fe},67206:(h,I,a)=>{var c=a(91573),v=a(16432),x=a(6557),d=a(1469),b=a(39601);function S(g){return typeof g=="function"?g:g==null?x:typeof g=="object"?d(g)?v(g[0],g[1]):c(g):b(g)}h.exports=S},280:(h,I,a)=>{var c=a(25726),v=a(86916),x=Object.prototype,d=x.hasOwnProperty;function b(S){if(!c(S))return v(S);var g=[];for(var L in Object(S))d.call(S,L)&&L!="constructor"&&g.push(L);return g}h.exports=b},10313:(h,I,a)=>{var c=a(13218),v=a(25726),x=a(33498),d=Object.prototype,b=d.hasOwnProperty;function S(g){if(!c(g))return x(g);var L=v(g),D=[];for(var B in g)B=="constructor"&&(L||!b.call(g,B))||D.push(B);return D}h.exports=S},91573:(h,I,a)=>{var c=a(2958),v=a(1499),x=a(42634);function d(b){var S=v(b);return S.length==1&&S[0][2]?x(S[0][0],S[0][1]):function(g){return g===b||c(g,b,S)}}h.exports=d},16432:(h,I,a)=>{var c=a(90939),v=a(27361),x=a(79095),d=a(15403),b=a(89162),S=a(42634),g=a(40327),L=1,D=2;function B(j,q){return d(j)&&b(q)?S(g(j),q):function(W){var M=v(W,j);return M===void 0&&M===q?x(W,j):c(q,M,L|D)}}h.exports=B},25970:(h,I,a)=>{var c=a(63012),v=a(79095);function x(d,b){return c(d,b,function(S,g){return v(d,g)})}h.exports=x},63012:(h,I,a)=>{var c=a(97786),v=a(10611),x=a(71811);function d(b,S,g){for(var L=-1,D=S.length,B={};++L<D;){var j=S[L],q=c(b,j);g(q,j)&&v(B,x(j,b),q)}return B}h.exports=d},40371:h=>{function I(a){return function(c){return c==null?void 0:c[a]}}h.exports=I},79152:(h,I,a)=>{var c=a(97786);function v(x){return function(d){return c(d,x)}}h.exports=v},5976:(h,I,a)=>{var c=a(6557),v=a(45357),x=a(30061);function d(b,S){return x(v(b,S,c),b+"")}h.exports=d},10611:(h,I,a)=>{var c=a(34865),v=a(71811),x=a(65776),d=a(13218),b=a(40327);function S(g,L,D,B){if(!d(g))return g;L=v(L,g);for(var j=-1,q=L.length,W=q-1,M=g;M!=null&&++j<q;){var X=b(L[j]),R=D;if(X==="__proto__"||X==="constructor"||X==="prototype")return g;if(j!=W){var C=M[X];R=B?B(C,X,M):void 0,R===void 0&&(R=d(C)?C:x(L[j+1])?[]:{})}c(M,X,R),M=M[X]}return g}h.exports=S},56560:(h,I,a)=>{var c=a(75703),v=a(38777),x=a(6557),d=v?function(b,S){return v(b,"toString",{configurable:!0,enumerable:!1,value:c(S),writable:!0})}:x;h.exports=d},22545:h=>{function I(a,c){for(var v=-1,x=Array(a);++v<a;)x[v]=c(v);return x}h.exports=I},80531:(h,I,a)=>{var c=a(62705),v=a(29932),x=a(1469),d=a(33448),b=1/0,S=c?c.prototype:void 0,g=S?S.toString:void 0;function L(D){if(typeof D=="string")return D;if(x(D))return v(D,L)+"";if(d(D))return g?g.call(D):"";var B=D+"";return B=="0"&&1/D==-b?"-0":B}h.exports=L},27561:(h,I,a)=>{var c=a(67990),v=/^\s+/;function x(d){return d&&d.slice(0,c(d)+1).replace(v,"")}h.exports=x},7518:h=>{function I(a){return function(c){return a(c)}}h.exports=I},74757:h=>{function I(a,c){return a.has(c)}h.exports=I},71811:(h,I,a)=>{var c=a(1469),v=a(15403),x=a(55514),d=a(79833);function b(S,g){return c(S)?S:v(S,g)?[S]:x(d(S))}h.exports=b},74318:(h,I,a)=>{var c=a(11149);function v(x){var d=new x.constructor(x.byteLength);return new c(d).set(new c(x)),d}h.exports=v},64626:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d?c.Buffer:void 0,S=b?b.allocUnsafe:void 0;function g(L,D){if(D)return L.slice();var B=L.length,j=S?S(B):new L.constructor(B);return L.copy(j),j}h.exports=g},57157:(h,I,a)=>{var c=a(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.byteLength)}h.exports=v},93147:h=>{var I=/\w*$/;function a(c){var v=new c.constructor(c.source,I.exec(c));return v.lastIndex=c.lastIndex,v}h.exports=a},40419:(h,I,a)=>{var c=a(62705),v=c?c.prototype:void 0,x=v?v.valueOf:void 0;function d(b){return x?Object(x.call(b)):{}}h.exports=d},77133:(h,I,a)=>{var c=a(74318);function v(x,d){var b=d?c(x.buffer):x.buffer;return new x.constructor(b,x.byteOffset,x.length)}h.exports=v},278:h=>{function I(a,c){var v=-1,x=a.length;for(c||(c=Array(x));++v<x;)c[v]=a[v];return c}h.exports=I},98363:(h,I,a)=>{var c=a(34865),v=a(89465);function x(d,b,S,g){var L=!S;S||(S={});for(var D=-1,B=b.length;++D<B;){var j=b[D],q=g?g(S[j],d[j],j,S,d):void 0;q===void 0&&(q=d[j]),L?v(S,j,q):c(S,j,q)}return S}h.exports=x},18805:(h,I,a)=>{var c=a(98363),v=a(99551);function x(d,b){return c(d,v(d),b)}h.exports=x},1911:(h,I,a)=>{var c=a(98363),v=a(51442);function x(d,b){return c(d,v(d),b)}h.exports=x},14429:(h,I,a)=>{var c=a(55639),v=c["__core-js_shared__"];h.exports=v},21463:(h,I,a)=>{var c=a(5976),v=a(16612);function x(d){return c(function(b,S){var g=-1,L=S.length,D=L>1?S[L-1]:void 0,B=L>2?S[2]:void 0;for(D=d.length>3&&typeof D=="function"?(L--,D):void 0,B&&v(S[0],S[1],B)&&(D=L<3?void 0:D,L=1),b=Object(b);++g<L;){var j=S[g];j&&d(b,j,g,D)}return b})}h.exports=x},67740:(h,I,a)=>{var c=a(67206),v=a(98612),x=a(3674);function d(b){return function(S,g,L){var D=Object(S);if(!v(S)){var B=c(g,3);S=x(S),g=function(q){return B(D[q],q,D)}}var j=b(S,g,L);return j>-1?D[B?S[j]:j]:void 0}}h.exports=d},38777:(h,I,a)=>{var c=a(10852),v=function(){try{var x=c(Object,"defineProperty");return x({},"",{}),x}catch(d){}}();h.exports=v},67114:(h,I,a)=>{var c=a(88668),v=a(82908),x=a(74757),d=1,b=2;function S(g,L,D,B,j,q){var W=D&d,M=g.length,X=L.length;if(M!=X&&!(W&&X>M))return!1;var R=q.get(g),C=q.get(L);if(R&&C)return R==L&&C==g;var V=-1,J=!0,_=D&b?new c:void 0;for(q.set(g,L),q.set(L,g);++V<M;){var Q=g[V],Y=L[V];if(B)var ce=W?B(Y,Q,V,L,g,q):B(Q,Y,V,g,L,q);if(ce!==void 0){if(ce)continue;J=!1;break}if(_){if(!v(L,function(ee,ie){if(!x(_,ie)&&(Q===ee||j(Q,ee,D,B,q)))return _.push(ie)})){J=!1;break}}else if(!(Q===Y||j(Q,Y,D,B,q))){J=!1;break}}return q.delete(g),q.delete(L),J}h.exports=S},18351:(h,I,a)=>{var c=a(62705),v=a(11149),x=a(77813),d=a(67114),b=a(68776),S=a(21814),g=1,L=2,D="[object Boolean]",B="[object Date]",j="[object Error]",q="[object Map]",W="[object Number]",M="[object RegExp]",X="[object Set]",R="[object String]",C="[object Symbol]",V="[object ArrayBuffer]",J="[object DataView]",_=c?c.prototype:void 0,Q=_?_.valueOf:void 0;function Y(ce,ee,ie,xe,we,he,fe){switch(ie){case J:if(ce.byteLength!=ee.byteLength||ce.byteOffset!=ee.byteOffset)return!1;ce=ce.buffer,ee=ee.buffer;case V:return!(ce.byteLength!=ee.byteLength||!he(new v(ce),new v(ee)));case D:case B:case W:return x(+ce,+ee);case j:return ce.name==ee.name&&ce.message==ee.message;case M:case R:return ce==ee+"";case q:var se=b;case X:var Fe=xe&g;if(se||(se=S),ce.size!=ee.size&&!Fe)return!1;var Le=fe.get(ce);if(Le)return Le==ee;xe|=L,fe.set(ce,ee);var Me=d(se(ce),se(ee),xe,we,he,fe);return fe.delete(ce),Me;case C:if(Q)return Q.call(ce)==Q.call(ee)}return!1}h.exports=Y},16096:(h,I,a)=>{var c=a(58234),v=1,x=Object.prototype,d=x.hasOwnProperty;function b(S,g,L,D,B,j){var q=L&v,W=c(S),M=W.length,X=c(g),R=X.length;if(M!=R&&!q)return!1;for(var C=M;C--;){var V=W[C];if(!(q?V in g:d.call(g,V)))return!1}var J=j.get(S),_=j.get(g);if(J&&_)return J==g&&_==S;var Q=!0;j.set(S,g),j.set(g,S);for(var Y=q;++C<M;){V=W[C];var ce=S[V],ee=g[V];if(D)var ie=q?D(ee,ce,V,g,S,j):D(ce,ee,V,S,g,j);if(!(ie===void 0?ce===ee||B(ce,ee,L,D,j):ie)){Q=!1;break}Y||(Y=V=="constructor")}if(Q&&!Y){var xe=S.constructor,we=g.constructor;xe!=we&&"constructor"in S&&"constructor"in g&&!(typeof xe=="function"&&xe instanceof xe&&typeof we=="function"&&we instanceof we)&&(Q=!1)}return j.delete(S),j.delete(g),Q}h.exports=b},99021:(h,I,a)=>{var c=a(85564),v=a(45357),x=a(30061);function d(b){return x(v(b,void 0,c),b+"")}h.exports=d},31957:(h,I,a)=>{var c=typeof a.g=="object"&&a.g&&a.g.Object===Object&&a.g;h.exports=c},58234:(h,I,a)=>{var c=a(68866),v=a(99551),x=a(3674);function d(b){return c(b,x,v)}h.exports=d},46904:(h,I,a)=>{var c=a(68866),v=a(51442),x=a(81704);function d(b){return c(b,x,v)}h.exports=d},45050:(h,I,a)=>{var c=a(37019);function v(x,d){var b=x.__data__;return c(d)?b[typeof d=="string"?"string":"hash"]:b.map}h.exports=v},1499:(h,I,a)=>{var c=a(89162),v=a(3674);function x(d){for(var b=v(d),S=b.length;S--;){var g=b[S],L=d[g];b[S]=[g,L,c(L)]}return b}h.exports=x},10852:(h,I,a)=>{var c=a(28458),v=a(47801);function x(d,b){var S=v(d,b);return c(S)?S:void 0}h.exports=x},85924:(h,I,a)=>{var c=a(5569),v=c(Object.getPrototypeOf,Object);h.exports=v},89607:(h,I,a)=>{var c=a(62705),v=Object.prototype,x=v.hasOwnProperty,d=v.toString,b=c?c.toStringTag:void 0;function S(g){var L=x.call(g,b),D=g[b];try{g[b]=void 0;var B=!0}catch(q){}var j=d.call(g);return B&&(L?g[b]=D:delete g[b]),j}h.exports=S},99551:(h,I,a)=>{var c=a(34963),v=a(70479),x=Object.prototype,d=x.propertyIsEnumerable,b=Object.getOwnPropertySymbols,S=b?function(g){return g==null?[]:(g=Object(g),c(b(g),function(L){return d.call(g,L)}))}:v;h.exports=S},51442:(h,I,a)=>{var c=a(62488),v=a(85924),x=a(99551),d=a(70479),b=Object.getOwnPropertySymbols,S=b?function(g){for(var L=[];g;)c(L,x(g)),g=v(g);return L}:d;h.exports=S},98882:(h,I,a)=>{var c=a(18552),v=a(57071),x=a(53818),d=a(58525),b=a(70577),S=a(44239),g=a(80346),L="[object Map]",D="[object Object]",B="[object Promise]",j="[object Set]",q="[object WeakMap]",W="[object DataView]",M=g(c),X=g(v),R=g(x),C=g(d),V=g(b),J=S;(c&&J(new c(new ArrayBuffer(1)))!=W||v&&J(new v)!=L||x&&J(x.resolve())!=B||d&&J(new d)!=j||b&&J(new b)!=q)&&(J=function(_){var Q=S(_),Y=Q==D?_.constructor:void 0,ce=Y?g(Y):"";if(ce)switch(ce){case M:return W;case X:return L;case R:return B;case C:return j;case V:return q}return Q}),h.exports=J},47801:h=>{function I(a,c){return a==null?void 0:a[c]}h.exports=I},222:(h,I,a)=>{var c=a(71811),v=a(35694),x=a(1469),d=a(65776),b=a(41780),S=a(40327);function g(L,D,B){D=c(D,L);for(var j=-1,q=D.length,W=!1;++j<q;){var M=S(D[j]);if(!(W=L!=null&&B(L,M)))break;L=L[M]}return W||++j!=q?W:(q=L==null?0:L.length,!!q&&b(q)&&d(M,q)&&(x(L)||v(L)))}h.exports=g},51789:(h,I,a)=>{var c=a(94536);function v(){this.__data__=c?c(null):{},this.size=0}h.exports=v},80401:h=>{function I(a){var c=this.has(a)&&delete this.__data__[a];return this.size-=c?1:0,c}h.exports=I},57667:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__",x=Object.prototype,d=x.hasOwnProperty;function b(S){var g=this.__data__;if(c){var L=g[S];return L===v?void 0:L}return d.call(g,S)?g[S]:void 0}h.exports=b},21327:(h,I,a)=>{var c=a(94536),v=Object.prototype,x=v.hasOwnProperty;function d(b){var S=this.__data__;return c?S[b]!==void 0:x.call(S,b)}h.exports=d},81866:(h,I,a)=>{var c=a(94536),v="__lodash_hash_undefined__";function x(d,b){var S=this.__data__;return this.size+=this.has(d)?0:1,S[d]=c&&b===void 0?v:b,this}h.exports=x},43824:h=>{var I=Object.prototype,a=I.hasOwnProperty;function c(v){var x=v.length,d=new v.constructor(x);return x&&typeof v[0]=="string"&&a.call(v,"index")&&(d.index=v.index,d.input=v.input),d}h.exports=c},29148:(h,I,a)=>{var c=a(74318),v=a(57157),x=a(93147),d=a(40419),b=a(77133),S="[object Boolean]",g="[object Date]",L="[object Map]",D="[object Number]",B="[object RegExp]",j="[object Set]",q="[object String]",W="[object Symbol]",M="[object ArrayBuffer]",X="[object DataView]",R="[object Float32Array]",C="[object Float64Array]",V="[object Int8Array]",J="[object Int16Array]",_="[object Int32Array]",Q="[object Uint8Array]",Y="[object Uint8ClampedArray]",ce="[object Uint16Array]",ee="[object Uint32Array]";function ie(xe,we,he){var fe=xe.constructor;switch(we){case M:return c(xe);case S:case g:return new fe(+xe);case X:return v(xe,he);case R:case C:case V:case J:case _:case Q:case Y:case ce:case ee:return b(xe,he);case L:return new fe;case D:case q:return new fe(xe);case B:return x(xe);case j:return new fe;case W:return d(xe)}}h.exports=ie},38517:(h,I,a)=>{var c=a(3118),v=a(85924),x=a(25726);function d(b){return typeof b.constructor=="function"&&!x(b)?c(v(b)):{}}h.exports=d},37285:(h,I,a)=>{var c=a(62705),v=a(35694),x=a(1469),d=c?c.isConcatSpreadable:void 0;function b(S){return x(S)||v(S)||!!(d&&S&&S[d])}h.exports=b},65776:h=>{var I=9007199254740991,a=/^(?:0|[1-9]\d*)$/;function c(v,x){var d=typeof v;return x=x==null?I:x,!!x&&(d=="number"||d!="symbol"&&a.test(v))&&v>-1&&v%1==0&&v<x}h.exports=c},16612:(h,I,a)=>{var c=a(77813),v=a(98612),x=a(65776),d=a(13218);function b(S,g,L){if(!d(L))return!1;var D=typeof g;return(D=="number"?v(L)&&x(g,L.length):D=="string"&&g in L)?c(L[g],S):!1}h.exports=b},15403:(h,I,a)=>{var c=a(1469),v=a(33448),x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,d=/^\w*$/;function b(S,g){if(c(S))return!1;var L=typeof S;return L=="number"||L=="symbol"||L=="boolean"||S==null||v(S)?!0:d.test(S)||!x.test(S)||g!=null&&S in Object(g)}h.exports=b},37019:h=>{function I(a){var c=typeof a;return c=="string"||c=="number"||c=="symbol"||c=="boolean"?a!=="__proto__":a===null}h.exports=I},15346:(h,I,a)=>{var c=a(14429),v=function(){var d=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return d?"Symbol(src)_1."+d:""}();function x(d){return!!v&&v in d}h.exports=x},25726:h=>{var I=Object.prototype;function a(c){var v=c&&c.constructor,x=typeof v=="function"&&v.prototype||I;return c===x}h.exports=a},89162:(h,I,a)=>{var c=a(13218);function v(x){return x===x&&!c(x)}h.exports=v},27040:h=>{function I(){this.__data__=[],this.size=0}h.exports=I},14125:(h,I,a)=>{var c=a(18470),v=Array.prototype,x=v.splice;function d(b){var S=this.__data__,g=c(S,b);if(g<0)return!1;var L=S.length-1;return g==L?S.pop():x.call(S,g,1),--this.size,!0}h.exports=d},82117:(h,I,a)=>{var c=a(18470);function v(x){var d=this.__data__,b=c(d,x);return b<0?void 0:d[b][1]}h.exports=v},67518:(h,I,a)=>{var c=a(18470);function v(x){return c(this.__data__,x)>-1}h.exports=v},13399:(h,I,a)=>{var c=a(18470);function v(x,d){var b=this.__data__,S=c(b,x);return S<0?(++this.size,b.push([x,d])):b[S][1]=d,this}h.exports=v},24785:(h,I,a)=>{var c=a(1989),v=a(38407),x=a(57071);function d(){this.size=0,this.__data__={hash:new c,map:new(x||v),string:new c}}h.exports=d},11285:(h,I,a)=>{var c=a(45050);function v(x){var d=c(this,x).delete(x);return this.size-=d?1:0,d}h.exports=v},96e3:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).get(x)}h.exports=v},49916:(h,I,a)=>{var c=a(45050);function v(x){return c(this,x).has(x)}h.exports=v},95265:(h,I,a)=>{var c=a(45050);function v(x,d){var b=c(this,x),S=b.size;return b.set(x,d),this.size+=b.size==S?0:1,this}h.exports=v},68776:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x,d){v[++c]=[d,x]}),v}h.exports=I},42634:h=>{function I(a,c){return function(v){return v==null?!1:v[a]===c&&(c!==void 0||a in Object(v))}}h.exports=I},24523:(h,I,a)=>{var c=a(88306),v=500;function x(d){var b=c(d,function(g){return S.size===v&&S.clear(),g}),S=b.cache;return b}h.exports=x},94536:(h,I,a)=>{var c=a(10852),v=c(Object,"create");h.exports=v},86916:(h,I,a)=>{var c=a(5569),v=c(Object.keys,Object);h.exports=v},33498:h=>{function I(a){var c=[];if(a!=null)for(var v in Object(a))c.push(v);return c}h.exports=I},31167:(h,I,a)=>{h=a.nmd(h);var c=a(31957),v=I&&!I.nodeType&&I,x=v&&!0&&h&&!h.nodeType&&h,d=x&&x.exports===v,b=d&&c.process,S=function(){try{var g=x&&x.require&&x.require("util").types;return g||b&&b.binding&&b.binding("util")}catch(L){}}();h.exports=S},2333:h=>{var I=Object.prototype,a=I.toString;function c(v){return a.call(v)}h.exports=c},5569:h=>{function I(a,c){return function(v){return a(c(v))}}h.exports=I},45357:(h,I,a)=>{var c=a(96874),v=Math.max;function x(d,b,S){return b=v(b===void 0?d.length-1:b,0),function(){for(var g=arguments,L=-1,D=v(g.length-b,0),B=Array(D);++L<D;)B[L]=g[b+L];L=-1;for(var j=Array(b+1);++L<b;)j[L]=g[L];return j[b]=S(B),c(d,this,j)}}h.exports=x},55639:(h,I,a)=>{var c=a(31957),v=typeof self=="object"&&self&&self.Object===Object&&self,x=c||v||Function("return this")();h.exports=x},90619:h=>{var I="__lodash_hash_undefined__";function a(c){return this.__data__.set(c,I),this}h.exports=a},72385:h=>{function I(a){return this.__data__.has(a)}h.exports=I},21814:h=>{function I(a){var c=-1,v=Array(a.size);return a.forEach(function(x){v[++c]=x}),v}h.exports=I},30061:(h,I,a)=>{var c=a(56560),v=a(21275),x=v(c);h.exports=x},21275:h=>{var I=800,a=16,c=Date.now;function v(x){var d=0,b=0;return function(){var S=c(),g=a-(S-b);if(b=S,g>0){if(++d>=I)return arguments[0]}else d=0;return x.apply(void 0,arguments)}}h.exports=v},37465:(h,I,a)=>{var c=a(38407);function v(){this.__data__=new c,this.size=0}h.exports=v},63779:h=>{function I(a){var c=this.__data__,v=c.delete(a);return this.size=c.size,v}h.exports=I},67599:h=>{function I(a){return this.__data__.get(a)}h.exports=I},44758:h=>{function I(a){return this.__data__.has(a)}h.exports=I},34309:(h,I,a)=>{var c=a(38407),v=a(57071),x=a(83369),d=200;function b(S,g){var L=this.__data__;if(L instanceof c){var D=L.__data__;if(!v||D.length<d-1)return D.push([S,g]),this.size=++L.size,this;L=this.__data__=new x(D)}return L.set(S,g),this.size=L.size,this}h.exports=b},55514:(h,I,a)=>{var c=a(24523),v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,x=/\\(\\)?/g,d=c(function(b){var S=[];return b.charCodeAt(0)===46&&S.push(""),b.replace(v,function(g,L,D,B){S.push(D?B.replace(x,"$1"):L||g)}),S});h.exports=d},40327:(h,I,a)=>{var c=a(33448),v=1/0;function x(d){if(typeof d=="string"||c(d))return d;var b=d+"";return b=="0"&&1/d==-v?"-0":b}h.exports=x},80346:h=>{var I=Function.prototype,a=I.toString;function c(v){if(v!=null){try{return a.call(v)}catch(x){}try{return v+""}catch(x){}}return""}h.exports=c},67990:h=>{var I=/\s/;function a(c){for(var v=c.length;v--&&I.test(c.charAt(v)););return v}h.exports=a},28583:(h,I,a)=>{var c=a(34865),v=a(98363),x=a(21463),d=a(98612),b=a(25726),S=a(3674),g=Object.prototype,L=g.hasOwnProperty,D=x(function(B,j){if(b(j)||d(j)){v(j,S(j),B);return}for(var q in j)L.call(j,q)&&c(B,q,j[q])});h.exports=D},50361:(h,I,a)=>{var c=a(85990),v=1,x=4;function d(b){return c(b,v|x)}h.exports=d},75703:h=>{function I(a){return function(){return a}}h.exports=I},77813:h=>{function I(a,c){return a===c||a!==a&&c!==c}h.exports=I},13311:(h,I,a)=>{var c=a(67740),v=a(30998),x=c(v);h.exports=x},30998:(h,I,a)=>{var c=a(41848),v=a(67206),x=a(40554),d=Math.max;function b(S,g,L){var D=S==null?0:S.length;if(!D)return-1;var B=L==null?0:x(L);return B<0&&(B=d(D+B,0)),c(S,v(g,3),B)}h.exports=b},85564:(h,I,a)=>{var c=a(35764);function v(x){var d=x==null?0:x.length;return d?c(x,1):[]}h.exports=v},27361:(h,I,a)=>{var c=a(97786);function v(x,d,b){var S=x==null?void 0:c(x,d);return S===void 0?b:S}h.exports=v},79095:(h,I,a)=>{var c=a(13),v=a(222);function x(d,b){return d!=null&&v(d,b,c)}h.exports=x},6557:h=>{function I(a){return a}h.exports=I},35694:(h,I,a)=>{var c=a(9454),v=a(37005),x=Object.prototype,d=x.hasOwnProperty,b=x.propertyIsEnumerable,S=c(function(){return arguments}())?c:function(g){return v(g)&&d.call(g,"callee")&&!b.call(g,"callee")};h.exports=S},1469:h=>{var I=Array.isArray;h.exports=I},98612:(h,I,a)=>{var c=a(23560),v=a(41780);function x(d){return d!=null&&v(d.length)&&!c(d)}h.exports=x},44144:(h,I,a)=>{h=a.nmd(h);var c=a(55639),v=a(95062),x=I&&!I.nodeType&&I,d=x&&!0&&h&&!h.nodeType&&h,b=d&&d.exports===x,S=b?c.Buffer:void 0,g=S?S.isBuffer:void 0,L=g||v;h.exports=L},41609:(h,I,a)=>{var c=a(280),v=a(98882),x=a(35694),d=a(1469),b=a(98612),S=a(44144),g=a(25726),L=a(36719),D="[object Map]",B="[object Set]",j=Object.prototype,q=j.hasOwnProperty;function W(M){if(M==null)return!0;if(b(M)&&(d(M)||typeof M=="string"||typeof M.splice=="function"||S(M)||L(M)||x(M)))return!M.length;var X=v(M);if(X==D||X==B)return!M.size;if(g(M))return!c(M).length;for(var R in M)if(q.call(M,R))return!1;return!0}h.exports=W},23560:(h,I,a)=>{var c=a(44239),v=a(13218),x="[object AsyncFunction]",d="[object Function]",b="[object GeneratorFunction]",S="[object Proxy]";function g(L){if(!v(L))return!1;var D=c(L);return D==d||D==b||D==x||D==S}h.exports=g},41780:h=>{var I=9007199254740991;function a(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=I}h.exports=a},56688:(h,I,a)=>{var c=a(25588),v=a(7518),x=a(31167),d=x&&x.isMap,b=d?v(d):c;h.exports=b},13218:h=>{function I(a){var c=typeof a;return a!=null&&(c=="object"||c=="function")}h.exports=I},37005:h=>{function I(a){return a!=null&&typeof a=="object"}h.exports=I},68630:(h,I,a)=>{var c=a(44239),v=a(85924),x=a(37005),d="[object Object]",b=Function.prototype,S=Object.prototype,g=b.toString,L=S.hasOwnProperty,D=g.call(Object);function B(j){if(!x(j)||c(j)!=d)return!1;var q=v(j);if(q===null)return!0;var W=L.call(q,"constructor")&&q.constructor;return typeof W=="function"&&W instanceof W&&g.call(W)==D}h.exports=B},72928:(h,I,a)=>{var c=a(29221),v=a(7518),x=a(31167),d=x&&x.isSet,b=d?v(d):c;h.exports=b},47037:(h,I,a)=>{var c=a(44239),v=a(1469),x=a(37005),d="[object String]";function b(S){return typeof S=="string"||!v(S)&&x(S)&&c(S)==d}h.exports=b},33448:(h,I,a)=>{var c=a(44239),v=a(37005),x="[object Symbol]";function d(b){return typeof b=="symbol"||v(b)&&c(b)==x}h.exports=d},36719:(h,I,a)=>{var c=a(38749),v=a(7518),x=a(31167),d=x&&x.isTypedArray,b=d?v(d):c;h.exports=b},3674:(h,I,a)=>{var c=a(14636),v=a(280),x=a(98612);function d(b){return x(b)?c(b):v(b)}h.exports=d},81704:(h,I,a)=>{var c=a(14636),v=a(10313),x=a(98612);function d(b){return x(b)?c(b,!0):v(b)}h.exports=d},88306:(h,I,a)=>{var c=a(83369),v="Expected a function";function x(d,b){if(typeof d!="function"||b!=null&&typeof b!="function")throw new TypeError(v);var S=function(){var g=arguments,L=b?b.apply(this,g):g[0],D=S.cache;if(D.has(L))return D.get(L);var B=d.apply(this,g);return S.cache=D.set(L,B)||D,B};return S.cache=new(x.Cache||c),S}x.Cache=c,h.exports=x},50308:h=>{function I(){}h.exports=I},78718:(h,I,a)=>{var c=a(25970),v=a(99021),x=v(function(d,b){return d==null?{}:c(d,b)});h.exports=x},39601:(h,I,a)=>{var c=a(40371),v=a(79152),x=a(15403),d=a(40327);function b(S){return x(S)?c(d(S)):v(S)}h.exports=b},10240:(h,I,a)=>{var c=a(29750),v=a(80531),x=a(40554),d=a(79833);function b(S,g,L){return S=d(S),L=L==null?0:c(x(L),0,S.length),g=v(g),S.slice(L,L+g.length)==g}h.exports=b},70479:h=>{function I(){return[]}h.exports=I},95062:h=>{function I(){return!1}h.exports=I},18601:(h,I,a)=>{var c=a(14841),v=1/0,x=17976931348623157e292;function d(b){if(!b)return b===0?b:0;if(b=c(b),b===v||b===-v){var S=b<0?-1:1;return S*x}return b===b?b:0}h.exports=d},40554:(h,I,a)=>{var c=a(18601);function v(x){var d=c(x),b=d%1;return d===d?b?d-b:d:0}h.exports=v},14841:(h,I,a)=>{var c=a(27561),v=a(13218),x=a(33448),d=0/0,b=/^[-+]0x[0-9a-f]+$/i,S=/^0b[01]+$/i,g=/^0o[0-7]+$/i,L=parseInt;function D(B){if(typeof B=="number")return B;if(x(B))return d;if(v(B)){var j=typeof B.valueOf=="function"?B.valueOf():B;B=v(j)?j+"":j}if(typeof B!="string")return B===0?B:+B;B=c(B);var q=S.test(B);return q||g.test(B)?L(B.slice(2),q?2:8):b.test(B)?d:+B}h.exports=D},79833:(h,I,a)=>{var c=a(80531);function v(x){return x==null?"":c(x)}h.exports=v},70631:(h,I,a)=>{var c=typeof Map=="function"&&Map.prototype,v=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,x=c&&v&&typeof v.get=="function"?v.get:null,d=c&&Map.prototype.forEach,b=typeof Set=="function"&&Set.prototype,S=Object.getOwnPropertyDescriptor&&b?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,g=b&&S&&typeof S.get=="function"?S.get:null,L=b&&Set.prototype.forEach,D=typeof WeakMap=="function"&&WeakMap.prototype,B=D?WeakMap.prototype.has:null,j=typeof WeakSet=="function"&&WeakSet.prototype,q=j?WeakSet.prototype.has:null,W=typeof WeakRef=="function"&&WeakRef.prototype,M=W?WeakRef.prototype.deref:null,X=Boolean.prototype.valueOf,R=Object.prototype.toString,C=Function.prototype.toString,V=String.prototype.match,J=String.prototype.slice,_=String.prototype.replace,Q=String.prototype.toUpperCase,Y=String.prototype.toLowerCase,ce=RegExp.prototype.test,ee=Array.prototype.concat,ie=Array.prototype.join,xe=Array.prototype.slice,we=Math.floor,he=typeof BigInt=="function"?BigInt.prototype.valueOf:null,fe=Object.getOwnPropertySymbols,se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Fe=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Fe?"object":"symbol")?Symbol.toStringTag:null,Me=Object.prototype.propertyIsEnumerable,Pe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ae){return ae.__proto__}:null);function rt(ae,pe){if(ae===1/0||ae===-1/0||ae!==ae||ae&&ae>-1e3&&ae<1e3||ce.call(/e/,pe))return pe;var Ee=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ae=="number"){var Ue=ae<0?-we(-ae):we(ae);if(Ue!==ae){var je=String(Ue),Qe=J.call(pe,je.length+1);return _.call(je,Ee,"$&_")+"."+_.call(_.call(Qe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(pe,Ee,"$&_")}var Ze=a(24654),Xe=Ze.custom,ft=Et(Xe)?Xe:null;h.exports=function ae(pe,Ee,Ue,je){var Qe=Ee||{};if(Vt(Qe,"quoteStyle")&&Qe.quoteStyle!=="single"&&Qe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Vt(Qe,"maxStringLength")&&(typeof Qe.maxStringLength=="number"?Qe.maxStringLength<0&&Qe.maxStringLength!==1/0:Qe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var vt=Vt(Qe,"customInspect")?Qe.customInspect:!0;if(typeof vt!="boolean"&&vt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Vt(Qe,"indent")&&Qe.indent!==null&&Qe.indent!==" "&&!(parseInt(Qe.indent,10)===Qe.indent&&Qe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Vt(Qe,"numericSeparator")&&typeof Qe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var At=Qe.numericSeparator;if(typeof pe=="undefined")return"undefined";if(pe===null)return"null";if(typeof pe=="boolean")return pe?"true":"false";if(typeof pe=="string")return P(pe,Qe);if(typeof pe=="number"){if(pe===0)return 1/0/pe>0?"0":"-0";var Bt=String(pe);return At?rt(pe,Bt):Bt}if(typeof pe=="bigint"){var Pt=String(pe)+"n";return At?rt(pe,Pt):Pt}var hn=typeof Qe.depth=="undefined"?5:Qe.depth;if(typeof Ue=="undefined"&&(Ue=0),Ue>=hn&&hn>0&&typeof pe=="object")return nt(pe)?"[Array]":"[Object]";var Nr=N(Qe,Ue);if(typeof je=="undefined")je=[];else if(ve(je,pe)>=0)return"[Circular]";function Cr(Br,Kr,Qn){if(Kr&&(je=xe.call(je),je.push(Kr)),Qn){var fr={depth:Qe.depth};return Vt(Qe,"quoteStyle")&&(fr.quoteStyle=Qe.quoteStyle),ae(Br,fr,Ue+1,je)}return ae(Br,Qe,Ue+1,je)}if(typeof pe=="function"&&!mt(pe)){var Ai=Dt(pe),Gr=de(pe,Cr);return"[Function"+(Ai?": "+Ai:" (anonymous)")+"]"+(Gr.length>0?" { "+ie.call(Gr,", ")+" }":"")}if(Et(pe)){var Wi=Fe?_.call(String(pe),/^(Symbol\(.*\))_[^)]*$/,"$1"):se.call(pe);return typeof pe=="object"&&!Fe?K(Wi):Wi}if(Ke(pe)){for(var Bn="<"+Y.call(String(pe.nodeName)),vn=pe.attributes||[],Pn=0;Pn<vn.length;Pn++)Bn+=" "+vn[Pn].name+"="+ht(wt(vn[Pn].value),"double",Qe);return Bn+=">",pe.childNodes&&pe.childNodes.length&&(Bn+="..."),Bn+="</"+Y.call(String(pe.nodeName))+">",Bn}if(nt(pe)){if(pe.length===0)return"[]";var $r=de(pe,Cr);return Nr&&!le($r)?"["+re($r,Nr)+"]":"[ "+ie.call($r,", ")+" ]"}if(xt(pe)){var Ei=de(pe,Cr);return!("cause"in Error.prototype)&&"cause"in pe&&!Me.call(pe,"cause")?"{ ["+String(pe)+"] "+ie.call(ee.call("[cause]: "+Cr(pe.cause),Ei),", ")+" }":Ei.length===0?"["+String(pe)+"]":"{ ["+String(pe)+"] "+ie.call(Ei,", ")+" }"}if(typeof pe=="object"&&vt){if(ft&&typeof pe[ft]=="function"&&Ze)return Ze(pe,{depth:hn-Ue});if(vt!=="symbol"&&typeof pe.inspect=="function")return pe.inspect()}if(z(pe)){var Ci=[];return d.call(pe,function(Br,Kr){Ci.push(Cr(Kr,pe,!0)+" => "+Cr(Br,pe))}),O("Map",x.call(pe),Ci,Nr)}if(Ie(pe)){var en=[];return L.call(pe,function(Br){en.push(Cr(Br,pe))}),O("Set",g.call(pe),en,Nr)}if($(pe))return T("WeakMap");if(Ge(pe))return T("WeakSet");if(Se(pe))return T("WeakRef");if(Mt(pe))return K(Cr(Number(pe)));if(zt(pe))return K(Cr(he.call(pe)));if(kt(pe))return K(X.call(pe));if(pt(pe))return K(Cr(String(pe)));if(!ut(pe)&&!mt(pe)){var gn=de(pe,Cr),Un=Pe?Pe(pe)===Object.prototype:pe instanceof Object||pe.constructor===Object,jn=pe instanceof Object?"":"null prototype",yn=!Un&&Le&&Object(pe)===pe&&Le in pe?J.call(St(pe),8,-1):jn?"Object":"",Xn=Un||typeof pe.constructor!="function"?"":pe.constructor.name?pe.constructor.name+" ":"",Oi=Xn+(yn||jn?"["+ie.call(ee.call([],yn||[],jn||[]),": ")+"] ":"");return gn.length===0?Oi+"{}":Nr?Oi+"{"+re(gn,Nr)+"}":Oi+"{ "+ie.call(gn,", ")+" }"}return String(pe)};function ht(ae,pe,Ee){var Ue=(Ee.quoteStyle||pe)==="double"?'"':"'";return Ue+ae+Ue}function wt(ae){return _.call(String(ae),/"/g,""")}function nt(ae){return St(ae)==="[object Array]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function ut(ae){return St(ae)==="[object Date]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function mt(ae){return St(ae)==="[object RegExp]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function xt(ae){return St(ae)==="[object Error]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function pt(ae){return St(ae)==="[object String]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Mt(ae){return St(ae)==="[object Number]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function kt(ae){return St(ae)==="[object Boolean]"&&(!Le||!(typeof ae=="object"&&Le in ae))}function Et(ae){if(Fe)return ae&&typeof ae=="object"&&ae instanceof Symbol;if(typeof ae=="symbol")return!0;if(!ae||typeof ae!="object"||!se)return!1;try{return se.call(ae),!0}catch(pe){}return!1}function zt(ae){if(!ae||typeof ae!="object"||!he)return!1;try{return he.call(ae),!0}catch(pe){}return!1}var jt=Object.prototype.hasOwnProperty||function(ae){return ae in this};function Vt(ae,pe){return jt.call(ae,pe)}function St(ae){return R.call(ae)}function Dt(ae){if(ae.name)return ae.name;var pe=V.call(C.call(ae),/^function\s*([\w$]+)/);return pe?pe[1]:null}function ve(ae,pe){if(ae.indexOf)return ae.indexOf(pe);for(var Ee=0,Ue=ae.length;Ee<Ue;Ee++)if(ae[Ee]===pe)return Ee;return-1}function z(ae){if(!x||!ae||typeof ae!="object")return!1;try{x.call(ae);try{g.call(ae)}catch(pe){return!0}return ae instanceof Map}catch(pe){}return!1}function $(ae){if(!B||!ae||typeof ae!="object")return!1;try{B.call(ae,B);try{q.call(ae,q)}catch(pe){return!0}return ae instanceof WeakMap}catch(pe){}return!1}function Se(ae){if(!M||!ae||typeof ae!="object")return!1;try{return M.call(ae),!0}catch(pe){}return!1}function Ie(ae){if(!g||!ae||typeof ae!="object")return!1;try{g.call(ae);try{x.call(ae)}catch(pe){return!0}return ae instanceof Set}catch(pe){}return!1}function Ge(ae){if(!q||!ae||typeof ae!="object")return!1;try{q.call(ae,q);try{B.call(ae,B)}catch(pe){return!0}return ae instanceof WeakSet}catch(pe){}return!1}function Ke(ae){return!ae||typeof ae!="object"?!1:typeof HTMLElement!="undefined"&&ae instanceof HTMLElement?!0:typeof ae.nodeName=="string"&&typeof ae.getAttribute=="function"}function P(ae,pe){if(ae.length>pe.maxStringLength){var Ee=ae.length-pe.maxStringLength,Ue="... "+Ee+" more character"+(Ee>1?"s":"");return P(J.call(ae,0,pe.maxStringLength),pe)+Ue}var je=_.call(_.call(ae,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Re);return ht(je,"single",pe)}function Re(ae){var pe=ae.charCodeAt(0),Ee={8:"b",9:"t",10:"n",12:"f",13:"r"}[pe];return Ee?"\\"+Ee:"\\x"+(pe<16?"0":"")+Q.call(pe.toString(16))}function K(ae){return"Object("+ae+")"}function T(ae){return ae+" { ? }"}function O(ae,pe,Ee,Ue){var je=Ue?re(Ee,Ue):ie.call(Ee,", ");return ae+" ("+pe+") {"+je+"}"}function le(ae){for(var pe=0;pe<ae.length;pe++)if(ve(ae[pe],`
|
|
519
|
+
`)>=0)return!1;return!0}function N(ae,pe){var Ee;if(ae.indent===" ")Ee=" ";else if(typeof ae.indent=="number"&&ae.indent>0)Ee=ie.call(Array(ae.indent+1)," ");else return null;return{base:Ee,prev:ie.call(Array(pe+1),Ee)}}function re(ae,pe){if(ae.length===0)return"";var Ee=`
|
|
520
|
+
`+pe.prev+pe.base;return Ee+ie.call(ae,","+Ee)+`
|
|
521
|
+
`+pe.prev}function de(ae,pe){var Ee=nt(ae),Ue=[];if(Ee){Ue.length=ae.length;for(var je=0;je<ae.length;je++)Ue[je]=Vt(ae,je)?pe(ae[je],ae):""}var Qe=typeof fe=="function"?fe(ae):[],vt;if(Fe){vt={};for(var At=0;At<Qe.length;At++)vt["$"+Qe[At]]=Qe[At]}for(var Bt in ae)!Vt(ae,Bt)||Ee&&String(Number(Bt))===Bt&&Bt<ae.length||Fe&&vt["$"+Bt]instanceof Symbol||(ce.call(/[^\w$]/,Bt)?Ue.push(pe(Bt,ae)+": "+pe(ae[Bt],ae)):Ue.push(Bt+": "+pe(ae[Bt],ae)));if(typeof fe=="function")for(var Pt=0;Pt<Qe.length;Pt++)Me.call(ae,Qe[Pt])&&Ue.push("["+pe(Qe[Pt])+"]: "+pe(ae[Qe[Pt]],ae));return Ue}},9779:(h,I,a)=>{"use strict";var c=I,v=a(48764).Buffer;c.unescapeBuffer=function(L,D){for(var B=new v(L.length),j=0,q,W,M,X=0,R=0;X<=L.length;X++){var C=X<L.length?L.charCodeAt(X):NaN;switch(j){case 0:switch(C){case 37:q=0,W=0,j=1;break;case 43:D&&(C=32);default:B[R++]=C;break}break;case 1:if(M=C,C>=48&&C<=57)q=C-48;else if(C>=65&&C<=70)q=C-65+10;else if(C>=97&&C<=102)q=C-97+10;else{B[R++]=37,B[R++]=C,j=0;break}j=2;break;case 2:if(j=0,C>=48&&C<=57)W=C-48;else if(C>=65&&C<=70)W=C-65+10;else if(C>=97&&C<=102)W=C-97+10;else{B[R++]=37,B[R++]=M,B[R++]=C;break}B[R++]=16*q+W;break}}return B.slice(0,R-1)};function x(L,D){try{return decodeURIComponent(L)}catch(B){return c.unescapeBuffer(L,D).toString()}}c.unescape=x;for(var d=new Array(256),b=0;b<256;++b)d[b]="%"+((b<16?"0":"")+b.toString(16)).toUpperCase();c.escape=function(L){typeof L!="string"&&(L+="");for(var D="",B=0,j=0;j<L.length;++j){var q=L.charCodeAt(j);if(!(q===33||q===45||q===46||q===95||q===126||q>=39&&q<=42||q>=48&&q<=57||q>=65&&q<=90||q>=97&&q<=122)){if(j-B>0&&(D+=L.slice(B,j)),q<128){B=j+1,D+=d[q];continue}if(q<2048){B=j+1,D+=d[192|q>>6]+d[128|q&63];continue}if(q<55296||q>=57344){B=j+1,D+=d[224|q>>12]+d[128|q>>6&63]+d[128|q&63];continue}++j;var W;if(j<L.length)W=L.charCodeAt(j)&1023;else throw new URIError("URI malformed");B=j+1,q=65536+((q&1023)<<10|W),D+=d[240|q>>18]+d[128|q>>12&63]+d[128|q>>6&63]+d[128|q&63]}}return B===0?L:B<L.length?D+L.slice(B):D};var S=function(L){return typeof L=="string"?L:typeof L=="number"&&isFinite(L)?""+L:typeof L=="boolean"?L?"true":"false":""};c.stringify=c.encode=function(L,D,B,j){D=D||"&",B=B||"=";var q=c.escape;if(j&&typeof j.encodeURIComponent=="function"&&(q=j.encodeURIComponent),L!==null&&typeof L=="object"){for(var W=Object.keys(L),M=W.length,X=M-1,R="",C=0;C<M;++C){var V=W[C],J=L[V],_=q(S(V))+B;if(Array.isArray(J)){for(var Q=J.length,Y=Q-1,ce=0;ce<Q;++ce)R+=_+q(S(J[ce])),ce<Y&&(R+=D);Q&&C<X&&(R+=D)}else R+=_+q(S(J)),C<X&&(R+=D)}return R}return""},c.parse=c.decode=function(L,D,B,j){D=D||"&",B=B||"=";var q={};if(typeof L!="string"||L.length===0)return q;typeof D!="string"&&(D+="");var W=B.length,M=D.length,X=1e3;j&&typeof j.maxKeys=="number"&&(X=j.maxKeys);var R=1/0;X>0&&(R=X);var C=c.unescape;j&&typeof j.decodeURIComponent=="function"&&(C=j.decodeURIComponent);for(var V=C!==x,J=[],_=0,Q=0,Y=0,ce="",ee="",ie=V,xe=V,we=0,he=0;he<L.length;++he){var fe=L.charCodeAt(he);if(fe===D.charCodeAt(Q)){if(++Q===M){var se=he-Q+1;if(Y<W?_<se&&(ce+=L.slice(_,se)):_<se&&(ee+=L.slice(_,se)),ie&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)q[ce]=ee,J[J.length]=ce;else{var Fe=q[ce];Fe instanceof Array?Fe[Fe.length]=ee:q[ce]=[Fe,ee]}if(--R==0)break;ie=xe=V,we=0,ce=ee="",_=he+1,Q=Y=0}continue}else Q=0,xe||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(xe=!0):we=0);if(Y<W)if(fe===B.charCodeAt(Y)){if(++Y===W){var se=he-Y+1;_<se&&(ce+=L.slice(_,se)),we=0,_=he+1}continue}else Y=0,ie||(fe===37?we=1:we>0&&(fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102)?++we==3&&(ie=!0):we=0);fe===43&&(Y<W?(he-_>0&&(ce+=L.slice(_,he)),ce+="%20",ie=!0):(he-_>0&&(ee+=L.slice(_,he)),ee+="%20",xe=!0),_=he+1)}if(R>0&&(_<L.length||Y>0))if(_<L.length&&(Y<W?ce+=L.slice(_):Q<M&&(ee+=L.slice(_))),ie&&(ce=g(ce,C)),xe&&(ee=g(ee,C)),J.indexOf(ce)===-1)q[ce]=ee,J[J.length]=ce;else{var Fe=q[ce];Fe instanceof Array?Fe[Fe.length]=ee:q[ce]=[Fe,ee]}return q};function g(L,D){try{return D(L)}catch(B){return c.unescape(L,!0)}}},35310:(h,I,a)=>{"use strict";var c;function v(){return v=Object.assign||function(q){for(var W=1;W<arguments.length;W++){var M=arguments[W];for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&(q[X]=M[X])}return q},v.apply(this,arguments)}function x(q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?x=function(M){return typeof M}:x=function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},x(q)}var d=function(){var q=function(M,X){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,C){R.__proto__=C}||function(R,C){for(var V in C)C.hasOwnProperty(V)&&(R[V]=C[V])},q(M,X)};return function(W,M){q(W,M);function X(){this.constructor=W}W.prototype=M===null?Object.create(M):(X.prototype=M.prototype,new X)}}();c={value:!0},c=I.fk=void 0;var b=a(67294),S=typeof navigator=="undefined"||a.g.PREVENT_CODEMIRROR_RENDER===!0,g;S||(g=a(4631));var L=function(){function q(){}return q.equals=function(W,M){var X=this,R=Object.keys,C=x(W),V=x(M);return W&&M&&C==="object"&&C===V?R(W).length===R(M).length&&R(W).every(function(J){return X.equals(W[J],M[J])}):W===M},q}(),D=function(){function q(W,M){this.editor=W,this.props=M}return q.prototype.delegateCursor=function(W,M,X){var R=this.editor.getDoc();X&&this.editor.focus(),M?R.setCursor(W):R.setCursor(W,null,{scroll:!1})},q.prototype.delegateScroll=function(W){this.editor.scrollTo(W.x,W.y)},q.prototype.delegateSelection=function(W,M){var X=this.editor.getDoc();X.setSelections(W),M&&this.editor.focus()},q.prototype.apply=function(W){W&&W.selection&&W.selection.ranges&&this.delegateSelection(W.selection.ranges,W.selection.focus||!1),W&&W.cursor&&this.delegateCursor(W.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1),W&&W.scroll&&this.delegateScroll(W.scroll)},q.prototype.applyNext=function(W,M,X){W&&W.selection&&W.selection.ranges&&M&&M.selection&&M.selection.ranges&&!L.equals(W.selection.ranges,M.selection.ranges)&&this.delegateSelection(M.selection.ranges,M.selection.focus||!1),W&&W.cursor&&M&&M.cursor&&!L.equals(W.cursor,M.cursor)&&this.delegateCursor(X.cursor||M.cursor,M.autoScroll||!1,M.autoCursor||!1),W&&W.scroll&&M&&M.scroll&&!L.equals(W.scroll,M.scroll)&&this.delegateScroll(M.scroll)},q.prototype.applyUserDefined=function(W,M){M&&M.cursor&&this.delegateCursor(M.cursor,W.autoScroll||!1,this.editor.getOption("autofocus")||!1)},q.prototype.wire=function(W){var M=this;Object.keys(W||{}).filter(function(X){return/^on/.test(X)}).forEach(function(X){switch(X){case"onBlur":M.editor.on("blur",function(R,C){M.props.onBlur(M.editor,C)});break;case"onContextMenu":{M.editor.on("contextmenu",function(R,C){M.props.onContextMenu(M.editor,C)});break}case"onCopy":{M.editor.on("copy",function(R,C){M.props.onCopy(M.editor,C)});break}case"onCursor":M.editor.on("cursorActivity",function(R){M.props.onCursor(M.editor,M.editor.getDoc().getCursor())});break;case"onCursorActivity":M.editor.on("cursorActivity",function(R){M.props.onCursorActivity(M.editor)});break;case"onCut":{M.editor.on("cut",function(R,C){M.props.onCut(M.editor,C)});break}case"onDblClick":{M.editor.on("dblclick",function(R,C){M.props.onDblClick(M.editor,C)});break}case"onDragEnter":M.editor.on("dragenter",function(R,C){M.props.onDragEnter(M.editor,C)});break;case"onDragLeave":{M.editor.on("dragleave",function(R,C){M.props.onDragLeave(M.editor,C)});break}case"onDragOver":M.editor.on("dragover",function(R,C){M.props.onDragOver(M.editor,C)});break;case"onDragStart":{M.editor.on("dragstart",function(R,C){M.props.onDragStart(M.editor,C)});break}case"onDrop":M.editor.on("drop",function(R,C){M.props.onDrop(M.editor,C)});break;case"onFocus":M.editor.on("focus",function(R,C){M.props.onFocus(M.editor,C)});break;case"onGutterClick":M.editor.on("gutterClick",function(R,C,V,J){M.props.onGutterClick(M.editor,C,V,J)});break;case"onInputRead":M.editor.on("inputRead",function(R,C){M.props.onInputRead(M.editor,C)});break;case"onKeyDown":M.editor.on("keydown",function(R,C){M.props.onKeyDown(M.editor,C)});break;case"onKeyHandled":M.editor.on("keyHandled",function(R,C,V){M.props.onKeyHandled(M.editor,C,V)});break;case"onKeyPress":M.editor.on("keypress",function(R,C){M.props.onKeyPress(M.editor,C)});break;case"onKeyUp":M.editor.on("keyup",function(R,C){M.props.onKeyUp(M.editor,C)});break;case"onMouseDown":{M.editor.on("mousedown",function(R,C){M.props.onMouseDown(M.editor,C)});break}case"onPaste":{M.editor.on("paste",function(R,C){M.props.onPaste(M.editor,C)});break}case"onRenderLine":{M.editor.on("renderLine",function(R,C,V){M.props.onRenderLine(M.editor,C,V)});break}case"onScroll":M.editor.on("scroll",function(R){M.props.onScroll(M.editor,M.editor.getScrollInfo())});break;case"onSelection":M.editor.on("beforeSelectionChange",function(R,C){M.props.onSelection(M.editor,C)});break;case"onTouchStart":{M.editor.on("touchstart",function(R,C){M.props.onTouchStart(M.editor,C)});break}case"onUpdate":M.editor.on("update",function(R){M.props.onUpdate(M.editor)});break;case"onViewportChange":M.editor.on("viewportChange",function(R,C,V){M.props.onViewportChange(M.editor,C,V)});break}})},q}(),B=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedNext=!1,X.appliedUserDefined=!1,X.deferred=null,X.emulating=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(J){return X.editor.getOption(J)!==C[J]});V&&Object.keys(C).forEach(function(J){R.hasOwnProperty(J)&&X.editor.getOption(J)!==C[J]&&(X.editor.setOption(J,C[J]),X.mirror.setOption(J,C[J]))}),this.hydrated||(this.deferred?this.resolveChange(M.value):this.initChange(M.value||"")),this.hydrated=!0},W.prototype.initChange=function(M){this.emulating=!0;var X=this.editor.getDoc(),R=X.lastLine(),C=X.getLine(X.lastLine()).length;X.replaceRange(M||"",{line:0,ch:0},{line:R,ch:C}),this.mirror.setValue(M),X.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},W.prototype.resolveChange=function(M){this.emulating=!0;var X=this.editor.getDoc();if(this.deferred.origin==="undo"?X.undo():this.deferred.origin==="redo"?X.redo():X.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),M&&M!==X.getValue()){var R=X.getCursor();X.setValue(M),X.setCursor(R)}this.emulating=!1,this.deferred=null},W.prototype.mirrorChange=function(M){var X=this.editor.getDoc();return M.origin==="undo"?(X.setHistory(this.mirror.getHistory()),this.mirror.undo()):M.origin==="redo"?(X.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(M.text,M.from,M.to,M.origin),this.mirror.getValue()},W.prototype.componentDidMount=function(){var M=this;S||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.mirror=g(function(){},this.props.options),this.editor.on("electricInput",function(){M.mirror.setHistory(M.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){M.mirror.setCursor(M.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(X,R){if(!M.emulating){R.cancel(),M.deferred=R;var C=M.mirrorChange(M.deferred);M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,M.deferred,C)}}),this.editor.on("change",function(X,R){!M.mounted||M.props.onChange&&M.props.onChange(M.editor,R,M.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},W.prototype.componentDidUpdate=function(M){if(!S){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(M,this.props,X),this.appliedNext=!0),this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){return!S},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.ref=C}})},W}(b.Component);I.fk=B;var j=function(q){d(W,q);function W(M){var X=q.call(this,M)||this;return S||(X.applied=!1,X.appliedUserDefined=!1,X.continueChange=!1,X.detached=!1,X.hydrated=!1,X.initCb=function(){X.props.editorDidConfigure&&X.props.editorDidConfigure(X.editor)},X.mounted=!1,X.onBeforeChangeCb=function(){X.continueChange=!0}),X}return W.prototype.hydrate=function(M){var X=this,R=M&&M.options?M.options:{},C=v({},g.defaults,this.editor.options,R),V=Object.keys(C).some(function(Y){return X.editor.getOption(Y)!==C[Y]});if(V&&Object.keys(C).forEach(function(Y){R.hasOwnProperty(Y)&&X.editor.getOption(Y)!==C[Y]&&X.editor.setOption(Y,C[Y])}),!this.hydrated){var J=this.editor.getDoc(),_=J.lastLine(),Q=J.getLine(J.lastLine()).length;J.replaceRange(M.value||"",{line:0,ch:0},{line:_,ch:Q})}this.hydrated=!0},W.prototype.componentDidMount=function(){var M=this;S||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&g.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=g(this.ref,this.props.options),this.shared=new D(this.editor,this.props),this.editor.on("beforeChange",function(X,R){M.props.onBeforeChange&&M.props.onBeforeChange(M.editor,R,M.editor.getValue(),M.onBeforeChangeCb)}),this.editor.on("change",function(X,R){!M.mounted||!M.props.onChange||(M.props.onBeforeChange?M.continueChange&&M.props.onChange(M.editor,R,M.editor.getValue()):M.props.onChange(M.editor,R,M.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},W.prototype.componentDidUpdate=function(M){if(this.detached&&this.props.detach===!1&&(this.detached=!1,M.editorDidAttach&&M.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,M.editorDidDetach&&M.editorDidDetach(this.editor)),!(S||this.detached)){var X={cursor:null};this.props.value!==M.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!M.autoCursor&&M.autoCursor!==void 0&&(X.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(M),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(M,X),this.appliedUserDefined=!0)}},W.prototype.componentWillUnmount=function(){S||this.props.editorWillUnmount&&this.props.editorWillUnmount(g)},W.prototype.shouldComponentUpdate=function(M,X){var R=!0;return S&&(R=!1),this.detached&&M.detach&&(R=!1),R},W.prototype.render=function(){var M=this;if(S)return null;var X=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return b.createElement("div",{className:X,ref:function(C){return M.ref=C}})},W}(b.Component);c=j},35666:h=>{var I=function(a){"use strict";var c=Object.prototype,v=c.hasOwnProperty,x,d=typeof Symbol=="function"?Symbol:{},b=d.iterator||"@@iterator",S=d.asyncIterator||"@@asyncIterator",g=d.toStringTag||"@@toStringTag";function L(Le,Me,Pe){return Object.defineProperty(Le,Me,{value:Pe,enumerable:!0,configurable:!0,writable:!0}),Le[Me]}try{L({},"")}catch(Le){L=function(Me,Pe,rt){return Me[Pe]=rt}}function D(Le,Me,Pe,rt){var Ze=Me&&Me.prototype instanceof R?Me:R,Xe=Object.create(Ze.prototype),ft=new fe(rt||[]);return Xe._invoke=ie(Le,Pe,ft),Xe}a.wrap=D;function B(Le,Me,Pe){try{return{type:"normal",arg:Le.call(Me,Pe)}}catch(rt){return{type:"throw",arg:rt}}}var j="suspendedStart",q="suspendedYield",W="executing",M="completed",X={};function R(){}function C(){}function V(){}var J={};J[b]=function(){return this};var _=Object.getPrototypeOf,Q=_&&_(_(se([])));Q&&Q!==c&&v.call(Q,b)&&(J=Q);var Y=V.prototype=R.prototype=Object.create(J);C.prototype=Y.constructor=V,V.constructor=C,C.displayName=L(V,g,"GeneratorFunction");function ce(Le){["next","throw","return"].forEach(function(Me){L(Le,Me,function(Pe){return this._invoke(Me,Pe)})})}a.isGeneratorFunction=function(Le){var Me=typeof Le=="function"&&Le.constructor;return Me?Me===C||(Me.displayName||Me.name)==="GeneratorFunction":!1},a.mark=function(Le){return Object.setPrototypeOf?Object.setPrototypeOf(Le,V):(Le.__proto__=V,L(Le,g,"GeneratorFunction")),Le.prototype=Object.create(Y),Le},a.awrap=function(Le){return{__await:Le}};function ee(Le,Me){function Pe(Xe,ft,ht,wt){var nt=B(Le[Xe],Le,ft);if(nt.type==="throw")wt(nt.arg);else{var ut=nt.arg,mt=ut.value;return mt&&typeof mt=="object"&&v.call(mt,"__await")?Me.resolve(mt.__await).then(function(xt){Pe("next",xt,ht,wt)},function(xt){Pe("throw",xt,ht,wt)}):Me.resolve(mt).then(function(xt){ut.value=xt,ht(ut)},function(xt){return Pe("throw",xt,ht,wt)})}}var rt;function Ze(Xe,ft){function ht(){return new Me(function(wt,nt){Pe(Xe,ft,wt,nt)})}return rt=rt?rt.then(ht,ht):ht()}this._invoke=Ze}ce(ee.prototype),ee.prototype[S]=function(){return this},a.AsyncIterator=ee,a.async=function(Le,Me,Pe,rt,Ze){Ze===void 0&&(Ze=Promise);var Xe=new ee(D(Le,Me,Pe,rt),Ze);return a.isGeneratorFunction(Me)?Xe:Xe.next().then(function(ft){return ft.done?ft.value:Xe.next()})};function ie(Le,Me,Pe){var rt=j;return function(Xe,ft){if(rt===W)throw new Error("Generator is already running");if(rt===M){if(Xe==="throw")throw ft;return Fe()}for(Pe.method=Xe,Pe.arg=ft;;){var ht=Pe.delegate;if(ht){var wt=xe(ht,Pe);if(wt){if(wt===X)continue;return wt}}if(Pe.method==="next")Pe.sent=Pe._sent=Pe.arg;else if(Pe.method==="throw"){if(rt===j)throw rt=M,Pe.arg;Pe.dispatchException(Pe.arg)}else Pe.method==="return"&&Pe.abrupt("return",Pe.arg);rt=W;var nt=B(Le,Me,Pe);if(nt.type==="normal"){if(rt=Pe.done?M:q,nt.arg===X)continue;return{value:nt.arg,done:Pe.done}}else nt.type==="throw"&&(rt=M,Pe.method="throw",Pe.arg=nt.arg)}}}function xe(Le,Me){var Pe=Le.iterator[Me.method];if(Pe===x){if(Me.delegate=null,Me.method==="throw"){if(Le.iterator.return&&(Me.method="return",Me.arg=x,xe(Le,Me),Me.method==="throw"))return X;Me.method="throw",Me.arg=new TypeError("The iterator does not provide a 'throw' method")}return X}var rt=B(Pe,Le.iterator,Me.arg);if(rt.type==="throw")return Me.method="throw",Me.arg=rt.arg,Me.delegate=null,X;var Ze=rt.arg;if(!Ze)return Me.method="throw",Me.arg=new TypeError("iterator result is not an object"),Me.delegate=null,X;if(Ze.done)Me[Le.resultName]=Ze.value,Me.next=Le.nextLoc,Me.method!=="return"&&(Me.method="next",Me.arg=x);else return Ze;return Me.delegate=null,X}ce(Y),L(Y,g,"Generator"),Y[b]=function(){return this},Y.toString=function(){return"[object Generator]"};function we(Le){var Me={tryLoc:Le[0]};1 in Le&&(Me.catchLoc=Le[1]),2 in Le&&(Me.finallyLoc=Le[2],Me.afterLoc=Le[3]),this.tryEntries.push(Me)}function he(Le){var Me=Le.completion||{};Me.type="normal",delete Me.arg,Le.completion=Me}function fe(Le){this.tryEntries=[{tryLoc:"root"}],Le.forEach(we,this),this.reset(!0)}a.keys=function(Le){var Me=[];for(var Pe in Le)Me.push(Pe);return Me.reverse(),function rt(){for(;Me.length;){var Ze=Me.pop();if(Ze in Le)return rt.value=Ze,rt.done=!1,rt}return rt.done=!0,rt}};function se(Le){if(Le){var Me=Le[b];if(Me)return Me.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Pe=-1,rt=function Ze(){for(;++Pe<Le.length;)if(v.call(Le,Pe))return Ze.value=Le[Pe],Ze.done=!1,Ze;return Ze.value=x,Ze.done=!0,Ze};return rt.next=rt}}return{next:Fe}}a.values=se;function Fe(){return{value:x,done:!0}}return fe.prototype={constructor:fe,reset:function(Le){if(this.prev=0,this.next=0,this.sent=this._sent=x,this.done=!1,this.delegate=null,this.method="next",this.arg=x,this.tryEntries.forEach(he),!Le)for(var Me in this)Me.charAt(0)==="t"&&v.call(this,Me)&&!isNaN(+Me.slice(1))&&(this[Me]=x)},stop:function(){this.done=!0;var Le=this.tryEntries[0],Me=Le.completion;if(Me.type==="throw")throw Me.arg;return this.rval},dispatchException:function(Le){if(this.done)throw Le;var Me=this;function Pe(wt,nt){return Xe.type="throw",Xe.arg=Le,Me.next=wt,nt&&(Me.method="next",Me.arg=x),!!nt}for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Ze=this.tryEntries[rt],Xe=Ze.completion;if(Ze.tryLoc==="root")return Pe("end");if(Ze.tryLoc<=this.prev){var ft=v.call(Ze,"catchLoc"),ht=v.call(Ze,"finallyLoc");if(ft&&ht){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0);if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else if(ft){if(this.prev<Ze.catchLoc)return Pe(Ze.catchLoc,!0)}else if(ht){if(this.prev<Ze.finallyLoc)return Pe(Ze.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(Le,Me){for(var Pe=this.tryEntries.length-1;Pe>=0;--Pe){var rt=this.tryEntries[Pe];if(rt.tryLoc<=this.prev&&v.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Ze=rt;break}}Ze&&(Le==="break"||Le==="continue")&&Ze.tryLoc<=Me&&Me<=Ze.finallyLoc&&(Ze=null);var Xe=Ze?Ze.completion:{};return Xe.type=Le,Xe.arg=Me,Ze?(this.method="next",this.next=Ze.finallyLoc,X):this.complete(Xe)},complete:function(Le,Me){if(Le.type==="throw")throw Le.arg;return Le.type==="break"||Le.type==="continue"?this.next=Le.arg:Le.type==="return"?(this.rval=this.arg=Le.arg,this.method="return",this.next="end"):Le.type==="normal"&&Me&&(this.next=Me),X},finish:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Pe=this.tryEntries[Me];if(Pe.finallyLoc===Le)return this.complete(Pe.completion,Pe.afterLoc),he(Pe),X}},catch:function(Le){for(var Me=this.tryEntries.length-1;Me>=0;--Me){var Pe=this.tryEntries[Me];if(Pe.tryLoc===Le){var rt=Pe.completion;if(rt.type==="throw"){var Ze=rt.arg;he(Pe)}return Ze}}throw new Error("illegal catch attempt")},delegateYield:function(Le,Me,Pe){return this.delegate={iterator:se(Le),resultName:Me,nextLoc:Pe},this.method==="next"&&(this.arg=x),X}},a}(h.exports);try{regeneratorRuntime=I}catch(a){Function("r","regeneratorRuntime = r")(I)}},37478:(h,I,a)=>{"use strict";var c=a(40210),v=a(21924),x=a(70631),d=c("%TypeError%"),b=c("%WeakMap%",!0),S=c("%Map%",!0),g=v("WeakMap.prototype.get",!0),L=v("WeakMap.prototype.set",!0),D=v("WeakMap.prototype.has",!0),B=v("Map.prototype.get",!0),j=v("Map.prototype.set",!0),q=v("Map.prototype.has",!0),W=function(C,V){for(var J=C,_;(_=J.next)!==null;J=_)if(_.key===V)return J.next=_.next,_.next=C.next,C.next=_,_},M=function(C,V){var J=W(C,V);return J&&J.value},X=function(C,V,J){var _=W(C,V);_?_.value=J:C.next={key:V,next:C.next,value:J}},R=function(C,V){return!!W(C,V)};h.exports=function(){var V,J,_,Q={assert:function(Y){if(!Q.has(Y))throw new d("Side channel does not contain "+x(Y))},get:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return g(V,Y)}else if(S){if(J)return B(J,Y)}else if(_)return M(_,Y)},has:function(Y){if(b&&Y&&(typeof Y=="object"||typeof Y=="function")){if(V)return D(V,Y)}else if(S){if(J)return q(J,Y)}else if(_)return R(_,Y);return!1},set:function(Y,ce){b&&Y&&(typeof Y=="object"||typeof Y=="function")?(V||(V=new b),L(V,Y,ce)):S?(J||(J=new S),j(J,Y,ce)):(_||(_={key:{},next:null}),X(_,Y,ce))}};return Q}},13837:(h,I,a)=>{var c=a(93379),v=a(17438);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},75019:(h,I,a)=>{var c=a(93379),v=a(58635);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},86081:(h,I,a)=>{var c=a(93379),v=a(45272);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},44254:(h,I,a)=>{var c=a(93379),v=a(40961);v=v.__esModule?v.default:v,typeof v=="string"&&(v=[[h.id,v,""]]);var x={};x.insert="head",x.singleton=!1;var d=c(v,x);h.exports=v.locals||{}},88996:(h,I,a)=>{"use strict";/*!
|
|
499
522
|
* The buffer module from node.js, for the browser.
|
|
500
523
|
*
|
|
501
524
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
502
525
|
* @license MIT
|
|
503
|
-
*/const c=a(79742),v=a(80645),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=g,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const d=2147483647;I.kMaxLength=d,g.TYPED_ARRAY_SUPPORT=b(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const K=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(K,T),K.foo()===42}catch(K){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.byteOffset}});function S(K){if(K>d)throw new RangeError('The value "'+K+'" is invalid for option "size"');const T=new Uint8Array(K);return Object.setPrototypeOf(T,g.prototype),T}function g(K,T,O){if(typeof K=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(K)}return L(K,T,O)}g.poolSize=8192;function L(K,T,O){if(typeof K=="string")return q(K,T);if(ArrayBuffer.isView(K))return M(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Ie(K,ArrayBuffer)||K&&Ie(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ie(K,SharedArrayBuffer)||K&&Ie(K.buffer,SharedArrayBuffer)))return X(K,T,O);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const se=K.valueOf&&K.valueOf();if(se!=null&&se!==K)return g.from(se,T,O);const N=R(K);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return g.from(K[Symbol.toPrimitive]("string"),T,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}g.from=function(K,T,O){return L(K,T,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function B(K,T,O){return D(K),K<=0?S(K):T!==void 0?typeof O=="string"?S(K).fill(T,O):S(K).fill(T):S(K)}g.alloc=function(K,T,O){return B(K,T,O)};function j(K){return D(K),S(K<0?0:C(K)|0)}g.allocUnsafe=function(K){return j(K)},g.allocUnsafeSlow=function(K){return j(K)};function q(K,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const O=J(K,T)|0;let se=S(O);const N=se.write(K,T);return N!==O&&(se=se.slice(0,N)),se}function W(K){const T=K.length<0?0:C(K.length)|0,O=S(T);for(let se=0;se<T;se+=1)O[se]=K[se]&255;return O}function M(K){if(Ie(K,Uint8Array)){const T=new Uint8Array(K);return X(T.buffer,T.byteOffset,T.byteLength)}return W(K)}function X(K,T,O){if(T<0||K.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<T+(O||0))throw new RangeError('"length" is outside of buffer bounds');let se;return T===void 0&&O===void 0?se=new Uint8Array(K):O===void 0?se=new Uint8Array(K,T):se=new Uint8Array(K,T,O),Object.setPrototypeOf(se,g.prototype),se}function R(K){if(g.isBuffer(K)){const T=C(K.length)|0,O=S(T);return O.length===0||K.copy(O,0,0,T),O}if(K.length!==void 0)return typeof K.length!="number"||Ge(K.length)?S(0):W(K);if(K.type==="Buffer"&&Array.isArray(K.data))return W(K.data)}function C(K){if(K>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return K|0}function V(K){return+K!=K&&(K=0),g.alloc(+K)}g.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==g.prototype},g.compare=function(T,O){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),Ie(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(T)||!g.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;let se=T.length,N=O.length;for(let te=0,de=Math.min(se,N);te<de;++te)if(T[te]!==O[te]){se=T[te],N=O[te];break}return se<N?-1:N<se?1:0},g.isEncoding=function(T){switch(String(T).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(T,O){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return g.alloc(0);let se;if(O===void 0)for(O=0,se=0;se<T.length;++se)O+=T[se].length;const N=g.allocUnsafe(O);let te=0;for(se=0;se<T.length;++se){let de=T[se];if(Ie(de,Uint8Array))te+de.length>N.length?(g.isBuffer(de)||(de=g.from(de)),de.copy(N,te)):Uint8Array.prototype.set.call(N,de,te);else if(g.isBuffer(de))de.copy(N,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=de.length}return N};function J(K,T){if(g.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Ie(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const O=K.length,se=arguments.length>2&&arguments[2]===!0;if(!se&&O===0)return 0;let N=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Dt(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return $(K).length;default:if(N)return se?-1:Dt(K).length;T=(""+T).toLowerCase(),N=!0}}g.byteLength=J;function _(K,T,O){let se=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(K||(K="utf8");;)switch(K){case"hex":return rt(this,T,O);case"utf8":case"utf-8":return oe(this,T,O);case"ascii":return Me(this,T,O);case"latin1":case"binary":return Pe(this,T,O);case"base64":return ue(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,T,O);default:if(se)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),se=!0}}g.prototype._isBuffer=!0;function Q(K,T,O){const se=K[T];K[T]=K[O],K[O]=se}g.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<T;O+=2)Q(this,O,O+1);return this},g.prototype.swap32=function(){const T=this.length;if(T%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<T;O+=4)Q(this,O,O+3),Q(this,O+1,O+2);return this},g.prototype.swap64=function(){const T=this.length;if(T%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<T;O+=8)Q(this,O,O+7),Q(this,O+1,O+6),Q(this,O+2,O+5),Q(this,O+3,O+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?oe(this,0,T):_.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(T){if(!g.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:g.compare(this,T)===0},g.prototype.inspect=function(){let T="";const O=I.INSPECT_MAX_BYTES;return T=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(T+=" ... "),"<Buffer "+T+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(T,O,se,N,te){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),se===void 0&&(se=T?T.length:0),N===void 0&&(N=0),te===void 0&&(te=this.length),O<0||se>T.length||N<0||te>this.length)throw new RangeError("out of range index");if(N>=te&&O>=se)return 0;if(N>=te)return-1;if(O>=se)return 1;if(O>>>=0,se>>>=0,N>>>=0,te>>>=0,this===T)return 0;let de=te-N,ae=se-O;const pe=Math.min(de,ae),Ae=this.slice(N,te),Be=T.slice(O,se);for(let Ue=0;Ue<pe;++Ue)if(Ae[Ue]!==Be[Ue]){de=Ae[Ue],ae=Be[Ue];break}return de<ae?-1:ae<de?1:0};function Y(K,T,O,se,N){if(K.length===0)return-1;if(typeof O=="string"?(se=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,Ge(O)&&(O=N?0:K.length-1),O<0&&(O=K.length+O),O>=K.length){if(N)return-1;O=K.length-1}else if(O<0)if(N)O=0;else return-1;if(typeof T=="string"&&(T=g.from(T,se)),g.isBuffer(T))return T.length===0?-1:fe(K,T,O,se,N);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(K,T,O):Uint8Array.prototype.lastIndexOf.call(K,T,O):fe(K,[T],O,se,N);throw new TypeError("val must be string, number or Buffer")}function fe(K,T,O,se,N){let te=1,de=K.length,ae=T.length;if(se!==void 0&&(se=String(se).toLowerCase(),se==="ucs2"||se==="ucs-2"||se==="utf16le"||se==="utf-16le")){if(K.length<2||T.length<2)return-1;te=2,de/=2,ae/=2,O/=2}function pe(Be,Ue){return te===1?Be[Ue]:Be.readUInt16BE(Ue*te)}let Ae;if(N){let Be=-1;for(Ae=O;Ae<de;Ae++)if(pe(K,Ae)===pe(T,Be===-1?0:Ae-Be)){if(Be===-1&&(Be=Ae),Ae-Be+1===ae)return Be*te}else Be!==-1&&(Ae-=Ae-Be),Be=-1}else for(O+ae>de&&(O=de-ae),Ae=O;Ae>=0;Ae--){let Be=!0;for(let Ue=0;Ue<ae;Ue++)if(pe(K,Ae+Ue)!==pe(T,Ue)){Be=!1;break}if(Be)return Ae}return-1}g.prototype.includes=function(T,O,se){return this.indexOf(T,O,se)!==-1},g.prototype.indexOf=function(T,O,se){return Y(this,T,O,se,!0)},g.prototype.lastIndexOf=function(T,O,se){return Y(this,T,O,se,!1)};function ee(K,T,O,se){O=Number(O)||0;const N=K.length-O;se?(se=Number(se),se>N&&(se=N)):se=N;const te=T.length;se>te/2&&(se=te/2);let de;for(de=0;de<se;++de){const ae=parseInt(T.substr(de*2,2),16);if(Ge(ae))return de;K[O+de]=ae}return de}function ie(K,T,O,se){return Se(Dt(T,K.length-O),K,O,se)}function ye(K,T,O,se){return Se(ve(T),K,O,se)}function be(K,T,O,se){return Se($(T),K,O,se)}function he(K,T,O,se){return Se(z(T,K.length-O),K,O,se)}g.prototype.write=function(T,O,se,N){if(O===void 0)N="utf8",se=this.length,O=0;else if(se===void 0&&typeof O=="string")N=O,se=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(se)?(se=se>>>0,N===void 0&&(N="utf8")):(N=se,se=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const te=this.length-O;if((se===void 0||se>te)&&(se=te),T.length>0&&(se<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let de=!1;for(;;)switch(N){case"hex":return ee(this,T,O,se);case"utf8":case"utf-8":return ie(this,T,O,se);case"ascii":case"latin1":case"binary":return ye(this,T,O,se);case"base64":return be(this,T,O,se);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,T,O,se);default:if(de)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),de=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(K,T,O){return T===0&&O===K.length?c.fromByteArray(K):c.fromByteArray(K.slice(T,O))}function oe(K,T,O){O=Math.min(K.length,O);const se=[];let N=T;for(;N<O;){const te=K[N];let de=null,ae=te>239?4:te>223?3:te>191?2:1;if(N+ae<=O){let pe,Ae,Be,Ue;switch(ae){case 1:te<128&&(de=te);break;case 2:pe=K[N+1],(pe&192)==128&&(Ue=(te&31)<<6|pe&63,Ue>127&&(de=Ue));break;case 3:pe=K[N+1],Ae=K[N+2],(pe&192)==128&&(Ae&192)==128&&(Ue=(te&15)<<12|(pe&63)<<6|Ae&63,Ue>2047&&(Ue<55296||Ue>57343)&&(de=Ue));break;case 4:pe=K[N+1],Ae=K[N+2],Be=K[N+3],(pe&192)==128&&(Ae&192)==128&&(Be&192)==128&&(Ue=(te&15)<<18|(pe&63)<<12|(Ae&63)<<6|Be&63,Ue>65535&&Ue<1114112&&(de=Ue))}}de===null?(de=65533,ae=1):de>65535&&(de-=65536,se.push(de>>>10&1023|55296),de=56320|de&1023),se.push(de),N+=ae}return Le(se)}const Fe=4096;function Le(K){const T=K.length;if(T<=Fe)return String.fromCharCode.apply(String,K);let O="",se=0;for(;se<T;)O+=String.fromCharCode.apply(String,K.slice(se,se+=Fe));return O}function Me(K,T,O){let se="";O=Math.min(K.length,O);for(let N=T;N<O;++N)se+=String.fromCharCode(K[N]&127);return se}function Pe(K,T,O){let se="";O=Math.min(K.length,O);for(let N=T;N<O;++N)se+=String.fromCharCode(K[N]);return se}function rt(K,T,O){const se=K.length;(!T||T<0)&&(T=0),(!O||O<0||O>se)&&(O=se);let N="";for(let te=T;te<O;++te)N+=Ke[K[te]];return N}function Ze(K,T,O){const se=K.slice(T,O);let N="";for(let te=0;te<se.length-1;te+=2)N+=String.fromCharCode(se[te]+se[te+1]*256);return N}g.prototype.slice=function(T,O){const se=this.length;T=~~T,O=O===void 0?se:~~O,T<0?(T+=se,T<0&&(T=0)):T>se&&(T=se),O<0?(O+=se,O<0&&(O=0)):O>se&&(O=se),O<T&&(O=T);const N=this.subarray(T,O);return Object.setPrototypeOf(N,g.prototype),N};function Xe(K,T,O){if(K%1!=0||K<0)throw new RangeError("offset is not uint");if(K+T>O)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=this[T],te=1,de=0;for(;++de<O&&(te*=256);)N+=this[T+de]*te;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=this[T+--O],te=1;for(;O>0&&(te*=256);)N+=this[T+--O]*te;return N},g.prototype.readUint8=g.prototype.readUInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},g.prototype.readBigUInt64LE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=O+this[++T]*mr(2,8)+this[++T]*mr(2,16)+this[++T]*mr(2,24),te=this[++T]+this[++T]*mr(2,8)+this[++T]*mr(2,16)+se*mr(2,24);return BigInt(N)+(BigInt(te)<<BigInt(32))}),g.prototype.readBigUInt64BE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=O*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+this[++T],te=this[++T]*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+se;return(BigInt(N)<<BigInt(32))+BigInt(te)}),g.prototype.readIntLE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=this[T],te=1,de=0;for(;++de<O&&(te*=256);)N+=this[T+de]*te;return te*=128,N>=te&&(N-=Math.pow(2,8*O)),N},g.prototype.readIntBE=function(T,O,se){T=T>>>0,O=O>>>0,se||Xe(T,O,this.length);let N=O,te=1,de=this[T+--N];for(;N>0&&(te*=256);)de+=this[T+--N]*te;return te*=128,de>=te&&(de-=Math.pow(2,8*O)),de},g.prototype.readInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,O){T=T>>>0,O||Xe(T,2,this.length);const se=this[T]|this[T+1]<<8;return se&32768?se|4294901760:se},g.prototype.readInt16BE=function(T,O){T=T>>>0,O||Xe(T,2,this.length);const se=this[T+1]|this[T]<<8;return se&32768?se|4294901760:se},g.prototype.readInt32LE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},g.prototype.readInt32BE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},g.prototype.readBigInt64LE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=this[T+4]+this[T+5]*mr(2,8)+this[T+6]*mr(2,16)+(se<<24);return(BigInt(N)<<BigInt(32))+BigInt(O+this[++T]*mr(2,8)+this[++T]*mr(2,16)+this[++T]*mr(2,24))}),g.prototype.readBigInt64BE=P(function(T){T=T>>>0,Ht(T,"offset");const O=this[T],se=this[T+7];(O===void 0||se===void 0)&&jt(T,this.length-8);const N=(O<<24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+this[++T];return(BigInt(N)<<BigInt(32))+BigInt(this[++T]*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+se)}),g.prototype.readFloatLE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!1,52,8)};function ft(K,T,O,se,N,te){if(!g.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>N||T<te)throw new RangeError('"value" argument is out of bounds');if(O+se>K.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(T,O,se,N){if(T=+T,O=O>>>0,se=se>>>0,!N){const ae=Math.pow(2,8*se)-1;ft(this,T,O,se,ae,0)}let te=1,de=0;for(this[O]=T&255;++de<se&&(te*=256);)this[O+de]=T/te&255;return O+se},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(T,O,se,N){if(T=+T,O=O>>>0,se=se>>>0,!N){const ae=Math.pow(2,8*se)-1;ft(this,T,O,se,ae,0)}let te=se-1,de=1;for(this[O+te]=T&255;--te>=0&&(de*=256);)this[O+te]=T/de&255;return O+se},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,1,255,0),this[O]=T&255,O+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function ht(K,T,O,se,N){Et(T,se,N,K,O,7);let te=Number(T&BigInt(4294967295));K[O++]=te,te=te>>8,K[O++]=te,te=te>>8,K[O++]=te,te=te>>8,K[O++]=te;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,O}function bt(K,T,O,se,N){Et(T,se,N,K,O,7);let te=Number(T&BigInt(4294967295));K[O+7]=te,te=te>>8,K[O+6]=te,te=te>>8,K[O+5]=te,te=te>>8,K[O+4]=te;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O+3]=de,de=de>>8,K[O+2]=de,de=de>>8,K[O+1]=de,de=de>>8,K[O]=de,O+8}g.prototype.writeBigUInt64LE=P(function(T,O=0){return ht(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=P(function(T,O=0){return bt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(T,O,se,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*se-1);ft(this,T,O,se,pe-1,-pe)}let te=0,de=1,ae=0;for(this[O]=T&255;++te<se&&(de*=256);)T<0&&ae===0&&this[O+te-1]!==0&&(ae=1),this[O+te]=(T/de>>0)-ae&255;return O+se},g.prototype.writeIntBE=function(T,O,se,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*se-1);ft(this,T,O,se,pe-1,-pe)}let te=se-1,de=1,ae=0;for(this[O+te]=T&255;--te>=0&&(de*=256);)T<0&&ae===0&&this[O+te+1]!==0&&(ae=1),this[O+te]=(T/de>>0)-ae&255;return O+se},g.prototype.writeInt8=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},g.prototype.writeInt16LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeInt16BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeInt32LE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},g.prototype.writeInt32BE=function(T,O,se){return T=+T,O=O>>>0,se||ft(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},g.prototype.writeBigInt64LE=P(function(T,O=0){return ht(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=P(function(T,O=0){return bt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(K,T,O,se,N,te){if(O+se>K.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function ut(K,T,O,se,N){return T=+T,O=O>>>0,N||nt(K,T,O,4,34028234663852886e22,-34028234663852886e22),v.write(K,T,O,se,23,4),O+4}g.prototype.writeFloatLE=function(T,O,se){return ut(this,T,O,!0,se)},g.prototype.writeFloatBE=function(T,O,se){return ut(this,T,O,!1,se)};function yt(K,T,O,se,N){return T=+T,O=O>>>0,N||nt(K,T,O,8,17976931348623157e292,-17976931348623157e292),v.write(K,T,O,se,52,8),O+8}g.prototype.writeDoubleLE=function(T,O,se){return yt(this,T,O,!0,se)},g.prototype.writeDoubleBE=function(T,O,se){return yt(this,T,O,!1,se)},g.prototype.copy=function(T,O,se,N){if(!g.isBuffer(T))throw new TypeError("argument should be a Buffer");if(se||(se=0),!N&&N!==0&&(N=this.length),O>=T.length&&(O=T.length),O||(O=0),N>0&&N<se&&(N=se),N===se||T.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(se<0||se>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),T.length-O<N-se&&(N=T.length-O+se);const te=N-se;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,se,N):Uint8Array.prototype.set.call(T,this.subarray(se,N),O),te},g.prototype.fill=function(T,O,se,N){if(typeof T=="string"){if(typeof O=="string"?(N=O,O=0,se=this.length):typeof se=="string"&&(N=se,se=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!g.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(T.length===1){const de=T.charCodeAt(0);(N==="utf8"&&de<128||N==="latin1")&&(T=de)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));if(O<0||this.length<O||this.length<se)throw new RangeError("Out of range index");if(se<=O)return this;O=O>>>0,se=se===void 0?this.length:se>>>0,T||(T=0);let te;if(typeof T=="number")for(te=O;te<se;++te)this[te]=T;else{const de=g.isBuffer(T)?T:g.from(T,N),ae=de.length;if(ae===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(te=0;te<se-O;++te)this[te+O]=de[te%ae]}return this};const mt={};function pt(K,T,O){mt[K]=class extends O{constructor(){super();Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}pt("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),pt("ERR_INVALID_ARG_TYPE",function(K,T){return`The "${K}" argument must be of type number. Received type ${typeof T}`},TypeError),pt("ERR_OUT_OF_RANGE",function(K,T,O){let se=`The value of "${K}" is out of range.`,N=O;return Number.isInteger(O)&&Math.abs(O)>mr(2,32)?N=Mt(String(O)):typeof O=="bigint"&&(N=String(O),(O>mr(BigInt(2),BigInt(32))||O<-mr(BigInt(2),BigInt(32)))&&(N=Mt(N)),N+="n"),se+=` It must be ${T}. Received ${N}`,se},RangeError);function Mt(K){let T="",O=K.length;const se=K[0]==="-"?1:0;for(;O>=se+4;O-=3)T=`_${K.slice(O-3,O)}${T}`;return`${K.slice(0,O)}${T}`}function kt(K,T,O){Ht(T,"offset"),(K[T]===void 0||K[T+O]===void 0)&&jt(T,K.length-(O+1))}function Et(K,T,O,se,N,te){if(K>O||K<T){const de=typeof T=="bigint"?"n":"";let ae;throw te>3?T===0||T===BigInt(0)?ae=`>= 0${de} and < 2${de} ** ${(te+1)*8}${de}`:ae=`>= -(2${de} ** ${(te+1)*8-1}${de}) and < 2 ** ${(te+1)*8-1}${de}`:ae=`>= ${T}${de} and <= ${O}${de}`,new mt.ERR_OUT_OF_RANGE("value",ae,K)}kt(se,N,te)}function Ht(K,T){if(typeof K!="number")throw new mt.ERR_INVALID_ARG_TYPE(T,"number",K)}function jt(K,T,O){throw Math.floor(K)!==K?(Ht(K,O),new mt.ERR_OUT_OF_RANGE(O||"offset","an integer",K)):T<0?new mt.ERR_BUFFER_OUT_OF_BOUNDS:new mt.ERR_OUT_OF_RANGE(O||"offset",`>= ${O?1:0} and <= ${T}`,K)}const Vt=/[^+/0-9A-Za-z-_]/g;function wt(K){if(K=K.split("=")[0],K=K.trim().replace(Vt,""),K.length<2)return"";for(;K.length%4!=0;)K=K+"=";return K}function Dt(K,T){T=T||1/0;let O;const se=K.length;let N=null;const te=[];for(let de=0;de<se;++de){if(O=K.charCodeAt(de),O>55295&&O<57344){if(!N){if(O>56319){(T-=3)>-1&&te.push(239,191,189);continue}else if(de+1===se){(T-=3)>-1&&te.push(239,191,189);continue}N=O;continue}if(O<56320){(T-=3)>-1&&te.push(239,191,189),N=O;continue}O=(N-55296<<10|O-56320)+65536}else N&&(T-=3)>-1&&te.push(239,191,189);if(N=null,O<128){if((T-=1)<0)break;te.push(O)}else if(O<2048){if((T-=2)<0)break;te.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;te.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;te.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return te}function ve(K){const T=[];for(let O=0;O<K.length;++O)T.push(K.charCodeAt(O)&255);return T}function z(K,T){let O,se,N;const te=[];for(let de=0;de<K.length&&!((T-=2)<0);++de)O=K.charCodeAt(de),se=O>>8,N=O%256,te.push(N),te.push(se);return te}function $(K){return c.toByteArray(wt(K))}function Se(K,T,O,se){let N;for(N=0;N<se&&!(N+O>=T.length||N>=K.length);++N)T[N+O]=K[N];return N}function Ie(K,T){return K instanceof T||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===T.name}function Ge(K){return K!==K}const Ke=function(){const K="0123456789abcdef",T=new Array(256);for(let O=0;O<16;++O){const se=O*16;for(let N=0;N<16;++N)T[se+N]=K[O]+K[N]}return T}();function P(K){return typeof BigInt=="undefined"?Re:K}function Re(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,a=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,a,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,a)=>{"use strict";var c=a(57347),v=a(73777),x=a(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,a)=>{"use strict";var c=a(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(W){return W.replace(/&#(\d+);/g,function(M,X){return String.fromCharCode(parseInt(X,10))})},S=function(W,M){return W&&typeof W=="string"&&M.comma&&W.indexOf(",")>-1?W.split(","):W},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",D=function(M,X){var R={},C=X.ignoreQueryPrefix?M.replace(/^\?/,""):M,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),_=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),_=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==_){var fe=J[Q],ee=fe.indexOf("]="),ie=ee===-1?fe.indexOf("="):ee+1,ye,be;ie===-1?(ye=X.decoder(fe,d.decoder,Y,"key"),be=X.strictNullHandling?null:""):(ye=X.decoder(fe.slice(0,ie),d.decoder,Y,"key"),be=c.maybeMap(S(fe.slice(ie+1),X),function(he){return X.decoder(he,d.decoder,Y,"value")})),be&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(be=b(be)),fe.indexOf("[]=")>-1&&(be=x(be)?[be]:be),v.call(R,ye)?R[ye]=c.combine(R[ye],be):R[ye]=be}return R},B=function(W,M,X,R){for(var C=R?M:S(M,X),V=W.length-1;V>=0;--V){var J,_=W[V];if(_==="[]"&&X.parseArrays)J=[].concat(C);else{J=X.plainObjects?Object.create(null):{};var Q=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&_!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(M,X,R,C){if(!!M){var V=R.allowDots?M.replace(/\.([^.[]+)/g,"[$1]"):M,J=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,Q=R.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,fe=[];if(Y){if(!R.plainObjects&&v.call(Object.prototype,Y)&&!R.allowPrototypes)return;fe.push(Y)}for(var ee=0;R.depth>0&&(Q=_.exec(V))!==null&&ee<R.depth;){if(ee+=1,!R.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!R.allowPrototypes)return;fe.push(Q[1])}return Q&&fe.push("["+V.slice(Q.index)+"]"),B(fe,X,R,C)}},q=function(M){if(!M)return d;if(M.decoder!==null&&M.decoder!==void 0&&typeof M.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof M.charset!="undefined"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=typeof M.charset=="undefined"?d.charset:M.charset;return{allowDots:typeof M.allowDots=="undefined"?d.allowDots:!!M.allowDots,allowPrototypes:typeof M.allowPrototypes=="boolean"?M.allowPrototypes:d.allowPrototypes,allowSparse:typeof M.allowSparse=="boolean"?M.allowSparse:d.allowSparse,arrayLimit:typeof M.arrayLimit=="number"?M.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:d.charsetSentinel,comma:typeof M.comma=="boolean"?M.comma:d.comma,decoder:typeof M.decoder=="function"?M.decoder:d.decoder,delimiter:typeof M.delimiter=="string"||c.isRegExp(M.delimiter)?M.delimiter:d.delimiter,depth:typeof M.depth=="number"||M.depth===!1?+M.depth:d.depth,ignoreQueryPrefix:M.ignoreQueryPrefix===!0,interpretNumericEntities:typeof M.interpretNumericEntities=="boolean"?M.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof M.parameterLimit=="number"?M.parameterLimit:d.parameterLimit,parseArrays:M.parseArrays!==!1,plainObjects:typeof M.plainObjects=="boolean"?M.plainObjects:d.plainObjects,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:d.strictNullHandling}};h.exports=function(W,M){var X=q(M);if(W===""||W===null||typeof W=="undefined")return X.plainObjects?Object.create(null):{};for(var R=typeof W=="string"?D(W,X):W,C=X.plainObjects?Object.create(null):{},V=Object.keys(R),J=0;J<V.length;++J){var _=V[J],Q=j(_,R[_],X,typeof W=="string");C=c.merge(C,Q,X)}return X.allowSparse===!0?C:c.compact(C)}},57347:(h,I,a)=>{"use strict";var c=a(37478),v=a(58760),x=a(24269),d=Object.prototype.hasOwnProperty,b={brackets:function(R){return R+"[]"},comma:"comma",indices:function(R,C){return R+"["+C+"]"},repeat:function(R){return R}},S=Array.isArray,g=Array.prototype.push,L=function(X,R){g.apply(X,S(R)?R:[R])},D=Date.prototype.toISOString,B=x.default,j={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:B,formatter:x.formatters[B],indices:!1,serializeDate:function(R){return D.call(R)},skipNulls:!1,strictNullHandling:!1},q=function(R){return typeof R=="string"||typeof R=="number"||typeof R=="boolean"||typeof R=="symbol"||typeof R=="bigint"},W=function X(R,C,V,J,_,Q,Y,fe,ee,ie,ye,be,he,ue,oe){var Fe=R;if(oe.has(R))throw new RangeError("Cyclic object value");if(typeof Y=="function"?Fe=Y(C,Fe):Fe instanceof Date?Fe=ie(Fe):V==="comma"&&S(Fe)&&(Fe=v.maybeMap(Fe,function(nt){return nt instanceof Date?ie(nt):nt})),Fe===null){if(J)return Q&&!he?Q(C,j.encoder,ue,"key",ye):C;Fe=""}if(q(Fe)||v.isBuffer(Fe)){if(Q){var Le=he?C:Q(C,j.encoder,ue,"key",ye);return[be(Le)+"="+be(Q(Fe,j.encoder,ue,"value",ye))]}return[be(C)+"="+be(String(Fe))]}var Me=[];if(typeof Fe=="undefined")return Me;var Pe;if(V==="comma"&&S(Fe))Pe=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(S(Y))Pe=Y;else{var rt=Object.keys(Fe);Pe=fe?rt.sort(fe):rt}for(var Ze=0;Ze<Pe.length;++Ze){var Xe=Pe[Ze],ft=typeof Xe=="object"&&Xe.value!==void 0?Xe.value:Fe[Xe];if(!(_&&ft===null)){var ht=S(Fe)?typeof V=="function"?V(C,Xe):C:C+(ee?"."+Xe:"["+Xe+"]");oe.set(R,!0);var bt=c();L(Me,X(ft,ht,V,J,_,Q,Y,fe,ee,ie,ye,be,he,ue,bt))}}return Me},M=function(R){if(!R)return j;if(R.encoder!==null&&R.encoder!==void 0&&typeof R.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=R.charset||j.charset;if(typeof R.charset!="undefined"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=x.default;if(typeof R.format!="undefined"){if(!d.call(x.formatters,R.format))throw new TypeError("Unknown format option provided.");V=R.format}var J=x.formatters[V],_=j.filter;return(typeof R.filter=="function"||S(R.filter))&&(_=R.filter),{addQueryPrefix:typeof R.addQueryPrefix=="boolean"?R.addQueryPrefix:j.addQueryPrefix,allowDots:typeof R.allowDots=="undefined"?j.allowDots:!!R.allowDots,charset:C,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:j.charsetSentinel,delimiter:typeof R.delimiter=="undefined"?j.delimiter:R.delimiter,encode:typeof R.encode=="boolean"?R.encode:j.encode,encoder:typeof R.encoder=="function"?R.encoder:j.encoder,encodeValuesOnly:typeof R.encodeValuesOnly=="boolean"?R.encodeValuesOnly:j.encodeValuesOnly,filter:_,format:V,formatter:J,serializeDate:typeof R.serializeDate=="function"?R.serializeDate:j.serializeDate,skipNulls:typeof R.skipNulls=="boolean"?R.skipNulls:j.skipNulls,sort:typeof R.sort=="function"?R.sort:null,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:j.strictNullHandling}};h.exports=function(X,R){var C=X,V=M(R),J,_;typeof V.filter=="function"?(_=V.filter,C=_("",C)):S(V.filter)&&(_=V.filter,J=_);var Q=[];if(typeof C!="object"||C===null)return"";var Y;R&&R.arrayFormat in b?Y=R.arrayFormat:R&&"indices"in R?Y=R.indices?"indices":"repeat":Y="indices";var fe=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var ee=c(),ie=0;ie<J.length;++ie){var ye=J[ie];V.skipNulls&&C[ye]===null||L(Q,W(C[ye],ye,fe,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,ee))}var be=Q.join(V.delimiter),he=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?he+="utf8=%26%2310003%3B&":he+="utf8=%E2%9C%93&"),be.length>0?he+be:""}},58760:(h,I,a)=>{"use strict";var c=a(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var R=[],C=0;C<256;++C)R.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return R}(),b=function(C){for(;C.length>1;){var V=C.pop(),J=V.obj[V.prop];if(x(J)){for(var _=[],Q=0;Q<J.length;++Q)typeof J[Q]!="undefined"&&_.push(J[Q]);V.obj[V.prop]=_}}},S=function(C,V){for(var J=V&&V.plainObjects?Object.create(null):{},_=0;_<C.length;++_)typeof C[_]!="undefined"&&(J[_]=C[_]);return J},g=function R(C,V,J){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,V))&&(C[V]=!0);else return[C,V];return C}if(!C||typeof C!="object")return[C].concat(V);var _=C;return x(C)&&!x(V)&&(_=S(C,J)),x(C)&&x(V)?(V.forEach(function(Q,Y){if(v.call(C,Y)){var fe=C[Y];fe&&typeof fe=="object"&&Q&&typeof Q=="object"?C[Y]=R(fe,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var fe=V[Y];return v.call(Q,Y)?Q[Y]=R(Q[Y],fe,J):Q[Y]=fe,Q},_)},L=function(C,V){return Object.keys(V).reduce(function(J,_){return J[_]=V[_],J},C)},D=function(R,C,V){var J=R.replace(/\+/g," ");if(V==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(_){return J}},B=function(C,V,J,_,Q){if(C.length===0)return C;var Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(ye){return"%26%23"+parseInt(ye.slice(2),16)+"%3B"});for(var fe="",ee=0;ee<Y.length;++ee){var ie=Y.charCodeAt(ee);if(ie===45||ie===46||ie===95||ie===126||ie>=48&&ie<=57||ie>=65&&ie<=90||ie>=97&&ie<=122||Q===c.RFC1738&&(ie===40||ie===41)){fe+=Y.charAt(ee);continue}if(ie<128){fe=fe+d[ie];continue}if(ie<2048){fe=fe+(d[192|ie>>6]+d[128|ie&63]);continue}if(ie<55296||ie>=57344){fe=fe+(d[224|ie>>12]+d[128|ie>>6&63]+d[128|ie&63]);continue}ee+=1,ie=65536+((ie&1023)<<10|Y.charCodeAt(ee)&1023),fe+=d[240|ie>>18]+d[128|ie>>12&63]+d[128|ie>>6&63]+d[128|ie&63]}return fe},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],_=0;_<V.length;++_)for(var Q=V[_],Y=Q.obj[Q.prop],fe=Object.keys(Y),ee=0;ee<fe.length;++ee){var ie=fe[ee],ye=Y[ie];typeof ye=="object"&&ye!==null&&J.indexOf(ye)===-1&&(V.push({obj:Y,prop:ie}),J.push(ye))}return b(V),C},q=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},W=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},M=function(C,V){return[].concat(C,V)},X=function(C,V){if(x(C)){for(var J=[],_=0;_<C.length;_+=1)J.push(V(C[_]));return J}return V(C)};h.exports={arrayToObject:S,assign:L,combine:M,compact:j,decode:D,encode:B,isBuffer:W,isRegExp:q,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(M){return new a(M)};function a(M){this.value=M}a.prototype.get=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C)){X=void 0;break}X=X[C]}return X},a.prototype.has=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C))return!1;X=X[C]}return!0},a.prototype.set=function(M,X){for(var R=this.value,C=0;C<M.length-1;C++){var V=M[C];W.call(R,V)||(R[V]={}),R=R[V]}return R[M[C]]=X,X},a.prototype.map=function(M){return c(this.value,M,!0)},a.prototype.forEach=function(M){return this.value=c(this.value,M,!1),this.value},a.prototype.reduce=function(M,X){var R=arguments.length===1,C=R?this.value:X;return this.forEach(function(V){(!this.isRoot||!R)&&(C=M.call(this,C,V))}),C},a.prototype.paths=function(){var M=[];return this.forEach(function(X){M.push(this.path)}),M},a.prototype.nodes=function(){var M=[];return this.forEach(function(X){M.push(this.node)}),M},a.prototype.clone=function(){var M=[],X=[];return function R(C){for(var V=0;V<M.length;V++)if(M[V]===C)return X[V];if(typeof C=="object"&&C!==null){var J=v(C);return M.push(C),X.push(J),q(x(C),function(_){J[_]=R(C[_])}),M.pop(),X.pop(),J}else return C}(this.value)};function c(M,X,R){var C=[],V=[],J=!0;return function _(Q){var Y=R?v(Q):Q,fe={},ee=!0,ie={node:Y,node_:Q,path:[].concat(C),parent:V[V.length-1],parents:V,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(he,ue){ie.isRoot||(ie.parent.node[ie.key]=he),ie.node=he,ue&&(ee=!1)},delete:function(he){delete ie.parent.node[ie.key],he&&(ee=!1)},remove:function(he){j(ie.parent.node)?ie.parent.node.splice(ie.key,1):delete ie.parent.node[ie.key],he&&(ee=!1)},keys:null,before:function(he){fe.before=he},after:function(he){fe.after=he},pre:function(he){fe.pre=he},post:function(he){fe.post=he},stop:function(){J=!1},block:function(){ee=!1}};if(!J)return ie;function ye(){if(typeof ie.node=="object"&&ie.node!==null){(!ie.keys||ie.node_!==ie.node)&&(ie.keys=x(ie.node)),ie.isLeaf=ie.keys.length==0;for(var he=0;he<V.length;he++)if(V[he].node_===Q){ie.circular=V[he];break}}else ie.isLeaf=!0,ie.keys=null;ie.notLeaf=!ie.isLeaf,ie.notRoot=!ie.isRoot}ye();var be=X.call(ie,ie.node);return be!==void 0&&ie.update&&ie.update(be),fe.before&&fe.before.call(ie,ie.node),ee&&(typeof ie.node=="object"&&ie.node!==null&&!ie.circular&&(V.push(ie),ye(),q(ie.keys,function(he,ue){C.push(he),fe.pre&&fe.pre.call(ie,ie.node[he],he);var oe=_(ie.node[he]);R&&W.call(ie.node,he)&&(ie.node[he]=oe.node),oe.isLast=ue==ie.keys.length-1,oe.isFirst=ue==0,fe.post&&fe.post.call(ie,oe),C.pop()}),V.pop()),fe.after&&fe.after.call(ie,ie.node)),ie}(M).node}function v(M){if(typeof M=="object"&&M!==null){var X;if(j(M))X=[];else if(b(M))X=new Date(M.getTime?M.getTime():M);else if(S(M))X=new RegExp(M);else if(g(M))X={message:M.message};else if(L(M))X=new Boolean(M);else if(D(M))X=new Number(M);else if(B(M))X=new String(M);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(M));else if(M.constructor===Object)X={};else{var R=M.constructor&&M.constructor.prototype||M.__proto__||{},C=function(){};C.prototype=R,X=new C}return q(x(M),function(V){X[V]=M[V]}),X}else return M}var x=Object.keys||function(X){var R=[];for(var C in X)R.push(C);return R};function d(M){return Object.prototype.toString.call(M)}function b(M){return d(M)==="[object Date]"}function S(M){return d(M)==="[object RegExp]"}function g(M){return d(M)==="[object Error]"}function L(M){return d(M)==="[object Boolean]"}function D(M){return d(M)==="[object Number]"}function B(M){return d(M)==="[object String]"}var j=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},q=function(M,X){if(M.forEach)return M.forEach(X);for(var R=0;R<M.length;R++)X(M[R],R,M)};q(x(a.prototype),function(M){I[M]=function(X){var R=[].slice.call(arguments,1),C=new a(X);return C[M].apply(C,R)}});var W=Object.hasOwnProperty||function(M,X){return X in M}},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);
|
|
526
|
+
*/const c=a(79742),v=a(80645),x=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;I.Buffer=g,I.SlowBuffer=V,I.INSPECT_MAX_BYTES=50;const d=2147483647;I.kMaxLength=d,g.TYPED_ARRAY_SUPPORT=b(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const K=new Uint8Array(1),T={foo:function(){return 42}};return Object.setPrototypeOf(T,Uint8Array.prototype),Object.setPrototypeOf(K,T),K.foo()===42}catch(K){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(!!g.isBuffer(this))return this.byteOffset}});function S(K){if(K>d)throw new RangeError('The value "'+K+'" is invalid for option "size"');const T=new Uint8Array(K);return Object.setPrototypeOf(T,g.prototype),T}function g(K,T,O){if(typeof K=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return j(K)}return L(K,T,O)}g.poolSize=8192;function L(K,T,O){if(typeof K=="string")return q(K,T);if(ArrayBuffer.isView(K))return M(K);if(K==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K);if(Ie(K,ArrayBuffer)||K&&Ie(K.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ie(K,SharedArrayBuffer)||K&&Ie(K.buffer,SharedArrayBuffer)))return X(K,T,O);if(typeof K=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=K.valueOf&&K.valueOf();if(le!=null&&le!==K)return g.from(le,T,O);const N=R(K);if(N)return N;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof K[Symbol.toPrimitive]=="function")return g.from(K[Symbol.toPrimitive]("string"),T,O);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof K)}g.from=function(K,T,O){return L(K,T,O)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function D(K){if(typeof K!="number")throw new TypeError('"size" argument must be of type number');if(K<0)throw new RangeError('The value "'+K+'" is invalid for option "size"')}function B(K,T,O){return D(K),K<=0?S(K):T!==void 0?typeof O=="string"?S(K).fill(T,O):S(K).fill(T):S(K)}g.alloc=function(K,T,O){return B(K,T,O)};function j(K){return D(K),S(K<0?0:C(K)|0)}g.allocUnsafe=function(K){return j(K)},g.allocUnsafeSlow=function(K){return j(K)};function q(K,T){if((typeof T!="string"||T==="")&&(T="utf8"),!g.isEncoding(T))throw new TypeError("Unknown encoding: "+T);const O=J(K,T)|0;let le=S(O);const N=le.write(K,T);return N!==O&&(le=le.slice(0,N)),le}function W(K){const T=K.length<0?0:C(K.length)|0,O=S(T);for(let le=0;le<T;le+=1)O[le]=K[le]&255;return O}function M(K){if(Ie(K,Uint8Array)){const T=new Uint8Array(K);return X(T.buffer,T.byteOffset,T.byteLength)}return W(K)}function X(K,T,O){if(T<0||K.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(K.byteLength<T+(O||0))throw new RangeError('"length" is outside of buffer bounds');let le;return T===void 0&&O===void 0?le=new Uint8Array(K):O===void 0?le=new Uint8Array(K,T):le=new Uint8Array(K,T,O),Object.setPrototypeOf(le,g.prototype),le}function R(K){if(g.isBuffer(K)){const T=C(K.length)|0,O=S(T);return O.length===0||K.copy(O,0,0,T),O}if(K.length!==void 0)return typeof K.length!="number"||Ge(K.length)?S(0):W(K);if(K.type==="Buffer"&&Array.isArray(K.data))return W(K.data)}function C(K){if(K>=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return K|0}function V(K){return+K!=K&&(K=0),g.alloc(+K)}g.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==g.prototype},g.compare=function(T,O){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),Ie(O,Uint8Array)&&(O=g.from(O,O.offset,O.byteLength)),!g.isBuffer(T)||!g.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;let le=T.length,N=O.length;for(let re=0,de=Math.min(le,N);re<de;++re)if(T[re]!==O[re]){le=T[re],N=O[re];break}return le<N?-1:N<le?1:0},g.isEncoding=function(T){switch(String(T).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(T,O){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return g.alloc(0);let le;if(O===void 0)for(O=0,le=0;le<T.length;++le)O+=T[le].length;const N=g.allocUnsafe(O);let re=0;for(le=0;le<T.length;++le){let de=T[le];if(Ie(de,Uint8Array))re+de.length>N.length?(g.isBuffer(de)||(de=g.from(de)),de.copy(N,re)):Uint8Array.prototype.set.call(N,de,re);else if(g.isBuffer(de))de.copy(N,re);else throw new TypeError('"list" argument must be an Array of Buffers');re+=de.length}return N};function J(K,T){if(g.isBuffer(K))return K.length;if(ArrayBuffer.isView(K)||Ie(K,ArrayBuffer))return K.byteLength;if(typeof K!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof K);const O=K.length,le=arguments.length>2&&arguments[2]===!0;if(!le&&O===0)return 0;let N=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return Dt(K).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return $(K).length;default:if(N)return le?-1:Dt(K).length;T=(""+T).toLowerCase(),N=!0}}g.byteLength=J;function _(K,T,O){let le=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(K||(K="utf8");;)switch(K){case"hex":return rt(this,T,O);case"utf8":case"utf-8":return se(this,T,O);case"ascii":return Me(this,T,O);case"latin1":case"binary":return Pe(this,T,O);case"base64":return fe(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,T,O);default:if(le)throw new TypeError("Unknown encoding: "+K);K=(K+"").toLowerCase(),le=!0}}g.prototype._isBuffer=!0;function Q(K,T,O){const le=K[T];K[T]=K[O],K[O]=le}g.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let O=0;O<T;O+=2)Q(this,O,O+1);return this},g.prototype.swap32=function(){const T=this.length;if(T%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let O=0;O<T;O+=4)Q(this,O,O+3),Q(this,O+1,O+2);return this},g.prototype.swap64=function(){const T=this.length;if(T%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let O=0;O<T;O+=8)Q(this,O,O+7),Q(this,O+1,O+6),Q(this,O+2,O+5),Q(this,O+3,O+4);return this},g.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?se(this,0,T):_.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(T){if(!g.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:g.compare(this,T)===0},g.prototype.inspect=function(){let T="";const O=I.INSPECT_MAX_BYTES;return T=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(T+=" ... "),"<Buffer "+T+">"},x&&(g.prototype[x]=g.prototype.inspect),g.prototype.compare=function(T,O,le,N,re){if(Ie(T,Uint8Array)&&(T=g.from(T,T.offset,T.byteLength)),!g.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),le===void 0&&(le=T?T.length:0),N===void 0&&(N=0),re===void 0&&(re=this.length),O<0||le>T.length||N<0||re>this.length)throw new RangeError("out of range index");if(N>=re&&O>=le)return 0;if(N>=re)return-1;if(O>=le)return 1;if(O>>>=0,le>>>=0,N>>>=0,re>>>=0,this===T)return 0;let de=re-N,ae=le-O;const pe=Math.min(de,ae),Ee=this.slice(N,re),Ue=T.slice(O,le);for(let je=0;je<pe;++je)if(Ee[je]!==Ue[je]){de=Ee[je],ae=Ue[je];break}return de<ae?-1:ae<de?1:0};function Y(K,T,O,le,N){if(K.length===0)return-1;if(typeof O=="string"?(le=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,Ge(O)&&(O=N?0:K.length-1),O<0&&(O=K.length+O),O>=K.length){if(N)return-1;O=K.length-1}else if(O<0)if(N)O=0;else return-1;if(typeof T=="string"&&(T=g.from(T,le)),g.isBuffer(T))return T.length===0?-1:ce(K,T,O,le,N);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(K,T,O):Uint8Array.prototype.lastIndexOf.call(K,T,O):ce(K,[T],O,le,N);throw new TypeError("val must be string, number or Buffer")}function ce(K,T,O,le,N){let re=1,de=K.length,ae=T.length;if(le!==void 0&&(le=String(le).toLowerCase(),le==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(K.length<2||T.length<2)return-1;re=2,de/=2,ae/=2,O/=2}function pe(Ue,je){return re===1?Ue[je]:Ue.readUInt16BE(je*re)}let Ee;if(N){let Ue=-1;for(Ee=O;Ee<de;Ee++)if(pe(K,Ee)===pe(T,Ue===-1?0:Ee-Ue)){if(Ue===-1&&(Ue=Ee),Ee-Ue+1===ae)return Ue*re}else Ue!==-1&&(Ee-=Ee-Ue),Ue=-1}else for(O+ae>de&&(O=de-ae),Ee=O;Ee>=0;Ee--){let Ue=!0;for(let je=0;je<ae;je++)if(pe(K,Ee+je)!==pe(T,je)){Ue=!1;break}if(Ue)return Ee}return-1}g.prototype.includes=function(T,O,le){return this.indexOf(T,O,le)!==-1},g.prototype.indexOf=function(T,O,le){return Y(this,T,O,le,!0)},g.prototype.lastIndexOf=function(T,O,le){return Y(this,T,O,le,!1)};function ee(K,T,O,le){O=Number(O)||0;const N=K.length-O;le?(le=Number(le),le>N&&(le=N)):le=N;const re=T.length;le>re/2&&(le=re/2);let de;for(de=0;de<le;++de){const ae=parseInt(T.substr(de*2,2),16);if(Ge(ae))return de;K[O+de]=ae}return de}function ie(K,T,O,le){return Se(Dt(T,K.length-O),K,O,le)}function xe(K,T,O,le){return Se(ve(T),K,O,le)}function we(K,T,O,le){return Se($(T),K,O,le)}function he(K,T,O,le){return Se(z(T,K.length-O),K,O,le)}g.prototype.write=function(T,O,le,N){if(O===void 0)N="utf8",le=this.length,O=0;else if(le===void 0&&typeof O=="string")N=O,le=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(le)?(le=le>>>0,N===void 0&&(N="utf8")):(N=le,le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const re=this.length-O;if((le===void 0||le>re)&&(le=re),T.length>0&&(le<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let de=!1;for(;;)switch(N){case"hex":return ee(this,T,O,le);case"utf8":case"utf-8":return ie(this,T,O,le);case"ascii":case"latin1":case"binary":return xe(this,T,O,le);case"base64":return we(this,T,O,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,T,O,le);default:if(de)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),de=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(K,T,O){return T===0&&O===K.length?c.fromByteArray(K):c.fromByteArray(K.slice(T,O))}function se(K,T,O){O=Math.min(K.length,O);const le=[];let N=T;for(;N<O;){const re=K[N];let de=null,ae=re>239?4:re>223?3:re>191?2:1;if(N+ae<=O){let pe,Ee,Ue,je;switch(ae){case 1:re<128&&(de=re);break;case 2:pe=K[N+1],(pe&192)==128&&(je=(re&31)<<6|pe&63,je>127&&(de=je));break;case 3:pe=K[N+1],Ee=K[N+2],(pe&192)==128&&(Ee&192)==128&&(je=(re&15)<<12|(pe&63)<<6|Ee&63,je>2047&&(je<55296||je>57343)&&(de=je));break;case 4:pe=K[N+1],Ee=K[N+2],Ue=K[N+3],(pe&192)==128&&(Ee&192)==128&&(Ue&192)==128&&(je=(re&15)<<18|(pe&63)<<12|(Ee&63)<<6|Ue&63,je>65535&&je<1114112&&(de=je))}}de===null?(de=65533,ae=1):de>65535&&(de-=65536,le.push(de>>>10&1023|55296),de=56320|de&1023),le.push(de),N+=ae}return Le(le)}const Fe=4096;function Le(K){const T=K.length;if(T<=Fe)return String.fromCharCode.apply(String,K);let O="",le=0;for(;le<T;)O+=String.fromCharCode.apply(String,K.slice(le,le+=Fe));return O}function Me(K,T,O){let le="";O=Math.min(K.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(K[N]&127);return le}function Pe(K,T,O){let le="";O=Math.min(K.length,O);for(let N=T;N<O;++N)le+=String.fromCharCode(K[N]);return le}function rt(K,T,O){const le=K.length;(!T||T<0)&&(T=0),(!O||O<0||O>le)&&(O=le);let N="";for(let re=T;re<O;++re)N+=Ke[K[re]];return N}function Ze(K,T,O){const le=K.slice(T,O);let N="";for(let re=0;re<le.length-1;re+=2)N+=String.fromCharCode(le[re]+le[re+1]*256);return N}g.prototype.slice=function(T,O){const le=this.length;T=~~T,O=O===void 0?le:~~O,T<0?(T+=le,T<0&&(T=0)):T>le&&(T=le),O<0?(O+=le,O<0&&(O=0)):O>le&&(O=le),O<T&&(O=T);const N=this.subarray(T,O);return Object.setPrototypeOf(N,g.prototype),N};function Xe(K,T,O){if(K%1!=0||K<0)throw new RangeError("offset is not uint");if(K+T>O)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(T,O,le){T=T>>>0,O=O>>>0,le||Xe(T,O,this.length);let N=this[T],re=1,de=0;for(;++de<O&&(re*=256);)N+=this[T+de]*re;return N},g.prototype.readUintBE=g.prototype.readUIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Xe(T,O,this.length);let N=this[T+--O],re=1;for(;O>0&&(re*=256);)N+=this[T+--O]*re;return N},g.prototype.readUint8=g.prototype.readUInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]|this[T+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Xe(T,2,this.length),this[T]<<8|this[T+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},g.prototype.readBigUInt64LE=P(function(T){T=T>>>0,zt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&jt(T,this.length-8);const N=O+this[++T]*mr(2,8)+this[++T]*mr(2,16)+this[++T]*mr(2,24),re=this[++T]+this[++T]*mr(2,8)+this[++T]*mr(2,16)+le*mr(2,24);return BigInt(N)+(BigInt(re)<<BigInt(32))}),g.prototype.readBigUInt64BE=P(function(T){T=T>>>0,zt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&jt(T,this.length-8);const N=O*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+this[++T],re=this[++T]*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+le;return(BigInt(N)<<BigInt(32))+BigInt(re)}),g.prototype.readIntLE=function(T,O,le){T=T>>>0,O=O>>>0,le||Xe(T,O,this.length);let N=this[T],re=1,de=0;for(;++de<O&&(re*=256);)N+=this[T+de]*re;return re*=128,N>=re&&(N-=Math.pow(2,8*O)),N},g.prototype.readIntBE=function(T,O,le){T=T>>>0,O=O>>>0,le||Xe(T,O,this.length);let N=O,re=1,de=this[T+--N];for(;N>0&&(re*=256);)de+=this[T+--N]*re;return re*=128,de>=re&&(de-=Math.pow(2,8*O)),de},g.prototype.readInt8=function(T,O){return T=T>>>0,O||Xe(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},g.prototype.readInt16LE=function(T,O){T=T>>>0,O||Xe(T,2,this.length);const le=this[T]|this[T+1]<<8;return le&32768?le|4294901760:le},g.prototype.readInt16BE=function(T,O){T=T>>>0,O||Xe(T,2,this.length);const le=this[T+1]|this[T]<<8;return le&32768?le|4294901760:le},g.prototype.readInt32LE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},g.prototype.readInt32BE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},g.prototype.readBigInt64LE=P(function(T){T=T>>>0,zt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&jt(T,this.length-8);const N=this[T+4]+this[T+5]*mr(2,8)+this[T+6]*mr(2,16)+(le<<24);return(BigInt(N)<<BigInt(32))+BigInt(O+this[++T]*mr(2,8)+this[++T]*mr(2,16)+this[++T]*mr(2,24))}),g.prototype.readBigInt64BE=P(function(T){T=T>>>0,zt(T,"offset");const O=this[T],le=this[T+7];(O===void 0||le===void 0)&&jt(T,this.length-8);const N=(O<<24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+this[++T];return(BigInt(N)<<BigInt(32))+BigInt(this[++T]*mr(2,24)+this[++T]*mr(2,16)+this[++T]*mr(2,8)+le)}),g.prototype.readFloatLE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!0,23,4)},g.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Xe(T,4,this.length),v.read(this,T,!1,23,4)},g.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!0,52,8)},g.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Xe(T,8,this.length),v.read(this,T,!1,52,8)};function ft(K,T,O,le,N,re){if(!g.isBuffer(K))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>N||T<re)throw new RangeError('"value" argument is out of bounds');if(O+le>K.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(T,O,le,N){if(T=+T,O=O>>>0,le=le>>>0,!N){const ae=Math.pow(2,8*le)-1;ft(this,T,O,le,ae,0)}let re=1,de=0;for(this[O]=T&255;++de<le&&(re*=256);)this[O+de]=T/re&255;return O+le},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,le=le>>>0,!N){const ae=Math.pow(2,8*le)-1;ft(this,T,O,le,ae,0)}let re=le-1,de=1;for(this[O+re]=T&255;--re>=0&&(de*=256);)this[O+re]=T/de&255;return O+le},g.prototype.writeUint8=g.prototype.writeUInt8=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,1,255,0),this[O]=T&255,O+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function ht(K,T,O,le,N){Et(T,le,N,K,O,7);let re=Number(T&BigInt(4294967295));K[O++]=re,re=re>>8,K[O++]=re,re=re>>8,K[O++]=re,re=re>>8,K[O++]=re;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,de=de>>8,K[O++]=de,O}function wt(K,T,O,le,N){Et(T,le,N,K,O,7);let re=Number(T&BigInt(4294967295));K[O+7]=re,re=re>>8,K[O+6]=re,re=re>>8,K[O+5]=re,re=re>>8,K[O+4]=re;let de=Number(T>>BigInt(32)&BigInt(4294967295));return K[O+3]=de,de=de>>8,K[O+2]=de,de=de>>8,K[O+1]=de,de=de>>8,K[O]=de,O+8}g.prototype.writeBigUInt64LE=P(function(T,O=0){return ht(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeBigUInt64BE=P(function(T,O=0){return wt(this,T,O,BigInt(0),BigInt("0xffffffffffffffff"))}),g.prototype.writeIntLE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*le-1);ft(this,T,O,le,pe-1,-pe)}let re=0,de=1,ae=0;for(this[O]=T&255;++re<le&&(de*=256);)T<0&&ae===0&&this[O+re-1]!==0&&(ae=1),this[O+re]=(T/de>>0)-ae&255;return O+le},g.prototype.writeIntBE=function(T,O,le,N){if(T=+T,O=O>>>0,!N){const pe=Math.pow(2,8*le-1);ft(this,T,O,le,pe-1,-pe)}let re=le-1,de=1,ae=0;for(this[O+re]=T&255;--re>=0&&(de*=256);)T<0&&ae===0&&this[O+re+1]!==0&&(ae=1),this[O+re]=(T/de>>0)-ae&255;return O+le},g.prototype.writeInt8=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},g.prototype.writeInt16LE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},g.prototype.writeInt16BE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},g.prototype.writeInt32LE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},g.prototype.writeInt32BE=function(T,O,le){return T=+T,O=O>>>0,le||ft(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},g.prototype.writeBigInt64LE=P(function(T,O=0){return ht(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),g.prototype.writeBigInt64BE=P(function(T,O=0){return wt(this,T,O,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function nt(K,T,O,le,N,re){if(O+le>K.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function ut(K,T,O,le,N){return T=+T,O=O>>>0,N||nt(K,T,O,4,34028234663852886e22,-34028234663852886e22),v.write(K,T,O,le,23,4),O+4}g.prototype.writeFloatLE=function(T,O,le){return ut(this,T,O,!0,le)},g.prototype.writeFloatBE=function(T,O,le){return ut(this,T,O,!1,le)};function mt(K,T,O,le,N){return T=+T,O=O>>>0,N||nt(K,T,O,8,17976931348623157e292,-17976931348623157e292),v.write(K,T,O,le,52,8),O+8}g.prototype.writeDoubleLE=function(T,O,le){return mt(this,T,O,!0,le)},g.prototype.writeDoubleBE=function(T,O,le){return mt(this,T,O,!1,le)},g.prototype.copy=function(T,O,le,N){if(!g.isBuffer(T))throw new TypeError("argument should be a Buffer");if(le||(le=0),!N&&N!==0&&(N=this.length),O>=T.length&&(O=T.length),O||(O=0),N>0&&N<le&&(N=le),N===le||T.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(le<0||le>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),T.length-O<N-le&&(N=T.length-O+le);const re=N-le;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(O,le,N):Uint8Array.prototype.set.call(T,this.subarray(le,N),O),re},g.prototype.fill=function(T,O,le,N){if(typeof T=="string"){if(typeof O=="string"?(N=O,O=0,le=this.length):typeof le=="string"&&(N=le,le=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!g.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(T.length===1){const de=T.charCodeAt(0);(N==="utf8"&&de<128||N==="latin1")&&(T=de)}}else typeof T=="number"?T=T&255:typeof T=="boolean"&&(T=Number(T));if(O<0||this.length<O||this.length<le)throw new RangeError("Out of range index");if(le<=O)return this;O=O>>>0,le=le===void 0?this.length:le>>>0,T||(T=0);let re;if(typeof T=="number")for(re=O;re<le;++re)this[re]=T;else{const de=g.isBuffer(T)?T:g.from(T,N),ae=de.length;if(ae===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(re=0;re<le-O;++re)this[re+O]=de[re%ae]}return this};const xt={};function pt(K,T,O){xt[K]=class extends O{constructor(){super();Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${K}]`,this.stack,delete this.name}get code(){return K}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${K}]: ${this.message}`}}}pt("ERR_BUFFER_OUT_OF_BOUNDS",function(K){return K?`${K} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),pt("ERR_INVALID_ARG_TYPE",function(K,T){return`The "${K}" argument must be of type number. Received type ${typeof T}`},TypeError),pt("ERR_OUT_OF_RANGE",function(K,T,O){let le=`The value of "${K}" is out of range.`,N=O;return Number.isInteger(O)&&Math.abs(O)>mr(2,32)?N=Mt(String(O)):typeof O=="bigint"&&(N=String(O),(O>mr(BigInt(2),BigInt(32))||O<-mr(BigInt(2),BigInt(32)))&&(N=Mt(N)),N+="n"),le+=` It must be ${T}. Received ${N}`,le},RangeError);function Mt(K){let T="",O=K.length;const le=K[0]==="-"?1:0;for(;O>=le+4;O-=3)T=`_${K.slice(O-3,O)}${T}`;return`${K.slice(0,O)}${T}`}function kt(K,T,O){zt(T,"offset"),(K[T]===void 0||K[T+O]===void 0)&&jt(T,K.length-(O+1))}function Et(K,T,O,le,N,re){if(K>O||K<T){const de=typeof T=="bigint"?"n":"";let ae;throw re>3?T===0||T===BigInt(0)?ae=`>= 0${de} and < 2${de} ** ${(re+1)*8}${de}`:ae=`>= -(2${de} ** ${(re+1)*8-1}${de}) and < 2 ** ${(re+1)*8-1}${de}`:ae=`>= ${T}${de} and <= ${O}${de}`,new xt.ERR_OUT_OF_RANGE("value",ae,K)}kt(le,N,re)}function zt(K,T){if(typeof K!="number")throw new xt.ERR_INVALID_ARG_TYPE(T,"number",K)}function jt(K,T,O){throw Math.floor(K)!==K?(zt(K,O),new xt.ERR_OUT_OF_RANGE(O||"offset","an integer",K)):T<0?new xt.ERR_BUFFER_OUT_OF_BOUNDS:new xt.ERR_OUT_OF_RANGE(O||"offset",`>= ${O?1:0} and <= ${T}`,K)}const Vt=/[^+/0-9A-Za-z-_]/g;function St(K){if(K=K.split("=")[0],K=K.trim().replace(Vt,""),K.length<2)return"";for(;K.length%4!=0;)K=K+"=";return K}function Dt(K,T){T=T||1/0;let O;const le=K.length;let N=null;const re=[];for(let de=0;de<le;++de){if(O=K.charCodeAt(de),O>55295&&O<57344){if(!N){if(O>56319){(T-=3)>-1&&re.push(239,191,189);continue}else if(de+1===le){(T-=3)>-1&&re.push(239,191,189);continue}N=O;continue}if(O<56320){(T-=3)>-1&&re.push(239,191,189),N=O;continue}O=(N-55296<<10|O-56320)+65536}else N&&(T-=3)>-1&&re.push(239,191,189);if(N=null,O<128){if((T-=1)<0)break;re.push(O)}else if(O<2048){if((T-=2)<0)break;re.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;re.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;re.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return re}function ve(K){const T=[];for(let O=0;O<K.length;++O)T.push(K.charCodeAt(O)&255);return T}function z(K,T){let O,le,N;const re=[];for(let de=0;de<K.length&&!((T-=2)<0);++de)O=K.charCodeAt(de),le=O>>8,N=O%256,re.push(N),re.push(le);return re}function $(K){return c.toByteArray(St(K))}function Se(K,T,O,le){let N;for(N=0;N<le&&!(N+O>=T.length||N>=K.length);++N)T[N+O]=K[N];return N}function Ie(K,T){return K instanceof T||K!=null&&K.constructor!=null&&K.constructor.name!=null&&K.constructor.name===T.name}function Ge(K){return K!==K}const Ke=function(){const K="0123456789abcdef",T=new Array(256);for(let O=0;O<16;++O){const le=O*16;for(let N=0;N<16;++N)T[le+N]=K[O]+K[N]}return T}();function P(K){return typeof BigInt=="undefined"?Re:K}function Re(){throw new Error("BigInt not supported")}},24269:h=>{"use strict";var I=String.prototype.replace,a=/%20/g,c={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:c.RFC3986,formatters:{RFC1738:function(v){return I.call(v,a,"+")},RFC3986:function(v){return String(v)}},RFC1738:c.RFC1738,RFC3986:c.RFC3986}},92495:(h,I,a)=>{"use strict";var c=a(57347),v=a(73777),x=a(24269);h.exports={formats:x,parse:v,stringify:c}},73777:(h,I,a)=>{"use strict";var c=a(58760),v=Object.prototype.hasOwnProperty,x=Array.isArray,d={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:c.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},b=function(W){return W.replace(/&#(\d+);/g,function(M,X){return String.fromCharCode(parseInt(X,10))})},S=function(W,M){return W&&typeof W=="string"&&M.comma&&W.indexOf(",")>-1?W.split(","):W},g="utf8=%26%2310003%3B",L="utf8=%E2%9C%93",D=function(M,X){var R={},C=X.ignoreQueryPrefix?M.replace(/^\?/,""):M,V=X.parameterLimit===1/0?void 0:X.parameterLimit,J=C.split(X.delimiter,V),_=-1,Q,Y=X.charset;if(X.charsetSentinel)for(Q=0;Q<J.length;++Q)J[Q].indexOf("utf8=")===0&&(J[Q]===L?Y="utf-8":J[Q]===g&&(Y="iso-8859-1"),_=Q,Q=J.length);for(Q=0;Q<J.length;++Q)if(Q!==_){var ce=J[Q],ee=ce.indexOf("]="),ie=ee===-1?ce.indexOf("="):ee+1,xe,we;ie===-1?(xe=X.decoder(ce,d.decoder,Y,"key"),we=X.strictNullHandling?null:""):(xe=X.decoder(ce.slice(0,ie),d.decoder,Y,"key"),we=c.maybeMap(S(ce.slice(ie+1),X),function(he){return X.decoder(he,d.decoder,Y,"value")})),we&&X.interpretNumericEntities&&Y==="iso-8859-1"&&(we=b(we)),ce.indexOf("[]=")>-1&&(we=x(we)?[we]:we),v.call(R,xe)?R[xe]=c.combine(R[xe],we):R[xe]=we}return R},B=function(W,M,X,R){for(var C=R?M:S(M,X),V=W.length-1;V>=0;--V){var J,_=W[V];if(_==="[]"&&X.parseArrays)J=[].concat(C);else{J=X.plainObjects?Object.create(null):{};var Q=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,Y=parseInt(Q,10);!X.parseArrays&&Q===""?J={0:C}:!isNaN(Y)&&_!==Q&&String(Y)===Q&&Y>=0&&X.parseArrays&&Y<=X.arrayLimit?(J=[],J[Y]=C):J[Q]=C}C=J}return C},j=function(M,X,R,C){if(!!M){var V=R.allowDots?M.replace(/\.([^.[]+)/g,"[$1]"):M,J=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,Q=R.depth>0&&J.exec(V),Y=Q?V.slice(0,Q.index):V,ce=[];if(Y){if(!R.plainObjects&&v.call(Object.prototype,Y)&&!R.allowPrototypes)return;ce.push(Y)}for(var ee=0;R.depth>0&&(Q=_.exec(V))!==null&&ee<R.depth;){if(ee+=1,!R.plainObjects&&v.call(Object.prototype,Q[1].slice(1,-1))&&!R.allowPrototypes)return;ce.push(Q[1])}return Q&&ce.push("["+V.slice(Q.index)+"]"),B(ce,X,R,C)}},q=function(M){if(!M)return d;if(M.decoder!==null&&M.decoder!==void 0&&typeof M.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof M.charset!="undefined"&&M.charset!=="utf-8"&&M.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var X=typeof M.charset=="undefined"?d.charset:M.charset;return{allowDots:typeof M.allowDots=="undefined"?d.allowDots:!!M.allowDots,allowPrototypes:typeof M.allowPrototypes=="boolean"?M.allowPrototypes:d.allowPrototypes,allowSparse:typeof M.allowSparse=="boolean"?M.allowSparse:d.allowSparse,arrayLimit:typeof M.arrayLimit=="number"?M.arrayLimit:d.arrayLimit,charset:X,charsetSentinel:typeof M.charsetSentinel=="boolean"?M.charsetSentinel:d.charsetSentinel,comma:typeof M.comma=="boolean"?M.comma:d.comma,decoder:typeof M.decoder=="function"?M.decoder:d.decoder,delimiter:typeof M.delimiter=="string"||c.isRegExp(M.delimiter)?M.delimiter:d.delimiter,depth:typeof M.depth=="number"||M.depth===!1?+M.depth:d.depth,ignoreQueryPrefix:M.ignoreQueryPrefix===!0,interpretNumericEntities:typeof M.interpretNumericEntities=="boolean"?M.interpretNumericEntities:d.interpretNumericEntities,parameterLimit:typeof M.parameterLimit=="number"?M.parameterLimit:d.parameterLimit,parseArrays:M.parseArrays!==!1,plainObjects:typeof M.plainObjects=="boolean"?M.plainObjects:d.plainObjects,strictNullHandling:typeof M.strictNullHandling=="boolean"?M.strictNullHandling:d.strictNullHandling}};h.exports=function(W,M){var X=q(M);if(W===""||W===null||typeof W=="undefined")return X.plainObjects?Object.create(null):{};for(var R=typeof W=="string"?D(W,X):W,C=X.plainObjects?Object.create(null):{},V=Object.keys(R),J=0;J<V.length;++J){var _=V[J],Q=j(_,R[_],X,typeof W=="string");C=c.merge(C,Q,X)}return X.allowSparse===!0?C:c.compact(C)}},57347:(h,I,a)=>{"use strict";var c=a(37478),v=a(58760),x=a(24269),d=Object.prototype.hasOwnProperty,b={brackets:function(R){return R+"[]"},comma:"comma",indices:function(R,C){return R+"["+C+"]"},repeat:function(R){return R}},S=Array.isArray,g=Array.prototype.push,L=function(X,R){g.apply(X,S(R)?R:[R])},D=Date.prototype.toISOString,B=x.default,j={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:v.encode,encodeValuesOnly:!1,format:B,formatter:x.formatters[B],indices:!1,serializeDate:function(R){return D.call(R)},skipNulls:!1,strictNullHandling:!1},q=function(R){return typeof R=="string"||typeof R=="number"||typeof R=="boolean"||typeof R=="symbol"||typeof R=="bigint"},W=function X(R,C,V,J,_,Q,Y,ce,ee,ie,xe,we,he,fe,se){var Fe=R;if(se.has(R))throw new RangeError("Cyclic object value");if(typeof Y=="function"?Fe=Y(C,Fe):Fe instanceof Date?Fe=ie(Fe):V==="comma"&&S(Fe)&&(Fe=v.maybeMap(Fe,function(nt){return nt instanceof Date?ie(nt):nt})),Fe===null){if(J)return Q&&!he?Q(C,j.encoder,fe,"key",xe):C;Fe=""}if(q(Fe)||v.isBuffer(Fe)){if(Q){var Le=he?C:Q(C,j.encoder,fe,"key",xe);return[we(Le)+"="+we(Q(Fe,j.encoder,fe,"value",xe))]}return[we(C)+"="+we(String(Fe))]}var Me=[];if(typeof Fe=="undefined")return Me;var Pe;if(V==="comma"&&S(Fe))Pe=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(S(Y))Pe=Y;else{var rt=Object.keys(Fe);Pe=ce?rt.sort(ce):rt}for(var Ze=0;Ze<Pe.length;++Ze){var Xe=Pe[Ze],ft=typeof Xe=="object"&&Xe.value!==void 0?Xe.value:Fe[Xe];if(!(_&&ft===null)){var ht=S(Fe)?typeof V=="function"?V(C,Xe):C:C+(ee?"."+Xe:"["+Xe+"]");se.set(R,!0);var wt=c();L(Me,X(ft,ht,V,J,_,Q,Y,ce,ee,ie,xe,we,he,fe,wt))}}return Me},M=function(R){if(!R)return j;if(R.encoder!==null&&R.encoder!==void 0&&typeof R.encoder!="function")throw new TypeError("Encoder has to be a function.");var C=R.charset||j.charset;if(typeof R.charset!="undefined"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var V=x.default;if(typeof R.format!="undefined"){if(!d.call(x.formatters,R.format))throw new TypeError("Unknown format option provided.");V=R.format}var J=x.formatters[V],_=j.filter;return(typeof R.filter=="function"||S(R.filter))&&(_=R.filter),{addQueryPrefix:typeof R.addQueryPrefix=="boolean"?R.addQueryPrefix:j.addQueryPrefix,allowDots:typeof R.allowDots=="undefined"?j.allowDots:!!R.allowDots,charset:C,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:j.charsetSentinel,delimiter:typeof R.delimiter=="undefined"?j.delimiter:R.delimiter,encode:typeof R.encode=="boolean"?R.encode:j.encode,encoder:typeof R.encoder=="function"?R.encoder:j.encoder,encodeValuesOnly:typeof R.encodeValuesOnly=="boolean"?R.encodeValuesOnly:j.encodeValuesOnly,filter:_,format:V,formatter:J,serializeDate:typeof R.serializeDate=="function"?R.serializeDate:j.serializeDate,skipNulls:typeof R.skipNulls=="boolean"?R.skipNulls:j.skipNulls,sort:typeof R.sort=="function"?R.sort:null,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:j.strictNullHandling}};h.exports=function(X,R){var C=X,V=M(R),J,_;typeof V.filter=="function"?(_=V.filter,C=_("",C)):S(V.filter)&&(_=V.filter,J=_);var Q=[];if(typeof C!="object"||C===null)return"";var Y;R&&R.arrayFormat in b?Y=R.arrayFormat:R&&"indices"in R?Y=R.indices?"indices":"repeat":Y="indices";var ce=b[Y];J||(J=Object.keys(C)),V.sort&&J.sort(V.sort);for(var ee=c(),ie=0;ie<J.length;++ie){var xe=J[ie];V.skipNulls&&C[xe]===null||L(Q,W(C[xe],xe,ce,V.strictNullHandling,V.skipNulls,V.encode?V.encoder:null,V.filter,V.sort,V.allowDots,V.serializeDate,V.format,V.formatter,V.encodeValuesOnly,V.charset,ee))}var we=Q.join(V.delimiter),he=V.addQueryPrefix===!0?"?":"";return V.charsetSentinel&&(V.charset==="iso-8859-1"?he+="utf8=%26%2310003%3B&":he+="utf8=%E2%9C%93&"),we.length>0?he+we:""}},58760:(h,I,a)=>{"use strict";var c=a(24269),v=Object.prototype.hasOwnProperty,x=Array.isArray,d=function(){for(var R=[],C=0;C<256;++C)R.push("%"+((C<16?"0":"")+C.toString(16)).toUpperCase());return R}(),b=function(C){for(;C.length>1;){var V=C.pop(),J=V.obj[V.prop];if(x(J)){for(var _=[],Q=0;Q<J.length;++Q)typeof J[Q]!="undefined"&&_.push(J[Q]);V.obj[V.prop]=_}}},S=function(C,V){for(var J=V&&V.plainObjects?Object.create(null):{},_=0;_<C.length;++_)typeof C[_]!="undefined"&&(J[_]=C[_]);return J},g=function R(C,V,J){if(!V)return C;if(typeof V!="object"){if(x(C))C.push(V);else if(C&&typeof C=="object")(J&&(J.plainObjects||J.allowPrototypes)||!v.call(Object.prototype,V))&&(C[V]=!0);else return[C,V];return C}if(!C||typeof C!="object")return[C].concat(V);var _=C;return x(C)&&!x(V)&&(_=S(C,J)),x(C)&&x(V)?(V.forEach(function(Q,Y){if(v.call(C,Y)){var ce=C[Y];ce&&typeof ce=="object"&&Q&&typeof Q=="object"?C[Y]=R(ce,Q,J):C.push(Q)}else C[Y]=Q}),C):Object.keys(V).reduce(function(Q,Y){var ce=V[Y];return v.call(Q,Y)?Q[Y]=R(Q[Y],ce,J):Q[Y]=ce,Q},_)},L=function(C,V){return Object.keys(V).reduce(function(J,_){return J[_]=V[_],J},C)},D=function(R,C,V){var J=R.replace(/\+/g," ");if(V==="iso-8859-1")return J.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(J)}catch(_){return J}},B=function(C,V,J,_,Q){if(C.length===0)return C;var Y=C;if(typeof C=="symbol"?Y=Symbol.prototype.toString.call(C):typeof C!="string"&&(Y=String(C)),J==="iso-8859-1")return escape(Y).replace(/%u[0-9a-f]{4}/gi,function(xe){return"%26%23"+parseInt(xe.slice(2),16)+"%3B"});for(var ce="",ee=0;ee<Y.length;++ee){var ie=Y.charCodeAt(ee);if(ie===45||ie===46||ie===95||ie===126||ie>=48&&ie<=57||ie>=65&&ie<=90||ie>=97&&ie<=122||Q===c.RFC1738&&(ie===40||ie===41)){ce+=Y.charAt(ee);continue}if(ie<128){ce=ce+d[ie];continue}if(ie<2048){ce=ce+(d[192|ie>>6]+d[128|ie&63]);continue}if(ie<55296||ie>=57344){ce=ce+(d[224|ie>>12]+d[128|ie>>6&63]+d[128|ie&63]);continue}ee+=1,ie=65536+((ie&1023)<<10|Y.charCodeAt(ee)&1023),ce+=d[240|ie>>18]+d[128|ie>>12&63]+d[128|ie>>6&63]+d[128|ie&63]}return ce},j=function(C){for(var V=[{obj:{o:C},prop:"o"}],J=[],_=0;_<V.length;++_)for(var Q=V[_],Y=Q.obj[Q.prop],ce=Object.keys(Y),ee=0;ee<ce.length;++ee){var ie=ce[ee],xe=Y[ie];typeof xe=="object"&&xe!==null&&J.indexOf(xe)===-1&&(V.push({obj:Y,prop:ie}),J.push(xe))}return b(V),C},q=function(C){return Object.prototype.toString.call(C)==="[object RegExp]"},W=function(C){return!C||typeof C!="object"?!1:!!(C.constructor&&C.constructor.isBuffer&&C.constructor.isBuffer(C))},M=function(C,V){return[].concat(C,V)},X=function(C,V){if(x(C)){for(var J=[],_=0;_<C.length;_+=1)J.push(V(C[_]));return J}return V(C)};h.exports={arrayToObject:S,assign:L,combine:M,compact:j,decode:D,encode:B,isBuffer:W,isRegExp:q,maybeMap:X,merge:g}},13692:h=>{var I=h.exports=function(M){return new a(M)};function a(M){this.value=M}a.prototype.get=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C)){X=void 0;break}X=X[C]}return X},a.prototype.has=function(M){for(var X=this.value,R=0;R<M.length;R++){var C=M[R];if(!X||!W.call(X,C))return!1;X=X[C]}return!0},a.prototype.set=function(M,X){for(var R=this.value,C=0;C<M.length-1;C++){var V=M[C];W.call(R,V)||(R[V]={}),R=R[V]}return R[M[C]]=X,X},a.prototype.map=function(M){return c(this.value,M,!0)},a.prototype.forEach=function(M){return this.value=c(this.value,M,!1),this.value},a.prototype.reduce=function(M,X){var R=arguments.length===1,C=R?this.value:X;return this.forEach(function(V){(!this.isRoot||!R)&&(C=M.call(this,C,V))}),C},a.prototype.paths=function(){var M=[];return this.forEach(function(X){M.push(this.path)}),M},a.prototype.nodes=function(){var M=[];return this.forEach(function(X){M.push(this.node)}),M},a.prototype.clone=function(){var M=[],X=[];return function R(C){for(var V=0;V<M.length;V++)if(M[V]===C)return X[V];if(typeof C=="object"&&C!==null){var J=v(C);return M.push(C),X.push(J),q(x(C),function(_){J[_]=R(C[_])}),M.pop(),X.pop(),J}else return C}(this.value)};function c(M,X,R){var C=[],V=[],J=!0;return function _(Q){var Y=R?v(Q):Q,ce={},ee=!0,ie={node:Y,node_:Q,path:[].concat(C),parent:V[V.length-1],parents:V,key:C.slice(-1)[0],isRoot:C.length===0,level:C.length,circular:null,update:function(he,fe){ie.isRoot||(ie.parent.node[ie.key]=he),ie.node=he,fe&&(ee=!1)},delete:function(he){delete ie.parent.node[ie.key],he&&(ee=!1)},remove:function(he){j(ie.parent.node)?ie.parent.node.splice(ie.key,1):delete ie.parent.node[ie.key],he&&(ee=!1)},keys:null,before:function(he){ce.before=he},after:function(he){ce.after=he},pre:function(he){ce.pre=he},post:function(he){ce.post=he},stop:function(){J=!1},block:function(){ee=!1}};if(!J)return ie;function xe(){if(typeof ie.node=="object"&&ie.node!==null){(!ie.keys||ie.node_!==ie.node)&&(ie.keys=x(ie.node)),ie.isLeaf=ie.keys.length==0;for(var he=0;he<V.length;he++)if(V[he].node_===Q){ie.circular=V[he];break}}else ie.isLeaf=!0,ie.keys=null;ie.notLeaf=!ie.isLeaf,ie.notRoot=!ie.isRoot}xe();var we=X.call(ie,ie.node);return we!==void 0&&ie.update&&ie.update(we),ce.before&&ce.before.call(ie,ie.node),ee&&(typeof ie.node=="object"&&ie.node!==null&&!ie.circular&&(V.push(ie),xe(),q(ie.keys,function(he,fe){C.push(he),ce.pre&&ce.pre.call(ie,ie.node[he],he);var se=_(ie.node[he]);R&&W.call(ie.node,he)&&(ie.node[he]=se.node),se.isLast=fe==ie.keys.length-1,se.isFirst=fe==0,ce.post&&ce.post.call(ie,se),C.pop()}),V.pop()),ce.after&&ce.after.call(ie,ie.node)),ie}(M).node}function v(M){if(typeof M=="object"&&M!==null){var X;if(j(M))X=[];else if(b(M))X=new Date(M.getTime?M.getTime():M);else if(S(M))X=new RegExp(M);else if(g(M))X={message:M.message};else if(L(M))X=new Boolean(M);else if(D(M))X=new Number(M);else if(B(M))X=new String(M);else if(Object.create&&Object.getPrototypeOf)X=Object.create(Object.getPrototypeOf(M));else if(M.constructor===Object)X={};else{var R=M.constructor&&M.constructor.prototype||M.__proto__||{},C=function(){};C.prototype=R,X=new C}return q(x(M),function(V){X[V]=M[V]}),X}else return M}var x=Object.keys||function(X){var R=[];for(var C in X)R.push(C);return R};function d(M){return Object.prototype.toString.call(M)}function b(M){return d(M)==="[object Date]"}function S(M){return d(M)==="[object RegExp]"}function g(M){return d(M)==="[object Error]"}function L(M){return d(M)==="[object Boolean]"}function D(M){return d(M)==="[object Number]"}function B(M){return d(M)==="[object String]"}var j=Array.isArray||function(X){return Object.prototype.toString.call(X)==="[object Array]"},q=function(M,X){if(M.forEach)return M.forEach(X);for(var R=0;R<M.length;R++)X(M[R],R,M)};q(x(a.prototype),function(M){I[M]=function(X){var R=[].slice.call(arguments,1),C=new a(X);return C[M].apply(C,R)}});var W=Object.hasOwnProperty||function(M,X){return X in M}},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},24654:()=>{}}]);
|