zudoku 0.0.0-e5be921 → 0.0.0-e614aaa
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/cli.js +3 -0
- package/dist/app/demo.js +1 -2
- package/dist/app/demo.js.map +1 -1
- package/dist/app/entry.client.d.ts +5 -0
- package/dist/app/entry.client.js +2 -15
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +1 -1
- package/dist/app/entry.server.js +1 -2
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/main.d.ts +2 -2
- package/dist/app/main.js +19 -9
- package/dist/app/main.js.map +1 -1
- package/dist/app/sentry.js +1 -1
- package/dist/app/sentry.js.map +1 -1
- package/dist/app/standalone.js +1 -2
- package/dist/app/standalone.js.map +1 -1
- package/dist/app/tailwind.js +6 -0
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +7 -0
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +5 -0
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +21 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.js +5 -0
- package/dist/cli/cmds/dev.js.map +1 -1
- package/dist/cli/cmds/preview.d.ts +16 -0
- package/dist/cli/cmds/preview.js +25 -0
- package/dist/cli/cmds/preview.js.map +1 -0
- package/dist/cli/common/output.js.map +1 -1
- package/dist/cli/common/utils/ports.d.ts +1 -1
- package/dist/cli/common/utils/ports.js +16 -15
- package/dist/cli/common/utils/ports.js.map +1 -1
- package/dist/cli/dev/handler.d.ts +1 -0
- package/dist/cli/dev/handler.js +14 -12
- package/dist/cli/dev/handler.js.map +1 -1
- package/dist/cli/preview/handler.d.ts +3 -0
- package/dist/cli/preview/handler.js +37 -0
- package/dist/cli/preview/handler.js.map +1 -0
- package/dist/config/common.d.ts +5 -2
- package/dist/config/config.d.ts +3 -7
- package/dist/config/loader.d.ts +4 -4
- package/dist/config/loader.js +11 -5
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/InputSidebarSchema.d.ts +32 -17
- package/dist/config/validators/InputSidebarSchema.js +11 -1
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +821 -194
- package/dist/config/validators/common.js +71 -16
- package/dist/config/validators/common.js.map +1 -1
- package/dist/config/validators/icon-types.d.ts +1 -1
- package/dist/config/validators/validate.d.ts +378 -131
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/MissingIcon.d.ts +2 -0
- package/dist/lib/MissingIcon.js +7 -0
- package/dist/lib/MissingIcon.js.map +1 -0
- package/dist/lib/authentication/components/CallbackHandler.js +1 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.js +1 -1
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignOut.js +2 -2
- package/dist/lib/authentication/components/SignOut.js.map +1 -1
- package/dist/lib/authentication/providers/auth0.d.ts +2 -2
- package/dist/lib/authentication/providers/auth0.js +2 -1
- package/dist/lib/authentication/providers/auth0.js.map +1 -1
- package/dist/lib/authentication/providers/clerk.js +35 -12
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +11 -3
- package/dist/lib/authentication/providers/openid.js +17 -9
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/state.d.ts +9 -0
- package/dist/lib/authentication/state.js +19 -2
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/AnchorLink.d.ts +1 -1
- package/dist/lib/components/AnchorLink.js +6 -3
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Autocomplete.d.ts +13 -0
- package/dist/lib/components/Autocomplete.js +47 -0
- package/dist/lib/components/Autocomplete.js.map +1 -0
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +1 -2
- package/dist/lib/components/Bootstrap.js +3 -3
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/Header.js +15 -15
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +2 -2
- package/dist/lib/components/Layout.js +2 -2
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Markdown.d.ts +2 -2
- package/dist/lib/components/Markdown.js +3 -1
- package/dist/lib/components/Markdown.js.map +1 -1
- package/dist/lib/components/MobileTopNavigation.js +1 -1
- package/dist/lib/components/NotFoundPage.js +1 -1
- package/dist/lib/components/NotFoundPage.js.map +1 -1
- package/dist/lib/components/PathRenderer.d.ts +11 -0
- package/dist/lib/components/PathRenderer.js +28 -0
- package/dist/lib/components/PathRenderer.js.map +1 -0
- package/dist/lib/components/SlotletProvider.d.ts +2 -2
- package/dist/lib/components/StatusPage.d.ts +7 -0
- package/dist/lib/components/StatusPage.js +71 -0
- package/dist/lib/components/StatusPage.js.map +1 -0
- package/dist/lib/components/ThemeSwitch.js +8 -5
- package/dist/lib/components/ThemeSwitch.js.map +1 -1
- package/dist/lib/components/TopNavigation.js +5 -4
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.d.ts +1 -1
- package/dist/lib/components/Zudoku.js +8 -7
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +6 -0
- package/dist/lib/components/cache.js +13 -0
- package/dist/lib/components/cache.js.map +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.d.ts +1 -0
- package/dist/lib/components/context/RouterEventsEmitter.js +17 -0
- package/dist/lib/components/context/RouterEventsEmitter.js.map +1 -0
- package/dist/lib/components/context/ViewportAnchorContext.js +16 -4
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +1 -1
- package/dist/lib/components/context/ZudokuContext.js +11 -4
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +32 -15
- package/dist/lib/components/index.js +17 -4
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/Sidebar.js +7 -2
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +6 -3
- package/dist/lib/components/navigation/SidebarBadge.js +13 -11
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.js +18 -16
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.js +4 -3
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/components/navigation/utils.js +1 -1
- package/dist/lib/components/navigation/utils.js.map +1 -1
- package/dist/lib/core/RouteGuard.d.ts +1 -0
- package/dist/lib/core/RouteGuard.js +45 -0
- package/dist/lib/core/RouteGuard.js.map +1 -0
- package/dist/lib/core/ZudokuContext.d.ts +15 -3
- package/dist/lib/core/ZudokuContext.js +26 -8
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +13 -7
- package/dist/lib/core/plugins.js +3 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/RouterError.js +1 -1
- package/dist/lib/errors/RouterError.js.map +1 -1
- package/dist/lib/hooks/index.d.ts +3 -0
- package/dist/lib/hooks/index.js +5 -0
- package/dist/lib/hooks/index.js.map +1 -0
- package/dist/lib/hooks/useEvent.d.ts +11 -0
- package/dist/lib/hooks/useEvent.js +19 -0
- package/dist/lib/hooks/useEvent.js.map +1 -0
- package/dist/lib/hooks/useEvent.test.d.ts +1 -0
- package/dist/lib/hooks/useEvent.test.js +100 -0
- package/dist/lib/hooks/useEvent.test.js.map +1 -0
- package/dist/lib/icons.d.ts +1 -0
- package/dist/lib/icons.js +1 -0
- package/dist/lib/icons.js.map +1 -1
- package/dist/lib/oas/graphql/circular.d.ts +3 -0
- package/dist/lib/oas/graphql/circular.js +38 -0
- package/dist/lib/oas/graphql/circular.js.map +1 -0
- package/dist/lib/oas/graphql/index.d.ts +11 -0
- package/dist/lib/oas/graphql/index.js +93 -59
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +6 -3
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.js +19 -4
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +3 -5
- package/dist/lib/plugins/api-catalog/Catalog.js +23 -26
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +9 -1
- package/dist/lib/plugins/api-catalog/index.js +37 -8
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js +8 -4
- package/dist/lib/plugins/api-keys/CreateApiKey.js.map +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js +1 -1
- package/dist/lib/plugins/api-keys/ProtectedRoute.js.map +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js +1 -1
- package/dist/lib/plugins/api-keys/SettingsApiKeys.js.map +1 -1
- package/dist/lib/plugins/api-keys/index.d.ts +1 -0
- package/dist/lib/plugins/api-keys/index.js +1 -0
- package/dist/lib/plugins/api-keys/index.js.map +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +8 -2
- package/dist/lib/plugins/markdown/MdxPage.js.map +1 -1
- package/dist/lib/plugins/markdown/index.d.ts +1 -0
- package/dist/lib/plugins/markdown/index.js.map +1 -1
- package/dist/lib/plugins/markdown/resolver.d.ts +0 -6
- package/dist/lib/plugins/markdown/resolver.js +0 -29
- package/dist/lib/plugins/markdown/resolver.js.map +1 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js +2 -1
- package/dist/lib/plugins/openapi/CollapsibleCode.js.map +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.d.ts +10 -2
- package/dist/lib/plugins/openapi/ColorizedParam.js +18 -7
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.d.ts +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +8 -7
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/OasProvider.d.ts +8 -0
- package/dist/lib/plugins/openapi/OasProvider.js +29 -0
- package/dist/lib/plugins/openapi/OasProvider.js.map +1 -0
- package/dist/lib/plugins/openapi/OperationList.d.ts +5 -2
- package/dist/lib/plugins/openapi/OperationList.js +39 -49
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +4 -2
- package/dist/lib/plugins/openapi/OperationListItem.js +16 -5
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterList.d.ts +2 -1
- package/dist/lib/plugins/openapi/ParameterList.js +3 -2
- package/dist/lib/plugins/openapi/ParameterList.js.map +1 -1
- package/dist/lib/plugins/openapi/ParameterListItem.js +3 -2
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +4 -2
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +10 -3
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.d.ts +3 -4
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js +5 -13
- package/dist/lib/plugins/openapi/RequestBodySidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js +7 -13
- package/dist/lib/plugins/openapi/ResponsesSidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/Sidecar.js +22 -34
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarBox.js +4 -4
- package/dist/lib/plugins/openapi/SidecarBox.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.d.ts +9 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js +68 -0
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -0
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +22 -93
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/createServer.d.ts +2 -1
- package/dist/lib/plugins/openapi/client/createServer.js +5 -2
- package/dist/lib/plugins/openapi/client/createServer.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +2 -4
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/context.d.ts +3 -3
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +6 -2
- package/dist/lib/plugins/openapi/graphql/gql.js +3 -13
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +66 -29
- package/dist/lib/plugins/openapi/graphql/graphql.js +33 -15
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +10 -1
- package/dist/lib/plugins/openapi/index.js +84 -84
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +29 -2
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +6 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +12 -0
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/Headers.d.ts +4 -4
- package/dist/lib/plugins/openapi/playground/Headers.js +84 -5
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/ParamsGrid.d.ts +9 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js +5 -0
- package/dist/lib/plugins/openapi/playground/ParamsGrid.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +5 -7
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +26 -2
- package/dist/lib/plugins/openapi/playground/Playground.js +64 -56
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js +1 -1
- package/dist/lib/plugins/openapi/playground/PlaygroundDialog.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +24 -18
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +22 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +11 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.d.ts +8 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +95 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +16 -0
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.d.ts +10 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js +32 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js +56 -0
- package/dist/lib/plugins/openapi/playground/result-panel/convertToTypes.test.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +2 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js +5 -3
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js +49 -0
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +1 -1
- package/dist/lib/plugins/openapi/post-processors/removeParameters.d.ts +10 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js +66 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.d.ts +1 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js +131 -0
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +37 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaView.js +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +1 -0
- package/dist/lib/plugins/openapi/schema/utils.js +2 -0
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js +25 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +19 -11
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/dist/lib/plugins/openapi/util/getRoutes.d.ts +10 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js +74 -0
- package/dist/lib/plugins/openapi/util/getRoutes.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.d.ts +2 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js +10 -0
- package/dist/lib/plugins/openapi/util/methodColorMap.js.map +1 -0
- package/dist/lib/plugins/openapi/util/methodToColor.d.ts +20 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js +24 -0
- package/dist/lib/plugins/openapi/util/methodToColor.js.map +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.d.ts +1 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js +27 -0
- package/dist/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.js.map +1 -0
- package/dist/lib/plugins/redirect/index.js +1 -1
- package/dist/lib/plugins/redirect/index.js.map +1 -1
- package/dist/lib/plugins/search-inkeep/index.js +21 -7
- package/dist/lib/plugins/search-inkeep/index.js.map +1 -1
- package/dist/lib/plugins/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +67 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +7 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +30 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +3 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +37 -0
- package/dist/lib/plugins/search-pagefind/get-results.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/index.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/index.js +9 -0
- package/dist/lib/plugins/search-pagefind/index.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/types.d.ts +85 -0
- package/dist/lib/plugins/search-pagefind/types.js +2 -0
- package/dist/lib/plugins/search-pagefind/types.js.map +1 -0
- package/dist/lib/ui/Badge.d.ts +1 -1
- package/dist/lib/ui/Badge.js +2 -1
- package/dist/lib/ui/Badge.js.map +1 -1
- package/dist/lib/ui/Button.d.ts +1 -1
- package/dist/lib/ui/Card.js +1 -1
- package/dist/lib/ui/Card.js.map +1 -1
- package/dist/lib/ui/Checkbox.d.ts +8 -2
- package/dist/lib/ui/Checkbox.js +13 -1
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +17 -3
- package/dist/lib/ui/Command.js +7 -3
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Input.d.ts +1 -2
- package/dist/lib/ui/Input.js.map +1 -1
- package/dist/lib/ui/Select.js +2 -2
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Stepper.d.ts +4 -0
- package/dist/lib/ui/Stepper.js +7 -0
- package/dist/lib/ui/Stepper.js.map +1 -0
- package/dist/lib/ui/SyntaxHighlight.d.ts +14 -0
- package/dist/lib/{components → ui}/SyntaxHighlight.js +9 -6
- package/dist/lib/ui/SyntaxHighlight.js.map +1 -0
- package/dist/lib/ui/util.d.ts +2 -0
- package/dist/lib/ui/util.js +3 -0
- package/dist/lib/ui/util.js.map +1 -0
- package/dist/lib/util/MdxComponents.d.ts +19 -17
- package/dist/lib/util/MdxComponents.js +7 -6
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/createVariantComponent.d.ts +2 -2
- package/dist/lib/util/joinUrl.d.ts +1 -0
- package/dist/lib/util/joinUrl.js +40 -0
- package/dist/lib/util/joinUrl.js.map +1 -0
- package/dist/lib/util/joinUrl.test.d.ts +1 -0
- package/dist/lib/util/joinUrl.test.js +43 -0
- package/dist/lib/util/joinUrl.test.js.map +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.d.ts +1 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js +14 -0
- package/dist/lib/util/scrollIntoViewIfNeeded.js.map +1 -0
- package/dist/lib/util/traverse.d.ts +8 -1
- package/dist/lib/util/traverse.js +7 -3
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/useExposedProps.js +1 -1
- package/dist/lib/util/useExposedProps.js.map +1 -1
- package/dist/lib/util/useLatest.d.ts +1 -0
- package/dist/lib/util/useLatest.js +15 -0
- package/dist/lib/util/useLatest.js.map +1 -0
- package/dist/lib/util/useOnScreen.d.ts +1 -1
- package/dist/lib/util/useScrollToAnchor.d.ts +1 -0
- package/dist/lib/util/useScrollToAnchor.js +26 -29
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/lib/util/useScrollToTop.js +7 -5
- package/dist/lib/util/useScrollToTop.js.map +1 -1
- package/dist/vite/api/schema-codegen.d.ts +12 -0
- package/dist/vite/api/schema-codegen.js +62 -0
- package/dist/vite/api/schema-codegen.js.map +1 -0
- package/dist/vite/api/schema-codegen.test.d.ts +1 -0
- package/dist/vite/api/schema-codegen.test.js +247 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -0
- package/dist/vite/build.js +41 -25
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -5
- package/dist/vite/config.js +69 -61
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +5 -1
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/css/collect.d.ts +2 -0
- package/dist/vite/css/collect.js +27 -0
- package/dist/vite/css/collect.js.map +1 -0
- package/dist/vite/css/plugin.d.ts +5 -0
- package/dist/vite/css/plugin.js +79 -0
- package/dist/vite/css/plugin.js.map +1 -0
- package/dist/vite/dev-server.d.ts +5 -2
- package/dist/vite/dev-server.js +52 -11
- package/dist/vite/dev-server.js.map +1 -1
- package/dist/vite/error-handler.d.ts +1 -1
- package/dist/vite/error-handler.js +1 -1
- package/dist/vite/error-handler.js.map +1 -1
- package/dist/vite/output.d.ts +14 -2
- package/dist/vite/output.js +12 -14
- package/dist/vite/output.js.map +1 -1
- package/dist/vite/pagefind.d.ts +4 -0
- package/dist/vite/pagefind.js +15 -0
- package/dist/vite/pagefind.js.map +1 -0
- package/dist/vite/plugin-api-keys.d.ts +2 -2
- package/dist/vite/plugin-api-keys.js +5 -5
- package/dist/vite/plugin-api-keys.js.map +1 -1
- package/dist/vite/plugin-api.d.ts +2 -2
- package/dist/vite/plugin-api.js +175 -59
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -2
- package/dist/vite/plugin-auth.js +7 -4
- package/dist/vite/plugin-auth.js.map +1 -1
- package/dist/vite/plugin-component.d.ts +2 -2
- package/dist/vite/plugin-component.js +7 -3
- package/dist/vite/plugin-component.js.map +1 -1
- package/dist/vite/plugin-config-reload.d.ts +4 -3
- package/dist/vite/plugin-config-reload.js +11 -5
- package/dist/vite/plugin-config-reload.js.map +1 -1
- package/dist/vite/plugin-config.d.ts +2 -2
- package/dist/vite/plugin-config.js +9 -5
- package/dist/vite/plugin-config.js.map +1 -1
- package/dist/vite/plugin-custom-pages.d.ts +2 -2
- package/dist/vite/plugin-custom-pages.js +3 -3
- package/dist/vite/plugin-custom-pages.js.map +1 -1
- package/dist/vite/plugin-docs.d.ts +2 -2
- package/dist/vite/plugin-docs.js +5 -5
- package/dist/vite/plugin-docs.js.map +1 -1
- package/dist/vite/plugin-frontmatter.d.ts +2 -2
- package/dist/vite/plugin-frontmatter.js +5 -4
- package/dist/vite/plugin-frontmatter.js.map +1 -1
- package/dist/vite/plugin-mdx.d.ts +2 -2
- package/dist/vite/plugin-mdx.js +34 -16
- package/dist/vite/plugin-mdx.js.map +1 -1
- package/dist/vite/plugin-redirect.d.ts +2 -2
- package/dist/vite/plugin-redirect.js +3 -3
- package/dist/vite/plugin-redirect.js.map +1 -1
- package/dist/vite/plugin-search.d.ts +2 -2
- package/dist/vite/plugin-search.js +5 -1
- package/dist/vite/plugin-search.js.map +1 -1
- package/dist/vite/plugin-sidebar.d.ts +2 -2
- package/dist/vite/plugin-sidebar.js +13 -4
- package/dist/vite/plugin-sidebar.js.map +1 -1
- package/dist/vite/plugin-theme-css.d.ts +2 -2
- package/dist/vite/plugin-theme-css.js +57 -2
- package/dist/vite/plugin-theme-css.js.map +1 -1
- package/dist/vite/plugin.d.ts +2 -2
- package/dist/vite/plugin.js +4 -0
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/{prerender.d.ts → prerender/FileWritingResponse.d.ts} +8 -9
- package/dist/vite/prerender/FileWritingResponse.js +51 -0
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +14 -0
- package/dist/vite/prerender/prerender.js +84 -0
- package/dist/vite/prerender/prerender.js.map +1 -0
- package/dist/vite/prerender/worker.d.ts +13 -0
- package/dist/vite/prerender/worker.js +32 -0
- package/dist/vite/prerender/worker.js.map +1 -0
- package/dist/vite/reporter.d.ts +3 -0
- package/dist/vite/reporter.js +33 -0
- package/dist/vite/reporter.js.map +1 -0
- package/dist/vite/sitemap.js +2 -1
- package/dist/vite/sitemap.js.map +1 -1
- package/dist/zuplo/enrich-with-zuplo.d.ts +5 -0
- package/dist/zuplo/enrich-with-zuplo.js +184 -0
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -0
- package/dist/zuplo/env.d.ts +1 -0
- package/dist/zuplo/env.js +3 -0
- package/dist/zuplo/env.js.map +1 -1
- package/dist/zuplo/policy-types.d.ts +33 -0
- package/dist/zuplo/policy-types.js +8 -0
- package/dist/zuplo/policy-types.js.map +1 -0
- package/dist/zuplo/with-zuplo-processors.d.ts +3 -0
- package/dist/zuplo/with-zuplo-processors.js +26 -0
- package/dist/zuplo/with-zuplo-processors.js.map +1 -0
- package/dist/zuplo/with-zuplo.d.ts +1 -1
- package/dist/zuplo/with-zuplo.js +7 -26
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/AuthenticationPlugin-CiO1FM6Q.js +58 -0
- package/lib/AuthenticationPlugin-CiO1FM6Q.js.map +1 -0
- package/lib/{CategoryHeading-Bb9dqxD3.js → CategoryHeading-DpB47wvk.js} +3 -3
- package/lib/{CategoryHeading-Bb9dqxD3.js.map → CategoryHeading-DpB47wvk.js.map} +1 -1
- package/lib/ClientOnly-E7hGysn1.js.map +1 -1
- package/lib/{Dialog-k70Qfukb.js → Dialog-DIKGQxQc.js} +36 -20
- package/lib/{Dialog-k70Qfukb.js.map → Dialog-DIKGQxQc.js.map} +1 -1
- package/lib/{Markdown-CRsmPPfY.js → Markdown-DePfm7oQ.js} +5972 -5888
- package/lib/Markdown-DePfm7oQ.js.map +1 -0
- package/lib/MdxPage-BN6l6zXL.js +201 -0
- package/lib/MdxPage-BN6l6zXL.js.map +1 -0
- package/lib/OasProvider-BSuptFK-.js +34 -0
- package/lib/OasProvider-BSuptFK-.js.map +1 -0
- package/lib/OperationList-DOcfDmJP.js +5217 -0
- package/lib/OperationList-DOcfDmJP.js.map +1 -0
- package/lib/{Select-O9ZM3ZgX.js → Select-Dqtcn53H.js} +49 -49
- package/lib/Select-Dqtcn53H.js.map +1 -0
- package/lib/SlotletProvider-DdtIOUi6.js +221 -0
- package/lib/SlotletProvider-DdtIOUi6.js.map +1 -0
- package/lib/{Button-jK0EsymC.js → Spinner-1KrEmx1V.js} +17 -14
- package/lib/Spinner-1KrEmx1V.js.map +1 -0
- package/lib/chunk-IR6S3I6Y-D_3UmFIn.js +1821 -0
- package/lib/chunk-IR6S3I6Y-D_3UmFIn.js.map +1 -0
- package/lib/circular-v7K6lDDh.js +15409 -0
- package/lib/circular-v7K6lDDh.js.map +1 -0
- package/lib/{cn-BmFQLtkS.js → cn-qaFjX9_3.js} +2 -2
- package/lib/cn-qaFjX9_3.js.map +1 -0
- package/lib/{context-D1nXWxm7.js → context-DLCwaMXN.js} +2 -2
- package/lib/context-DLCwaMXN.js.map +1 -0
- package/lib/createServer-DmusVVsi.js +12728 -0
- package/lib/createServer-DmusVVsi.js.map +1 -0
- package/lib/hook-CN__aZIt.js +1464 -0
- package/lib/hook-CN__aZIt.js.map +1 -0
- package/lib/index-BTbP6Lgf.js +2103 -0
- package/lib/index-BTbP6Lgf.js.map +1 -0
- package/lib/index-CPNSgwSb.js +36 -0
- package/lib/index-CPNSgwSb.js.map +1 -0
- package/lib/{index-CkwDvuPt.js → index-Dl3Yl0yb.js} +303 -286
- package/lib/index-Dl3Yl0yb.js.map +1 -0
- package/lib/index-DwT-v3zK.js +86 -0
- package/lib/index-DwT-v3zK.js.map +1 -0
- package/lib/index-LNp6rxyU.js.map +1 -1
- package/lib/index-gQD2h1wX.js +447 -0
- package/lib/index-gQD2h1wX.js.map +1 -0
- package/lib/index.esm--gIChbWs.js +1207 -0
- package/lib/index.esm--gIChbWs.js.map +1 -0
- package/lib/index.esm-CQHE3GEU.js +691 -0
- package/lib/{index.esm-Bm8pj-bc.js.map → index.esm-CQHE3GEU.js.map} +1 -1
- package/lib/invariant-Caa8-XvF.js.map +1 -1
- package/lib/joinUrl-10po2Jdj.js +20 -0
- package/lib/joinUrl-10po2Jdj.js.map +1 -0
- package/lib/jsx-runtime-CYK1ROHF.js +446 -0
- package/lib/jsx-runtime-CYK1ROHF.js.map +1 -0
- package/lib/{hook-hEqe7fPB.js → mutation-EclmI0is.js} +39 -58
- package/lib/mutation-EclmI0is.js.map +1 -0
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.js.map +1 -0
- package/lib/post-processors/removeExtensions.js +7 -7
- package/lib/post-processors/removeExtensions.js.map +1 -1
- package/lib/post-processors/removeParameters.js +48 -0
- package/lib/post-processors/removeParameters.js.map +1 -0
- package/lib/post-processors/removePaths.js.map +1 -1
- package/lib/post-processors/traverse.js +11 -8
- package/lib/post-processors/traverse.js.map +1 -1
- package/lib/{prism-bash.min-DadFsM4Z.js → prism-bash.min-HHIMdNJ_.js} +4 -4
- package/lib/{prism-bash.min-DadFsM4Z.js.map → prism-bash.min-HHIMdNJ_.js.map} +1 -1
- package/lib/prism-csharp.min-bQAo2pmx.js +63 -0
- package/lib/{prism-csharp.min-Yizuc34Y.js.map → prism-csharp.min-bQAo2pmx.js.map} +1 -1
- package/lib/prism-java.min-BpvsOuIa.js +35 -0
- package/lib/{prism-java.min-d5iT_mOd.js.map → prism-java.min-BpvsOuIa.js.map} +1 -1
- package/lib/{prism-markdown.min-F3U-vPBi.js → prism-markdown.min-C0Qn0m-5.js} +30 -30
- package/lib/{prism-markdown.min-F3U-vPBi.js.map → prism-markdown.min-C0Qn0m-5.js.map} +1 -1
- package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
- package/lib/prism-ruby.min-Dx9KO9ds.js +38 -0
- package/lib/{prism-ruby.min-C7LwcKyz.js.map → prism-ruby.min-Dx9KO9ds.js.map} +1 -1
- package/lib/prism-typescript.min-CD7H2IYQ.js +34 -0
- package/lib/{prism-typescript.min-oSVeWCAd.js.map → prism-typescript.min-CD7H2IYQ.js.map} +1 -1
- package/lib/ui/Accordion.js +2 -2
- package/lib/ui/Accordion.js.map +1 -1
- package/lib/ui/ActionButton.js +10 -11
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Alert.js +3 -3
- package/lib/ui/Alert.js.map +1 -1
- package/lib/ui/AlertDialog.js +2 -2
- package/lib/ui/AlertDialog.js.map +1 -1
- package/lib/ui/Badge.js +5 -4
- package/lib/ui/Badge.js.map +1 -1
- package/lib/ui/Breadcrumb.js +5 -5
- package/lib/ui/Breadcrumb.js.map +1 -1
- package/lib/ui/Button.js +3 -3
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +5 -5
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +9 -9
- package/lib/ui/Card.js.map +1 -1
- package/lib/ui/Carousel.js +408 -402
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +26 -15
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/Command.js +114 -508
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +2 -2
- package/lib/ui/Dialog.js.map +1 -1
- package/lib/ui/Drawer.js +357 -378
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/DropdownMenu.js +2 -2
- package/lib/ui/DropdownMenu.js.map +1 -1
- package/lib/ui/Form.js +6 -6
- package/lib/ui/Form.js.map +1 -1
- package/lib/ui/HoverCard.js +2 -2
- package/lib/ui/Input.js +2 -2
- package/lib/ui/Input.js.map +1 -1
- package/lib/ui/Label.js +3 -3
- package/lib/ui/Pagination.js +5 -5
- package/lib/ui/Pagination.js.map +1 -1
- package/lib/ui/Popover.js +2 -2
- package/lib/ui/Popover.js.map +1 -1
- package/lib/ui/Progress.js +2 -2
- package/lib/ui/Progress.js.map +1 -1
- package/lib/ui/RadioGroup.js +2 -2
- package/lib/ui/RadioGroup.js.map +1 -1
- package/lib/ui/ScrollArea.js +2 -2
- package/lib/ui/ScrollArea.js.map +1 -1
- package/lib/ui/Select.js +4 -4
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js +2 -2
- package/lib/ui/Skeleton.js.map +1 -1
- package/lib/ui/Slider.js +2 -2
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +2 -2
- package/lib/ui/Switch.js.map +1 -1
- package/lib/{SyntaxHighlight-C31iouiO.js → ui/SyntaxHighlight.js} +460 -536
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +2 -2
- package/lib/ui/Textarea.js +2 -2
- package/lib/ui/Textarea.js.map +1 -1
- package/lib/ui/Toggle.js +3 -3
- package/lib/ui/Toggle.js.map +1 -1
- package/lib/ui/ToggleGroup.js +2 -2
- package/lib/ui/ToggleGroup.js.map +1 -1
- package/lib/ui/Tooltip.js +2 -2
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/useExposedProps-RIvey2Oy.js +9 -0
- package/lib/useExposedProps-RIvey2Oy.js.map +1 -0
- package/lib/useScrollToAnchor-RyqO3lj4.js +290 -0
- package/lib/useScrollToAnchor-RyqO3lj4.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +19 -20
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +81 -53
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +379 -410
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +1003 -1263
- package/lib/zudoku.components.js.map +1 -1
- package/lib/zudoku.css +1 -0
- package/lib/zudoku.hooks.js +19 -0
- package/lib/zudoku.hooks.js.map +1 -0
- package/lib/zudoku.icons.js +10 -0
- package/lib/zudoku.icons.js.map +1 -1
- package/lib/zudoku.plugin-api-catalog.js +109 -109
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +108 -107
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +4 -4
- package/lib/zudoku.plugin-custom-pages.js.map +1 -1
- package/lib/zudoku.plugin-markdown.js +23 -44
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +8 -6
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-redirect.js.map +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +34 -26
- package/lib/zudoku.plugin-search-inkeep.js.map +1 -1
- package/lib/zudoku.plugins.js +14 -0
- package/lib/zudoku.plugins.js.map +1 -0
- package/package.json +104 -89
- package/src/app/demo-cdn.html +31 -31
- package/src/app/demo.tsx +1 -2
- package/src/app/entry.client.tsx +9 -15
- package/src/app/entry.server.tsx +3 -3
- package/src/app/main.css +59 -45
- package/src/app/main.tsx +33 -10
- package/src/app/sentry.ts +1 -1
- package/src/app/standalone.tsx +1 -2
- package/src/app/tailwind.ts +6 -0
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/authentication/components/CallbackHandler.tsx +1 -1
- package/src/lib/authentication/components/SignIn.tsx +1 -1
- package/src/lib/authentication/components/SignOut.tsx +3 -2
- package/src/lib/authentication/providers/auth0.tsx +4 -6
- package/src/lib/authentication/providers/clerk.tsx +48 -13
- package/src/lib/authentication/providers/openid.tsx +32 -15
- package/src/lib/authentication/state.ts +26 -2
- package/src/lib/components/AnchorLink.tsx +6 -3
- package/src/lib/components/Autocomplete.tsx +113 -0
- package/src/lib/components/Banner.tsx +1 -0
- package/src/lib/components/Bootstrap.tsx +4 -6
- package/src/lib/components/Header.tsx +14 -10
- package/src/lib/components/Heading.tsx +1 -1
- package/src/lib/components/Layout.tsx +4 -3
- package/src/lib/components/Markdown.tsx +14 -15
- package/src/lib/components/MobileTopNavigation.tsx +1 -1
- package/src/lib/components/NotFoundPage.tsx +1 -1
- package/src/lib/components/PathRenderer.tsx +61 -0
- package/src/lib/components/SlotletProvider.tsx +1 -1
- package/src/lib/components/StatusPage.tsx +91 -0
- package/src/lib/components/ThemeSwitch.tsx +29 -9
- package/src/lib/components/TopNavigation.tsx +15 -11
- package/src/lib/components/Zudoku.tsx +10 -6
- package/src/lib/components/cache.ts +15 -0
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +20 -6
- package/src/lib/components/context/ZudokuContext.ts +17 -4
- package/src/lib/components/index.ts +22 -5
- package/src/lib/components/navigation/Sidebar.tsx +8 -2
- package/src/lib/components/navigation/SidebarBadge.tsx +17 -12
- package/src/lib/components/navigation/SidebarCategory.tsx +46 -47
- package/src/lib/components/navigation/SidebarItem.tsx +4 -2
- package/src/lib/components/navigation/SidebarWrapper.tsx +3 -2
- package/src/lib/components/navigation/utils.ts +1 -1
- package/src/lib/core/RouteGuard.tsx +73 -0
- package/src/lib/core/ZudokuContext.ts +41 -9
- package/src/lib/core/plugins.ts +27 -9
- package/src/lib/errors/RouterError.tsx +1 -1
- package/src/lib/hooks/index.ts +5 -0
- package/src/lib/hooks/useEvent.test.tsx +149 -0
- package/src/lib/hooks/useEvent.ts +41 -0
- package/src/lib/icons.ts +1 -0
- package/src/lib/oas/graphql/circular.ts +50 -0
- package/src/lib/oas/graphql/index.ts +135 -92
- package/src/lib/oas/parser/dereference/index.ts +8 -4
- package/src/lib/oas/parser/upgrade/index.ts +21 -5
- package/src/lib/plugins/api-catalog/Catalog.tsx +62 -110
- package/src/lib/plugins/api-catalog/index.tsx +69 -9
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +8 -4
- package/src/lib/plugins/api-keys/ProtectedRoute.tsx +1 -1
- package/src/lib/plugins/api-keys/SettingsApiKeys.tsx +1 -1
- package/src/lib/plugins/api-keys/index.tsx +4 -1
- package/src/lib/plugins/custom-pages/index.tsx +1 -1
- package/src/lib/plugins/markdown/MdxPage.tsx +15 -3
- package/src/lib/plugins/markdown/index.tsx +2 -1
- package/src/lib/plugins/markdown/resolver.ts +0 -33
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +10 -7
- package/src/lib/plugins/openapi/ColorizedParam.tsx +29 -12
- package/src/lib/plugins/openapi/Endpoint.tsx +14 -12
- package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
- package/src/lib/plugins/openapi/OperationList.tsx +106 -67
- package/src/lib/plugins/openapi/OperationListItem.tsx +48 -6
- package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +7 -8
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +14 -2
- package/src/lib/plugins/openapi/RequestBodySidecarBox.tsx +15 -38
- package/src/lib/plugins/openapi/ResponsesSidecarBox.tsx +46 -63
- package/src/lib/plugins/openapi/Sidecar.tsx +44 -60
- package/src/lib/plugins/openapi/SidecarBox.tsx +4 -16
- package/src/lib/plugins/openapi/SidecarExamples.tsx +162 -0
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +28 -120
- package/src/lib/plugins/openapi/client/createServer.ts +6 -2
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +2 -5
- package/src/lib/plugins/openapi/context.tsx +2 -2
- package/src/lib/plugins/openapi/graphql/gql.ts +21 -5
- package/src/lib/plugins/openapi/graphql/graphql.ts +92 -45
- package/src/lib/plugins/openapi/index.tsx +130 -97
- package/src/lib/plugins/openapi/interfaces.ts +27 -2
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +54 -0
- package/src/lib/plugins/openapi/playground/Headers.tsx +166 -36
- package/src/lib/plugins/openapi/playground/ParamsGrid.tsx +13 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +39 -65
- package/src/lib/plugins/openapi/playground/Playground.tsx +288 -235
- package/src/lib/plugins/openapi/playground/PlaygroundDialog.tsx +6 -3
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +87 -88
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +75 -0
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +73 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +210 -0
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +101 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.test.ts +64 -0
- package/src/lib/plugins/openapi/playground/result-panel/convertToTypes.ts +36 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.test.ts +58 -0
- package/src/lib/plugins/openapi/post-processors/removeExtensions.ts +7 -4
- package/src/lib/plugins/openapi/post-processors/removeParameters.test.ts +148 -0
- package/src/lib/plugins/openapi/post-processors/removeParameters.ts +101 -0
- package/src/lib/plugins/openapi/schema/{SchemaComponents.tsx → SchemaPropertyItem.tsx} +34 -9
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +4 -1
- package/src/lib/plugins/openapi/schema/utils.ts +4 -0
- package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +39 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +26 -11
- package/src/lib/plugins/openapi/util/getRoutes.tsx +123 -0
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
- package/src/lib/plugins/openapi/util/methodToColor.ts +27 -0
- package/src/lib/plugins/openapi/util/sanitizeMarkdownForMetatag.tsx +32 -0
- package/src/lib/plugins/redirect/index.tsx +1 -1
- package/src/lib/plugins/search-inkeep/index.tsx +27 -8
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +139 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +98 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +54 -0
- package/src/lib/plugins/search-pagefind/index.tsx +21 -0
- package/src/lib/plugins/search-pagefind/types.ts +118 -0
- package/src/lib/ui/Badge.tsx +2 -1
- package/src/lib/ui/Card.tsx +1 -1
- package/src/lib/ui/Checkbox.tsx +24 -7
- package/src/lib/ui/Command.tsx +45 -3
- package/src/lib/ui/Input.tsx +1 -2
- package/src/lib/ui/Select.tsx +1 -1
- package/src/lib/ui/Stepper.css +43 -0
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/{components → ui}/SyntaxHighlight.tsx +37 -8
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +8 -6
- package/src/lib/util/createVariantComponent.tsx +2 -2
- package/src/lib/util/joinUrl.test.ts +62 -0
- package/src/lib/util/joinUrl.ts +57 -0
- package/src/lib/util/scrollIntoViewIfNeeded.ts +18 -0
- package/src/lib/util/traverse.ts +15 -5
- package/src/lib/util/useExposedProps.tsx +1 -1
- package/src/lib/util/useLatest.ts +18 -0
- package/src/lib/util/useScrollToAnchor.ts +33 -34
- package/src/lib/util/useScrollToTop.ts +9 -4
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -11
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/dist/lib/plugins/openapi/Route.d.ts +0 -6
- package/dist/lib/plugins/openapi/Route.js +0 -6
- package/dist/lib/plugins/openapi/Route.js.map +0 -1
- package/dist/lib/plugins/openapi/client/worker.d.ts +0 -4
- package/dist/lib/plugins/openapi/client/worker.js +0 -29
- package/dist/lib/plugins/openapi/client/worker.js.map +0 -1
- package/dist/lib/plugins/openapi/playground/ResponseTab.d.ts +0 -4
- package/dist/lib/plugins/openapi/playground/ResponseTab.js +0 -42
- package/dist/lib/plugins/openapi/playground/ResponseTab.js.map +0 -1
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js +0 -28
- package/dist/lib/plugins/openapi/schema/SchemaComponents.js.map +0 -1
- package/dist/lib/plugins/openapi-worker.d.ts +0 -1
- package/dist/lib/plugins/openapi-worker.js +0 -8
- package/dist/lib/plugins/openapi-worker.js.map +0 -1
- package/dist/vite/prerender.js +0 -89
- package/dist/vite/prerender.js.map +0 -1
- package/lib/AnchorLink-BR0MvI7n.js +0 -35
- package/lib/AnchorLink-BR0MvI7n.js.map +0 -1
- package/lib/AuthenticationPlugin-D0Em0SwR.js +0 -59
- package/lib/AuthenticationPlugin-D0Em0SwR.js.map +0 -1
- package/lib/Button-jK0EsymC.js.map +0 -1
- package/lib/Markdown-CRsmPPfY.js.map +0 -1
- package/lib/MdxPage-Wp8QU0-q.js +0 -188
- package/lib/MdxPage-Wp8QU0-q.js.map +0 -1
- package/lib/OperationList-u8xHU9-b.js +0 -4706
- package/lib/OperationList-u8xHU9-b.js.map +0 -1
- package/lib/Route-DlG_HTMu.js +0 -11
- package/lib/Route-DlG_HTMu.js.map +0 -1
- package/lib/Select-O9ZM3ZgX.js.map +0 -1
- package/lib/SidebarBadge-DxFJcJ6V.js +0 -51
- package/lib/SidebarBadge-DxFJcJ6V.js.map +0 -1
- package/lib/SlotletProvider-BgvYIPQe.js +0 -252
- package/lib/SlotletProvider-BgvYIPQe.js.map +0 -1
- package/lib/Spinner-3cQDBVGr.js +0 -7
- package/lib/Spinner-3cQDBVGr.js.map +0 -1
- package/lib/SyntaxHighlight-C31iouiO.js.map +0 -1
- package/lib/__vite-browser-external-BYRIRx8p.js +0 -9
- package/lib/__vite-browser-external-BYRIRx8p.js.map +0 -1
- package/lib/assets/index-B_Jk_Yzp.js +0 -4820
- package/lib/assets/index-B_Jk_Yzp.js.map +0 -1
- package/lib/assets/worker-C_2va8B8.js +0 -18200
- package/lib/assets/worker-C_2va8B8.js.map +0 -1
- package/lib/cn-BmFQLtkS.js.map +0 -1
- package/lib/context-D1nXWxm7.js.map +0 -1
- package/lib/createServer-BCAHdrpE.js +0 -15302
- package/lib/createServer-BCAHdrpE.js.map +0 -1
- package/lib/hook-hEqe7fPB.js.map +0 -1
- package/lib/index-BuAyrJe3.js +0 -46
- package/lib/index-BuAyrJe3.js.map +0 -1
- package/lib/index-CkwDvuPt.js.map +0 -1
- package/lib/index-CmdLGbbk.js +0 -1279
- package/lib/index-CmdLGbbk.js.map +0 -1
- package/lib/index-Czzd9rjU.js +0 -899
- package/lib/index-Czzd9rjU.js.map +0 -1
- package/lib/index-Yn8c3UWE.js +0 -921
- package/lib/index-Yn8c3UWE.js.map +0 -1
- package/lib/index.esm-Bm8pj-bc.js +0 -675
- package/lib/index.esm-C5mr_sKO.js +0 -1193
- package/lib/index.esm-C5mr_sKO.js.map +0 -1
- package/lib/jsx-runtime-B6kdoens.js +0 -635
- package/lib/jsx-runtime-B6kdoens.js.map +0 -1
- package/lib/object_hash-CvlLgU-M.js +0 -785
- package/lib/object_hash-CvlLgU-M.js.map +0 -1
- package/lib/prism-csharp.min-Yizuc34Y.js +0 -35
- package/lib/prism-java.min-d5iT_mOd.js +0 -7
- package/lib/prism-ruby.min-C7LwcKyz.js +0 -10
- package/lib/prism-typescript.min-oSVeWCAd.js +0 -6
- package/lib/router-lfyopgBI.js +0 -3024
- package/lib/router-lfyopgBI.js.map +0 -1
- package/lib/state-tsXBLONe.js +0 -203
- package/lib/state-tsXBLONe.js.map +0 -1
- package/lib/useExposedProps-CTPtylCV.js +0 -10
- package/lib/useExposedProps-CTPtylCV.js.map +0 -1
- package/lib/utils-DcpDOncX.js +0 -1218
- package/lib/utils-DcpDOncX.js.map +0 -1
- package/lib/zudoku.openapi-worker.js +0 -15
- package/lib/zudoku.openapi-worker.js.map +0 -1
- package/src/lib/plugins/openapi/Route.tsx +0 -19
- package/src/lib/plugins/openapi/client/worker.ts +0 -44
- package/src/lib/plugins/openapi/playground/ResponseTab.tsx +0 -76
- package/src/lib/plugins/openapi-worker.ts +0 -11
- /package/dist/lib/plugins/openapi/schema/{SchemaComponents.d.ts → SchemaPropertyItem.d.ts} +0 -0
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { C as
|
|
7
|
-
var
|
|
1
|
+
import { j as F } from "../jsx-runtime-CYK1ROHF.js";
|
|
2
|
+
import { createElement as de, useCallback as V, useMemo as ge, useState as ye } from "react";
|
|
3
|
+
import { a as oe, c as K } from "../cn-qaFjX9_3.js";
|
|
4
|
+
import { CheckIcon as fe, CopyIcon as be } from "lucide-react";
|
|
5
|
+
import { z as me } from "../index-DwT-v3zK.js";
|
|
6
|
+
import { C as he } from "../ClientOnly-E7hGysn1.js";
|
|
7
|
+
var ve = Object.create, Z = Object.defineProperty, ke = Object.defineProperties, we = Object.getOwnPropertyDescriptor, xe = Object.getOwnPropertyDescriptors, se = Object.getOwnPropertyNames, G = Object.getOwnPropertySymbols, Ee = Object.getPrototypeOf, Q = Object.prototype.hasOwnProperty, le = Object.prototype.propertyIsEnumerable, te = (e, t, a) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, N = (e, t) => {
|
|
8
8
|
for (var a in t || (t = {}))
|
|
9
|
-
|
|
10
|
-
if (
|
|
11
|
-
for (var a of
|
|
12
|
-
|
|
9
|
+
Q.call(t, a) && te(e, a, t[a]);
|
|
10
|
+
if (G)
|
|
11
|
+
for (var a of G(t))
|
|
12
|
+
le.call(t, a) && te(e, a, t[a]);
|
|
13
13
|
return e;
|
|
14
|
-
}, q = (e, t) =>
|
|
14
|
+
}, q = (e, t) => ke(e, xe(t)), ie = (e, t) => {
|
|
15
15
|
var a = {};
|
|
16
|
-
for (var
|
|
17
|
-
|
|
18
|
-
if (e != null &&
|
|
19
|
-
for (var
|
|
20
|
-
t.indexOf(
|
|
16
|
+
for (var i in e)
|
|
17
|
+
Q.call(e, i) && t.indexOf(i) < 0 && (a[i] = e[i]);
|
|
18
|
+
if (e != null && G)
|
|
19
|
+
for (var i of G(e))
|
|
20
|
+
t.indexOf(i) < 0 && le.call(e, i) && (a[i] = e[i]);
|
|
21
21
|
return a;
|
|
22
|
-
},
|
|
23
|
-
return t || (0, e[
|
|
24
|
-
},
|
|
22
|
+
}, Ae = (e, t) => function() {
|
|
23
|
+
return t || (0, e[se(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
24
|
+
}, Se = (e, t) => {
|
|
25
25
|
for (var a in t)
|
|
26
|
-
|
|
27
|
-
},
|
|
26
|
+
Z(e, a, { get: t[a], enumerable: !0 });
|
|
27
|
+
}, _e = (e, t, a, i) => {
|
|
28
28
|
if (t && typeof t == "object" || typeof t == "function")
|
|
29
|
-
for (let
|
|
30
|
-
!
|
|
29
|
+
for (let y of se(t))
|
|
30
|
+
!Q.call(e, y) && y !== a && Z(e, y, { get: () => t[y], enumerable: !(i = we(t, y)) || i.enumerable });
|
|
31
31
|
return e;
|
|
32
|
-
},
|
|
32
|
+
}, Fe = (e, t, a) => (a = e != null ? ve(Ee(e)) : {}, _e(
|
|
33
33
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
34
34
|
// file that has been converted to a CommonJS file using a Babel-
|
|
35
35
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
36
36
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
37
|
-
!e || !e.__esModule ?
|
|
37
|
+
!e || !e.__esModule ? Z(a, "default", { value: e, enumerable: !0 }) : a,
|
|
38
38
|
e
|
|
39
|
-
)),
|
|
39
|
+
)), Te = Ae({
|
|
40
40
|
"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e, t) {
|
|
41
41
|
var a = function() {
|
|
42
|
-
var
|
|
42
|
+
var i = /(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i, y = 0, m = {}, c = {
|
|
43
43
|
/**
|
|
44
44
|
* A namespace for utility methods.
|
|
45
45
|
*
|
|
@@ -79,7 +79,7 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
79
79
|
* @returns {number}
|
|
80
80
|
*/
|
|
81
81
|
objId: function(n) {
|
|
82
|
-
return n.__id || Object.defineProperty(n, "__id", { value: ++
|
|
82
|
+
return n.__id || Object.defineProperty(n, "__id", { value: ++y }), n.__id;
|
|
83
83
|
},
|
|
84
84
|
/**
|
|
85
85
|
* Creates a deep clone of the given object.
|
|
@@ -93,24 +93,24 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
93
93
|
*/
|
|
94
94
|
clone: function n(r, s) {
|
|
95
95
|
s = s || {};
|
|
96
|
-
var
|
|
96
|
+
var u, l;
|
|
97
97
|
switch (c.util.type(r)) {
|
|
98
98
|
case "Object":
|
|
99
|
-
if (
|
|
100
|
-
return s[
|
|
101
|
-
|
|
102
|
-
{}, s[
|
|
103
|
-
for (var
|
|
104
|
-
r.hasOwnProperty(
|
|
99
|
+
if (l = c.util.objId(r), s[l])
|
|
100
|
+
return s[l];
|
|
101
|
+
u = /** @type {Record<string, any>} */
|
|
102
|
+
{}, s[l] = u;
|
|
103
|
+
for (var g in r)
|
|
104
|
+
r.hasOwnProperty(g) && (u[g] = n(r[g], s));
|
|
105
105
|
return (
|
|
106
106
|
/** @type {any} */
|
|
107
|
-
|
|
107
|
+
u
|
|
108
108
|
);
|
|
109
109
|
case "Array":
|
|
110
|
-
return
|
|
111
|
-
|
|
110
|
+
return l = c.util.objId(r), s[l] ? s[l] : (u = [], s[l] = u, r.forEach(function(k, x) {
|
|
111
|
+
u[x] = n(k, s);
|
|
112
112
|
}), /** @type {any} */
|
|
113
|
-
|
|
113
|
+
u);
|
|
114
114
|
default:
|
|
115
115
|
return r;
|
|
116
116
|
}
|
|
@@ -125,7 +125,7 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
125
125
|
*/
|
|
126
126
|
getLanguage: function(n) {
|
|
127
127
|
for (; n; ) {
|
|
128
|
-
var r =
|
|
128
|
+
var r = i.exec(n.className);
|
|
129
129
|
if (r)
|
|
130
130
|
return r[1].toLowerCase();
|
|
131
131
|
n = n.parentElement;
|
|
@@ -140,7 +140,7 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
140
140
|
* @returns {void}
|
|
141
141
|
*/
|
|
142
142
|
setLanguage: function(n, r) {
|
|
143
|
-
n.className = n.className.replace(RegExp(
|
|
143
|
+
n.className = n.className.replace(RegExp(i, "gi"), ""), n.classList.add("language-" + r);
|
|
144
144
|
},
|
|
145
145
|
/**
|
|
146
146
|
* Returns whether a given class is active for `element`.
|
|
@@ -162,11 +162,11 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
162
162
|
* @returns {boolean}
|
|
163
163
|
*/
|
|
164
164
|
isActive: function(n, r, s) {
|
|
165
|
-
for (var
|
|
166
|
-
var
|
|
167
|
-
if (
|
|
165
|
+
for (var u = "no-" + r; n; ) {
|
|
166
|
+
var l = n.classList;
|
|
167
|
+
if (l.contains(r))
|
|
168
168
|
return !0;
|
|
169
|
-
if (
|
|
169
|
+
if (l.contains(u))
|
|
170
170
|
return !1;
|
|
171
171
|
n = n.parentElement;
|
|
172
172
|
}
|
|
@@ -218,8 +218,8 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
218
218
|
*/
|
|
219
219
|
extend: function(n, r) {
|
|
220
220
|
var s = c.util.clone(c.languages[n]);
|
|
221
|
-
for (var
|
|
222
|
-
s[
|
|
221
|
+
for (var u in r)
|
|
222
|
+
s[u] = r[u];
|
|
223
223
|
return s;
|
|
224
224
|
},
|
|
225
225
|
/**
|
|
@@ -297,31 +297,31 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
297
297
|
* @returns {Grammar} The new grammar object.
|
|
298
298
|
* @public
|
|
299
299
|
*/
|
|
300
|
-
insertBefore: function(n, r, s,
|
|
301
|
-
|
|
300
|
+
insertBefore: function(n, r, s, u) {
|
|
301
|
+
u = u || /** @type {any} */
|
|
302
302
|
c.languages;
|
|
303
|
-
var
|
|
304
|
-
for (var
|
|
305
|
-
if (
|
|
306
|
-
if (
|
|
307
|
-
for (var
|
|
308
|
-
s.hasOwnProperty(
|
|
309
|
-
s.hasOwnProperty(
|
|
303
|
+
var l = u[n], g = {};
|
|
304
|
+
for (var k in l)
|
|
305
|
+
if (l.hasOwnProperty(k)) {
|
|
306
|
+
if (k == r)
|
|
307
|
+
for (var x in s)
|
|
308
|
+
s.hasOwnProperty(x) && (g[x] = s[x]);
|
|
309
|
+
s.hasOwnProperty(k) || (g[k] = l[k]);
|
|
310
310
|
}
|
|
311
|
-
var
|
|
312
|
-
return
|
|
313
|
-
|
|
314
|
-
}),
|
|
311
|
+
var A = u[n];
|
|
312
|
+
return u[n] = g, c.languages.DFS(c.languages, function(E, _) {
|
|
313
|
+
_ === A && E != n && (this[E] = g);
|
|
314
|
+
}), g;
|
|
315
315
|
},
|
|
316
316
|
// Traverse a language definition with Depth First Search
|
|
317
|
-
DFS: function n(r, s,
|
|
318
|
-
|
|
319
|
-
var
|
|
320
|
-
for (var
|
|
321
|
-
if (r.hasOwnProperty(
|
|
322
|
-
s.call(r,
|
|
323
|
-
var
|
|
324
|
-
|
|
317
|
+
DFS: function n(r, s, u, l) {
|
|
318
|
+
l = l || {};
|
|
319
|
+
var g = c.util.objId;
|
|
320
|
+
for (var k in r)
|
|
321
|
+
if (r.hasOwnProperty(k)) {
|
|
322
|
+
s.call(r, k, r[k], u || k);
|
|
323
|
+
var x = r[k], A = c.util.type(x);
|
|
324
|
+
A === "Object" && !l[g(x)] ? (l[g(x)] = !0, n(x, s, null, l)) : A === "Array" && !l[g(x)] && (l[g(x)] = !0, n(x, s, k, l));
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
},
|
|
@@ -347,14 +347,14 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
347
347
|
* Prism.highlight('var foo = true;', Prism.languages.javascript, 'javascript');
|
|
348
348
|
*/
|
|
349
349
|
highlight: function(n, r, s) {
|
|
350
|
-
var
|
|
350
|
+
var u = {
|
|
351
351
|
code: n,
|
|
352
352
|
grammar: r,
|
|
353
353
|
language: s
|
|
354
354
|
};
|
|
355
|
-
if (c.hooks.run("before-tokenize",
|
|
356
|
-
throw new Error('The language "' +
|
|
357
|
-
return
|
|
355
|
+
if (c.hooks.run("before-tokenize", u), !u.grammar)
|
|
356
|
+
throw new Error('The language "' + u.language + '" has no grammar.');
|
|
357
|
+
return u.tokens = c.tokenize(u.code, u.grammar), c.hooks.run("after-tokenize", u), h.stringify(c.util.encode(u.tokens), u.language);
|
|
358
358
|
},
|
|
359
359
|
/**
|
|
360
360
|
* This is the heart of Prism, and the most low-level function you can use. It accepts a string of text as input
|
|
@@ -383,12 +383,12 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
383
383
|
tokenize: function(n, r) {
|
|
384
384
|
var s = r.rest;
|
|
385
385
|
if (s) {
|
|
386
|
-
for (var
|
|
387
|
-
r[
|
|
386
|
+
for (var u in s)
|
|
387
|
+
r[u] = s[u];
|
|
388
388
|
delete r.rest;
|
|
389
389
|
}
|
|
390
|
-
var
|
|
391
|
-
return
|
|
390
|
+
var l = new b();
|
|
391
|
+
return f(l, l.head, n), d(n, l, r, l.head, 0), w(l);
|
|
392
392
|
},
|
|
393
393
|
/**
|
|
394
394
|
* @namespace
|
|
@@ -425,90 +425,90 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
425
425
|
run: function(n, r) {
|
|
426
426
|
var s = c.hooks.all[n];
|
|
427
427
|
if (!(!s || !s.length))
|
|
428
|
-
for (var
|
|
429
|
-
|
|
428
|
+
for (var u = 0, l; l = s[u++]; )
|
|
429
|
+
l(r);
|
|
430
430
|
}
|
|
431
431
|
},
|
|
432
432
|
Token: h
|
|
433
433
|
};
|
|
434
|
-
function h(n, r, s,
|
|
435
|
-
this.type = n, this.content = r, this.alias = s, this.length = (
|
|
434
|
+
function h(n, r, s, u) {
|
|
435
|
+
this.type = n, this.content = r, this.alias = s, this.length = (u || "").length | 0;
|
|
436
436
|
}
|
|
437
437
|
h.stringify = function n(r, s) {
|
|
438
438
|
if (typeof r == "string")
|
|
439
439
|
return r;
|
|
440
440
|
if (Array.isArray(r)) {
|
|
441
|
-
var
|
|
442
|
-
return r.forEach(function(
|
|
443
|
-
|
|
444
|
-
}),
|
|
441
|
+
var u = "";
|
|
442
|
+
return r.forEach(function(A) {
|
|
443
|
+
u += n(A, s);
|
|
444
|
+
}), u;
|
|
445
445
|
}
|
|
446
|
-
var
|
|
446
|
+
var l = {
|
|
447
447
|
type: r.type,
|
|
448
448
|
content: n(r.content, s),
|
|
449
449
|
tag: "span",
|
|
450
450
|
classes: ["token", r.type],
|
|
451
451
|
attributes: {},
|
|
452
452
|
language: s
|
|
453
|
-
},
|
|
454
|
-
|
|
455
|
-
var
|
|
456
|
-
for (var
|
|
457
|
-
|
|
458
|
-
return "<" +
|
|
453
|
+
}, g = r.alias;
|
|
454
|
+
g && (Array.isArray(g) ? Array.prototype.push.apply(l.classes, g) : l.classes.push(g)), c.hooks.run("wrap", l);
|
|
455
|
+
var k = "";
|
|
456
|
+
for (var x in l.attributes)
|
|
457
|
+
k += " " + x + '="' + (l.attributes[x] || "").replace(/"/g, """) + '"';
|
|
458
|
+
return "<" + l.tag + ' class="' + l.classes.join(" ") + '"' + k + ">" + l.content + "</" + l.tag + ">";
|
|
459
459
|
};
|
|
460
|
-
function
|
|
460
|
+
function p(n, r, s, u) {
|
|
461
461
|
n.lastIndex = r;
|
|
462
|
-
var
|
|
463
|
-
if (
|
|
464
|
-
var
|
|
465
|
-
|
|
462
|
+
var l = n.exec(s);
|
|
463
|
+
if (l && u && l[1]) {
|
|
464
|
+
var g = l[1].length;
|
|
465
|
+
l.index += g, l[0] = l[0].slice(g);
|
|
466
466
|
}
|
|
467
|
-
return
|
|
468
|
-
}
|
|
469
|
-
function
|
|
470
|
-
for (var
|
|
471
|
-
if (!(!s.hasOwnProperty(
|
|
472
|
-
var
|
|
473
|
-
|
|
474
|
-
for (var
|
|
475
|
-
if (
|
|
467
|
+
return l;
|
|
468
|
+
}
|
|
469
|
+
function d(n, r, s, u, l, g) {
|
|
470
|
+
for (var k in s)
|
|
471
|
+
if (!(!s.hasOwnProperty(k) || !s[k])) {
|
|
472
|
+
var x = s[k];
|
|
473
|
+
x = Array.isArray(x) ? x : [x];
|
|
474
|
+
for (var A = 0; A < x.length; ++A) {
|
|
475
|
+
if (g && g.cause == k + "," + A)
|
|
476
476
|
return;
|
|
477
|
-
var
|
|
478
|
-
if (
|
|
479
|
-
var
|
|
480
|
-
|
|
477
|
+
var E = x[A], _ = E.inside, T = !!E.lookbehind, D = !!E.greedy, C = E.alias;
|
|
478
|
+
if (D && !E.pattern.global) {
|
|
479
|
+
var L = E.pattern.toString().match(/[imsuy]*$/)[0];
|
|
480
|
+
E.pattern = RegExp(E.pattern.source, L + "g");
|
|
481
481
|
}
|
|
482
|
-
for (var
|
|
483
|
-
var
|
|
482
|
+
for (var J = E.pattern || E, S = u.next, O = l; S !== r.tail && !(g && O >= g.reach); O += S.value.length, S = S.next) {
|
|
483
|
+
var $ = S.value;
|
|
484
484
|
if (r.length > n.length)
|
|
485
485
|
return;
|
|
486
|
-
if (!(
|
|
487
|
-
var
|
|
488
|
-
if (
|
|
489
|
-
if (
|
|
486
|
+
if (!($ instanceof h)) {
|
|
487
|
+
var P = 1, I;
|
|
488
|
+
if (D) {
|
|
489
|
+
if (I = p(J, O, n, T), !I || I.index >= n.length)
|
|
490
490
|
break;
|
|
491
|
-
var
|
|
492
|
-
for (
|
|
493
|
-
|
|
494
|
-
if (
|
|
491
|
+
var z = I.index, ce = I.index + I[0].length, B = O;
|
|
492
|
+
for (B += S.value.length; z >= B; )
|
|
493
|
+
S = S.next, B += S.value.length;
|
|
494
|
+
if (B -= S.value.length, O = B, S.value instanceof h)
|
|
495
495
|
continue;
|
|
496
|
-
for (var j =
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
} else if (
|
|
496
|
+
for (var j = S; j !== r.tail && (B < ce || typeof j.value == "string"); j = j.next)
|
|
497
|
+
P++, B += j.value.length;
|
|
498
|
+
P--, $ = n.slice(O, B), I.index -= O;
|
|
499
|
+
} else if (I = p(J, 0, $, T), !I)
|
|
500
500
|
continue;
|
|
501
|
-
var
|
|
502
|
-
|
|
503
|
-
var
|
|
504
|
-
|
|
505
|
-
var
|
|
506
|
-
if (
|
|
507
|
-
var
|
|
508
|
-
cause:
|
|
509
|
-
reach:
|
|
501
|
+
var z = I.index, M = I[0], W = $.slice(0, z), ee = $.slice(z + M.length), H = O + $.length;
|
|
502
|
+
g && H > g.reach && (g.reach = H);
|
|
503
|
+
var U = S.prev;
|
|
504
|
+
W && (U = f(r, U, W), O += W.length), v(r, U, P);
|
|
505
|
+
var pe = new h(k, _ ? c.tokenize(M, _) : M, C, M);
|
|
506
|
+
if (S = f(r, U, pe), ee && f(r, S, ee), P > 1) {
|
|
507
|
+
var Y = {
|
|
508
|
+
cause: k + "," + A,
|
|
509
|
+
reach: H
|
|
510
510
|
};
|
|
511
|
-
|
|
511
|
+
d(n, r, s, S.prev, O, Y), g && Y.reach > g.reach && (g.reach = Y.reach);
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
}
|
|
@@ -519,16 +519,16 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
519
519
|
var n = { value: null, prev: null, next: null }, r = { value: null, prev: n, next: null };
|
|
520
520
|
n.next = r, this.head = n, this.tail = r, this.length = 0;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
var
|
|
524
|
-
return r.next =
|
|
522
|
+
function f(n, r, s) {
|
|
523
|
+
var u = r.next, l = { value: s, prev: r, next: u };
|
|
524
|
+
return r.next = l, u.prev = l, n.length++, l;
|
|
525
525
|
}
|
|
526
526
|
function v(n, r, s) {
|
|
527
|
-
for (var
|
|
528
|
-
|
|
529
|
-
r.next =
|
|
527
|
+
for (var u = r.next, l = 0; l < s && u !== n.tail; l++)
|
|
528
|
+
u = u.next;
|
|
529
|
+
r.next = u, u.prev = r, n.length -= l;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function w(n) {
|
|
532
532
|
for (var r = [], s = n.head.next; s !== n.tail; )
|
|
533
533
|
r.push(s.value), s = s.next;
|
|
534
534
|
return r;
|
|
@@ -537,36 +537,36 @@ var Fe = Object.create, W = Object.defineProperty, Te = Object.defineProperties,
|
|
|
537
537
|
}();
|
|
538
538
|
t.exports = a, a.default = a;
|
|
539
539
|
}
|
|
540
|
-
}), o =
|
|
540
|
+
}), o = Fe(Te());
|
|
541
541
|
o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy: !0 }, prolog: { pattern: /<\?[\s\S]+?\?>/, greedy: !0 }, doctype: { pattern: /<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i, greedy: !0, inside: { "internal-subset": { pattern: /(^[^\[]*\[)[\s\S]+(?=\]>$)/, lookbehind: !0, greedy: !0, inside: null }, string: { pattern: /"[^"]*"|'[^']*'/, greedy: !0 }, punctuation: /^<!|>$|[[\]]/, "doctype-tag": /^DOCTYPE/i, name: /[^\s<>'"]+/ } }, cdata: { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, greedy: !0 }, tag: { pattern: /<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/, greedy: !0, inside: { tag: { pattern: /^<\/?[^\s>\/]+/, inside: { punctuation: /^<\/?/, namespace: /^[^\s>\/:]+:/ } }, "special-attr": [], "attr-value": { pattern: /=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/, inside: { punctuation: [{ pattern: /^=/, alias: "attr-equals" }, { pattern: /^(\s*)["']|["']$/, lookbehind: !0 }] } }, punctuation: /\/?>/, "attr-name": { pattern: /[^\s>\/]+/, inside: { namespace: /^[^\s>\/:]+:/ } } } }, entity: [{ pattern: /&[\da-z]{1,8};/i, alias: "named-entity" }, /&#x?[\da-f]{1,8};/i] }, o.languages.markup.tag.inside["attr-value"].inside.entity = o.languages.markup.entity, o.languages.markup.doctype.inside["internal-subset"].inside = o.languages.markup, o.hooks.add("wrap", function(e) {
|
|
542
542
|
e.type === "entity" && (e.attributes.title = e.content.replace(/&/, "&"));
|
|
543
|
-
}), Object.defineProperty(o.languages.markup.tag, "addInlined", { value: function(e,
|
|
544
|
-
var a = {}, a = (a["language-" +
|
|
545
|
-
|
|
543
|
+
}), Object.defineProperty(o.languages.markup.tag, "addInlined", { value: function(e, i) {
|
|
544
|
+
var a = {}, a = (a["language-" + i] = { pattern: /(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i, lookbehind: !0, inside: o.languages[i] }, a.cdata = /^<!\[CDATA\[|\]\]>$/i, { "included-cdata": { pattern: /<!\[CDATA\[[\s\S]*?\]\]>/i, inside: a } }), i = (a["language-" + i] = { pattern: /[\s\S]+/, inside: o.languages[i] }, {});
|
|
545
|
+
i[e] = { pattern: RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g, function() {
|
|
546
546
|
return e;
|
|
547
|
-
}), "i"), lookbehind: !0, greedy: !0, inside: a }, o.languages.insertBefore("markup", "cdata",
|
|
547
|
+
}), "i"), lookbehind: !0, greedy: !0, inside: a }, o.languages.insertBefore("markup", "cdata", i);
|
|
548
548
|
} }), Object.defineProperty(o.languages.markup.tag, "addAttribute", { value: function(e, t) {
|
|
549
549
|
o.languages.markup.tag.inside["special-attr"].push({ pattern: RegExp(/(^|["'\s])/.source + "(?:" + e + ")" + /\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source, "i"), lookbehind: !0, inside: { "attr-name": /^[^\s=]+/, "attr-value": { pattern: /=[\s\S]+/, inside: { value: { pattern: /(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/, lookbehind: !0, alias: [t, "language-" + t], inside: o.languages[t] }, punctuation: [{ pattern: /^=/, alias: "attr-equals" }, /"|'/] } } } });
|
|
550
550
|
} }), o.languages.html = o.languages.markup, o.languages.mathml = o.languages.markup, o.languages.svg = o.languages.markup, o.languages.xml = o.languages.extend("markup", {}), o.languages.ssml = o.languages.xml, o.languages.atom = o.languages.xml, o.languages.rss = o.languages.xml, function(e) {
|
|
551
|
-
var t = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, a = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,
|
|
552
|
-
e.languages.regex = { "char-class": { pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/, lookbehind: !0, inside: { "char-class-negation": { pattern: /(^\[)\^/, lookbehind: !0, alias: "operator" }, "char-class-punctuation": { pattern: /^\[|\]$/, alias: "punctuation" }, range: { pattern:
|
|
551
|
+
var t = { pattern: /\\[\\(){}[\]^$+*?|.]/, alias: "escape" }, a = /\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/, i = "(?:[^\\\\-]|" + a.source + ")", i = RegExp(i + "-" + i), y = { pattern: /(<|')[^<>']+(?=[>']$)/, lookbehind: !0, alias: "variable" };
|
|
552
|
+
e.languages.regex = { "char-class": { pattern: /((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/, lookbehind: !0, inside: { "char-class-negation": { pattern: /(^\[)\^/, lookbehind: !0, alias: "operator" }, "char-class-punctuation": { pattern: /^\[|\]$/, alias: "punctuation" }, range: { pattern: i, inside: { escape: a, "range-punctuation": { pattern: /-/, alias: "operator" } } }, "special-escape": t, "char-set": { pattern: /\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, escape: a } }, "special-escape": t, "char-set": { pattern: /\.|\\[wsd]|\\p\{[^{}]+\}/i, alias: "class-name" }, backreference: [{ pattern: /\\(?![123][0-7]{2})[1-9]/, alias: "keyword" }, { pattern: /\\k<[^<>']+>/, alias: "keyword", inside: { "group-name": y } }], anchor: { pattern: /[$^]|\\[ABbGZz]/, alias: "function" }, escape: a, group: [{ pattern: /\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/, alias: "punctuation", inside: { "group-name": y } }, { pattern: /\)/, alias: "punctuation" }], quantifier: { pattern: /(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/, alias: "number" }, alternation: { pattern: /\|/, alias: "keyword" } };
|
|
553
553
|
}(o), o.languages.clike = { comment: [{ pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: !0, greedy: !0 }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: !0, greedy: !0 }], string: { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: !0 }, "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i, lookbehind: !0, inside: { punctuation: /[.\\]/ } }, keyword: /\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/, boolean: /\b(?:false|true)\b/, function: /\b\w+(?=\()/, number: /\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i, operator: /[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/, punctuation: /[{}[\];(),.:]/ }, o.languages.javascript = o.languages.extend("clike", { "class-name": [o.languages.clike["class-name"], { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/, lookbehind: !0 }], keyword: [{ pattern: /((?:^|\})\s*)catch\b/, lookbehind: !0 }, { pattern: /(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/, lookbehind: !0 }], function: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/, number: { pattern: RegExp(/(^|[^\w$])/.source + "(?:" + /NaN|Infinity/.source + "|" + /0[bB][01]+(?:_[01]+)*n?/.source + "|" + /0[oO][0-7]+(?:_[0-7]+)*n?/.source + "|" + /0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source + "|" + /\d+(?:_\d+)*n/.source + "|" + /(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source + ")" + /(?![\w$])/.source), lookbehind: !0 }, operator: /--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/ }), o.languages.javascript["class-name"][0].pattern = /(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/, o.languages.insertBefore("javascript", "keyword", { regex: { pattern: RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source + /\//.source + "(?:" + /(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source + "|" + /(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source + ")" + /(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source), lookbehind: !0, greedy: !0, inside: { "regex-source": { pattern: /^(\/)[\s\S]+(?=\/[a-z]*$)/, lookbehind: !0, alias: "language-regex", inside: o.languages.regex }, "regex-delimiter": /^\/|\/$/, "regex-flags": /^[a-z]+$/ } }, "function-variable": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/, alias: "function" }, parameter: [{ pattern: /(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/, lookbehind: !0, inside: o.languages.javascript }, { pattern: /(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i, lookbehind: !0, inside: o.languages.javascript }, { pattern: /(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/, lookbehind: !0, inside: o.languages.javascript }, { pattern: /((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/, lookbehind: !0, inside: o.languages.javascript }], constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/ }), o.languages.insertBefore("javascript", "string", { hashbang: { pattern: /^#!.*/, greedy: !0, alias: "comment" }, "template-string": { pattern: /`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, interpolation: { pattern: /((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/, lookbehind: !0, inside: { "interpolation-punctuation": { pattern: /^\$\{|\}$/, alias: "punctuation" }, rest: o.languages.javascript } }, string: /[\s\S]+/ } }, "string-property": { pattern: /((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m, lookbehind: !0, greedy: !0, alias: "property" } }), o.languages.insertBefore("javascript", "operator", { "literal-property": { pattern: /((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m, lookbehind: !0, alias: "property" } }), o.languages.markup && (o.languages.markup.tag.addInlined("script", "javascript"), o.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source, "javascript")), o.languages.js = o.languages.javascript, o.languages.actionscript = o.languages.extend("javascript", { keyword: /\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/, operator: /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/ }), o.languages.actionscript["class-name"].alias = "function", delete o.languages.actionscript.parameter, delete o.languages.actionscript["literal-property"], o.languages.markup && o.languages.insertBefore("actionscript", "string", { xml: { pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/, lookbehind: !0, inside: o.languages.markup } }), function(e) {
|
|
554
554
|
var t = /#(?!\{).+/, a = { pattern: /#\{[^}]+\}/, alias: "variable" };
|
|
555
555
|
e.languages.coffeescript = e.languages.extend("javascript", { comment: t, string: [{ pattern: /'(?:\\[\s\S]|[^\\'])*'/, greedy: !0 }, { pattern: /"(?:\\[\s\S]|[^\\"])*"/, greedy: !0, inside: { interpolation: a } }], keyword: /\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/, "class-member": { pattern: /@(?!\d)\w+/, alias: "variable" } }), e.languages.insertBefore("coffeescript", "comment", { "multiline-comment": { pattern: /###[\s\S]+?###/, alias: "comment" }, "block-regex": { pattern: /\/{3}[\s\S]*?\/{3}/, alias: "regex", inside: { comment: t, interpolation: a } } }), e.languages.insertBefore("coffeescript", "string", { "inline-javascript": { pattern: /`(?:\\[\s\S]|[^\\`])*`/, inside: { delimiter: { pattern: /^`|`$/, alias: "punctuation" }, script: { pattern: /[\s\S]+/, alias: "language-javascript", inside: e.languages.javascript } } }, "multiline-string": [{ pattern: /'''[\s\S]*?'''/, greedy: !0, alias: "string" }, { pattern: /"""[\s\S]*?"""/, greedy: !0, alias: "string", inside: { interpolation: a } }] }), e.languages.insertBefore("coffeescript", "keyword", { property: /(?!\d)\w+(?=\s*:(?!:))/ }), delete e.languages.coffeescript["template-string"], e.languages.coffee = e.languages.coffeescript;
|
|
556
556
|
}(o), function(e) {
|
|
557
557
|
var t = e.languages.javadoclike = { parameter: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m, lookbehind: !0 }, keyword: { pattern: /(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m, lookbehind: !0 }, punctuation: /[{}]/ };
|
|
558
|
-
Object.defineProperty(t, "addSupport", { value: function(a,
|
|
559
|
-
(a = typeof a == "string" ? [a] : a).forEach(function(
|
|
560
|
-
var m = function(
|
|
561
|
-
|
|
558
|
+
Object.defineProperty(t, "addSupport", { value: function(a, i) {
|
|
559
|
+
(a = typeof a == "string" ? [a] : a).forEach(function(y) {
|
|
560
|
+
var m = function(f) {
|
|
561
|
+
f.inside || (f.inside = {}), f.inside.rest = i;
|
|
562
562
|
}, c = "doc-comment";
|
|
563
|
-
if (h = e.languages[
|
|
564
|
-
var h,
|
|
565
|
-
if ((
|
|
566
|
-
for (var
|
|
567
|
-
|
|
563
|
+
if (h = e.languages[y]) {
|
|
564
|
+
var h, p = h[c];
|
|
565
|
+
if ((p = p || (h = e.languages.insertBefore(y, "comment", { "doc-comment": { pattern: /(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/, lookbehind: !0, alias: "comment" } }))[c]) instanceof RegExp && (p = h[c] = { pattern: p }), Array.isArray(p))
|
|
566
|
+
for (var d = 0, b = p.length; d < b; d++)
|
|
567
|
+
p[d] instanceof RegExp && (p[d] = { pattern: p[d] }), m(p[d]);
|
|
568
568
|
else
|
|
569
|
-
m(
|
|
569
|
+
m(p);
|
|
570
570
|
}
|
|
571
571
|
});
|
|
572
572
|
} }), t.addSupport(["java", "javascript", "php"], t);
|
|
@@ -577,93 +577,93 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
577
577
|
var t = /("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, t = (e.languages.css.selector = { pattern: e.languages.css.selector.pattern, lookbehind: !0, inside: t = { "pseudo-element": /:(?:after|before|first-letter|first-line|selection)|::[-\w]+/, "pseudo-class": /:[-\w]+/, class: /\.[-\w]+/, id: /#[-\w]+/, attribute: { pattern: RegExp(`\\[(?:[^[\\]"']|` + t.source + ")*\\]"), greedy: !0, inside: { punctuation: /^\[|\]$/, "case-sensitivity": { pattern: /(\s)[si]$/i, lookbehind: !0, alias: "keyword" }, namespace: { pattern: /^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/, lookbehind: !0, inside: { punctuation: /\|$/ } }, "attr-name": { pattern: /^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/, lookbehind: !0 }, "attr-value": [t, { pattern: /(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/, lookbehind: !0 }], operator: /[|~*^$]?=/ } }, "n-th": [{ pattern: /(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/, lookbehind: !0, inside: { number: /[\dn]+/, operator: /[+-]/ } }, { pattern: /(\(\s*)(?:even|odd)(?=\s*\))/i, lookbehind: !0 }], combinator: />|\+|~|\|\|/, punctuation: /[(),]/ } }, e.languages.css.atrule.inside["selector-function-argument"].inside = t, e.languages.insertBefore("css", "property", { variable: { pattern: /(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i, lookbehind: !0 } }), { pattern: /(\b\d+)(?:%|[a-z]+(?![\w-]))/, lookbehind: !0 }), a = { pattern: /(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/, lookbehind: !0 };
|
|
578
578
|
e.languages.insertBefore("css", "function", { operator: { pattern: /(\s)[+\-*\/](?=\s)/, lookbehind: !0 }, hexcode: { pattern: /\B#[\da-f]{3,8}\b/i, alias: "color" }, color: [{ pattern: /(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i, lookbehind: !0 }, { pattern: /\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i, inside: { unit: t, number: a, function: /[\w-]+(?=\()/, punctuation: /[(),]/ } }], entity: /\\[\da-f]{1,8}/i, unit: t, number: a });
|
|
579
579
|
}(o), function(e) {
|
|
580
|
-
var t = /[*&][^\s[\]{},]+/, a = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,
|
|
580
|
+
var t = /[*&][^\s[\]{},]+/, a = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, i = "(?:" + a.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + a.source + ")?)", y = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
|
|
581
581
|
return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
|
|
582
582
|
}), m = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
|
|
583
|
-
function c(h,
|
|
584
|
-
|
|
585
|
-
var
|
|
586
|
-
return
|
|
583
|
+
function c(h, p) {
|
|
584
|
+
p = (p || "").replace(/m/g, "") + "m";
|
|
585
|
+
var d = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
|
|
586
|
+
return i;
|
|
587
587
|
}).replace(/<<value>>/g, function() {
|
|
588
588
|
return h;
|
|
589
589
|
});
|
|
590
|
-
return RegExp(
|
|
590
|
+
return RegExp(d, p);
|
|
591
591
|
}
|
|
592
592
|
e.languages.yaml = { scalar: { pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
|
|
593
|
-
return
|
|
593
|
+
return i;
|
|
594
594
|
})), lookbehind: !0, alias: "string" }, comment: /#.*/, key: { pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
|
|
595
|
-
return
|
|
595
|
+
return i;
|
|
596
596
|
}).replace(/<<key>>/g, function() {
|
|
597
|
-
return "(?:" +
|
|
597
|
+
return "(?:" + y + "|" + m + ")";
|
|
598
598
|
})), lookbehind: !0, greedy: !0, alias: "atrule" }, directive: { pattern: /(^[ \t]*)%.+/m, lookbehind: !0, alias: "important" }, datetime: { pattern: c(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source), lookbehind: !0, alias: "number" }, boolean: { pattern: c(/false|true/.source, "i"), lookbehind: !0, alias: "important" }, null: { pattern: c(/null|~/.source, "i"), lookbehind: !0, alias: "important" }, string: { pattern: c(m), lookbehind: !0, greedy: !0 }, number: { pattern: c(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"), lookbehind: !0 }, tag: a, important: t, punctuation: /---|[:[\]{}\-,|>?]|\.\.\./ }, e.languages.yml = e.languages.yaml;
|
|
599
599
|
}(o), function(e) {
|
|
600
600
|
var t = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
|
|
601
|
-
function a(
|
|
602
|
-
return
|
|
601
|
+
function a(d) {
|
|
602
|
+
return d = d.replace(/<inner>/g, function() {
|
|
603
603
|
return t;
|
|
604
|
-
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" +
|
|
604
|
+
}), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + d + ")");
|
|
605
605
|
}
|
|
606
|
-
var
|
|
607
|
-
return
|
|
608
|
-
}), m = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, c = (e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: e.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" +
|
|
606
|
+
var i = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, y = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
|
|
607
|
+
return i;
|
|
608
|
+
}), m = /\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source, c = (e.languages.markdown = e.languages.extend("markup", {}), e.languages.insertBefore("markdown", "prolog", { "front-matter-block": { pattern: /(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/, lookbehind: !0, greedy: !0, inside: { punctuation: /^---|---$/, "front-matter": { pattern: /\S+(?:\s+\S+)*/, alias: ["yaml", "language-yaml"], inside: e.languages.yaml } } }, blockquote: { pattern: /^>(?:[\t ]*>)*/m, alias: "punctuation" }, table: { pattern: RegExp("^" + y + m + "(?:" + y + ")*", "m"), inside: { "table-data-rows": { pattern: RegExp("^(" + y + m + ")(?:" + y + ")*$"), lookbehind: !0, inside: { "table-data": { pattern: RegExp(i), inside: e.languages.markdown }, punctuation: /\|/ } }, "table-line": { pattern: RegExp("^(" + y + ")" + m + "$"), lookbehind: !0, inside: { punctuation: /\||:?-{3,}:?/ } }, "table-header-row": { pattern: RegExp("^" + y + "$"), inside: { "table-header": { pattern: RegExp(i), alias: "important", inside: e.languages.markdown }, punctuation: /\|/ } } } }, code: [{ pattern: /((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/, lookbehind: !0, alias: "keyword" }, { pattern: /^```[\s\S]*?^```$/m, greedy: !0, inside: { "code-block": { pattern: /^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m, lookbehind: !0 }, "code-language": { pattern: /^(```).+/, lookbehind: !0 }, punctuation: /```/ } }], title: [{ pattern: /\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m, alias: "important", inside: { punctuation: /==+$|--+$/ } }, { pattern: /(^\s*)#.+/m, lookbehind: !0, alias: "important", inside: { punctuation: /^#+|#+$/ } }], hr: { pattern: /(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m, lookbehind: !0, alias: "punctuation" }, list: { pattern: /(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m, lookbehind: !0, alias: "punctuation" }, "url-reference": { pattern: /!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/, inside: { variable: { pattern: /^(!?\[)[^\]]+/, lookbehind: !0 }, string: /(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/, punctuation: /^[\[\]!:]|[<>]/ }, alias: "url" }, bold: { pattern: a(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^..)[\s\S]+(?=..$)/, lookbehind: !0, inside: {} }, punctuation: /\*\*|__/ } }, italic: { pattern: a(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^.)[\s\S]+(?=.$)/, lookbehind: !0, inside: {} }, punctuation: /[*_]/ } }, strike: { pattern: a(/(~~?)(?:(?!~)<inner>)+\2/.source), lookbehind: !0, greedy: !0, inside: { content: { pattern: /(^~~?)[\s\S]+(?=\1$)/, lookbehind: !0, inside: {} }, punctuation: /~~?/ } }, "code-snippet": { pattern: /(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/, lookbehind: !0, greedy: !0, alias: ["code", "keyword"] }, url: { pattern: a(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source), lookbehind: !0, greedy: !0, inside: { operator: /^!/, content: { pattern: /(^\[)[^\]]+(?=\])/, lookbehind: !0, inside: {} }, variable: { pattern: /(^\][ \t]?\[)[^\]]+(?=\]$)/, lookbehind: !0 }, url: { pattern: /(^\]\()[^\s)]+/, lookbehind: !0 }, string: { pattern: /(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/, lookbehind: !0 } } } }), ["url", "bold", "italic", "strike"].forEach(function(d) {
|
|
609
609
|
["url", "bold", "italic", "strike", "code-snippet"].forEach(function(b) {
|
|
610
|
-
|
|
610
|
+
d !== b && (e.languages.markdown[d].inside.content.inside[b] = e.languages.markdown[b]);
|
|
611
611
|
});
|
|
612
|
-
}), e.hooks.add("after-tokenize", function(
|
|
613
|
-
|
|
614
|
-
if (
|
|
615
|
-
for (var v = 0,
|
|
616
|
-
var n, r =
|
|
612
|
+
}), e.hooks.add("after-tokenize", function(d) {
|
|
613
|
+
d.language !== "markdown" && d.language !== "md" || function b(f) {
|
|
614
|
+
if (f && typeof f != "string")
|
|
615
|
+
for (var v = 0, w = f.length; v < w; v++) {
|
|
616
|
+
var n, r = f[v];
|
|
617
617
|
r.type !== "code" ? b(r.content) : (n = r.content[1], r = r.content[3], n && r && n.type === "code-language" && r.type === "code-block" && typeof n.content == "string" && (n = n.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp"), n = "language-" + (n = (/[a-z][\w-]*/i.exec(n) || [""])[0].toLowerCase()), r.alias ? typeof r.alias == "string" ? r.alias = [r.alias, n] : r.alias.push(n) : r.alias = [n]));
|
|
618
618
|
}
|
|
619
|
-
}(
|
|
620
|
-
}), e.hooks.add("wrap", function(
|
|
621
|
-
if (
|
|
622
|
-
for (var b = "",
|
|
623
|
-
var
|
|
624
|
-
if (
|
|
625
|
-
b =
|
|
619
|
+
}(d.tokens);
|
|
620
|
+
}), e.hooks.add("wrap", function(d) {
|
|
621
|
+
if (d.type === "code-block") {
|
|
622
|
+
for (var b = "", f = 0, v = d.classes.length; f < v; f++) {
|
|
623
|
+
var w = d.classes[f], w = /language-(.+)/.exec(w);
|
|
624
|
+
if (w) {
|
|
625
|
+
b = w[1];
|
|
626
626
|
break;
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
629
|
var n, r = e.languages[b];
|
|
630
|
-
r ?
|
|
631
|
-
return s = s.replace(c, ""), s = s.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(
|
|
632
|
-
var
|
|
633
|
-
return (
|
|
630
|
+
r ? d.content = e.highlight(function(s) {
|
|
631
|
+
return s = s.replace(c, ""), s = s.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(u, l) {
|
|
632
|
+
var g;
|
|
633
|
+
return (l = l.toLowerCase())[0] === "#" ? (g = l[1] === "x" ? parseInt(l.slice(2), 16) : Number(l.slice(1)), p(g)) : h[l] || u;
|
|
634
634
|
});
|
|
635
|
-
}(
|
|
635
|
+
}(d.content), r, b) : b && b !== "none" && e.plugins.autoloader && (n = "md-" + (/* @__PURE__ */ new Date()).valueOf() + "-" + Math.floor(1e16 * Math.random()), d.attributes.id = n, e.plugins.autoloader.loadLanguages(b, function() {
|
|
636
636
|
var s = document.getElementById(n);
|
|
637
637
|
s && (s.innerHTML = e.highlight(s.textContent, e.languages[b], b));
|
|
638
638
|
}));
|
|
639
639
|
}
|
|
640
|
-
}), RegExp(e.languages.markup.tag.pattern.source, "gi")), h = { amp: "&", lt: "<", gt: ">", quot: '"' },
|
|
640
|
+
}), RegExp(e.languages.markup.tag.pattern.source, "gi")), h = { amp: "&", lt: "<", gt: ">", quot: '"' }, p = String.fromCodePoint || String.fromCharCode;
|
|
641
641
|
e.languages.md = e.languages.markdown;
|
|
642
642
|
}(o), o.languages.graphql = { comment: /#.*/, description: { pattern: /(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i, greedy: !0, alias: "string", inside: { "language-markdown": { pattern: /(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/, lookbehind: !0, inside: o.languages.markdown } } }, string: { pattern: /"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/, greedy: !0 }, number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, boolean: /\b(?:false|true)\b/, variable: /\$[a-z_]\w*/i, directive: { pattern: /@[a-z_]\w*/i, alias: "function" }, "attr-name": { pattern: /\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i, greedy: !0 }, "atom-input": { pattern: /\b[A-Z]\w*Input\b/, alias: "class-name" }, scalar: /\b(?:Boolean|Float|ID|Int|String)\b/, constant: /\b[A-Z][A-Z_\d]*\b/, "class-name": { pattern: /(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/, lookbehind: !0 }, fragment: { pattern: /(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-mutation": { pattern: /(\bmutation\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, "definition-query": { pattern: /(\bquery\s+)[a-zA-Z_]\w*/, lookbehind: !0, alias: "function" }, keyword: /\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/, operator: /[!=|&]|\.{3}/, "property-query": /\w+(?=\s*\()/, object: /\w+(?=\s*\{)/, punctuation: /[!(){}\[\]:=,]/, property: /\w+/ }, o.hooks.add("after-tokenize", function(e) {
|
|
643
643
|
if (e.language === "graphql")
|
|
644
644
|
for (var t = e.tokens.filter(function(n) {
|
|
645
645
|
return typeof n != "string" && n.type !== "comment" && n.type !== "scalar";
|
|
646
646
|
}), a = 0; a < t.length; ) {
|
|
647
|
-
var
|
|
648
|
-
if (
|
|
649
|
-
var
|
|
650
|
-
if (
|
|
647
|
+
var i = t[a++];
|
|
648
|
+
if (i.type === "keyword" && i.content === "mutation") {
|
|
649
|
+
var y = [];
|
|
650
|
+
if (f(["definition-mutation", "punctuation"]) && b(1).content === "(") {
|
|
651
651
|
a += 2;
|
|
652
652
|
var m = v(/^\($/, /^\)$/);
|
|
653
653
|
if (m === -1)
|
|
654
654
|
continue;
|
|
655
655
|
for (; a < m; a++) {
|
|
656
656
|
var c = b(0);
|
|
657
|
-
c.type === "variable" && (
|
|
657
|
+
c.type === "variable" && (w(c, "variable-input"), y.push(c.content));
|
|
658
658
|
}
|
|
659
659
|
a = m + 1;
|
|
660
660
|
}
|
|
661
|
-
if (
|
|
661
|
+
if (f(["punctuation", "property-query"]) && b(0).content === "{" && (a++, w(b(0), "property-mutation"), 0 < y.length)) {
|
|
662
662
|
var h = v(/^\{$/, /^\}$/);
|
|
663
663
|
if (h !== -1)
|
|
664
|
-
for (var
|
|
665
|
-
var
|
|
666
|
-
|
|
664
|
+
for (var p = a; p < h; p++) {
|
|
665
|
+
var d = t[p];
|
|
666
|
+
d.type === "variable" && 0 <= y.indexOf(d.content) && w(d, "variable-input");
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
}
|
|
@@ -671,77 +671,77 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
671
671
|
function b(n) {
|
|
672
672
|
return t[a + n];
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function f(n, r) {
|
|
675
675
|
r = r || 0;
|
|
676
676
|
for (var s = 0; s < n.length; s++) {
|
|
677
|
-
var
|
|
678
|
-
if (!
|
|
677
|
+
var u = b(s + r);
|
|
678
|
+
if (!u || u.type !== n[s])
|
|
679
679
|
return;
|
|
680
680
|
}
|
|
681
681
|
return 1;
|
|
682
682
|
}
|
|
683
683
|
function v(n, r) {
|
|
684
|
-
for (var s = 1,
|
|
685
|
-
var
|
|
686
|
-
if (
|
|
687
|
-
if (n.test(
|
|
684
|
+
for (var s = 1, u = a; u < t.length; u++) {
|
|
685
|
+
var l = t[u], g = l.content;
|
|
686
|
+
if (l.type === "punctuation" && typeof g == "string") {
|
|
687
|
+
if (n.test(g))
|
|
688
688
|
s++;
|
|
689
|
-
else if (r.test(
|
|
690
|
-
return
|
|
689
|
+
else if (r.test(g) && --s === 0)
|
|
690
|
+
return u;
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
693
|
return -1;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function w(n, r) {
|
|
696
696
|
var s = n.alias;
|
|
697
697
|
s ? Array.isArray(s) || (n.alias = s = [s]) : n.alias = s = [], s.push(r);
|
|
698
698
|
}
|
|
699
699
|
}), o.languages.sql = { comment: { pattern: /(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/, lookbehind: !0 }, variable: [{ pattern: /@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/, greedy: !0 }, /@[\w.$]+/], string: { pattern: /(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/, greedy: !0, lookbehind: !0 }, identifier: { pattern: /(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/, greedy: !0, lookbehind: !0, inside: { punctuation: /^`|`$/ } }, function: /\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i, keyword: /\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i, boolean: /\b(?:FALSE|NULL|TRUE)\b/i, number: /\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i, operator: /[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i, punctuation: /[;[\]()`,.]/ }, function(e) {
|
|
700
|
-
var t = e.languages.javascript["template-string"], a = t.pattern.source,
|
|
701
|
-
function c(
|
|
702
|
-
if (e.languages[
|
|
703
|
-
return { pattern: RegExp("((?:" + v + ")\\s*)" + a), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias:
|
|
700
|
+
var t = e.languages.javascript["template-string"], a = t.pattern.source, i = t.inside.interpolation, y = i.inside["interpolation-punctuation"], m = i.pattern.source;
|
|
701
|
+
function c(f, v) {
|
|
702
|
+
if (e.languages[f])
|
|
703
|
+
return { pattern: RegExp("((?:" + v + ")\\s*)" + a), lookbehind: !0, greedy: !0, inside: { "template-punctuation": { pattern: /^`|`$/, alias: "string" }, "embedded-code": { pattern: /[\s\S]+/, alias: f } } };
|
|
704
704
|
}
|
|
705
|
-
function h(
|
|
706
|
-
return
|
|
705
|
+
function h(f, v, w) {
|
|
706
|
+
return f = { code: f, grammar: v, language: w }, e.hooks.run("before-tokenize", f), f.tokens = e.tokenize(f.code, f.grammar), e.hooks.run("after-tokenize", f), f.tokens;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
var s = e.tokenize(
|
|
710
|
-
if (typeof
|
|
711
|
-
return
|
|
712
|
-
for (var
|
|
708
|
+
function p(f, v, w) {
|
|
709
|
+
var s = e.tokenize(f, { interpolation: { pattern: RegExp(m), lookbehind: !0 } }), n = 0, r = {}, s = h(s.map(function(l) {
|
|
710
|
+
if (typeof l == "string")
|
|
711
|
+
return l;
|
|
712
|
+
for (var g, k, l = l.content; f.indexOf((k = n++, g = "___" + w.toUpperCase() + "_" + k + "___")) !== -1; )
|
|
713
713
|
;
|
|
714
|
-
return r[
|
|
715
|
-
}).join(""), v,
|
|
716
|
-
return n = 0, function
|
|
717
|
-
for (var
|
|
718
|
-
if (n >=
|
|
714
|
+
return r[g] = l, g;
|
|
715
|
+
}).join(""), v, w), u = Object.keys(r);
|
|
716
|
+
return n = 0, function l(g) {
|
|
717
|
+
for (var k = 0; k < g.length; k++) {
|
|
718
|
+
if (n >= u.length)
|
|
719
719
|
return;
|
|
720
|
-
var
|
|
721
|
-
typeof
|
|
720
|
+
var x, A, E, _, T, D, C, L = g[k];
|
|
721
|
+
typeof L == "string" || typeof L.content == "string" ? (x = u[n], (C = (D = typeof L == "string" ? L : L.content).indexOf(x)) !== -1 && (++n, A = D.substring(0, C), T = r[x], E = void 0, (_ = {})["interpolation-punctuation"] = y, (_ = e.tokenize(T, _)).length === 3 && ((E = [1, 1]).push.apply(E, h(_[1], e.languages.javascript, "javascript")), _.splice.apply(_, E)), E = new e.Token("interpolation", _, i.alias, T), _ = D.substring(C + x.length), T = [], A && T.push(A), T.push(E), _ && (l(D = [_]), T.push.apply(T, D)), typeof L == "string" ? (g.splice.apply(g, [k, 1].concat(T)), k += T.length - 1) : L.content = T)) : (C = L.content, Array.isArray(C) ? l(C) : l([C]));
|
|
722
722
|
}
|
|
723
|
-
}(s), new e.Token(
|
|
723
|
+
}(s), new e.Token(w, s, "language-" + w, f);
|
|
724
724
|
}
|
|
725
725
|
e.languages.javascript["template-string"] = [c("css", /\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source), c("html", /\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source), c("svg", /\bsvg/.source), c("markdown", /\b(?:markdown|md)/.source), c("graphql", /\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source), c("sql", /\bsql/.source), t].filter(Boolean);
|
|
726
|
-
var
|
|
727
|
-
function b(
|
|
728
|
-
return typeof
|
|
726
|
+
var d = { javascript: !0, js: !0, typescript: !0, ts: !0, jsx: !0, tsx: !0 };
|
|
727
|
+
function b(f) {
|
|
728
|
+
return typeof f == "string" ? f : Array.isArray(f) ? f.map(b).join("") : b(f.content);
|
|
729
729
|
}
|
|
730
|
-
e.hooks.add("after-tokenize", function(
|
|
731
|
-
|
|
732
|
-
for (var n = 0, r =
|
|
733
|
-
var s,
|
|
734
|
-
typeof
|
|
730
|
+
e.hooks.add("after-tokenize", function(f) {
|
|
731
|
+
f.language in d && function v(w) {
|
|
732
|
+
for (var n = 0, r = w.length; n < r; n++) {
|
|
733
|
+
var s, u, l, g = w[n];
|
|
734
|
+
typeof g != "string" && (s = g.content, Array.isArray(s) ? g.type === "template-string" ? (g = s[1], s.length === 3 && typeof g != "string" && g.type === "embedded-code" && (u = b(g), g = g.alias, g = Array.isArray(g) ? g[0] : g, l = e.languages[g]) && (s[1] = p(u, l, g))) : v(s) : typeof s != "string" && v([s]));
|
|
735
735
|
}
|
|
736
|
-
}(
|
|
736
|
+
}(f.tokens);
|
|
737
737
|
});
|
|
738
738
|
}(o), function(e) {
|
|
739
739
|
e.languages.typescript = e.languages.extend("javascript", { "class-name": { pattern: /(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/, lookbehind: !0, greedy: !0, inside: null }, builtin: /\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/ }), e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/, /\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/, /\btype\b(?=\s*(?:[\{*]|$))/), delete e.languages.typescript.parameter, delete e.languages.typescript["literal-property"];
|
|
740
740
|
var t = e.languages.extend("typescript", {});
|
|
741
741
|
delete t["class-name"], e.languages.typescript["class-name"].inside = t, e.languages.insertBefore("typescript", "function", { decorator: { pattern: /@[$\w\xA0-\uFFFF]+/, inside: { at: { pattern: /^@/, alias: "operator" }, function: /^[\s\S]+/ } }, "generic-function": { pattern: /#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/, greedy: !0, inside: { function: /^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: t } } } }), e.languages.ts = e.languages.typescript;
|
|
742
742
|
}(o), function(e) {
|
|
743
|
-
var t = e.languages.javascript, a = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,
|
|
744
|
-
e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(
|
|
743
|
+
var t = e.languages.javascript, a = /\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source, i = "(@(?:arg|argument|param|property)\\s+(?:" + a + "\\s+)?)";
|
|
744
|
+
e.languages.jsdoc = e.languages.extend("javadoclike", { parameter: { pattern: RegExp(i + /(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source), lookbehind: !0, inside: { punctuation: /\./ } } }), e.languages.insertBefore("jsdoc", "keyword", { "optional-parameter": { pattern: RegExp(i + /\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source), lookbehind: !0, inside: { parameter: { pattern: /(^\[)[$\w\xA0-\uFFFF\.]+/, lookbehind: !0, inside: { punctuation: /\./ } }, code: { pattern: /(=)[\s\S]*(?=\]$)/, lookbehind: !0, inside: t, alias: "language-javascript" }, punctuation: /[=[\]]/ } }, "class-name": [{ pattern: RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g, function() {
|
|
745
745
|
return a;
|
|
746
746
|
})), lookbehind: !0, inside: { punctuation: /\./ } }, { pattern: RegExp("(@[a-z]+\\s+)" + a), lookbehind: !0, inside: { string: t.string, number: t.number, boolean: t.boolean, keyword: e.languages.typescript.keyword, operator: /=>|\.\.\.|[&|?:*]/, punctuation: /[.,;=<>{}()[\]]/ } }], example: { pattern: /(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/, lookbehind: !0, inside: { code: { pattern: /^([\t ]*(?:\*\s*)?)\S.*$/m, lookbehind: !0, inside: t, alias: "language-javascript" } } } }), e.languages.javadoclike.addSupport("javascript", e.languages.jsdoc);
|
|
747
747
|
}(o), function(e) {
|
|
@@ -753,33 +753,33 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
753
753
|
}), h);
|
|
754
754
|
}
|
|
755
755
|
e.languages.insertBefore("javascript", "function-variable", { "method-variable": { pattern: RegExp("(\\.\\s*)" + e.languages.javascript["function-variable"].pattern.source), lookbehind: !0, alias: ["function-variable", "method", "function", "property-access"] } }), e.languages.insertBefore("javascript", "function", { method: { pattern: RegExp("(\\.\\s*)" + e.languages.javascript.function.source), lookbehind: !0, alias: ["function", "property-access"] } }), e.languages.insertBefore("javascript", "constant", { "known-class-name": [{ pattern: /\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/, alias: "class-name" }, { pattern: /\b(?:[A-Z]\w*)Error\b/, alias: "class-name" }] }), e.languages.insertBefore("javascript", "keyword", { imports: { pattern: t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source), lookbehind: !0, inside: e.languages.javascript }, exports: { pattern: t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source), lookbehind: !0, inside: e.languages.javascript } }), e.languages.javascript.keyword.unshift({ pattern: /\b(?:as|default|export|from|import)\b/, alias: "module" }, { pattern: /\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/, alias: "control-flow" }, { pattern: /\bnull\b/, alias: ["null", "nil"] }, { pattern: /\bundefined\b/, alias: "nil" }), e.languages.insertBefore("javascript", "operator", { spread: { pattern: /\.{3}/, alias: "operator" }, arrow: { pattern: /=>/, alias: "operator" } }), e.languages.insertBefore("javascript", "punctuation", { "property-access": { pattern: t(/(\.\s*)#?<ID>/.source), lookbehind: !0 }, "maybe-class-name": { pattern: /(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/, lookbehind: !0 }, dom: { pattern: /\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/, alias: "variable" }, console: { pattern: /\bconsole(?=\s*\.)/, alias: "class-name" } });
|
|
756
|
-
for (var a = ["function", "function-variable", "method", "method-variable", "property-access"],
|
|
757
|
-
var m = a[
|
|
758
|
-
(
|
|
756
|
+
for (var a = ["function", "function-variable", "method", "method-variable", "property-access"], i = 0; i < a.length; i++) {
|
|
757
|
+
var m = a[i], y = e.languages.javascript[m], m = (y = e.util.type(y) === "RegExp" ? e.languages.javascript[m] = { pattern: y } : y).inside || {};
|
|
758
|
+
(y.inside = m)["maybe-class-name"] = /^[A-Z][\s\S]*/;
|
|
759
759
|
}
|
|
760
760
|
}(o), function(e) {
|
|
761
|
-
var t = e.util.clone(e.languages.javascript), a = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,
|
|
762
|
-
function m(
|
|
763
|
-
return
|
|
761
|
+
var t = e.util.clone(e.languages.javascript), a = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, i = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, y = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
|
|
762
|
+
function m(p, d) {
|
|
763
|
+
return p = p.replace(/<S>/g, function() {
|
|
764
764
|
return a;
|
|
765
765
|
}).replace(/<BRACES>/g, function() {
|
|
766
|
-
return
|
|
766
|
+
return i;
|
|
767
767
|
}).replace(/<SPREAD>/g, function() {
|
|
768
|
-
return
|
|
769
|
-
}), RegExp(
|
|
768
|
+
return y;
|
|
769
|
+
}), RegExp(p, d);
|
|
770
770
|
}
|
|
771
|
-
|
|
772
|
-
function c(
|
|
773
|
-
for (var
|
|
774
|
-
var
|
|
775
|
-
typeof
|
|
771
|
+
y = m(y).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = m(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", { spread: { pattern: m(/<SPREAD>/.source), inside: e.languages.jsx } }, e.languages.jsx.tag), e.languages.insertBefore("inside", "special-attr", { script: { pattern: m(/=<BRACES>/.source), alias: "language-javascript", inside: { "script-punctuation": { pattern: /^=(?=\{)/, alias: "punctuation" }, rest: e.languages.jsx } } }, e.languages.jsx.tag);
|
|
772
|
+
function c(p) {
|
|
773
|
+
for (var d = [], b = 0; b < p.length; b++) {
|
|
774
|
+
var f = p[b], v = !1;
|
|
775
|
+
typeof f != "string" && (f.type === "tag" && f.content[0] && f.content[0].type === "tag" ? f.content[0].content[0].content === "</" ? 0 < d.length && d[d.length - 1].tagName === h(f.content[0].content[1]) && d.pop() : f.content[f.content.length - 1].content !== "/>" && d.push({ tagName: h(f.content[0].content[1]), openedBraces: 0 }) : 0 < d.length && f.type === "punctuation" && f.content === "{" ? d[d.length - 1].openedBraces++ : 0 < d.length && 0 < d[d.length - 1].openedBraces && f.type === "punctuation" && f.content === "}" ? d[d.length - 1].openedBraces-- : v = !0), (v || typeof f == "string") && 0 < d.length && d[d.length - 1].openedBraces === 0 && (v = h(f), b < p.length - 1 && (typeof p[b + 1] == "string" || p[b + 1].type === "plain-text") && (v += h(p[b + 1]), p.splice(b + 1, 1)), 0 < b && (typeof p[b - 1] == "string" || p[b - 1].type === "plain-text") && (v = h(p[b - 1]) + v, p.splice(b - 1, 1), b--), p[b] = new e.Token("plain-text", v, null, v)), f.content && typeof f.content != "string" && c(f.content);
|
|
776
776
|
}
|
|
777
777
|
}
|
|
778
|
-
var h = function(
|
|
779
|
-
return
|
|
778
|
+
var h = function(p) {
|
|
779
|
+
return p ? typeof p == "string" ? p : typeof p.content == "string" ? p.content : p.content.map(h).join("") : "";
|
|
780
780
|
};
|
|
781
|
-
e.hooks.add("after-tokenize", function(
|
|
782
|
-
|
|
781
|
+
e.hooks.add("after-tokenize", function(p) {
|
|
782
|
+
p.language !== "jsx" && p.language !== "tsx" || c(p.tokens);
|
|
783
783
|
});
|
|
784
784
|
}(o), function(e) {
|
|
785
785
|
var t = e.util.clone(e.languages.typescript), t = (e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"], e.languages.tsx.tag);
|
|
@@ -808,30 +808,30 @@ o.languages.markup = { comment: { pattern: /<!--(?:(?!<!--)[\s\S])*?-->/, greedy
|
|
|
808
808
|
return a;
|
|
809
809
|
}) + ")"), lookbehind: !0, greedy: !0, inside: { string: /^[<"][\s\S]+/, operator: /:/, punctuation: /\./ } }, "raw-string": { pattern: /R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/, alias: "string", greedy: !0 } }), e.languages.insertBefore("cpp", "keyword", { "generic-function": { pattern: /\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i, inside: { function: /^\w+/, generic: { pattern: /<[\s\S]+/, alias: "class-name", inside: e.languages.cpp } } } }), e.languages.insertBefore("cpp", "operator", { "double-colon": { pattern: /::/, alias: "punctuation" } }), e.languages.insertBefore("cpp", "class-name", { "base-clause": { pattern: /(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/, lookbehind: !0, greedy: !0, inside: e.languages.extend("cpp", {}) } }), e.languages.insertBefore("inside", "double-colon", { "class-name": /\b[a-z_]\w*\b(?!\s*::)/i }, e.languages.cpp["base-clause"]);
|
|
810
810
|
}(o), o.languages.python = { comment: { pattern: /(^|[^\\])#.*/, lookbehind: !0, greedy: !0 }, "string-interpolation": { pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i, greedy: !0, inside: { interpolation: { pattern: /((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/, lookbehind: !0, inside: { "format-spec": { pattern: /(:)[^:(){}]+(?=\}$)/, lookbehind: !0 }, "conversion-option": { pattern: //, alias: "punctuation" }, rest: null } }, string: /[\s\S]+/ } }, "triple-quoted-string": { pattern: /(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i, greedy: !0, alias: "string" }, string: { pattern: /(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i, greedy: !0 }, function: { pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g, lookbehind: !0 }, "class-name": { pattern: /(\bclass\s+)\w+/i, lookbehind: !0 }, decorator: { pattern: /(^[\t ]*)@\w+(?:\.\w+)*/m, lookbehind: !0, alias: ["annotation", "punctuation"], inside: { punctuation: /\./ } }, keyword: /\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/, builtin: /\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/, boolean: /\b(?:False|None|True)\b/, number: /\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i, operator: /[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/, punctuation: /[{}[\];(),.:]/ }, o.languages.python["string-interpolation"].inside.interpolation.inside.rest = o.languages.python, o.languages.py = o.languages.python, o.languages.json = { property: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/, lookbehind: !0, greedy: !0 }, string: { pattern: /(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/, lookbehind: !0, greedy: !0 }, comment: { pattern: /\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/, greedy: !0 }, number: /-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i, punctuation: /[{}[\],]/, operator: /:/, boolean: /\b(?:false|true)\b/, null: { pattern: /\bnull\b/, alias: "keyword" } }, o.languages.webmanifest = o.languages.json;
|
|
811
|
-
var
|
|
812
|
-
|
|
813
|
-
dracula: () =>
|
|
814
|
-
duotoneDark: () =>
|
|
815
|
-
duotoneLight: () =>
|
|
816
|
-
github: () =>
|
|
817
|
-
gruvboxMaterialDark: () =>
|
|
818
|
-
gruvboxMaterialLight: () =>
|
|
819
|
-
jettwaveDark: () =>
|
|
820
|
-
jettwaveLight: () =>
|
|
821
|
-
nightOwl: () =>
|
|
822
|
-
nightOwlLight: () =>
|
|
823
|
-
oceanicNext: () =>
|
|
824
|
-
okaidia: () =>
|
|
825
|
-
oneDark: () =>
|
|
826
|
-
oneLight: () =>
|
|
827
|
-
palenight: () =>
|
|
828
|
-
shadesOfPurple: () =>
|
|
829
|
-
synthwave84: () =>
|
|
830
|
-
ultramin: () =>
|
|
831
|
-
vsDark: () =>
|
|
832
|
-
vsLight: () =>
|
|
811
|
+
var X = {};
|
|
812
|
+
Se(X, {
|
|
813
|
+
dracula: () => Ie,
|
|
814
|
+
duotoneDark: () => Oe,
|
|
815
|
+
duotoneLight: () => Ce,
|
|
816
|
+
github: () => Be,
|
|
817
|
+
gruvboxMaterialDark: () => pt,
|
|
818
|
+
gruvboxMaterialLight: () => gt,
|
|
819
|
+
jettwaveDark: () => nt,
|
|
820
|
+
jettwaveLight: () => ot,
|
|
821
|
+
nightOwl: () => je,
|
|
822
|
+
nightOwlLight: () => ze,
|
|
823
|
+
oceanicNext: () => Ue,
|
|
824
|
+
okaidia: () => Ze,
|
|
825
|
+
oneDark: () => lt,
|
|
826
|
+
oneLight: () => ut,
|
|
827
|
+
palenight: () => We,
|
|
828
|
+
shadesOfPurple: () => Ye,
|
|
829
|
+
synthwave84: () => Ve,
|
|
830
|
+
ultramin: () => Qe,
|
|
831
|
+
vsDark: () => ue,
|
|
832
|
+
vsLight: () => tt
|
|
833
833
|
});
|
|
834
|
-
var
|
|
834
|
+
var Re = {
|
|
835
835
|
plain: {
|
|
836
836
|
color: "#F8F8F2",
|
|
837
837
|
backgroundColor: "#282A36"
|
|
@@ -893,7 +893,7 @@ var $e = {
|
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
895
|
]
|
|
896
|
-
},
|
|
896
|
+
}, Ie = Re, Le = {
|
|
897
897
|
plain: {
|
|
898
898
|
backgroundColor: "#2a2734",
|
|
899
899
|
color: "#9a86fd"
|
|
@@ -987,7 +987,7 @@ var $e = {
|
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
989
|
]
|
|
990
|
-
},
|
|
990
|
+
}, Oe = Le, Ne = {
|
|
991
991
|
plain: {
|
|
992
992
|
backgroundColor: "#faf8f5",
|
|
993
993
|
color: "#728fcb"
|
|
@@ -1085,7 +1085,7 @@ var $e = {
|
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
1087
|
]
|
|
1088
|
-
},
|
|
1088
|
+
}, Ce = Ne, De = {
|
|
1089
1089
|
plain: {
|
|
1090
1090
|
color: "#393A34",
|
|
1091
1091
|
backgroundColor: "#f6f8fa"
|
|
@@ -1158,7 +1158,7 @@ var $e = {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
1160
|
]
|
|
1161
|
-
},
|
|
1161
|
+
}, Be = De, $e = {
|
|
1162
1162
|
plain: {
|
|
1163
1163
|
color: "#d6deeb",
|
|
1164
1164
|
backgroundColor: "#011627"
|
|
@@ -1262,7 +1262,7 @@ var $e = {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
1264
|
]
|
|
1265
|
-
},
|
|
1265
|
+
}, je = $e, Pe = {
|
|
1266
1266
|
plain: {
|
|
1267
1267
|
color: "#403f53",
|
|
1268
1268
|
backgroundColor: "#FBFBFB"
|
|
@@ -1354,7 +1354,7 @@ var $e = {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
]
|
|
1357
|
-
},
|
|
1357
|
+
}, ze = Pe, R = {
|
|
1358
1358
|
char: "#D8DEE9",
|
|
1359
1359
|
comment: "#999999",
|
|
1360
1360
|
keyword: "#c5a5c5",
|
|
@@ -1362,13 +1362,10 @@ var $e = {
|
|
|
1362
1362
|
string: "#8dc891",
|
|
1363
1363
|
variable: "#d7deea",
|
|
1364
1364
|
boolean: "#ff8b50",
|
|
1365
|
-
punctuation: "#5FB3B3",
|
|
1366
1365
|
tag: "#fc929e",
|
|
1367
1366
|
function: "#79b6f2",
|
|
1368
|
-
className: "#FAC863"
|
|
1369
|
-
|
|
1370
|
-
operator: "#fc929e"
|
|
1371
|
-
}, Ke = {
|
|
1367
|
+
className: "#FAC863"
|
|
1368
|
+
}, Me = {
|
|
1372
1369
|
plain: {
|
|
1373
1370
|
backgroundColor: "#282c34",
|
|
1374
1371
|
color: "#ffffff"
|
|
@@ -1377,13 +1374,13 @@ var $e = {
|
|
|
1377
1374
|
{
|
|
1378
1375
|
types: ["attr-name"],
|
|
1379
1376
|
style: {
|
|
1380
|
-
color:
|
|
1377
|
+
color: R.keyword
|
|
1381
1378
|
}
|
|
1382
1379
|
},
|
|
1383
1380
|
{
|
|
1384
1381
|
types: ["attr-value"],
|
|
1385
1382
|
style: {
|
|
1386
|
-
color:
|
|
1383
|
+
color: R.string
|
|
1387
1384
|
}
|
|
1388
1385
|
},
|
|
1389
1386
|
{
|
|
@@ -1396,7 +1393,7 @@ var $e = {
|
|
|
1396
1393
|
"shebang"
|
|
1397
1394
|
],
|
|
1398
1395
|
style: {
|
|
1399
|
-
color:
|
|
1396
|
+
color: R.comment
|
|
1400
1397
|
}
|
|
1401
1398
|
},
|
|
1402
1399
|
{
|
|
@@ -1409,61 +1406,61 @@ var $e = {
|
|
|
1409
1406
|
"deleted"
|
|
1410
1407
|
],
|
|
1411
1408
|
style: {
|
|
1412
|
-
color:
|
|
1409
|
+
color: R.primitive
|
|
1413
1410
|
}
|
|
1414
1411
|
},
|
|
1415
1412
|
{
|
|
1416
1413
|
types: ["boolean"],
|
|
1417
1414
|
style: {
|
|
1418
|
-
color:
|
|
1415
|
+
color: R.boolean
|
|
1419
1416
|
}
|
|
1420
1417
|
},
|
|
1421
1418
|
{
|
|
1422
1419
|
types: ["tag"],
|
|
1423
1420
|
style: {
|
|
1424
|
-
color:
|
|
1421
|
+
color: R.tag
|
|
1425
1422
|
}
|
|
1426
1423
|
},
|
|
1427
1424
|
{
|
|
1428
1425
|
types: ["string"],
|
|
1429
1426
|
style: {
|
|
1430
|
-
color:
|
|
1427
|
+
color: R.string
|
|
1431
1428
|
}
|
|
1432
1429
|
},
|
|
1433
1430
|
{
|
|
1434
1431
|
types: ["punctuation"],
|
|
1435
1432
|
style: {
|
|
1436
|
-
color:
|
|
1433
|
+
color: R.string
|
|
1437
1434
|
}
|
|
1438
1435
|
},
|
|
1439
1436
|
{
|
|
1440
1437
|
types: ["selector", "char", "builtin", "inserted"],
|
|
1441
1438
|
style: {
|
|
1442
|
-
color:
|
|
1439
|
+
color: R.char
|
|
1443
1440
|
}
|
|
1444
1441
|
},
|
|
1445
1442
|
{
|
|
1446
1443
|
types: ["function"],
|
|
1447
1444
|
style: {
|
|
1448
|
-
color:
|
|
1445
|
+
color: R.function
|
|
1449
1446
|
}
|
|
1450
1447
|
},
|
|
1451
1448
|
{
|
|
1452
1449
|
types: ["operator", "entity", "url", "variable"],
|
|
1453
1450
|
style: {
|
|
1454
|
-
color:
|
|
1451
|
+
color: R.variable
|
|
1455
1452
|
}
|
|
1456
1453
|
},
|
|
1457
1454
|
{
|
|
1458
1455
|
types: ["keyword"],
|
|
1459
1456
|
style: {
|
|
1460
|
-
color:
|
|
1457
|
+
color: R.keyword
|
|
1461
1458
|
}
|
|
1462
1459
|
},
|
|
1463
1460
|
{
|
|
1464
1461
|
types: ["atrule", "class-name"],
|
|
1465
1462
|
style: {
|
|
1466
|
-
color:
|
|
1463
|
+
color: R.className
|
|
1467
1464
|
}
|
|
1468
1465
|
},
|
|
1469
1466
|
{
|
|
@@ -1491,7 +1488,7 @@ var $e = {
|
|
|
1491
1488
|
}
|
|
1492
1489
|
}
|
|
1493
1490
|
]
|
|
1494
|
-
},
|
|
1491
|
+
}, Ue = Me, Ge = {
|
|
1495
1492
|
plain: {
|
|
1496
1493
|
color: "#f8f8f2",
|
|
1497
1494
|
backgroundColor: "#272822"
|
|
@@ -1606,7 +1603,7 @@ var $e = {
|
|
|
1606
1603
|
}
|
|
1607
1604
|
}
|
|
1608
1605
|
]
|
|
1609
|
-
},
|
|
1606
|
+
}, Ze = Ge, qe = {
|
|
1610
1607
|
plain: {
|
|
1611
1608
|
color: "#bfc7d5",
|
|
1612
1609
|
backgroundColor: "#292d3e"
|
|
@@ -1699,7 +1696,7 @@ var $e = {
|
|
|
1699
1696
|
}
|
|
1700
1697
|
}
|
|
1701
1698
|
]
|
|
1702
|
-
},
|
|
1699
|
+
}, We = qe, He = {
|
|
1703
1700
|
plain: {
|
|
1704
1701
|
color: "#9EFEFF",
|
|
1705
1702
|
backgroundColor: "#2D2A55"
|
|
@@ -1787,7 +1784,7 @@ var $e = {
|
|
|
1787
1784
|
}
|
|
1788
1785
|
}
|
|
1789
1786
|
]
|
|
1790
|
-
},
|
|
1787
|
+
}, Ye = He, Ke = {
|
|
1791
1788
|
plain: {
|
|
1792
1789
|
backgroundColor: "linear-gradient(to bottom, #2a2139 75%, #34294f)",
|
|
1793
1790
|
backgroundImage: "#34294f",
|
|
@@ -1912,7 +1909,7 @@ var $e = {
|
|
|
1912
1909
|
}
|
|
1913
1910
|
}
|
|
1914
1911
|
]
|
|
1915
|
-
},
|
|
1912
|
+
}, Ve = Ke, Xe = {
|
|
1916
1913
|
plain: {
|
|
1917
1914
|
color: "#282a2e",
|
|
1918
1915
|
backgroundColor: "#ffffff"
|
|
@@ -1937,7 +1934,7 @@ var $e = {
|
|
|
1937
1934
|
}
|
|
1938
1935
|
}
|
|
1939
1936
|
]
|
|
1940
|
-
},
|
|
1937
|
+
}, Qe = Xe, Je = {
|
|
1941
1938
|
plain: {
|
|
1942
1939
|
color: "#9CDCFE",
|
|
1943
1940
|
backgroundColor: "#1E1E1E"
|
|
@@ -2039,7 +2036,7 @@ var $e = {
|
|
|
2039
2036
|
}
|
|
2040
2037
|
}
|
|
2041
2038
|
]
|
|
2042
|
-
},
|
|
2039
|
+
}, ue = Je, et = {
|
|
2043
2040
|
plain: {
|
|
2044
2041
|
color: "#000000",
|
|
2045
2042
|
backgroundColor: "#ffffff"
|
|
@@ -2112,7 +2109,7 @@ var $e = {
|
|
|
2112
2109
|
}
|
|
2113
2110
|
}
|
|
2114
2111
|
]
|
|
2115
|
-
},
|
|
2112
|
+
}, tt = et, at = {
|
|
2116
2113
|
plain: {
|
|
2117
2114
|
color: "#f8fafc",
|
|
2118
2115
|
backgroundColor: "#011627"
|
|
@@ -2211,7 +2208,7 @@ var $e = {
|
|
|
2211
2208
|
}
|
|
2212
2209
|
}
|
|
2213
2210
|
]
|
|
2214
|
-
},
|
|
2211
|
+
}, nt = at, rt = {
|
|
2215
2212
|
plain: {
|
|
2216
2213
|
color: "#0f172a",
|
|
2217
2214
|
backgroundColor: "#f1f5f9"
|
|
@@ -2310,7 +2307,7 @@ var $e = {
|
|
|
2310
2307
|
}
|
|
2311
2308
|
}
|
|
2312
2309
|
]
|
|
2313
|
-
},
|
|
2310
|
+
}, ot = rt, st = {
|
|
2314
2311
|
plain: {
|
|
2315
2312
|
backgroundColor: "hsl(220, 13%, 18%)",
|
|
2316
2313
|
color: "hsl(220, 14%, 71%)",
|
|
@@ -2408,7 +2405,7 @@ var $e = {
|
|
|
2408
2405
|
}
|
|
2409
2406
|
}
|
|
2410
2407
|
]
|
|
2411
|
-
},
|
|
2408
|
+
}, lt = st, it = {
|
|
2412
2409
|
plain: {
|
|
2413
2410
|
backgroundColor: "hsl(230, 1%, 98%)",
|
|
2414
2411
|
color: "hsl(230, 8%, 24%)"
|
|
@@ -2509,7 +2506,7 @@ var $e = {
|
|
|
2509
2506
|
}
|
|
2510
2507
|
}
|
|
2511
2508
|
]
|
|
2512
|
-
},
|
|
2509
|
+
}, ut = it, ct = {
|
|
2513
2510
|
plain: {
|
|
2514
2511
|
color: "#ebdbb2",
|
|
2515
2512
|
backgroundColor: "#292828"
|
|
@@ -2582,7 +2579,7 @@ var $e = {
|
|
|
2582
2579
|
}
|
|
2583
2580
|
}
|
|
2584
2581
|
]
|
|
2585
|
-
},
|
|
2582
|
+
}, pt = ct, dt = {
|
|
2586
2583
|
plain: {
|
|
2587
2584
|
color: "#654735",
|
|
2588
2585
|
backgroundColor: "#f9f5d7"
|
|
@@ -2654,62 +2651,46 @@ var $e = {
|
|
|
2654
2651
|
}
|
|
2655
2652
|
}
|
|
2656
2653
|
]
|
|
2657
|
-
},
|
|
2658
|
-
const { plain: a } = e, l = e.styles.reduce((p, m) => {
|
|
2659
|
-
const { languages: c, style: h } = m;
|
|
2660
|
-
return c && !c.includes(t) || m.types.forEach((u) => {
|
|
2661
|
-
const g = B(B({}, p[u]), h);
|
|
2662
|
-
p[u] = g;
|
|
2663
|
-
}), p;
|
|
2664
|
-
}, {});
|
|
2665
|
-
return l.root = a, l.plain = q(B({}, a), { backgroundColor: void 0 }), l;
|
|
2666
|
-
}, oe = Et, xt = (e, t) => {
|
|
2667
|
-
const [a, l] = de(
|
|
2668
|
-
oe(t, e)
|
|
2669
|
-
), p = V(), m = V();
|
|
2670
|
-
return Ee(() => {
|
|
2671
|
-
(t !== p.current || e !== m.current) && (p.current = t, m.current = e, l(oe(t, e)));
|
|
2672
|
-
}, [e, t]), a;
|
|
2673
|
-
}, St = (e) => X(
|
|
2654
|
+
}, gt = dt, yt = (e) => V(
|
|
2674
2655
|
(t) => {
|
|
2675
|
-
var a = t, { className:
|
|
2676
|
-
const h = q(
|
|
2677
|
-
className:
|
|
2656
|
+
var a = t, { className: i, style: y, line: m } = a, c = ie(a, ["className", "style", "line"]);
|
|
2657
|
+
const h = q(N({}, c), {
|
|
2658
|
+
className: oe("token-line", i)
|
|
2678
2659
|
});
|
|
2679
|
-
return typeof e == "object" && "plain" in e && (h.style = e.plain), typeof
|
|
2660
|
+
return typeof e == "object" && "plain" in e && (h.style = e.plain), typeof y == "object" && (h.style = N(N({}, h.style || {}), y)), h;
|
|
2680
2661
|
},
|
|
2681
2662
|
[e]
|
|
2682
|
-
),
|
|
2683
|
-
const t =
|
|
2684
|
-
({ types: a, empty:
|
|
2663
|
+
), ft = (e) => {
|
|
2664
|
+
const t = V(
|
|
2665
|
+
({ types: a, empty: i }) => {
|
|
2685
2666
|
if (e != null) {
|
|
2686
2667
|
{
|
|
2687
2668
|
if (a.length === 1 && a[0] === "plain")
|
|
2688
|
-
return
|
|
2689
|
-
if (a.length === 1 &&
|
|
2669
|
+
return i != null ? { display: "inline-block" } : void 0;
|
|
2670
|
+
if (a.length === 1 && i != null)
|
|
2690
2671
|
return e[a[0]];
|
|
2691
2672
|
}
|
|
2692
2673
|
return Object.assign(
|
|
2693
|
-
|
|
2694
|
-
...a.map((
|
|
2674
|
+
i != null ? { display: "inline-block" } : {},
|
|
2675
|
+
...a.map((y) => e[y])
|
|
2695
2676
|
);
|
|
2696
2677
|
}
|
|
2697
2678
|
},
|
|
2698
2679
|
[e]
|
|
2699
2680
|
);
|
|
2700
|
-
return
|
|
2681
|
+
return V(
|
|
2701
2682
|
(a) => {
|
|
2702
|
-
var
|
|
2703
|
-
const
|
|
2704
|
-
className:
|
|
2705
|
-
children:
|
|
2706
|
-
style: t(
|
|
2683
|
+
var i = a, { token: y, className: m, style: c } = i, h = ie(i, ["token", "className", "style"]);
|
|
2684
|
+
const p = q(N({}, h), {
|
|
2685
|
+
className: oe("token", ...y.types, m),
|
|
2686
|
+
children: y.content,
|
|
2687
|
+
style: t(y)
|
|
2707
2688
|
});
|
|
2708
|
-
return c != null && (
|
|
2689
|
+
return c != null && (p.style = N(N({}, p.style || {}), c)), p;
|
|
2709
2690
|
},
|
|
2710
2691
|
[t]
|
|
2711
2692
|
);
|
|
2712
|
-
},
|
|
2693
|
+
}, bt = /\r\n|\r|\n/, ae = (e) => {
|
|
2713
2694
|
e.length === 0 ? e.push({
|
|
2714
2695
|
types: ["plain"],
|
|
2715
2696
|
content: `
|
|
@@ -2717,66 +2698,78 @@ var $e = {
|
|
|
2717
2698
|
empty: !0
|
|
2718
2699
|
}) : e.length === 1 && e[0].content === "" && (e[0].content = `
|
|
2719
2700
|
`, e[0].empty = !0);
|
|
2720
|
-
},
|
|
2701
|
+
}, ne = (e, t) => {
|
|
2721
2702
|
const a = e.length;
|
|
2722
2703
|
return a > 0 && e[a - 1] === t ? e : e.concat(t);
|
|
2723
|
-
},
|
|
2724
|
-
const t = [[]], a = [e],
|
|
2704
|
+
}, mt = (e) => {
|
|
2705
|
+
const t = [[]], a = [e], i = [0], y = [e.length];
|
|
2725
2706
|
let m = 0, c = 0, h = [];
|
|
2726
|
-
const
|
|
2707
|
+
const p = [h];
|
|
2727
2708
|
for (; c > -1; ) {
|
|
2728
|
-
for (; (m =
|
|
2729
|
-
let
|
|
2709
|
+
for (; (m = i[c]++) < y[c]; ) {
|
|
2710
|
+
let d, b = t[c];
|
|
2730
2711
|
const v = a[c][m];
|
|
2731
|
-
if (typeof v == "string" ? (b = c > 0 ? b : ["plain"],
|
|
2732
|
-
c++, t.push(b), a.push(
|
|
2712
|
+
if (typeof v == "string" ? (b = c > 0 ? b : ["plain"], d = v) : (b = ne(b, v.type), v.alias && (b = ne(b, v.alias)), d = v.content), typeof d != "string") {
|
|
2713
|
+
c++, t.push(b), a.push(d), i.push(0), y.push(d.length);
|
|
2733
2714
|
continue;
|
|
2734
2715
|
}
|
|
2735
|
-
const
|
|
2716
|
+
const w = d.split(bt), n = w.length;
|
|
2736
2717
|
h.push({
|
|
2737
2718
|
types: b,
|
|
2738
|
-
content:
|
|
2719
|
+
content: w[0]
|
|
2739
2720
|
});
|
|
2740
2721
|
for (let r = 1; r < n; r++)
|
|
2741
|
-
|
|
2722
|
+
ae(h), p.push(h = []), h.push({
|
|
2742
2723
|
types: b,
|
|
2743
|
-
content:
|
|
2724
|
+
content: w[r]
|
|
2744
2725
|
});
|
|
2745
2726
|
}
|
|
2746
|
-
c--, t.pop(), a.pop(),
|
|
2727
|
+
c--, t.pop(), a.pop(), i.pop(), y.pop();
|
|
2747
2728
|
}
|
|
2748
|
-
return
|
|
2749
|
-
},
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2729
|
+
return ae(h), p;
|
|
2730
|
+
}, re = mt, ht = ({ prism: e, code: t, grammar: a, language: i }) => ge(() => {
|
|
2731
|
+
if (a == null)
|
|
2732
|
+
return re([t]);
|
|
2733
|
+
const y = {
|
|
2734
|
+
code: t,
|
|
2735
|
+
grammar: a,
|
|
2736
|
+
language: i,
|
|
2737
|
+
tokens: []
|
|
2738
|
+
};
|
|
2739
|
+
return e.hooks.run("before-tokenize", y), y.tokens = e.tokenize(t, a), e.hooks.run("after-tokenize", y), re(y.tokens);
|
|
2740
|
+
}, [
|
|
2741
|
+
t,
|
|
2742
|
+
a,
|
|
2743
|
+
i,
|
|
2744
|
+
// prism is a stable import
|
|
2745
|
+
e
|
|
2746
|
+
]), vt = (e, t) => {
|
|
2747
|
+
const { plain: a } = e, i = e.styles.reduce((y, m) => {
|
|
2748
|
+
const { languages: c, style: h } = m;
|
|
2749
|
+
return c && !c.includes(t) || m.types.forEach((p) => {
|
|
2750
|
+
const d = N(N({}, y[p]), h);
|
|
2751
|
+
y[p] = d;
|
|
2752
|
+
}), y;
|
|
2753
|
+
}, {});
|
|
2754
|
+
return i.root = a, i.plain = q(N({}, a), { backgroundColor: void 0 }), i;
|
|
2755
|
+
}, kt = vt, wt = ({
|
|
2763
2756
|
children: e,
|
|
2764
2757
|
language: t,
|
|
2765
2758
|
code: a,
|
|
2766
|
-
theme:
|
|
2767
|
-
prism:
|
|
2759
|
+
theme: i,
|
|
2760
|
+
prism: y
|
|
2768
2761
|
}) => {
|
|
2769
|
-
const m = t.toLowerCase(), c =
|
|
2762
|
+
const m = t.toLowerCase(), c = kt(i, m), h = yt(c), p = ft(c), d = y.languages[m], b = ht({ prism: y, language: m, code: a, grammar: d });
|
|
2770
2763
|
return e({
|
|
2771
2764
|
tokens: b,
|
|
2772
2765
|
className: `prism-code language-${m}`,
|
|
2773
2766
|
style: c != null ? c.root : {},
|
|
2774
2767
|
getLineProps: h,
|
|
2775
|
-
getTokenProps:
|
|
2768
|
+
getTokenProps: p
|
|
2776
2769
|
});
|
|
2777
|
-
},
|
|
2770
|
+
}, xt = (e) => de(wt, q(N({}, e), {
|
|
2778
2771
|
prism: e.prism || o,
|
|
2779
|
-
theme: e.theme ||
|
|
2772
|
+
theme: e.theme || ue,
|
|
2780
2773
|
code: e.code,
|
|
2781
2774
|
language: e.language
|
|
2782
2775
|
}));
|
|
@@ -2792,179 +2785,112 @@ prismjs/prism.js:
|
|
|
2792
2785
|
* @public
|
|
2793
2786
|
*)
|
|
2794
2787
|
*/
|
|
2795
|
-
var Lt = (e, t, a, l, p, m, c, h) => {
|
|
2796
|
-
let u = document.documentElement, g = ["light", "dark"];
|
|
2797
|
-
function b(k) {
|
|
2798
|
-
(Array.isArray(e) ? e : [e]).forEach((n) => {
|
|
2799
|
-
let r = n === "class", s = r && m ? p.map((d) => m[d] || d) : p;
|
|
2800
|
-
r ? (u.classList.remove(...s), u.classList.add(k)) : u.setAttribute(n, k);
|
|
2801
|
-
}), y(k);
|
|
2802
|
-
}
|
|
2803
|
-
function y(k) {
|
|
2804
|
-
h && g.includes(k) && (u.style.colorScheme = k);
|
|
2805
|
-
}
|
|
2806
|
-
function v() {
|
|
2807
|
-
return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
2808
|
-
}
|
|
2809
|
-
if (l) b(l);
|
|
2810
|
-
else try {
|
|
2811
|
-
let k = localStorage.getItem(t) || a, n = c && k === "system" ? v() : k;
|
|
2812
|
-
b(n);
|
|
2813
|
-
} catch {
|
|
2814
|
-
}
|
|
2815
|
-
}, ue = ["light", "dark"], he = "(prefers-color-scheme: dark)", Ot = typeof window > "u", ee = _.createContext(void 0), Ct = { setTheme: (e) => {
|
|
2816
|
-
}, themes: [] }, Nt = () => {
|
|
2817
|
-
var e;
|
|
2818
|
-
return (e = _.useContext(ee)) != null ? e : Ct;
|
|
2819
|
-
}, Wt = (e) => _.useContext(ee) ? _.createElement(_.Fragment, null, e.children) : _.createElement(Bt, { ...e }), Dt = ["light", "dark"], Bt = ({ forcedTheme: e, disableTransitionOnChange: t = !1, enableSystem: a = !0, enableColorScheme: l = !0, storageKey: p = "theme", themes: m = Dt, defaultTheme: c = a ? "system" : "light", attribute: h = "data-theme", value: u, children: g, nonce: b, scriptProps: y }) => {
|
|
2820
|
-
let [v, k] = _.useState(() => ce(p, c)), [n, r] = _.useState(() => ce(p)), s = u ? Object.values(u) : m, d = _.useCallback((w) => {
|
|
2821
|
-
let x = w;
|
|
2822
|
-
if (!x) return;
|
|
2823
|
-
w === "system" && a && (x = pe());
|
|
2824
|
-
let S = u ? u[x] : x, F = t ? Pt(b) : null, A = document.documentElement, C = (T) => {
|
|
2825
|
-
T === "class" ? (A.classList.remove(...s), S && A.classList.add(S)) : T.startsWith("data-") && (S ? A.setAttribute(T, S) : A.removeAttribute(T));
|
|
2826
|
-
};
|
|
2827
|
-
if (Array.isArray(h) ? h.forEach(C) : C(h), l) {
|
|
2828
|
-
let T = ue.includes(c) ? c : null, O = ue.includes(x) ? x : T;
|
|
2829
|
-
A.style.colorScheme = O;
|
|
2830
|
-
}
|
|
2831
|
-
F == null || F();
|
|
2832
|
-
}, [b]), i = _.useCallback((w) => {
|
|
2833
|
-
let x = typeof w == "function" ? w(v) : w;
|
|
2834
|
-
k(x);
|
|
2835
|
-
try {
|
|
2836
|
-
localStorage.setItem(p, x);
|
|
2837
|
-
} catch {
|
|
2838
|
-
}
|
|
2839
|
-
}, [v]), f = _.useCallback((w) => {
|
|
2840
|
-
let x = pe(w);
|
|
2841
|
-
r(x), v === "system" && a && !e && d("system");
|
|
2842
|
-
}, [v, e]);
|
|
2843
|
-
_.useEffect(() => {
|
|
2844
|
-
let w = window.matchMedia(he);
|
|
2845
|
-
return w.addListener(f), f(w), () => w.removeListener(f);
|
|
2846
|
-
}, [f]), _.useEffect(() => {
|
|
2847
|
-
let w = (x) => {
|
|
2848
|
-
if (x.key !== p) return;
|
|
2849
|
-
let S = x.newValue || c;
|
|
2850
|
-
i(S);
|
|
2851
|
-
};
|
|
2852
|
-
return window.addEventListener("storage", w), () => window.removeEventListener("storage", w);
|
|
2853
|
-
}, [i]), _.useEffect(() => {
|
|
2854
|
-
d(e ?? v);
|
|
2855
|
-
}, [e, v]);
|
|
2856
|
-
let E = _.useMemo(() => ({ theme: v, setTheme: i, forcedTheme: e, resolvedTheme: v === "system" ? n : v, themes: a ? [...m, "system"] : m, systemTheme: a ? n : void 0 }), [v, i, e, n, a, m]);
|
|
2857
|
-
return _.createElement(ee.Provider, { value: E }, _.createElement($t, { forcedTheme: e, storageKey: p, attribute: h, enableSystem: a, enableColorScheme: l, defaultTheme: c, value: u, themes: m, nonce: b, scriptProps: y }), g);
|
|
2858
|
-
}, $t = _.memo(({ forcedTheme: e, storageKey: t, attribute: a, enableSystem: l, enableColorScheme: p, defaultTheme: m, value: c, themes: h, nonce: u, scriptProps: g }) => {
|
|
2859
|
-
let b = JSON.stringify([a, t, m, e, h, c, l, p]).slice(1, -1);
|
|
2860
|
-
return _.createElement("script", { ...g, suppressHydrationWarning: !0, nonce: typeof window > "u" ? u : "", dangerouslySetInnerHTML: { __html: `(${Lt.toString()})(${b})` } });
|
|
2861
|
-
}), ce = (e, t) => {
|
|
2862
|
-
if (Ot) return;
|
|
2863
|
-
let a;
|
|
2864
|
-
try {
|
|
2865
|
-
a = localStorage.getItem(e) || void 0;
|
|
2866
|
-
} catch {
|
|
2867
|
-
}
|
|
2868
|
-
return a || t;
|
|
2869
|
-
}, Pt = (e) => {
|
|
2870
|
-
let t = document.createElement("style");
|
|
2871
|
-
return e && t.setAttribute("nonce", e), t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")), document.head.appendChild(t), () => {
|
|
2872
|
-
window.getComputedStyle(document.body), setTimeout(() => {
|
|
2873
|
-
document.head.removeChild(t);
|
|
2874
|
-
}, 1);
|
|
2875
|
-
};
|
|
2876
|
-
}, pe = (e) => (e || (e = window.matchMedia(he)), e.matches ? "dark" : "light");
|
|
2877
2788
|
globalThis.Prism = o;
|
|
2878
|
-
import("
|
|
2879
|
-
import("
|
|
2880
|
-
import("
|
|
2881
|
-
import("
|
|
2882
|
-
import("
|
|
2883
|
-
import("
|
|
2884
|
-
import("
|
|
2885
|
-
import("
|
|
2886
|
-
import("
|
|
2887
|
-
import("
|
|
2888
|
-
const
|
|
2789
|
+
import("../prism-bash.min-HHIMdNJ_.js");
|
|
2790
|
+
import("../prism-ruby.min-Dx9KO9ds.js").then((e) => e.p);
|
|
2791
|
+
import("../prism-markup-BNGj0Tvm.js");
|
|
2792
|
+
import("../prism-json.min-B1GJqK1k.js");
|
|
2793
|
+
import("../prism-java.min-BpvsOuIa.js").then((e) => e.p);
|
|
2794
|
+
import("../prism-csharp.min-bQAo2pmx.js").then((e) => e.p);
|
|
2795
|
+
import("../prism-objectivec.min-BXSWqpJJ.js");
|
|
2796
|
+
import("../prism-markdown.min-C0Qn0m-5.js");
|
|
2797
|
+
import("../prism-javascript.min-CEqHqgbm.js");
|
|
2798
|
+
import("../prism-typescript.min-CD7H2IYQ.js").then((e) => e.p);
|
|
2799
|
+
const Et = {
|
|
2889
2800
|
mdx: "md"
|
|
2890
|
-
},
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2801
|
+
}, It = ({
|
|
2802
|
+
language: e = "plain",
|
|
2803
|
+
showCopy: t = "hover",
|
|
2804
|
+
showCopyText: a,
|
|
2805
|
+
title: i,
|
|
2806
|
+
children: y,
|
|
2807
|
+
...m
|
|
2894
2808
|
}) => {
|
|
2895
|
-
const { resolvedTheme:
|
|
2896
|
-
if (!
|
|
2809
|
+
const { resolvedTheme: c } = me(), [h, p] = ye(!1), d = y ?? m.code;
|
|
2810
|
+
if (!d)
|
|
2897
2811
|
return null;
|
|
2898
|
-
const
|
|
2899
|
-
return /* @__PURE__ */
|
|
2900
|
-
|
|
2812
|
+
const b = c === "dark" ? X.vsDark : X.github;
|
|
2813
|
+
return /* @__PURE__ */ F.jsx(
|
|
2814
|
+
he,
|
|
2901
2815
|
{
|
|
2902
|
-
fallback: /* @__PURE__ */
|
|
2903
|
-
/* @__PURE__ */
|
|
2816
|
+
fallback: /* @__PURE__ */ F.jsxs("div", { className: "relative group", children: [
|
|
2817
|
+
i && /* @__PURE__ */ F.jsx("div", { className: "text-xs text-muted-foreground absolute top-2 font-mono border-b w-full pb-2 px-4 ", children: i }),
|
|
2818
|
+
/* @__PURE__ */ F.jsx(
|
|
2904
2819
|
"pre",
|
|
2905
2820
|
{
|
|
2906
|
-
className:
|
|
2821
|
+
className: K(
|
|
2907
2822
|
"relative scrollbar overflow-x-auto",
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2823
|
+
m.className,
|
|
2824
|
+
m.noBackground ? "!bg-transparent" : "bg-[#f6f8fa] text-[#393a34] dark:bg-[#1e1e1e] dark:text-[#9cdcfe]",
|
|
2825
|
+
m.wrapLines && "whitespace-pre-wrap break-words",
|
|
2826
|
+
i && "pt-10"
|
|
2911
2827
|
),
|
|
2912
|
-
children:
|
|
2828
|
+
children: d
|
|
2913
2829
|
}
|
|
2914
2830
|
),
|
|
2915
|
-
|
|
2831
|
+
m.showLanguageIndicator && /* @__PURE__ */ F.jsx("span", { className: "absolute top-1.5 right-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: e })
|
|
2916
2832
|
] }),
|
|
2917
|
-
children: /* @__PURE__ */
|
|
2918
|
-
|
|
2833
|
+
children: /* @__PURE__ */ F.jsx(
|
|
2834
|
+
xt,
|
|
2919
2835
|
{
|
|
2920
|
-
theme:
|
|
2921
|
-
language:
|
|
2922
|
-
...
|
|
2923
|
-
|
|
2924
|
-
|
|
2836
|
+
theme: b,
|
|
2837
|
+
language: Et[e] ?? e,
|
|
2838
|
+
...m,
|
|
2839
|
+
code: d,
|
|
2840
|
+
children: ({ className: v, style: w, tokens: n, getLineProps: r, getTokenProps: s }) => /* @__PURE__ */ F.jsxs("div", { className: "relative group", children: [
|
|
2841
|
+
i && /* @__PURE__ */ F.jsx("div", { className: "text-xs text-muted-foreground absolute top-2 font-mono border-b w-full pb-2 px-4 ", children: i }),
|
|
2842
|
+
/* @__PURE__ */ F.jsx(
|
|
2925
2843
|
"pre",
|
|
2926
2844
|
{
|
|
2927
|
-
className:
|
|
2845
|
+
className: K(
|
|
2928
2846
|
"relative scrollbar overflow-x-auto",
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2847
|
+
v,
|
|
2848
|
+
m.className,
|
|
2849
|
+
m.noBackground && "!bg-transparent",
|
|
2850
|
+
m.wrapLines && "whitespace-pre-wrap break-words",
|
|
2851
|
+
i && "pt-10"
|
|
2933
2852
|
),
|
|
2934
|
-
style:
|
|
2935
|
-
children:
|
|
2853
|
+
style: w,
|
|
2854
|
+
children: n.map((u, l) => (
|
|
2936
2855
|
// eslint-disable-next-line react/no-array-index-key
|
|
2937
|
-
/* @__PURE__ */
|
|
2856
|
+
/* @__PURE__ */ F.jsx("div", { ...r({ line: u }), children: u.map((g, k) => (
|
|
2938
2857
|
// eslint-disable-next-line react/no-array-index-key
|
|
2939
|
-
/* @__PURE__ */
|
|
2940
|
-
)) },
|
|
2858
|
+
/* @__PURE__ */ F.jsx("span", { ...s({ token: g }) }, k)
|
|
2859
|
+
)) }, l)
|
|
2941
2860
|
))
|
|
2942
2861
|
}
|
|
2943
2862
|
),
|
|
2944
|
-
|
|
2945
|
-
|
|
2863
|
+
m.showLanguageIndicator && /* @__PURE__ */ F.jsx("span", { className: "absolute top-1.5 right-3 text-[11px] font-mono text-muted-foreground transition group-hover:opacity-0", children: e }),
|
|
2864
|
+
t !== "never" && /* @__PURE__ */ F.jsxs(
|
|
2946
2865
|
"button",
|
|
2947
2866
|
{
|
|
2948
2867
|
type: "button",
|
|
2949
2868
|
"aria-label": "Copy code",
|
|
2950
2869
|
title: "Copy code",
|
|
2951
|
-
className:
|
|
2952
|
-
|
|
2870
|
+
className: K(
|
|
2871
|
+
"absolute top-2 right-2 p-2 hover:outline hover:outline-border/75 dark:hover:outline-border rounded-md text-sm text-muted-foreground transition",
|
|
2872
|
+
t === "hover" ? "opacity-0 group-hover:opacity-100 group-hover:bg-zinc-100 group-hover:dark:bg-zinc-700" : "bg-zinc-100 dark:bg-zinc-700",
|
|
2873
|
+
a && "flex gap-2 items-center font-medium"
|
|
2874
|
+
),
|
|
2875
|
+
disabled: h,
|
|
2953
2876
|
onClick: () => {
|
|
2954
|
-
|
|
2955
|
-
|
|
2877
|
+
p(!0), navigator.clipboard.writeText(
|
|
2878
|
+
n.map((u) => u.map(({ content: l }) => l).join("")).join(`
|
|
2956
2879
|
`)
|
|
2957
|
-
), setTimeout(() =>
|
|
2880
|
+
), setTimeout(() => p(!1), 2e3);
|
|
2958
2881
|
},
|
|
2959
|
-
children:
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2882
|
+
children: [
|
|
2883
|
+
h ? /* @__PURE__ */ F.jsx(
|
|
2884
|
+
fe,
|
|
2885
|
+
{
|
|
2886
|
+
className: "text-emerald-600",
|
|
2887
|
+
size: 16,
|
|
2888
|
+
strokeWidth: 2.5,
|
|
2889
|
+
absoluteStrokeWidth: !0
|
|
2890
|
+
}
|
|
2891
|
+
) : /* @__PURE__ */ F.jsx(be, { size: 16 }),
|
|
2892
|
+
a && "Copy"
|
|
2893
|
+
]
|
|
2968
2894
|
}
|
|
2969
2895
|
)
|
|
2970
2896
|
] })
|
|
@@ -2974,8 +2900,6 @@ const jt = {
|
|
|
2974
2900
|
);
|
|
2975
2901
|
};
|
|
2976
2902
|
export {
|
|
2977
|
-
|
|
2978
|
-
qt as S,
|
|
2979
|
-
Nt as z
|
|
2903
|
+
It as SyntaxHighlight
|
|
2980
2904
|
};
|
|
2981
|
-
//# sourceMappingURL=SyntaxHighlight
|
|
2905
|
+
//# sourceMappingURL=SyntaxHighlight.js.map
|