zudoku 0.0.0-ec30b50 → 0.0.0-ee328ec
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/README.md +1 -1
- package/cli.js +3 -0
- package/dist/app/ZuploBuildConfig.d.ts +155 -0
- package/dist/app/ZuploBuildConfig.js +29 -0
- package/dist/app/ZuploBuildConfig.js.map +1 -0
- package/dist/app/entry.client.d.ts +5 -0
- package/dist/app/entry.client.js +37 -0
- package/dist/app/entry.client.js.map +1 -1
- package/dist/app/entry.server.d.ts +8 -6
- package/dist/app/entry.server.js +12 -8
- package/dist/app/entry.server.js.map +1 -1
- package/dist/app/env.d.ts +33 -0
- package/dist/app/env.js +29 -0
- package/dist/app/env.js.map +1 -0
- package/dist/app/main.js +12 -5
- package/dist/app/main.js.map +1 -1
- package/dist/app/tailwind.js +20 -0
- package/dist/app/tailwind.js.map +1 -1
- package/dist/cli/build/handler.d.ts +1 -3
- package/dist/cli/build/handler.js +9 -1
- package/dist/cli/build/handler.js.map +1 -1
- package/dist/cli/cli.js +17 -1
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/cmds/build.d.ts +11 -3
- package/dist/cli/cmds/build.js +20 -13
- package/dist/cli/cmds/build.js.map +1 -1
- package/dist/cli/cmds/dev.d.ts +1 -1
- 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/machine-id/lib.js +1 -0
- package/dist/cli/common/machine-id/lib.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.js +10 -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 +35 -0
- package/dist/cli/preview/handler.js.map +1 -0
- package/dist/config/common.d.ts +5 -3
- package/dist/config/config.d.ts +18 -16
- package/dist/config/loader.d.ts +5 -19
- package/dist/config/loader.js +25 -114
- package/dist/config/loader.js.map +1 -1
- package/dist/config/validators/BuildSchema.d.ts +60 -0
- package/dist/config/validators/BuildSchema.js +31 -0
- package/dist/config/validators/BuildSchema.js.map +1 -0
- package/dist/config/validators/InputSidebarSchema.d.ts +15 -15
- package/dist/config/validators/InputSidebarSchema.js +10 -1
- package/dist/config/validators/InputSidebarSchema.js.map +1 -1
- package/dist/config/validators/common.d.ts +3409 -685
- package/dist/config/validators/common.js +135 -21
- 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 +1266 -302
- package/dist/index.d.ts +2 -1
- 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/authentication.d.ts +1 -0
- package/dist/lib/authentication/components/CallbackHandler.js +5 -1
- package/dist/lib/authentication/components/CallbackHandler.js.map +1 -1
- package/dist/lib/authentication/components/SignIn.d.ts +1 -1
- package/dist/lib/authentication/components/SignIn.js +5 -2
- package/dist/lib/authentication/components/SignIn.js.map +1 -1
- package/dist/lib/authentication/components/SignUp.d.ts +1 -1
- package/dist/lib/authentication/components/SignUp.js +4 -1
- package/dist/lib/authentication/components/SignUp.js.map +1 -1
- package/dist/lib/authentication/hook.d.ts +1 -0
- package/dist/lib/authentication/hook.js +11 -1
- package/dist/lib/authentication/hook.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.d.ts +2 -2
- package/dist/lib/authentication/providers/clerk.js +34 -7
- package/dist/lib/authentication/providers/clerk.js.map +1 -1
- package/dist/lib/authentication/providers/openid.d.ts +10 -9
- package/dist/lib/authentication/providers/openid.js +32 -24
- package/dist/lib/authentication/providers/openid.js.map +1 -1
- package/dist/lib/authentication/providers/supabase.d.ts +4 -0
- package/dist/lib/authentication/providers/supabase.js +117 -0
- package/dist/lib/authentication/providers/supabase.js.map +1 -0
- package/dist/lib/authentication/state.d.ts +0 -26
- package/dist/lib/authentication/state.js +9 -18
- package/dist/lib/authentication/state.js.map +1 -1
- package/dist/lib/components/AnchorLink.d.ts +2 -2
- package/dist/lib/components/AnchorLink.js +5 -4
- package/dist/lib/components/AnchorLink.js.map +1 -1
- package/dist/lib/components/Banner.js +1 -1
- package/dist/lib/components/Banner.js.map +1 -1
- package/dist/lib/components/Bootstrap.d.ts +2 -1
- package/dist/lib/components/Bootstrap.js +3 -2
- package/dist/lib/components/Bootstrap.js.map +1 -1
- package/dist/lib/components/BuildCheck.d.ts +4 -0
- package/dist/lib/components/BuildCheck.js +38 -0
- package/dist/lib/components/BuildCheck.js.map +1 -0
- package/dist/lib/components/Footer.d.ts +1 -0
- package/dist/lib/components/Footer.js +32 -0
- package/dist/lib/components/Footer.js.map +1 -0
- package/dist/lib/components/Header.js +4 -4
- package/dist/lib/components/Header.js.map +1 -1
- package/dist/lib/components/Heading.d.ts +3 -3
- package/dist/lib/components/Heading.js +1 -1
- package/dist/lib/components/Heading.js.map +1 -1
- package/dist/lib/components/InlineCode.d.ts +2 -1
- package/dist/lib/components/InlineCode.js +2 -9
- package/dist/lib/components/InlineCode.js.map +1 -1
- package/dist/lib/components/Layout.js +8 -28
- package/dist/lib/components/Layout.js.map +1 -1
- package/dist/lib/components/Main.d.ts +2 -0
- package/dist/lib/components/Main.js +18 -0
- package/dist/lib/components/Main.js.map +1 -0
- package/dist/lib/components/MobileTopNavigation.js +6 -3
- package/dist/lib/components/MobileTopNavigation.js.map +1 -1
- package/dist/lib/components/Pagination.d.ts +11 -0
- package/dist/lib/components/Pagination.js +10 -0
- package/dist/lib/components/Pagination.js.map +1 -0
- package/dist/lib/components/Search.js +7 -1
- package/dist/lib/components/Search.js.map +1 -1
- package/dist/lib/components/ThemeSwitch.js +8 -5
- package/dist/lib/components/ThemeSwitch.js.map +1 -1
- package/dist/lib/components/TopNavigation.d.ts +3 -2
- package/dist/lib/components/TopNavigation.js +28 -14
- package/dist/lib/components/TopNavigation.js.map +1 -1
- package/dist/lib/components/Zudoku.d.ts +1 -1
- package/dist/lib/components/Zudoku.js +13 -8
- package/dist/lib/components/Zudoku.js.map +1 -1
- package/dist/lib/components/cache.d.ts +7 -0
- package/dist/lib/components/cache.js +7 -0
- package/dist/lib/components/cache.js.map +1 -1
- package/dist/lib/components/context/BypassProtectedRoutesContext.d.ts +1 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.js +3 -0
- package/dist/lib/components/context/BypassProtectedRoutesContext.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.d.ts +2 -4
- package/dist/lib/components/context/ViewportAnchorContext.js +13 -19
- package/dist/lib/components/context/ViewportAnchorContext.js.map +1 -1
- package/dist/lib/components/context/ZudokuContext.d.ts +2 -2
- package/dist/lib/components/context/ZudokuContext.js +21 -9
- package/dist/lib/components/context/ZudokuContext.js.map +1 -1
- package/dist/lib/components/index.d.ts +11 -3
- package/dist/lib/components/index.js +4 -0
- package/dist/lib/components/index.js.map +1 -1
- package/dist/lib/components/navigation/PoweredByZudoku.d.ts +3 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js +7 -0
- package/dist/lib/components/navigation/PoweredByZudoku.js.map +1 -0
- package/dist/lib/components/navigation/Sidebar.d.ts +3 -1
- package/dist/lib/components/navigation/Sidebar.js +3 -12
- package/dist/lib/components/navigation/Sidebar.js.map +1 -1
- package/dist/lib/components/navigation/SidebarBadge.d.ts +2 -0
- package/dist/lib/components/navigation/SidebarBadge.js +3 -1
- package/dist/lib/components/navigation/SidebarBadge.js.map +1 -1
- package/dist/lib/components/navigation/SidebarCategory.d.ts +2 -2
- package/dist/lib/components/navigation/SidebarCategory.js +18 -10
- package/dist/lib/components/navigation/SidebarCategory.js.map +1 -1
- package/dist/lib/components/navigation/SidebarItem.d.ts +1 -0
- package/dist/lib/components/navigation/SidebarItem.js +17 -12
- package/dist/lib/components/navigation/SidebarItem.js.map +1 -1
- package/dist/lib/components/navigation/SidebarWrapper.d.ts +7 -6
- package/dist/lib/components/navigation/SidebarWrapper.js +18 -3
- package/dist/lib/components/navigation/SidebarWrapper.js.map +1 -1
- package/dist/lib/{plugins/markdown → components/navigation}/Toc.js +6 -8
- package/dist/lib/components/navigation/Toc.js.map +1 -0
- package/dist/lib/components/navigation/ZudokuLogo.d.ts +6 -0
- package/dist/lib/components/navigation/ZudokuLogo.js +5 -0
- package/dist/lib/components/navigation/ZudokuLogo.js.map +1 -0
- package/dist/lib/components/navigation/ZuploLogo.d.ts +3 -0
- package/dist/lib/components/navigation/ZuploLogo.js +4 -0
- package/dist/lib/components/navigation/ZuploLogo.js.map +1 -0
- package/dist/lib/core/RouteGuard.d.ts +2 -1
- package/dist/lib/core/RouteGuard.js +35 -11
- package/dist/lib/core/RouteGuard.js.map +1 -1
- package/dist/lib/core/ZudokuContext.d.ts +34 -7
- package/dist/lib/core/ZudokuContext.js +29 -6
- package/dist/lib/core/ZudokuContext.js.map +1 -1
- package/dist/lib/core/plugins.d.ts +17 -7
- package/dist/lib/core/plugins.js +3 -0
- package/dist/lib/core/plugins.js.map +1 -1
- package/dist/lib/errors/ErrorAlert.js +6 -1
- package/dist/lib/errors/ErrorAlert.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.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/index.d.ts +17 -4
- package/dist/lib/oas/graphql/index.js +151 -38
- package/dist/lib/oas/graphql/index.js.map +1 -1
- package/dist/lib/oas/parser/dereference/index.js +2 -0
- package/dist/lib/oas/parser/dereference/index.js.map +1 -1
- package/dist/lib/oas/parser/index.d.ts +8 -3
- package/dist/lib/oas/parser/index.js +7 -23
- package/dist/lib/oas/parser/index.js.map +1 -1
- package/dist/lib/oas/parser/upgrade/index.d.ts +1 -0
- package/dist/lib/oas/parser/upgrade/index.js +76 -23
- package/dist/lib/oas/parser/upgrade/index.js.map +1 -1
- package/dist/lib/plugins/api-catalog/Catalog.d.ts +4 -2
- package/dist/lib/plugins/api-catalog/Catalog.js +16 -26
- package/dist/lib/plugins/api-catalog/Catalog.js.map +1 -1
- package/dist/lib/plugins/api-catalog/index.d.ts +1 -0
- package/dist/lib/plugins/api-catalog/index.js +39 -8
- package/dist/lib/plugins/api-catalog/index.js.map +1 -1
- package/dist/lib/plugins/api-keys/CreateApiKey.js +7 -3
- package/dist/lib/plugins/api-keys/CreateApiKey.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.d.ts +1 -1
- package/dist/lib/plugins/markdown/MdxPage.js +3 -9
- package/dist/lib/plugins/markdown/MdxPage.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 +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js +1 -1
- package/dist/lib/plugins/openapi/ColorizedParam.js.map +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js +1 -1
- package/dist/lib/plugins/openapi/Endpoint.js.map +1 -1
- package/dist/lib/plugins/openapi/{OpenApiRoute.d.ts → OasProvider.d.ts} +1 -2
- 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 +1 -1
- package/dist/lib/plugins/openapi/OperationList.js +67 -20
- package/dist/lib/plugins/openapi/OperationList.js.map +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.d.ts +1 -1
- package/dist/lib/plugins/openapi/OperationListItem.js +9 -12
- package/dist/lib/plugins/openapi/OperationListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/ParamInfos.d.ts +6 -0
- package/dist/lib/plugins/openapi/ParamInfos.js +43 -0
- package/dist/lib/plugins/openapi/ParamInfos.js.map +1 -0
- 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 +16 -4
- package/dist/lib/plugins/openapi/ParameterListItem.js.map +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.d.ts +1 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js +3 -1
- package/dist/lib/plugins/openapi/PlaygroundDialogWrapper.js.map +1 -1
- package/dist/lib/plugins/openapi/SchemaList.d.ts +1 -0
- package/dist/lib/plugins/openapi/SchemaList.js +52 -0
- package/dist/lib/plugins/openapi/SchemaList.js.map +1 -0
- package/dist/lib/plugins/openapi/Sidecar.js +70 -11
- package/dist/lib/plugins/openapi/Sidecar.js.map +1 -1
- package/dist/lib/plugins/openapi/SidecarExamples.js +2 -2
- package/dist/lib/plugins/openapi/SidecarExamples.js.map +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js +1 -1
- package/dist/lib/plugins/openapi/SimpleSelect.js.map +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.d.ts +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.js +1 -1
- package/dist/lib/plugins/openapi/client/GraphQLClient.js.map +1 -1
- package/dist/lib/plugins/openapi/client/useCreateQuery.d.ts +11 -2
- package/dist/lib/plugins/openapi/client/useCreateQuery.js +14 -7
- package/dist/lib/plugins/openapi/client/useCreateQuery.js.map +1 -1
- package/dist/lib/plugins/openapi/components/ConstValue.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js +6 -0
- package/dist/lib/plugins/openapi/components/ConstValue.js.map +1 -0
- package/dist/lib/plugins/openapi/components/EnumValues.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js +15 -0
- package/dist/lib/plugins/openapi/components/EnumValues.js.map +1 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.d.ts +5 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js +16 -0
- package/dist/lib/plugins/openapi/components/SelectOnClick.js.map +1 -0
- package/dist/lib/plugins/openapi/graphql/gql.d.ts +9 -5
- package/dist/lib/plugins/openapi/graphql/gql.js +5 -15
- package/dist/lib/plugins/openapi/graphql/gql.js.map +1 -1
- package/dist/lib/plugins/openapi/graphql/graphql.d.ts +108 -55
- package/dist/lib/plugins/openapi/graphql/graphql.js +59 -34
- package/dist/lib/plugins/openapi/graphql/graphql.js.map +1 -1
- package/dist/lib/plugins/openapi/index.d.ts +10 -8
- package/dist/lib/plugins/openapi/index.js +58 -142
- package/dist/lib/plugins/openapi/index.js.map +1 -1
- package/dist/lib/plugins/openapi/interfaces.d.ts +37 -10
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.d.ts +2 -2
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js +1 -5
- package/dist/lib/plugins/openapi/playground/ExamplesDropdown.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Headers.js +3 -3
- package/dist/lib/plugins/openapi/playground/Headers.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/IdentityDialog.d.ts +11 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js +14 -0
- package/dist/lib/plugins/openapi/playground/IdentityDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js +10 -0
- package/dist/lib/plugins/openapi/playground/IdentitySelector.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/PathParams.d.ts +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js +3 -2
- package/dist/lib/plugins/openapi/playground/PathParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/Playground.d.ts +14 -3
- package/dist/lib/plugins/openapi/playground/Playground.js +84 -30
- package/dist/lib/plugins/openapi/playground/Playground.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/QueryParams.js +3 -3
- package/dist/lib/plugins/openapi/playground/QueryParams.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.d.ts +7 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js +8 -0
- package/dist/lib/plugins/openapi/playground/RequestLoginDialog.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/SubmitButton.d.ts +1 -1
- package/dist/lib/plugins/openapi/playground/SubmitButton.js +1 -1
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.d.ts +17 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js +11 -0
- package/dist/lib/plugins/openapi/playground/rememberedIdentity.js.map +1 -0
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/RequestTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js +20 -14
- package/dist/lib/plugins/openapi/playground/result-panel/ResponseTab.js.map +1 -1
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.d.ts +6 -4
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js +4 -3
- package/dist/lib/plugins/openapi/playground/result-panel/ResultPanel.js.map +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.d.ts +8 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.js +1 -1
- package/dist/lib/plugins/openapi/processors/removeExtensions.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.js +26 -6
- package/dist/lib/plugins/openapi/processors/removeExtensions.test.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.d.ts +3 -1
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.js +1 -1
- package/dist/lib/plugins/openapi/processors/removeParameters.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.js +53 -25
- package/dist/lib/plugins/openapi/processors/removeParameters.test.js.map +1 -0
- package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.d.ts +3 -1
- package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.js +1 -1
- package/dist/lib/plugins/openapi/processors/removePaths.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js +144 -0
- package/dist/lib/plugins/openapi/processors/removePaths.test.js.map +1 -0
- package/dist/lib/plugins/openapi/processors/traverse.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.d.ts +2 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js +2 -2
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.d.ts +0 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js +1 -1
- package/dist/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.d.ts +4 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js +15 -0
- package/dist/lib/plugins/openapi/schema/SchemaExampleAndDefault.js.map +1 -0
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.d.ts +2 -4
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js +23 -14
- package/dist/lib/plugins/openapi/schema/SchemaPropertyItem.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/SchemaView.d.ts +1 -2
- package/dist/lib/plugins/openapi/schema/SchemaView.js +37 -49
- package/dist/lib/plugins/openapi/schema/SchemaView.js.map +1 -1
- package/dist/lib/plugins/openapi/schema/utils.d.ts +2 -0
- package/dist/lib/plugins/openapi/schema/utils.js +6 -1
- package/dist/lib/plugins/openapi/schema/utils.js.map +1 -1
- package/dist/lib/plugins/openapi/state.d.ts +25 -0
- package/dist/lib/plugins/openapi/state.js +18 -0
- package/dist/lib/plugins/openapi/state.js.map +1 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.d.ts +9 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js +23 -0
- package/dist/lib/plugins/openapi/util/createSidebarCategory.js.map +1 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js +40 -0
- 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 +117 -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/search-pagefind/PagefindSearch.d.ts +6 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js +80 -0
- package/dist/lib/plugins/search-pagefind/PagefindSearch.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/ResultList.d.ts +8 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js +32 -0
- package/dist/lib/plugins/search-pagefind/ResultList.js.map +1 -0
- package/dist/lib/plugins/search-pagefind/get-results.d.ts +10 -0
- package/dist/lib/plugins/search-pagefind/get-results.js +42 -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/Button.d.ts +2 -2
- package/dist/lib/ui/Button.js +2 -1
- package/dist/lib/ui/Button.js.map +1 -1
- package/dist/lib/ui/Callout.d.ts +2 -1
- package/dist/lib/ui/Callout.js +3 -2
- package/dist/lib/ui/Callout.js.map +1 -1
- package/dist/lib/ui/Checkbox.d.ts +2 -8
- package/dist/lib/ui/Checkbox.js +1 -13
- package/dist/lib/ui/Checkbox.js.map +1 -1
- package/dist/lib/ui/Command.d.ts +7 -1
- package/dist/lib/ui/Command.js +2 -2
- package/dist/lib/ui/Command.js.map +1 -1
- package/dist/lib/ui/Form.d.ts +1 -1
- package/dist/lib/ui/Select.js +1 -1
- package/dist/lib/ui/Select.js.map +1 -1
- package/dist/lib/ui/Stepper.d.ts +3 -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 +15 -0
- package/dist/lib/ui/SyntaxHighlight.js +62 -0
- 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 +6 -2
- package/dist/lib/util/MdxComponents.js +8 -3
- package/dist/lib/util/MdxComponents.js.map +1 -1
- package/dist/lib/util/detectOS.d.ts +1 -0
- package/dist/lib/util/detectOS.js +11 -0
- package/dist/lib/util/detectOS.js.map +1 -0
- package/dist/lib/util/ensureArray.d.ts +1 -0
- package/dist/lib/util/ensureArray.js +2 -0
- package/dist/lib/util/ensureArray.js.map +1 -0
- package/dist/lib/util/joinPath.d.ts +3 -0
- package/dist/lib/util/joinPath.js +3 -0
- package/dist/lib/util/joinPath.js.map +1 -1
- package/dist/lib/util/traverse.d.ts +3 -9
- package/dist/lib/util/traverse.js +7 -6
- package/dist/lib/util/traverse.js.map +1 -1
- package/dist/lib/util/types.d.ts +7 -0
- package/dist/lib/util/types.js +2 -0
- package/dist/lib/util/types.js.map +1 -0
- package/dist/lib/util/url.d.ts +4 -0
- package/dist/lib/util/url.js +13 -0
- package/dist/lib/util/url.js.map +1 -0
- package/dist/lib/util/url.test.d.ts +1 -0
- package/dist/lib/util/url.test.js +26 -0
- package/dist/lib/util/url.test.js.map +1 -0
- 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 +3 -2
- package/dist/lib/util/useOnScreen.js +3 -3
- package/dist/lib/util/useOnScreen.js.map +1 -1
- package/dist/lib/util/useScrollToAnchor.js +26 -20
- package/dist/lib/util/useScrollToAnchor.js.map +1 -1
- package/dist/vite/api/SchemaManager.d.ts +36 -0
- package/dist/vite/api/SchemaManager.js +122 -0
- package/dist/vite/api/SchemaManager.js.map +1 -0
- package/dist/vite/api/SchemaManager.test.d.ts +1 -0
- package/dist/vite/api/SchemaManager.test.js +106 -0
- package/dist/vite/api/SchemaManager.test.js.map +1 -0
- package/dist/vite/api/schema-codegen.d.ts +1 -1
- package/dist/vite/api/schema-codegen.js +34 -11
- package/dist/vite/api/schema-codegen.js.map +1 -1
- package/dist/vite/api/schema-codegen.test.js +66 -0
- package/dist/vite/api/schema-codegen.test.js.map +1 -1
- package/dist/vite/build.js +28 -16
- package/dist/vite/build.js.map +1 -1
- package/dist/vite/config.d.ts +2 -5
- package/dist/vite/config.js +67 -71
- package/dist/vite/config.js.map +1 -1
- package/dist/vite/config.test.js +1 -1
- package/dist/vite/config.test.js.map +1 -1
- package/dist/vite/create-pagefind-index.d.ts +4 -0
- package/dist/vite/create-pagefind-index.js +12 -0
- package/dist/vite/create-pagefind-index.js.map +1 -0
- package/dist/vite/css/plugin.d.ts +2 -2
- package/dist/vite/css/plugin.js.map +1 -1
- package/dist/vite/dev-server.d.ts +4 -2
- package/dist/vite/dev-server.js +47 -14
- 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/html.d.ts +6 -2
- package/dist/vite/html.js +11 -8
- package/dist/vite/html.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/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 +73 -107
- package/dist/vite/plugin-api.js.map +1 -1
- package/dist/vite/plugin-auth.d.ts +2 -2
- package/dist/vite/plugin-auth.js +3 -3
- 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 -2
- 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 +13 -6
- 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 +3 -3
- package/dist/vite/plugin-docs.js +23 -6
- 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 +32 -27
- 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 +5 -3
- package/dist/vite/plugin-sidebar.js +21 -6
- 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.map +1 -1
- package/dist/vite/plugin.d.ts +2 -2
- package/dist/vite/plugin.js.map +1 -1
- package/dist/vite/prerender/FileWritingResponse.d.ts +25 -0
- package/dist/vite/prerender/FileWritingResponse.js +51 -0
- package/dist/vite/prerender/FileWritingResponse.js.map +1 -0
- package/dist/vite/prerender/InMemoryResponse.d.ts +16 -0
- package/dist/vite/prerender/InMemoryResponse.js +32 -0
- package/dist/vite/prerender/InMemoryResponse.js.map +1 -0
- package/dist/vite/prerender/PrerenderResponse.d.ts +10 -0
- package/dist/vite/prerender/PrerenderResponse.js +2 -0
- package/dist/vite/prerender/PrerenderResponse.js.map +1 -0
- package/dist/vite/prerender/prerender.d.ts +15 -0
- package/dist/vite/prerender/prerender.js +109 -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 +59 -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 +3 -3
- package/dist/zuplo/enrich-with-zuplo.js +18 -17
- package/dist/zuplo/enrich-with-zuplo.js.map +1 -1
- package/dist/zuplo/with-zuplo-processors.d.ts +2 -2
- package/dist/zuplo/with-zuplo-processors.js +7 -7
- package/dist/zuplo/with-zuplo-processors.js.map +1 -1
- package/dist/zuplo/with-zuplo.d.ts +4 -1
- package/dist/zuplo/with-zuplo.js +6 -5
- package/dist/zuplo/with-zuplo.js.map +1 -1
- package/lib/AuthenticationPlugin-Bqlq5kRN.js +99 -0
- package/lib/AuthenticationPlugin-Bqlq5kRN.js.map +1 -0
- package/lib/Button-BBNrKpQd.js +49 -0
- package/lib/Button-BBNrKpQd.js.map +1 -0
- package/lib/Callout-D3Ja4OPX.js +230 -0
- package/lib/Callout-D3Ja4OPX.js.map +1 -0
- package/lib/Card-BtheiD7j.js +61 -0
- package/lib/Card-BtheiD7j.js.map +1 -0
- package/lib/{CategoryHeading-MYL1u_6K.js → CategoryHeading-D06WK_Wo.js} +3 -3
- package/lib/{CategoryHeading-MYL1u_6K.js.map → CategoryHeading-D06WK_Wo.js.map} +1 -1
- package/lib/Dialog-ByYz4ABw.js +98 -0
- package/lib/Dialog-ByYz4ABw.js.map +1 -0
- package/lib/Drawer-CEwbkLDb.js +1133 -0
- package/lib/Drawer-CEwbkLDb.js.map +1 -0
- package/lib/{Markdown-8mv9nhGd.js → Markdown-DvdVn1O7.js} +8023 -6085
- package/lib/Markdown-DvdVn1O7.js.map +1 -0
- package/lib/MdxPage-_8H25sEU.js +85 -0
- package/lib/MdxPage-_8H25sEU.js.map +1 -0
- package/lib/OasProvider-hBA9fTDC.js +33 -0
- package/lib/OasProvider-hBA9fTDC.js.map +1 -0
- package/lib/OperationList-0n_9nYIg.js +5147 -0
- package/lib/OperationList-0n_9nYIg.js.map +1 -0
- package/lib/Pagination-B4iXKAzG.js +48 -0
- package/lib/Pagination-B4iXKAzG.js.map +1 -0
- package/lib/{index.esm-9-TF9KQB.js → RouteGuard-D2gX29iI.js} +196 -144
- package/lib/RouteGuard-D2gX29iI.js.map +1 -0
- package/lib/SchemaList-DGOmVkot.js +147 -0
- package/lib/SchemaList-DGOmVkot.js.map +1 -0
- package/lib/SchemaView-DBar2RLi.js +365 -0
- package/lib/SchemaView-DBar2RLi.js.map +1 -0
- package/lib/{Select-BcAbBUmk.js → Select-CYaEBIYK.js} +71 -71
- package/lib/{Select-BcAbBUmk.js.map → Select-CYaEBIYK.js.map} +1 -1
- package/lib/SlotletProvider-wWbHYqWf.js +340 -0
- package/lib/SlotletProvider-wWbHYqWf.js.map +1 -0
- package/lib/Spinner-mNLZ6awP.js +7 -0
- package/lib/Spinner-mNLZ6awP.js.map +1 -0
- package/lib/{SyntaxHighlight-B0L4SC_N.js → SyntaxHighlight-o7q0acut.js} +514 -610
- package/lib/SyntaxHighlight-o7q0acut.js.map +1 -0
- package/lib/Toc-BnN4zBb3.js +92 -0
- package/lib/Toc-BnN4zBb3.js.map +1 -0
- package/lib/{_commonjsHelpers-BkfeUUK-.js → _commonjsHelpers-B4e78b8K.js} +2 -2
- package/lib/_commonjsHelpers-B4e78b8K.js.map +1 -0
- package/lib/{chunk-SYFQ2XB5-QijJrSf0.js → chunk-BAXFHI7N-BLTsN6tl.js} +767 -742
- package/lib/chunk-BAXFHI7N-BLTsN6tl.js.map +1 -0
- package/lib/{circular-DxaIIlWD.js → circular-WY7p7GWq.js} +3195 -3678
- package/lib/circular-WY7p7GWq.js.map +1 -0
- package/lib/{createServer-E3cXjB0P.js → createServer-D3RtEIGE.js} +5326 -5283
- package/lib/createServer-D3RtEIGE.js.map +1 -0
- package/lib/hook-8GM2HXNM.js +1478 -0
- package/lib/hook-8GM2HXNM.js.map +1 -0
- package/lib/index-B1CQk2lf.js +3208 -0
- package/lib/index-B1CQk2lf.js.map +1 -0
- package/lib/index-Bn6Lc9tq.js +9 -0
- package/lib/index-Bn6Lc9tq.js.map +1 -0
- package/lib/index-CPNSgwSb.js +36 -0
- package/lib/{index-Djenk2Hj.js.map → index-CPNSgwSb.js.map} +1 -1
- package/lib/index-CuBIgTKC.js +316 -0
- package/lib/index-CuBIgTKC.js.map +1 -0
- package/lib/{index-Dl3Yl0yb.js → index-DcHeSvkE.js} +51 -38
- package/lib/index-DcHeSvkE.js.map +1 -0
- package/lib/index-Dh-bWAb8.js +5039 -0
- package/lib/index-Dh-bWAb8.js.map +1 -0
- package/lib/index-DwT-v3zK.js +86 -0
- package/lib/index-DwT-v3zK.js.map +1 -0
- package/lib/{index-CjJS0l4l.js → index-LNp6rxyU.js} +2 -2
- package/lib/{index-CjJS0l4l.js.map → index-LNp6rxyU.js.map} +1 -1
- package/lib/index.esm-D2ZUREQN.js +1216 -0
- package/lib/index.esm-D2ZUREQN.js.map +1 -0
- package/lib/jsx-runtime-C5mzlN2N.js +285 -0
- package/lib/jsx-runtime-C5mzlN2N.js.map +1 -0
- package/lib/mutation-Bq5bn7Hf.js +211 -0
- package/lib/mutation-Bq5bn7Hf.js.map +1 -0
- package/lib/objectEntries-yMIkr2mI.js +5 -0
- package/lib/objectEntries-yMIkr2mI.js.map +1 -0
- package/lib/prism-bash.min-HHIMdNJ_.js.map +1 -1
- package/lib/{prism-csharp.min-bQAo2pmx.js → prism-csharp.min-C43x1RY2.js} +2 -2
- package/lib/{prism-csharp.min-bQAo2pmx.js.map → prism-csharp.min-C43x1RY2.js.map} +1 -1
- package/lib/{prism-java.min-BpvsOuIa.js → prism-java.min-CQzr40NQ.js} +2 -2
- package/lib/{prism-java.min-BpvsOuIa.js.map → prism-java.min-CQzr40NQ.js.map} +1 -1
- package/lib/prism-javascript.min-CEqHqgbm.js.map +1 -1
- package/lib/prism-json.min-B1GJqK1k.js.map +1 -1
- package/lib/prism-jsstacktrace.min-BfobCF2F.js +2 -0
- package/lib/prism-jsstacktrace.min-BfobCF2F.js.map +1 -0
- package/lib/prism-markdown.min-C0Qn0m-5.js.map +1 -1
- package/lib/prism-markup-BNGj0Tvm.js.map +1 -1
- package/lib/prism-objectivec.min-BXSWqpJJ.js.map +1 -1
- package/lib/{prism-ruby.min-Dx9KO9ds.js → prism-ruby.min-L9OdQ6tU.js} +2 -2
- package/lib/{prism-ruby.min-Dx9KO9ds.js.map → prism-ruby.min-L9OdQ6tU.js.map} +1 -1
- package/lib/{prism-typescript.min-CD7H2IYQ.js → prism-typescript.min-qTySPvCh.js} +2 -2
- package/lib/{prism-typescript.min-CD7H2IYQ.js.map → prism-typescript.min-qTySPvCh.js.map} +1 -1
- package/lib/processors/removeExtensions.js +11 -0
- package/lib/processors/removeExtensions.js.map +1 -0
- package/lib/{post-processors → processors}/removeParameters.js +1 -1
- package/lib/processors/removeParameters.js.map +1 -0
- package/lib/{post-processors → processors}/removePaths.js +1 -1
- package/lib/processors/removePaths.js.map +1 -0
- package/lib/processors/traverse.js +17 -0
- package/lib/processors/traverse.js.map +1 -0
- package/lib/ui/Accordion.js +1 -1
- package/lib/ui/ActionButton.js +11 -10
- package/lib/ui/ActionButton.js.map +1 -1
- package/lib/ui/Alert.js +2 -2
- package/lib/ui/AlertDialog.js +1 -1
- package/lib/ui/Badge.js +2 -2
- package/lib/ui/Breadcrumb.js +4 -4
- package/lib/ui/Button.js +13 -12
- package/lib/ui/Button.js.map +1 -1
- package/lib/ui/Callout.js +40 -21
- package/lib/ui/Callout.js.map +1 -1
- package/lib/ui/Card.js +1 -1
- package/lib/ui/Carousel.js +207 -207
- package/lib/ui/Carousel.js.map +1 -1
- package/lib/ui/Checkbox.js +16 -26
- package/lib/ui/Checkbox.js.map +1 -1
- package/lib/ui/Command.js +105 -78
- package/lib/ui/Command.js.map +1 -1
- package/lib/ui/Dialog.js +1 -1
- package/lib/ui/Drawer.js +14 -1151
- package/lib/ui/Drawer.js.map +1 -1
- package/lib/ui/DropdownMenu.js +1 -1
- package/lib/ui/Form.js +5 -5
- package/lib/ui/HoverCard.js +1 -1
- package/lib/ui/Input.js +1 -1
- package/lib/ui/Label.js +2 -2
- package/lib/ui/Pagination.js +10 -10
- package/lib/ui/Popover.js +1 -1
- package/lib/ui/Progress.js +1 -1
- package/lib/ui/RadioGroup.js +1 -1
- package/lib/ui/ScrollArea.js +1 -1
- package/lib/ui/Select.js +2 -2
- package/lib/ui/Select.js.map +1 -1
- package/lib/ui/Skeleton.js +1 -1
- package/lib/ui/Slider.js +1 -1
- package/lib/ui/Stepper.js +6 -0
- package/lib/ui/Stepper.js.map +1 -0
- package/lib/ui/Switch.js +1 -1
- package/lib/ui/SyntaxHighlight.js +11 -0
- package/lib/ui/SyntaxHighlight.js.map +1 -0
- package/lib/ui/Tabs.js +1 -1
- package/lib/ui/Textarea.js +1 -1
- package/lib/ui/Toggle.js +2 -2
- package/lib/ui/ToggleGroup.js +1 -1
- package/lib/ui/Tooltip.js +1 -1
- package/lib/ui/util.js +6 -0
- package/lib/ui/util.js.map +1 -0
- package/lib/{useExposedProps-Bbf99zic.js → useExposedProps-DmTJxEXG.js} +2 -2
- package/lib/{useExposedProps-Bbf99zic.js.map → useExposedProps-DmTJxEXG.js.map} +1 -1
- package/lib/useLatest-hmRS46UF.js +11 -0
- package/lib/useLatest-hmRS46UF.js.map +1 -0
- package/lib/zudoku.auth-auth0.js +18 -17
- package/lib/zudoku.auth-auth0.js.map +1 -1
- package/lib/zudoku.auth-clerk.js +69 -51
- package/lib/zudoku.auth-clerk.js.map +1 -1
- package/lib/zudoku.auth-openid.js +388 -415
- package/lib/zudoku.auth-openid.js.map +1 -1
- package/lib/zudoku.components.js +33 -1303
- package/lib/zudoku.components.js.map +1 -1
- 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 +106 -112
- package/lib/zudoku.plugin-api-catalog.js.map +1 -1
- package/lib/zudoku.plugin-api-keys.js +108 -106
- package/lib/zudoku.plugin-api-keys.js.map +1 -1
- package/lib/zudoku.plugin-custom-pages.js +3 -3
- package/lib/zudoku.plugin-markdown.js +23 -44
- package/lib/zudoku.plugin-markdown.js.map +1 -1
- package/lib/zudoku.plugin-openapi.js +7 -7
- package/lib/zudoku.plugin-openapi.js.map +1 -1
- package/lib/zudoku.plugin-redirect.js +1 -1
- package/lib/zudoku.plugin-search-inkeep.js +9 -9
- package/lib/zudoku.plugin-search-pagefind.js +233 -0
- package/lib/zudoku.plugin-search-pagefind.js.map +1 -0
- package/lib/zudoku.plugins.js +14 -0
- package/lib/zudoku.plugins.js.map +1 -0
- package/package.json +103 -76
- package/src/app/ZuploBuildConfig.ts +33 -0
- package/src/app/demo.html +1 -1
- package/src/app/entry.client.tsx +51 -0
- package/src/app/entry.server.tsx +23 -13
- package/src/app/env.ts +35 -0
- package/src/app/main.css +108 -59
- package/src/app/main.tsx +19 -2
- package/src/app/tailwind.ts +20 -0
- package/src/lib/MissingIcon.tsx +22 -0
- package/src/lib/authentication/authentication.ts +2 -0
- package/src/lib/authentication/components/CallbackHandler.tsx +11 -1
- package/src/lib/authentication/components/SignIn.tsx +35 -2
- package/src/lib/authentication/components/SignUp.tsx +35 -1
- package/src/lib/authentication/hook.ts +12 -1
- package/src/lib/authentication/providers/auth0.tsx +4 -3
- package/src/lib/authentication/providers/clerk.tsx +38 -10
- package/src/lib/authentication/providers/openid.tsx +45 -36
- package/src/lib/authentication/providers/supabase.tsx +157 -0
- package/src/lib/authentication/state.ts +9 -37
- package/src/lib/components/AnchorLink.tsx +9 -7
- package/src/lib/components/Banner.tsx +2 -1
- package/src/lib/components/Bootstrap.tsx +13 -6
- package/src/lib/components/BuildCheck.tsx +75 -0
- package/src/lib/components/Footer.tsx +139 -0
- package/src/lib/components/Header.tsx +13 -9
- package/src/lib/components/Heading.tsx +3 -3
- package/src/lib/components/InlineCode.tsx +13 -16
- package/src/lib/components/Layout.tsx +27 -68
- package/src/lib/components/Main.tsx +51 -0
- package/src/lib/components/MobileTopNavigation.tsx +29 -20
- package/src/lib/components/Pagination.tsx +50 -0
- package/src/lib/components/Search.tsx +14 -3
- package/src/lib/components/ThemeSwitch.tsx +28 -8
- package/src/lib/components/TopNavigation.tsx +51 -24
- package/src/lib/components/Zudoku.tsx +18 -7
- package/src/lib/components/cache.ts +8 -0
- package/src/lib/components/context/BypassProtectedRoutesContext.ts +3 -0
- package/src/lib/components/context/RouterEventsEmitter.tsx +19 -0
- package/src/lib/components/context/ViewportAnchorContext.tsx +14 -30
- package/src/lib/components/context/ZudokuContext.ts +30 -10
- package/src/lib/components/index.ts +4 -0
- package/src/lib/components/navigation/PoweredByZudoku.tsx +33 -0
- package/src/lib/components/navigation/Sidebar.tsx +37 -44
- package/src/lib/components/navigation/SidebarBadge.tsx +4 -1
- package/src/lib/components/navigation/SidebarCategory.tsx +24 -17
- package/src/lib/components/navigation/SidebarItem.tsx +22 -30
- package/src/lib/components/navigation/SidebarWrapper.tsx +42 -23
- package/src/lib/{plugins/markdown → components/navigation}/Toc.tsx +9 -18
- package/src/lib/components/navigation/ZudokuLogo.tsx +25 -0
- package/src/lib/components/navigation/ZuploLogo.tsx +14 -0
- package/src/lib/core/RouteGuard.tsx +73 -12
- package/src/lib/core/ZudokuContext.ts +65 -13
- package/src/lib/core/plugins.ts +29 -7
- package/src/lib/errors/ErrorAlert.tsx +24 -17
- 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/index.ts +206 -54
- package/src/lib/oas/parser/dereference/index.ts +2 -0
- package/src/lib/oas/parser/index.ts +14 -30
- package/src/lib/oas/parser/upgrade/index.ts +97 -26
- package/src/lib/plugins/api-catalog/Catalog.tsx +50 -100
- package/src/lib/plugins/api-catalog/index.tsx +66 -15
- package/src/lib/plugins/api-keys/CreateApiKey.tsx +7 -3
- package/src/lib/plugins/api-keys/index.tsx +3 -0
- package/src/lib/plugins/markdown/MdxPage.tsx +15 -47
- package/src/lib/plugins/markdown/resolver.ts +0 -33
- package/src/lib/plugins/openapi/CollapsibleCode.tsx +2 -2
- package/src/lib/plugins/openapi/ColorizedParam.tsx +1 -1
- package/src/lib/plugins/openapi/Endpoint.tsx +1 -1
- package/src/lib/plugins/openapi/OasProvider.tsx +51 -0
- package/src/lib/plugins/openapi/OperationList.tsx +185 -83
- package/src/lib/plugins/openapi/OperationListItem.tsx +127 -104
- package/src/lib/plugins/openapi/ParamInfos.tsx +88 -0
- package/src/lib/plugins/openapi/ParameterList.tsx +4 -0
- package/src/lib/plugins/openapi/ParameterListItem.tsx +65 -23
- package/src/lib/plugins/openapi/PlaygroundDialogWrapper.tsx +8 -1
- package/src/lib/plugins/openapi/SchemaList.tsx +151 -0
- package/src/lib/plugins/openapi/Sidecar.tsx +84 -15
- package/src/lib/plugins/openapi/SidecarExamples.tsx +1 -2
- package/src/lib/plugins/openapi/SimpleSelect.tsx +1 -1
- package/src/lib/plugins/openapi/client/GraphQLClient.tsx +1 -1
- package/src/lib/plugins/openapi/client/useCreateQuery.ts +34 -7
- package/src/lib/plugins/openapi/components/ConstValue.tsx +24 -0
- package/src/lib/plugins/openapi/components/EnumValues.tsx +58 -0
- package/src/lib/plugins/openapi/components/SelectOnClick.tsx +29 -0
- package/src/lib/plugins/openapi/graphql/gql.ts +34 -17
- package/src/lib/plugins/openapi/graphql/graphql.ts +172 -86
- package/src/lib/plugins/openapi/index.tsx +83 -177
- package/src/lib/plugins/openapi/interfaces.ts +45 -15
- package/src/lib/plugins/openapi/playground/ExamplesDropdown.tsx +30 -32
- package/src/lib/plugins/openapi/playground/Headers.tsx +2 -3
- package/src/lib/plugins/openapi/playground/IdentityDialog.tsx +74 -0
- package/src/lib/plugins/openapi/playground/IdentitySelector.tsx +54 -0
- package/src/lib/plugins/openapi/playground/PathParams.tsx +8 -2
- package/src/lib/plugins/openapi/playground/Playground.tsx +203 -114
- package/src/lib/plugins/openapi/playground/QueryParams.tsx +4 -5
- package/src/lib/plugins/openapi/playground/RequestLoginDialog.tsx +51 -0
- package/src/lib/plugins/openapi/playground/SubmitButton.tsx +2 -2
- package/src/lib/plugins/openapi/playground/rememberedIdentity.ts +26 -0
- package/src/lib/plugins/openapi/playground/result-panel/RequestTab.tsx +3 -3
- package/src/lib/plugins/openapi/playground/result-panel/ResponseTab.tsx +26 -6
- package/src/lib/plugins/openapi/playground/result-panel/ResultPanel.tsx +67 -45
- package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.ts +29 -9
- package/src/lib/plugins/openapi/{post-processors → processors}/removeExtensions.ts +5 -3
- package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.ts +67 -33
- package/src/lib/plugins/openapi/{post-processors → processors}/removeParameters.ts +5 -3
- package/src/lib/plugins/openapi/processors/removePaths.test.ts +167 -0
- package/src/lib/plugins/openapi/{post-processors → processors}/removePaths.ts +5 -3
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroup.tsx +1 -8
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupConnector.tsx +3 -0
- package/src/lib/plugins/openapi/schema/LogicalGroup/LogicalGroupItem.tsx +6 -3
- package/src/lib/plugins/openapi/schema/SchemaExampleAndDefault.tsx +39 -0
- package/src/lib/plugins/openapi/schema/SchemaPropertyItem.tsx +55 -52
- package/src/lib/plugins/openapi/schema/SchemaView.tsx +94 -137
- package/src/lib/plugins/openapi/schema/utils.ts +12 -1
- package/src/lib/plugins/openapi/state.ts +36 -0
- package/src/lib/plugins/openapi/util/createSidebarCategory.tsx +37 -0
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +45 -0
- package/src/lib/plugins/openapi/util/getRoutes.tsx +198 -0
- package/src/lib/plugins/openapi/util/methodColorMap.tsx +11 -0
- package/src/lib/plugins/search-pagefind/PagefindSearch.tsx +164 -0
- package/src/lib/plugins/search-pagefind/ResultList.tsx +105 -0
- package/src/lib/plugins/search-pagefind/get-results.tsx +75 -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/Button.tsx +4 -2
- package/src/lib/ui/Callout.tsx +29 -10
- package/src/lib/ui/Checkbox.tsx +8 -24
- package/src/lib/ui/Command.tsx +25 -3
- package/src/lib/ui/Select.tsx +1 -1
- package/src/lib/ui/Stepper.tsx +8 -0
- package/src/lib/ui/SyntaxHighlight.tsx +186 -0
- package/src/lib/ui/util.tsx +3 -0
- package/src/lib/util/MdxComponents.tsx +9 -4
- package/src/lib/util/detectOS.ts +9 -0
- package/src/lib/util/ensureArray.ts +3 -0
- package/src/lib/util/joinPath.tsx +3 -0
- package/src/lib/util/traverse.ts +12 -13
- package/src/lib/util/types.ts +7 -0
- package/src/lib/util/url.test.ts +51 -0
- package/src/lib/util/url.ts +18 -0
- package/src/lib/util/useLatest.ts +18 -0
- package/src/lib/util/useOnScreen.ts +6 -4
- package/src/lib/util/useScrollToAnchor.ts +30 -20
- package/client.d.ts +0 -8
- package/dist/lib/components/SyntaxHighlight.d.ts +0 -12
- package/dist/lib/components/SyntaxHighlight.js +0 -53
- package/dist/lib/components/SyntaxHighlight.js.map +0 -1
- package/dist/lib/components/context/PluginSystem.js +0 -2
- package/dist/lib/components/context/PluginSystem.js.map +0 -1
- package/dist/lib/plugins/markdown/Toc.js.map +0 -1
- package/dist/lib/plugins/openapi/OpenApiRoute.js +0 -25
- package/dist/lib/plugins/openapi/OpenApiRoute.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.d.ts +0 -7
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeExtensions.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeParameters.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removeParameters.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removePaths.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js +0 -104
- package/dist/lib/plugins/openapi/post-processors/removePaths.test.js.map +0 -1
- package/dist/lib/plugins/openapi/post-processors/traverse.js.map +0 -1
- package/dist/vite/prerender.d.ts +0 -22
- package/dist/vite/prerender.js +0 -89
- package/dist/vite/prerender.js.map +0 -1
- package/dist/zuplo/env.d.ts +0 -7
- package/dist/zuplo/env.js +0 -12
- package/dist/zuplo/env.js.map +0 -1
- package/lib/AuthenticationPlugin-DeEA69mE.js +0 -58
- package/lib/AuthenticationPlugin-DeEA69mE.js.map +0 -1
- package/lib/Markdown-8mv9nhGd.js.map +0 -1
- package/lib/MdxPage-BalfwlsD.js +0 -193
- package/lib/MdxPage-BalfwlsD.js.map +0 -1
- package/lib/OpenApiRoute-ULLXjfro.js +0 -36
- package/lib/OpenApiRoute-ULLXjfro.js.map +0 -1
- package/lib/OperationList-B3VX94x4.js +0 -5179
- package/lib/OperationList-B3VX94x4.js.map +0 -1
- package/lib/SlotletProvider-D0mFmGJu.js +0 -221
- package/lib/SlotletProvider-D0mFmGJu.js.map +0 -1
- package/lib/Spinner-BlzrEEk1.js +0 -51
- package/lib/Spinner-BlzrEEk1.js.map +0 -1
- package/lib/SyntaxHighlight-B0L4SC_N.js.map +0 -1
- package/lib/ZudokuContext-dUyBGMap.js +0 -1229
- package/lib/ZudokuContext-dUyBGMap.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/_commonjsHelpers-BkfeUUK-.js.map +0 -1
- package/lib/chunk-SYFQ2XB5-QijJrSf0.js.map +0 -1
- package/lib/circular-DxaIIlWD.js.map +0 -1
- package/lib/context-rwLGh-6_.js +0 -22
- package/lib/context-rwLGh-6_.js.map +0 -1
- package/lib/createServer-E3cXjB0P.js.map +0 -1
- package/lib/hook-NIpDSpau.js +0 -227
- package/lib/hook-NIpDSpau.js.map +0 -1
- package/lib/index-B7mqiOei.js +0 -509
- package/lib/index-B7mqiOei.js.map +0 -1
- package/lib/index-Djenk2Hj.js +0 -36
- package/lib/index-Dl3Yl0yb.js.map +0 -1
- package/lib/index-P0YUtHIb.js +0 -2065
- package/lib/index-P0YUtHIb.js.map +0 -1
- package/lib/index.esm-9-TF9KQB.js.map +0 -1
- package/lib/index.esm-CrSoEshU.js +0 -1207
- package/lib/index.esm-CrSoEshU.js.map +0 -1
- package/lib/joinUrl-nLx9pD-Z.js +0 -20
- package/lib/joinUrl-nLx9pD-Z.js.map +0 -1
- package/lib/jsx-runtime-Bdg6XQ1m.js +0 -446
- package/lib/jsx-runtime-Bdg6XQ1m.js.map +0 -1
- package/lib/post-processors/removeExtensions.js +0 -11
- package/lib/post-processors/removeExtensions.js.map +0 -1
- package/lib/post-processors/removeParameters.js.map +0 -1
- package/lib/post-processors/removePaths.js.map +0 -1
- package/lib/post-processors/traverse.js +0 -15
- package/lib/post-processors/traverse.js.map +0 -1
- package/lib/state-bfQxaDxU.js +0 -211
- package/lib/state-bfQxaDxU.js.map +0 -1
- package/lib/useScrollToAnchor-BVCQSeKB.js +0 -286
- package/lib/useScrollToAnchor-BVCQSeKB.js.map +0 -1
- package/src/lib/components/SyntaxHighlight.tsx +0 -171
- package/src/lib/components/context/PluginSystem.ts +0 -0
- package/src/lib/plugins/openapi/OpenApiRoute.tsx +0 -51
- package/src/lib/plugins/openapi/post-processors/removePaths.test.ts +0 -126
- /package/dist/lib/{plugins/markdown → components/navigation}/Toc.d.ts +0 -0
- /package/dist/lib/{components/context/PluginSystem.d.ts → hooks/useEvent.test.d.ts} +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeExtensions.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removeParameters.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/removePaths.test.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.d.ts +0 -0
- /package/dist/lib/plugins/openapi/{post-processors → processors}/traverse.js +0 -0
- /package/src/lib/plugins/openapi/{post-processors → processors}/traverse.ts +0 -0
|
@@ -1,132 +1,132 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
var
|
|
2
|
+
var F = {}, ue;
|
|
3
3
|
function Ae() {
|
|
4
|
-
if (
|
|
5
|
-
|
|
6
|
-
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/,
|
|
7
|
-
const
|
|
4
|
+
if (ue) return F;
|
|
5
|
+
ue = 1, Object.defineProperty(F, "__esModule", { value: !0 }), F.parse = s, F.serialize = u;
|
|
6
|
+
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, n = /^[\u0021-\u003A\u003C-\u007E]*$/, t = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, a = /^[\u0020-\u003A\u003D-\u007E]*$/, r = Object.prototype.toString, i = /* @__PURE__ */ (() => {
|
|
7
|
+
const d = function() {
|
|
8
8
|
};
|
|
9
|
-
return
|
|
9
|
+
return d.prototype = /* @__PURE__ */ Object.create(null), d;
|
|
10
10
|
})();
|
|
11
|
-
function s(
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
return
|
|
15
|
-
const
|
|
16
|
-
let
|
|
11
|
+
function s(d, g) {
|
|
12
|
+
const f = new i(), w = d.length;
|
|
13
|
+
if (w < 2)
|
|
14
|
+
return f;
|
|
15
|
+
const E = (g == null ? void 0 : g.decode) || h;
|
|
16
|
+
let p = 0;
|
|
17
17
|
do {
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
18
|
+
const v = d.indexOf("=", p);
|
|
19
|
+
if (v === -1)
|
|
20
20
|
break;
|
|
21
|
-
const y =
|
|
22
|
-
if (
|
|
23
|
-
|
|
21
|
+
const y = d.indexOf(";", p), b = y === -1 ? w : y;
|
|
22
|
+
if (v > b) {
|
|
23
|
+
p = d.lastIndexOf(";", v - 1) + 1;
|
|
24
24
|
continue;
|
|
25
25
|
}
|
|
26
|
-
const x = c(
|
|
27
|
-
if (
|
|
28
|
-
let S = c(
|
|
29
|
-
const D =
|
|
30
|
-
|
|
26
|
+
const x = c(d, p, v), C = l(d, v, x), $ = d.slice(x, C);
|
|
27
|
+
if (f[$] === void 0) {
|
|
28
|
+
let S = c(d, v + 1, b), P = l(d, b, S);
|
|
29
|
+
const D = E(d.slice(S, P));
|
|
30
|
+
f[$] = D;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
} while (
|
|
34
|
-
return
|
|
32
|
+
p = b + 1;
|
|
33
|
+
} while (p < w);
|
|
34
|
+
return f;
|
|
35
35
|
}
|
|
36
|
-
function c(
|
|
36
|
+
function c(d, g, f) {
|
|
37
37
|
do {
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
return
|
|
41
|
-
} while (++
|
|
42
|
-
return
|
|
38
|
+
const w = d.charCodeAt(g);
|
|
39
|
+
if (w !== 32 && w !== 9)
|
|
40
|
+
return g;
|
|
41
|
+
} while (++g < f);
|
|
42
|
+
return f;
|
|
43
43
|
}
|
|
44
|
-
function l(
|
|
45
|
-
for (;
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
return
|
|
44
|
+
function l(d, g, f) {
|
|
45
|
+
for (; g > f; ) {
|
|
46
|
+
const w = d.charCodeAt(--g);
|
|
47
|
+
if (w !== 32 && w !== 9)
|
|
48
|
+
return g + 1;
|
|
49
49
|
}
|
|
50
|
-
return
|
|
50
|
+
return f;
|
|
51
51
|
}
|
|
52
|
-
function u(
|
|
53
|
-
const
|
|
54
|
-
if (!e.test(
|
|
55
|
-
throw new TypeError(`argument name is invalid: ${
|
|
56
|
-
const
|
|
57
|
-
if (!
|
|
58
|
-
throw new TypeError(`argument val is invalid: ${
|
|
59
|
-
let
|
|
60
|
-
if (!
|
|
61
|
-
return
|
|
62
|
-
if (
|
|
63
|
-
if (!Number.isInteger(
|
|
64
|
-
throw new TypeError(`option maxAge is invalid: ${
|
|
65
|
-
|
|
52
|
+
function u(d, g, f) {
|
|
53
|
+
const w = (f == null ? void 0 : f.encode) || encodeURIComponent;
|
|
54
|
+
if (!e.test(d))
|
|
55
|
+
throw new TypeError(`argument name is invalid: ${d}`);
|
|
56
|
+
const E = w(g);
|
|
57
|
+
if (!n.test(E))
|
|
58
|
+
throw new TypeError(`argument val is invalid: ${g}`);
|
|
59
|
+
let p = d + "=" + E;
|
|
60
|
+
if (!f)
|
|
61
|
+
return p;
|
|
62
|
+
if (f.maxAge !== void 0) {
|
|
63
|
+
if (!Number.isInteger(f.maxAge))
|
|
64
|
+
throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);
|
|
65
|
+
p += "; Max-Age=" + f.maxAge;
|
|
66
66
|
}
|
|
67
|
-
if (
|
|
68
|
-
if (!
|
|
69
|
-
throw new TypeError(`option domain is invalid: ${
|
|
70
|
-
|
|
67
|
+
if (f.domain) {
|
|
68
|
+
if (!t.test(f.domain))
|
|
69
|
+
throw new TypeError(`option domain is invalid: ${f.domain}`);
|
|
70
|
+
p += "; Domain=" + f.domain;
|
|
71
71
|
}
|
|
72
|
-
if (
|
|
73
|
-
if (!a.test(
|
|
74
|
-
throw new TypeError(`option path is invalid: ${
|
|
75
|
-
|
|
72
|
+
if (f.path) {
|
|
73
|
+
if (!a.test(f.path))
|
|
74
|
+
throw new TypeError(`option path is invalid: ${f.path}`);
|
|
75
|
+
p += "; Path=" + f.path;
|
|
76
76
|
}
|
|
77
|
-
if (
|
|
78
|
-
if (!
|
|
79
|
-
throw new TypeError(`option expires is invalid: ${
|
|
80
|
-
|
|
77
|
+
if (f.expires) {
|
|
78
|
+
if (!m(f.expires) || !Number.isFinite(f.expires.valueOf()))
|
|
79
|
+
throw new TypeError(`option expires is invalid: ${f.expires}`);
|
|
80
|
+
p += "; Expires=" + f.expires.toUTCString();
|
|
81
81
|
}
|
|
82
|
-
if (
|
|
83
|
-
switch (typeof
|
|
82
|
+
if (f.httpOnly && (p += "; HttpOnly"), f.secure && (p += "; Secure"), f.partitioned && (p += "; Partitioned"), f.priority)
|
|
83
|
+
switch (typeof f.priority == "string" ? f.priority.toLowerCase() : void 0) {
|
|
84
84
|
case "low":
|
|
85
|
-
|
|
85
|
+
p += "; Priority=Low";
|
|
86
86
|
break;
|
|
87
87
|
case "medium":
|
|
88
|
-
|
|
88
|
+
p += "; Priority=Medium";
|
|
89
89
|
break;
|
|
90
90
|
case "high":
|
|
91
|
-
|
|
91
|
+
p += "; Priority=High";
|
|
92
92
|
break;
|
|
93
93
|
default:
|
|
94
|
-
throw new TypeError(`option priority is invalid: ${
|
|
94
|
+
throw new TypeError(`option priority is invalid: ${f.priority}`);
|
|
95
95
|
}
|
|
96
|
-
if (
|
|
97
|
-
switch (typeof
|
|
96
|
+
if (f.sameSite)
|
|
97
|
+
switch (typeof f.sameSite == "string" ? f.sameSite.toLowerCase() : f.sameSite) {
|
|
98
98
|
case !0:
|
|
99
99
|
case "strict":
|
|
100
|
-
|
|
100
|
+
p += "; SameSite=Strict";
|
|
101
101
|
break;
|
|
102
102
|
case "lax":
|
|
103
|
-
|
|
103
|
+
p += "; SameSite=Lax";
|
|
104
104
|
break;
|
|
105
105
|
case "none":
|
|
106
|
-
|
|
106
|
+
p += "; SameSite=None";
|
|
107
107
|
break;
|
|
108
108
|
default:
|
|
109
|
-
throw new TypeError(`option sameSite is invalid: ${
|
|
109
|
+
throw new TypeError(`option sameSite is invalid: ${f.sameSite}`);
|
|
110
110
|
}
|
|
111
|
-
return
|
|
111
|
+
return p;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
if (
|
|
115
|
-
return
|
|
113
|
+
function h(d) {
|
|
114
|
+
if (d.indexOf("%") === -1)
|
|
115
|
+
return d;
|
|
116
116
|
try {
|
|
117
|
-
return decodeURIComponent(
|
|
117
|
+
return decodeURIComponent(d);
|
|
118
118
|
} catch {
|
|
119
|
-
return
|
|
119
|
+
return d;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return r.call(
|
|
122
|
+
function m(d) {
|
|
123
|
+
return r.call(d) === "[object Date]";
|
|
124
124
|
}
|
|
125
|
-
return
|
|
125
|
+
return F;
|
|
126
126
|
}
|
|
127
127
|
Ae();
|
|
128
128
|
/**
|
|
129
|
-
* react-router v7.
|
|
129
|
+
* react-router v7.5.2
|
|
130
130
|
*
|
|
131
131
|
* Copyright (c) Remix Software Inc.
|
|
132
132
|
*
|
|
@@ -135,49 +135,49 @@ Ae();
|
|
|
135
135
|
*
|
|
136
136
|
* @license MIT
|
|
137
137
|
*/
|
|
138
|
-
function
|
|
138
|
+
function R(e, n) {
|
|
139
139
|
if (e === !1 || e === null || typeof e > "u")
|
|
140
|
-
throw new Error(
|
|
140
|
+
throw new Error(n);
|
|
141
141
|
}
|
|
142
|
-
function L(e,
|
|
142
|
+
function L(e, n) {
|
|
143
143
|
if (!e) {
|
|
144
|
-
typeof console < "u" && console.warn(
|
|
144
|
+
typeof console < "u" && console.warn(n);
|
|
145
145
|
try {
|
|
146
|
-
throw new Error(
|
|
146
|
+
throw new Error(n);
|
|
147
147
|
} catch {
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function W({
|
|
152
152
|
pathname: e = "/",
|
|
153
|
-
search:
|
|
154
|
-
hash:
|
|
153
|
+
search: n = "",
|
|
154
|
+
hash: t = ""
|
|
155
155
|
}) {
|
|
156
|
-
return
|
|
156
|
+
return n && n !== "?" && (e += n.charAt(0) === "?" ? n : "?" + n), t && t !== "#" && (e += t.charAt(0) === "#" ? t : "#" + t), e;
|
|
157
157
|
}
|
|
158
158
|
function Y(e) {
|
|
159
|
-
let
|
|
159
|
+
let n = {};
|
|
160
160
|
if (e) {
|
|
161
|
-
let
|
|
162
|
-
|
|
161
|
+
let t = e.indexOf("#");
|
|
162
|
+
t >= 0 && (n.hash = e.substring(t), e = e.substring(0, t));
|
|
163
163
|
let a = e.indexOf("?");
|
|
164
|
-
a >= 0 && (
|
|
164
|
+
a >= 0 && (n.search = e.substring(a), e = e.substring(0, a)), e && (n.pathname = e);
|
|
165
165
|
}
|
|
166
|
-
return
|
|
166
|
+
return n;
|
|
167
167
|
}
|
|
168
|
-
function pe(e,
|
|
169
|
-
return De(e,
|
|
168
|
+
function pe(e, n, t = "/") {
|
|
169
|
+
return De(e, n, t, !1);
|
|
170
170
|
}
|
|
171
|
-
function De(e,
|
|
172
|
-
let r = typeof
|
|
171
|
+
function De(e, n, t, a) {
|
|
172
|
+
let r = typeof n == "string" ? Y(n) : n, i = A(r.pathname || "/", t);
|
|
173
173
|
if (i == null)
|
|
174
174
|
return null;
|
|
175
175
|
let s = ge(e);
|
|
176
|
-
|
|
176
|
+
Oe(s);
|
|
177
177
|
let c = null;
|
|
178
178
|
for (let l = 0; c == null && l < s.length; ++l) {
|
|
179
179
|
let u = ye(i);
|
|
180
|
-
c =
|
|
180
|
+
c = je(
|
|
181
181
|
s[l],
|
|
182
182
|
u,
|
|
183
183
|
a
|
|
@@ -185,7 +185,7 @@ function De(e, t, n, a) {
|
|
|
185
185
|
}
|
|
186
186
|
return c;
|
|
187
187
|
}
|
|
188
|
-
function ge(e,
|
|
188
|
+
function ge(e, n = [], t = [], a = "") {
|
|
189
189
|
let r = (i, s, c) => {
|
|
190
190
|
let l = {
|
|
191
191
|
relativePath: c === void 0 ? i.path || "" : c,
|
|
@@ -193,20 +193,20 @@ function ge(e, t = [], n = [], a = "") {
|
|
|
193
193
|
childrenIndex: s,
|
|
194
194
|
route: i
|
|
195
195
|
};
|
|
196
|
-
l.relativePath.startsWith("/") && (
|
|
196
|
+
l.relativePath.startsWith("/") && (R(
|
|
197
197
|
l.relativePath.startsWith(a),
|
|
198
198
|
`Absolute route path "${l.relativePath}" nested under path "${a}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
199
199
|
), l.relativePath = l.relativePath.slice(a.length));
|
|
200
|
-
let u =
|
|
201
|
-
i.children && i.children.length > 0 && (
|
|
200
|
+
let u = M([a, l.relativePath]), h = t.concat(l);
|
|
201
|
+
i.children && i.children.length > 0 && (R(
|
|
202
202
|
// Our types know better, but runtime JS may not!
|
|
203
203
|
// @ts-expect-error
|
|
204
204
|
i.index !== !0,
|
|
205
205
|
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
206
|
-
), ge(i.children,
|
|
206
|
+
), ge(i.children, n, h, u)), !(i.path == null && !i.index) && n.push({
|
|
207
207
|
path: u,
|
|
208
208
|
score: He(u, i.index),
|
|
209
|
-
routesMeta:
|
|
209
|
+
routesMeta: h
|
|
210
210
|
});
|
|
211
211
|
};
|
|
212
212
|
return e.forEach((i, s) => {
|
|
@@ -216,12 +216,12 @@ function ge(e, t = [], n = [], a = "") {
|
|
|
216
216
|
else
|
|
217
217
|
for (let l of ve(i.path))
|
|
218
218
|
r(i, s, l);
|
|
219
|
-
}),
|
|
219
|
+
}), n;
|
|
220
220
|
}
|
|
221
221
|
function ve(e) {
|
|
222
|
-
let
|
|
223
|
-
if (
|
|
224
|
-
let [
|
|
222
|
+
let n = e.split("/");
|
|
223
|
+
if (n.length === 0) return [];
|
|
224
|
+
let [t, ...a] = n, r = t.endsWith("?"), i = t.replace(/\?$/, "");
|
|
225
225
|
if (a.length === 0)
|
|
226
226
|
return r ? [i, ""] : [i];
|
|
227
227
|
let s = ve(a.join("/")), c = [];
|
|
@@ -233,81 +233,100 @@ function ve(e) {
|
|
|
233
233
|
(l) => e.startsWith("/") && l === "" ? "/" : l
|
|
234
234
|
);
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function Oe(e) {
|
|
237
237
|
e.sort(
|
|
238
|
-
(
|
|
239
|
-
|
|
240
|
-
|
|
238
|
+
(n, t) => n.score !== t.score ? t.score - n.score : ze(
|
|
239
|
+
n.routesMeta.map((a) => a.childrenIndex),
|
|
240
|
+
t.routesMeta.map((a) => a.childrenIndex)
|
|
241
241
|
)
|
|
242
242
|
);
|
|
243
243
|
}
|
|
244
|
-
var
|
|
245
|
-
function He(e,
|
|
246
|
-
let
|
|
247
|
-
return
|
|
248
|
-
(r, i) => r + (
|
|
244
|
+
var Ie = /^:[\w-]+$/, _e = 3, Fe = 2, Ue = 1, We = 10, Be = -2, ce = (e) => e === "*";
|
|
245
|
+
function He(e, n) {
|
|
246
|
+
let t = e.split("/"), a = t.length;
|
|
247
|
+
return t.some(ce) && (a += Be), n && (a += Fe), t.filter((r) => !ce(r)).reduce(
|
|
248
|
+
(r, i) => r + (Ie.test(i) ? _e : i === "" ? Ue : We),
|
|
249
249
|
a
|
|
250
250
|
);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
253
|
-
return e.length ===
|
|
252
|
+
function ze(e, n) {
|
|
253
|
+
return e.length === n.length && e.slice(0, -1).every((a, r) => a === n[r]) ? (
|
|
254
254
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
255
255
|
// first. This allows people to have fine-grained control over the matching
|
|
256
256
|
// behavior by simply putting routes with identical paths in the order they
|
|
257
257
|
// want them tried.
|
|
258
|
-
e[e.length - 1] -
|
|
258
|
+
e[e.length - 1] - n[n.length - 1]
|
|
259
259
|
) : (
|
|
260
260
|
// Otherwise, it doesn't really make sense to rank non-siblings by index,
|
|
261
261
|
// so they sort equally.
|
|
262
262
|
0
|
|
263
263
|
);
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function je(e, n, t = !1) {
|
|
266
266
|
let { routesMeta: a } = e, r = {}, i = "/", s = [];
|
|
267
267
|
for (let c = 0; c < a.length; ++c) {
|
|
268
|
-
let l = a[c], u = c === a.length - 1,
|
|
268
|
+
let l = a[c], u = c === a.length - 1, h = i === "/" ? n : n.slice(i.length) || "/", m = B(
|
|
269
269
|
{ path: l.relativePath, caseSensitive: l.caseSensitive, end: u },
|
|
270
|
-
|
|
271
|
-
),
|
|
272
|
-
if (!
|
|
270
|
+
h
|
|
271
|
+
), d = l.route;
|
|
272
|
+
if (!m && u && t && !a[a.length - 1].route.index && (m = B(
|
|
273
273
|
{
|
|
274
274
|
path: l.relativePath,
|
|
275
275
|
caseSensitive: l.caseSensitive,
|
|
276
276
|
end: !1
|
|
277
277
|
},
|
|
278
|
-
|
|
279
|
-
)), !
|
|
278
|
+
h
|
|
279
|
+
)), !m)
|
|
280
280
|
return null;
|
|
281
|
-
Object.assign(r,
|
|
281
|
+
Object.assign(r, m.params), s.push({
|
|
282
282
|
// TODO: Can this as be avoided?
|
|
283
283
|
params: r,
|
|
284
|
-
pathname:
|
|
285
|
-
pathnameBase:
|
|
286
|
-
|
|
284
|
+
pathname: M([i, m.pathname]),
|
|
285
|
+
pathnameBase: qe(
|
|
286
|
+
M([i, m.pathnameBase])
|
|
287
287
|
),
|
|
288
|
-
route:
|
|
289
|
-
}),
|
|
288
|
+
route: d
|
|
289
|
+
}), m.pathnameBase !== "/" && (i = M([i, m.pathnameBase]));
|
|
290
290
|
}
|
|
291
291
|
return s;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function on(e, n = {}) {
|
|
294
|
+
let t = e;
|
|
295
|
+
t.endsWith("*") && t !== "*" && !t.endsWith("/*") && (L(
|
|
296
|
+
!1,
|
|
297
|
+
`Route path "${t}" will be treated as if it were "${t.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/, "/*")}".`
|
|
298
|
+
), t = t.replace(/\*$/, "/*"));
|
|
299
|
+
const a = t.startsWith("/") ? "/" : "", r = (s) => s == null ? "" : typeof s == "string" ? s : String(s), i = t.split(/\/+/).map((s, c, l) => {
|
|
300
|
+
if (c === l.length - 1 && s === "*")
|
|
301
|
+
return r(n["*"]);
|
|
302
|
+
const h = s.match(/^:([\w-]+)(\??)$/);
|
|
303
|
+
if (h) {
|
|
304
|
+
const [, m, d] = h;
|
|
305
|
+
let g = n[m];
|
|
306
|
+
return R(d === "?" || g != null, `Missing ":${m}" param`), r(g);
|
|
307
|
+
}
|
|
308
|
+
return s.replace(/\?$/g, "");
|
|
309
|
+
}).filter((s) => !!s);
|
|
310
|
+
return a + i.join("/");
|
|
311
|
+
}
|
|
312
|
+
function B(e, n) {
|
|
294
313
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
295
|
-
let [
|
|
314
|
+
let [t, a] = Ve(
|
|
296
315
|
e.path,
|
|
297
316
|
e.caseSensitive,
|
|
298
317
|
e.end
|
|
299
|
-
), r =
|
|
318
|
+
), r = n.match(t);
|
|
300
319
|
if (!r) return null;
|
|
301
320
|
let i = r[0], s = i.replace(/(.)\/+$/, "$1"), c = r.slice(1);
|
|
302
321
|
return {
|
|
303
322
|
params: a.reduce(
|
|
304
|
-
(u, { paramName:
|
|
305
|
-
if (
|
|
306
|
-
let
|
|
307
|
-
s = i.slice(0, i.length -
|
|
323
|
+
(u, { paramName: h, isOptional: m }, d) => {
|
|
324
|
+
if (h === "*") {
|
|
325
|
+
let f = c[d] || "";
|
|
326
|
+
s = i.slice(0, i.length - f.length).replace(/(.)\/+$/, "$1");
|
|
308
327
|
}
|
|
309
|
-
const
|
|
310
|
-
return
|
|
328
|
+
const g = c[d];
|
|
329
|
+
return m && !g ? u[h] = void 0 : u[h] = (g || "").replace(/%2F/g, "/"), u;
|
|
311
330
|
},
|
|
312
331
|
{}
|
|
313
332
|
),
|
|
@@ -316,7 +335,7 @@ function H(e, t) {
|
|
|
316
335
|
pattern: e
|
|
317
336
|
};
|
|
318
337
|
}
|
|
319
|
-
function Ve(e,
|
|
338
|
+
function Ve(e, n = !1, t = !0) {
|
|
320
339
|
L(
|
|
321
340
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
322
341
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
@@ -325,92 +344,92 @@ function Ve(e, t = !1, n = !0) {
|
|
|
325
344
|
/\/:([\w-]+)(\?)?/g,
|
|
326
345
|
(s, c, l) => (a.push({ paramName: c, isOptional: l != null }), l ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
327
346
|
);
|
|
328
|
-
return e.endsWith("*") ? (a.push({ paramName: "*" }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") :
|
|
347
|
+
return e.endsWith("*") ? (a.push({ paramName: "*" }), r += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : t ? r += "\\/*$" : e !== "" && e !== "/" && (r += "(?:(?=\\/|$))"), [new RegExp(r, n ? void 0 : "i"), a];
|
|
329
348
|
}
|
|
330
349
|
function ye(e) {
|
|
331
350
|
try {
|
|
332
|
-
return e.split("/").map((
|
|
333
|
-
} catch (
|
|
351
|
+
return e.split("/").map((n) => decodeURIComponent(n).replace(/\//g, "%2F")).join("/");
|
|
352
|
+
} catch (n) {
|
|
334
353
|
return L(
|
|
335
354
|
!1,
|
|
336
|
-
`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${
|
|
355
|
+
`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`
|
|
337
356
|
), e;
|
|
338
357
|
}
|
|
339
358
|
}
|
|
340
|
-
function
|
|
341
|
-
if (
|
|
342
|
-
if (!e.toLowerCase().startsWith(
|
|
359
|
+
function A(e, n) {
|
|
360
|
+
if (n === "/") return e;
|
|
361
|
+
if (!e.toLowerCase().startsWith(n.toLowerCase()))
|
|
343
362
|
return null;
|
|
344
|
-
let
|
|
345
|
-
return a && a !== "/" ? null : e.slice(
|
|
363
|
+
let t = n.endsWith("/") ? n.length - 1 : n.length, a = e.charAt(t);
|
|
364
|
+
return a && a !== "/" ? null : e.slice(t) || "/";
|
|
346
365
|
}
|
|
347
|
-
function
|
|
366
|
+
function Ye(e, n = "/") {
|
|
348
367
|
let {
|
|
349
|
-
pathname:
|
|
368
|
+
pathname: t,
|
|
350
369
|
search: a = "",
|
|
351
370
|
hash: r = ""
|
|
352
371
|
} = typeof e == "string" ? Y(e) : e;
|
|
353
372
|
return {
|
|
354
|
-
pathname:
|
|
355
|
-
search:
|
|
356
|
-
hash:
|
|
373
|
+
pathname: t ? t.startsWith("/") ? t : Je(t, n) : n,
|
|
374
|
+
search: Ge(a),
|
|
375
|
+
hash: Xe(r)
|
|
357
376
|
};
|
|
358
377
|
}
|
|
359
|
-
function
|
|
360
|
-
let
|
|
378
|
+
function Je(e, n) {
|
|
379
|
+
let t = n.replace(/\/+$/, "").split("/");
|
|
361
380
|
return e.split("/").forEach((r) => {
|
|
362
|
-
r === ".." ?
|
|
363
|
-
}),
|
|
381
|
+
r === ".." ? t.length > 1 && t.pop() : r !== "." && t.push(r);
|
|
382
|
+
}), t.length > 1 ? t.join("/") : "/";
|
|
364
383
|
}
|
|
365
|
-
function G(e,
|
|
366
|
-
return `Cannot include a '${e}' character in a manually specified \`to.${
|
|
384
|
+
function G(e, n, t, a) {
|
|
385
|
+
return `Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(
|
|
367
386
|
a
|
|
368
|
-
)}]. Please separate it out to the \`to.${
|
|
387
|
+
)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
369
388
|
}
|
|
370
|
-
function
|
|
389
|
+
function Ke(e) {
|
|
371
390
|
return e.filter(
|
|
372
|
-
(
|
|
391
|
+
(n, t) => t === 0 || n.route.path && n.route.path.length > 0
|
|
373
392
|
);
|
|
374
393
|
}
|
|
375
394
|
function Z(e) {
|
|
376
|
-
let
|
|
377
|
-
return
|
|
378
|
-
(
|
|
395
|
+
let n = Ke(e);
|
|
396
|
+
return n.map(
|
|
397
|
+
(t, a) => a === n.length - 1 ? t.pathname : t.pathnameBase
|
|
379
398
|
);
|
|
380
399
|
}
|
|
381
|
-
function ee(e,
|
|
400
|
+
function ee(e, n, t, a = !1) {
|
|
382
401
|
let r;
|
|
383
|
-
typeof e == "string" ? r = Y(e) : (r = { ...e },
|
|
402
|
+
typeof e == "string" ? r = Y(e) : (r = { ...e }, R(
|
|
384
403
|
!r.pathname || !r.pathname.includes("?"),
|
|
385
404
|
G("?", "pathname", "search", r)
|
|
386
|
-
),
|
|
405
|
+
), R(
|
|
387
406
|
!r.pathname || !r.pathname.includes("#"),
|
|
388
407
|
G("#", "pathname", "hash", r)
|
|
389
|
-
),
|
|
408
|
+
), R(
|
|
390
409
|
!r.search || !r.search.includes("#"),
|
|
391
410
|
G("#", "search", "hash", r)
|
|
392
411
|
));
|
|
393
412
|
let i = e === "" || r.pathname === "", s = i ? "/" : r.pathname, c;
|
|
394
413
|
if (s == null)
|
|
395
|
-
c =
|
|
414
|
+
c = t;
|
|
396
415
|
else {
|
|
397
|
-
let
|
|
416
|
+
let m = n.length - 1;
|
|
398
417
|
if (!a && s.startsWith("..")) {
|
|
399
|
-
let
|
|
400
|
-
for (;
|
|
401
|
-
|
|
402
|
-
r.pathname =
|
|
418
|
+
let d = s.split("/");
|
|
419
|
+
for (; d[0] === ".."; )
|
|
420
|
+
d.shift(), m -= 1;
|
|
421
|
+
r.pathname = d.join("/");
|
|
403
422
|
}
|
|
404
|
-
c =
|
|
423
|
+
c = m >= 0 ? n[m] : "/";
|
|
405
424
|
}
|
|
406
|
-
let l =
|
|
407
|
-
return !l.pathname.endsWith("/") && (u ||
|
|
408
|
-
}
|
|
409
|
-
var
|
|
410
|
-
let
|
|
411
|
-
typeof
|
|
412
|
-
let a = new Headers(
|
|
413
|
-
return a.set("Location", e), new Response(null, { ...
|
|
425
|
+
let l = Ye(r, c), u = s && s !== "/" && s.endsWith("/"), h = (i || s === ".") && t.endsWith("/");
|
|
426
|
+
return !l.pathname.endsWith("/") && (u || h) && (l.pathname += "/"), l;
|
|
427
|
+
}
|
|
428
|
+
var M = (e) => e.join("/").replace(/\/\/+/g, "/"), qe = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Ge = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Xe = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, ln = (e, n = 302) => {
|
|
429
|
+
let t = n;
|
|
430
|
+
typeof t == "number" ? t = { status: t } : typeof t.status > "u" && (t.status = 302);
|
|
431
|
+
let a = new Headers(t.headers);
|
|
432
|
+
return a.set("Location", e), new Response(null, { ...t, headers: a });
|
|
414
433
|
};
|
|
415
434
|
function we(e) {
|
|
416
435
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
@@ -424,15 +443,15 @@ var Ee = [
|
|
|
424
443
|
new Set(
|
|
425
444
|
Ee
|
|
426
445
|
);
|
|
427
|
-
var
|
|
446
|
+
var Qe = [
|
|
428
447
|
"GET",
|
|
429
448
|
...Ee
|
|
430
449
|
];
|
|
431
|
-
new Set(
|
|
450
|
+
new Set(Qe);
|
|
432
451
|
var O = o.createContext(null);
|
|
433
452
|
O.displayName = "DataRouter";
|
|
434
|
-
var
|
|
435
|
-
|
|
453
|
+
var _ = o.createContext(null);
|
|
454
|
+
_.displayName = "DataRouterState";
|
|
436
455
|
var J = o.createContext({
|
|
437
456
|
isTransitioning: !1
|
|
438
457
|
});
|
|
@@ -441,8 +460,8 @@ var te = o.createContext(
|
|
|
441
460
|
/* @__PURE__ */ new Map()
|
|
442
461
|
);
|
|
443
462
|
te.displayName = "Fetchers";
|
|
444
|
-
var
|
|
445
|
-
|
|
463
|
+
var Ze = o.createContext(null);
|
|
464
|
+
Ze.displayName = "Await";
|
|
446
465
|
var T = o.createContext(
|
|
447
466
|
null
|
|
448
467
|
);
|
|
@@ -459,168 +478,168 @@ var k = o.createContext({
|
|
|
459
478
|
k.displayName = "Route";
|
|
460
479
|
var ne = o.createContext(null);
|
|
461
480
|
ne.displayName = "RouteError";
|
|
462
|
-
function
|
|
463
|
-
|
|
464
|
-
|
|
481
|
+
function et(e, { relative: n } = {}) {
|
|
482
|
+
R(
|
|
483
|
+
I(),
|
|
465
484
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
466
485
|
// router loaded. We can help them understand how to avoid that.
|
|
467
486
|
"useHref() may be used only in the context of a <Router> component."
|
|
468
487
|
);
|
|
469
|
-
let { basename:
|
|
470
|
-
return
|
|
488
|
+
let { basename: t, navigator: a } = o.useContext(T), { hash: r, pathname: i, search: s } = H(e, { relative: n }), c = i;
|
|
489
|
+
return t !== "/" && (c = i === "/" ? t : M([t, i])), a.createHref({ pathname: c, search: s, hash: r });
|
|
471
490
|
}
|
|
472
|
-
function
|
|
491
|
+
function I() {
|
|
473
492
|
return o.useContext(K) != null;
|
|
474
493
|
}
|
|
475
494
|
function N() {
|
|
476
|
-
return
|
|
477
|
-
|
|
495
|
+
return R(
|
|
496
|
+
I(),
|
|
478
497
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
479
498
|
// router loaded. We can help them understand how to avoid that.
|
|
480
499
|
"useLocation() may be used only in the context of a <Router> component."
|
|
481
500
|
), o.useContext(K).location;
|
|
482
501
|
}
|
|
483
|
-
function
|
|
484
|
-
|
|
485
|
-
|
|
502
|
+
function sn(e) {
|
|
503
|
+
R(
|
|
504
|
+
I(),
|
|
486
505
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
487
506
|
// router loaded. We can help them understand how to avoid that.
|
|
488
507
|
"useMatch() may be used only in the context of a <Router> component."
|
|
489
508
|
);
|
|
490
|
-
let { pathname:
|
|
509
|
+
let { pathname: n } = N();
|
|
491
510
|
return o.useMemo(
|
|
492
|
-
() =>
|
|
493
|
-
[
|
|
511
|
+
() => B(e, ye(n)),
|
|
512
|
+
[n, e]
|
|
494
513
|
);
|
|
495
514
|
}
|
|
496
515
|
var xe = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
497
|
-
function
|
|
516
|
+
function be(e) {
|
|
498
517
|
o.useContext(T).static || o.useLayoutEffect(e);
|
|
499
518
|
}
|
|
500
519
|
function re() {
|
|
501
520
|
let { isDataRoute: e } = o.useContext(k);
|
|
502
|
-
return e ?
|
|
521
|
+
return e ? ht() : tt();
|
|
503
522
|
}
|
|
504
|
-
function
|
|
505
|
-
|
|
506
|
-
|
|
523
|
+
function tt() {
|
|
524
|
+
R(
|
|
525
|
+
I(),
|
|
507
526
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
508
527
|
// router loaded. We can help them understand how to avoid that.
|
|
509
528
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
510
529
|
);
|
|
511
|
-
let e = o.useContext(O), { basename:
|
|
512
|
-
return
|
|
530
|
+
let e = o.useContext(O), { basename: n, navigator: t } = o.useContext(T), { matches: a } = o.useContext(k), { pathname: r } = N(), i = JSON.stringify(Z(a)), s = o.useRef(!1);
|
|
531
|
+
return be(() => {
|
|
513
532
|
s.current = !0;
|
|
514
533
|
}), o.useCallback(
|
|
515
534
|
(l, u = {}) => {
|
|
516
535
|
if (L(s.current, xe), !s.current) return;
|
|
517
536
|
if (typeof l == "number") {
|
|
518
|
-
|
|
537
|
+
t.go(l);
|
|
519
538
|
return;
|
|
520
539
|
}
|
|
521
|
-
let
|
|
540
|
+
let h = ee(
|
|
522
541
|
l,
|
|
523
542
|
JSON.parse(i),
|
|
524
543
|
r,
|
|
525
544
|
u.relative === "path"
|
|
526
545
|
);
|
|
527
|
-
e == null &&
|
|
528
|
-
|
|
546
|
+
e == null && n !== "/" && (h.pathname = h.pathname === "/" ? n : M([n, h.pathname])), (u.replace ? t.replace : t.push)(
|
|
547
|
+
h,
|
|
529
548
|
u.state,
|
|
530
549
|
u
|
|
531
550
|
);
|
|
532
551
|
},
|
|
533
552
|
[
|
|
534
|
-
t,
|
|
535
553
|
n,
|
|
554
|
+
t,
|
|
536
555
|
i,
|
|
537
556
|
r,
|
|
538
557
|
e
|
|
539
558
|
]
|
|
540
559
|
);
|
|
541
560
|
}
|
|
542
|
-
var
|
|
543
|
-
function
|
|
544
|
-
let
|
|
545
|
-
return
|
|
561
|
+
var nt = o.createContext(null);
|
|
562
|
+
function rt(e) {
|
|
563
|
+
let n = o.useContext(k).outlet;
|
|
564
|
+
return n && /* @__PURE__ */ o.createElement(nt.Provider, { value: e }, n);
|
|
546
565
|
}
|
|
547
|
-
function
|
|
548
|
-
let { matches: e } = o.useContext(k),
|
|
549
|
-
return
|
|
566
|
+
function un() {
|
|
567
|
+
let { matches: e } = o.useContext(k), n = e[e.length - 1];
|
|
568
|
+
return n ? n.params : {};
|
|
550
569
|
}
|
|
551
|
-
function
|
|
552
|
-
let { matches:
|
|
570
|
+
function H(e, { relative: n } = {}) {
|
|
571
|
+
let { matches: t } = o.useContext(k), { pathname: a } = N(), r = JSON.stringify(Z(t));
|
|
553
572
|
return o.useMemo(
|
|
554
573
|
() => ee(
|
|
555
574
|
e,
|
|
556
575
|
JSON.parse(r),
|
|
557
576
|
a,
|
|
558
|
-
|
|
577
|
+
n === "path"
|
|
559
578
|
),
|
|
560
|
-
[e, r, a,
|
|
579
|
+
[e, r, a, n]
|
|
561
580
|
);
|
|
562
581
|
}
|
|
563
|
-
function
|
|
564
|
-
|
|
565
|
-
|
|
582
|
+
function Re(e, n, t, a) {
|
|
583
|
+
R(
|
|
584
|
+
I(),
|
|
566
585
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
567
586
|
// router loaded. We can help them understand how to avoid that.
|
|
568
587
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
569
588
|
);
|
|
570
|
-
let { navigator: r } = o.useContext(T), { matches:
|
|
589
|
+
let { navigator: r, static: i } = o.useContext(T), { matches: s } = o.useContext(k), c = s[s.length - 1], l = c ? c.params : {}, u = c ? c.pathname : "/", h = c ? c.pathnameBase : "/", m = c && c.route;
|
|
571
590
|
{
|
|
572
|
-
let
|
|
591
|
+
let v = m && m.path || "";
|
|
573
592
|
Se(
|
|
574
|
-
|
|
575
|
-
!m ||
|
|
576
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${
|
|
593
|
+
u,
|
|
594
|
+
!m || v.endsWith("*") || v.endsWith("*?"),
|
|
595
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${v}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
577
596
|
|
|
578
|
-
Please change the parent <Route path="${
|
|
597
|
+
Please change the parent <Route path="${v}"> to <Route path="${v === "/" ? "*" : `${v}/*`}">.`
|
|
579
598
|
);
|
|
580
599
|
}
|
|
581
|
-
let
|
|
582
|
-
|
|
583
|
-
let
|
|
584
|
-
if (
|
|
585
|
-
let
|
|
586
|
-
|
|
600
|
+
let d = N(), g;
|
|
601
|
+
g = d;
|
|
602
|
+
let f = g.pathname || "/", w = f;
|
|
603
|
+
if (h !== "/") {
|
|
604
|
+
let v = h.replace(/^\//, "").split("/");
|
|
605
|
+
w = "/" + f.replace(/^\//, "").split("/").slice(v.length).join("/");
|
|
587
606
|
}
|
|
588
|
-
let
|
|
607
|
+
let E = !i && t && t.matches && t.matches.length > 0 ? t.matches : pe(e, { pathname: w });
|
|
589
608
|
return L(
|
|
590
|
-
m ||
|
|
591
|
-
`No routes matched location "${
|
|
609
|
+
m || E != null,
|
|
610
|
+
`No routes matched location "${g.pathname}${g.search}${g.hash}" `
|
|
592
611
|
), L(
|
|
593
|
-
|
|
594
|
-
`Matched leaf route at location "${
|
|
595
|
-
),
|
|
596
|
-
|
|
597
|
-
(
|
|
598
|
-
params: Object.assign({},
|
|
599
|
-
pathname:
|
|
600
|
-
|
|
612
|
+
E == null || E[E.length - 1].route.element !== void 0 || E[E.length - 1].route.Component !== void 0 || E[E.length - 1].route.lazy !== void 0,
|
|
613
|
+
`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
614
|
+
), st(
|
|
615
|
+
E && E.map(
|
|
616
|
+
(v) => Object.assign({}, v, {
|
|
617
|
+
params: Object.assign({}, l, v.params),
|
|
618
|
+
pathname: M([
|
|
619
|
+
h,
|
|
601
620
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
602
|
-
r.encodeLocation ? r.encodeLocation(
|
|
621
|
+
r.encodeLocation ? r.encodeLocation(v.pathname).pathname : v.pathname
|
|
603
622
|
]),
|
|
604
|
-
pathnameBase:
|
|
605
|
-
|
|
623
|
+
pathnameBase: v.pathnameBase === "/" ? h : M([
|
|
624
|
+
h,
|
|
606
625
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
607
|
-
r.encodeLocation ? r.encodeLocation(
|
|
626
|
+
r.encodeLocation ? r.encodeLocation(v.pathnameBase).pathname : v.pathnameBase
|
|
608
627
|
])
|
|
609
628
|
})
|
|
610
629
|
),
|
|
611
|
-
|
|
612
|
-
|
|
630
|
+
s,
|
|
631
|
+
t,
|
|
613
632
|
a
|
|
614
633
|
);
|
|
615
634
|
}
|
|
616
|
-
function
|
|
617
|
-
let e =
|
|
635
|
+
function at() {
|
|
636
|
+
let e = dt(), n = we(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), t = e instanceof Error ? e.stack : null, a = "rgba(200,200,200, 0.5)", r = { padding: "0.5rem", backgroundColor: a }, i = { padding: "2px 4px", backgroundColor: a }, s = null;
|
|
618
637
|
return console.error(
|
|
619
638
|
"Error handled by React Router default ErrorBoundary:",
|
|
620
639
|
e
|
|
621
|
-
), s = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ o.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ o.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ o.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ o.createElement("h3", { style: { fontStyle: "italic" } },
|
|
640
|
+
), s = /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ o.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ o.createElement("code", { style: i }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ o.createElement("code", { style: i }, "errorElement"), " prop on your route.")), /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ o.createElement("h3", { style: { fontStyle: "italic" } }, n), t ? /* @__PURE__ */ o.createElement("pre", { style: r }, t) : null, s);
|
|
622
641
|
}
|
|
623
|
-
var
|
|
642
|
+
var it = /* @__PURE__ */ o.createElement(at, null), ot = class extends o.Component {
|
|
624
643
|
constructor(e) {
|
|
625
644
|
super(e), this.state = {
|
|
626
645
|
location: e.location,
|
|
@@ -631,22 +650,22 @@ var at = /* @__PURE__ */ o.createElement(rt, null), it = class extends o.Compone
|
|
|
631
650
|
static getDerivedStateFromError(e) {
|
|
632
651
|
return { error: e };
|
|
633
652
|
}
|
|
634
|
-
static getDerivedStateFromProps(e,
|
|
635
|
-
return
|
|
653
|
+
static getDerivedStateFromProps(e, n) {
|
|
654
|
+
return n.location !== e.location || n.revalidation !== "idle" && e.revalidation === "idle" ? {
|
|
636
655
|
error: e.error,
|
|
637
656
|
location: e.location,
|
|
638
657
|
revalidation: e.revalidation
|
|
639
658
|
} : {
|
|
640
|
-
error: e.error !== void 0 ? e.error :
|
|
641
|
-
location:
|
|
642
|
-
revalidation: e.revalidation ||
|
|
659
|
+
error: e.error !== void 0 ? e.error : n.error,
|
|
660
|
+
location: n.location,
|
|
661
|
+
revalidation: e.revalidation || n.revalidation
|
|
643
662
|
};
|
|
644
663
|
}
|
|
645
|
-
componentDidCatch(e,
|
|
664
|
+
componentDidCatch(e, n) {
|
|
646
665
|
console.error(
|
|
647
666
|
"React Router caught the following error during render",
|
|
648
667
|
e,
|
|
649
|
-
|
|
668
|
+
n
|
|
650
669
|
);
|
|
651
670
|
}
|
|
652
671
|
render() {
|
|
@@ -659,27 +678,27 @@ var at = /* @__PURE__ */ o.createElement(rt, null), it = class extends o.Compone
|
|
|
659
678
|
)) : this.props.children;
|
|
660
679
|
}
|
|
661
680
|
};
|
|
662
|
-
function
|
|
681
|
+
function lt({ routeContext: e, match: n, children: t }) {
|
|
663
682
|
let a = o.useContext(O);
|
|
664
|
-
return a && a.static && a.staticContext && (
|
|
683
|
+
return a && a.static && a.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (a.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ o.createElement(k.Provider, { value: e }, t);
|
|
665
684
|
}
|
|
666
|
-
function
|
|
685
|
+
function st(e, n = [], t = null, a = null) {
|
|
667
686
|
if (e == null) {
|
|
668
|
-
if (!
|
|
687
|
+
if (!t)
|
|
669
688
|
return null;
|
|
670
|
-
if (
|
|
671
|
-
e =
|
|
672
|
-
else if (
|
|
673
|
-
e =
|
|
689
|
+
if (t.errors)
|
|
690
|
+
e = t.matches;
|
|
691
|
+
else if (n.length === 0 && !t.initialized && t.matches.length > 0)
|
|
692
|
+
e = t.matches;
|
|
674
693
|
else
|
|
675
694
|
return null;
|
|
676
695
|
}
|
|
677
|
-
let r = e, i =
|
|
696
|
+
let r = e, i = t == null ? void 0 : t.errors;
|
|
678
697
|
if (i != null) {
|
|
679
698
|
let l = r.findIndex(
|
|
680
699
|
(u) => u.route.id && (i == null ? void 0 : i[u.route.id]) !== void 0
|
|
681
700
|
);
|
|
682
|
-
|
|
701
|
+
R(
|
|
683
702
|
l >= 0,
|
|
684
703
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
685
704
|
i
|
|
@@ -690,145 +709,145 @@ function lt(e, t = [], n = null, a = null) {
|
|
|
690
709
|
);
|
|
691
710
|
}
|
|
692
711
|
let s = !1, c = -1;
|
|
693
|
-
if (
|
|
712
|
+
if (t)
|
|
694
713
|
for (let l = 0; l < r.length; l++) {
|
|
695
714
|
let u = r[l];
|
|
696
715
|
if ((u.route.HydrateFallback || u.route.hydrateFallbackElement) && (c = l), u.route.id) {
|
|
697
|
-
let { loaderData:
|
|
698
|
-
if (u.route.lazy ||
|
|
716
|
+
let { loaderData: h, errors: m } = t, d = u.route.loader && !h.hasOwnProperty(u.route.id) && (!m || m[u.route.id] === void 0);
|
|
717
|
+
if (u.route.lazy || d) {
|
|
699
718
|
s = !0, c >= 0 ? r = r.slice(0, c + 1) : r = [r[0]];
|
|
700
719
|
break;
|
|
701
720
|
}
|
|
702
721
|
}
|
|
703
722
|
}
|
|
704
|
-
return r.reduceRight((l, u,
|
|
705
|
-
let
|
|
706
|
-
|
|
723
|
+
return r.reduceRight((l, u, h) => {
|
|
724
|
+
let m, d = !1, g = null, f = null;
|
|
725
|
+
t && (m = i && u.route.id ? i[u.route.id] : void 0, g = u.route.errorElement || it, s && (c < 0 && h === 0 ? (Se(
|
|
707
726
|
"route-fallback",
|
|
708
727
|
!1,
|
|
709
728
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
710
|
-
),
|
|
711
|
-
let
|
|
712
|
-
let
|
|
713
|
-
return
|
|
714
|
-
|
|
729
|
+
), d = !0, f = null) : c === h && (d = !0, f = u.route.hydrateFallbackElement || null)));
|
|
730
|
+
let w = n.concat(r.slice(0, h + 1)), E = () => {
|
|
731
|
+
let p;
|
|
732
|
+
return m ? p = g : d ? p = f : u.route.Component ? p = /* @__PURE__ */ o.createElement(u.route.Component, null) : u.route.element ? p = u.route.element : p = l, /* @__PURE__ */ o.createElement(
|
|
733
|
+
lt,
|
|
715
734
|
{
|
|
716
735
|
match: u,
|
|
717
736
|
routeContext: {
|
|
718
737
|
outlet: l,
|
|
719
|
-
matches:
|
|
720
|
-
isDataRoute:
|
|
738
|
+
matches: w,
|
|
739
|
+
isDataRoute: t != null
|
|
721
740
|
},
|
|
722
|
-
children:
|
|
741
|
+
children: p
|
|
723
742
|
}
|
|
724
743
|
);
|
|
725
744
|
};
|
|
726
|
-
return
|
|
727
|
-
|
|
745
|
+
return t && (u.route.ErrorBoundary || u.route.errorElement || h === 0) ? /* @__PURE__ */ o.createElement(
|
|
746
|
+
ot,
|
|
728
747
|
{
|
|
729
|
-
location:
|
|
730
|
-
revalidation:
|
|
731
|
-
component:
|
|
732
|
-
error:
|
|
733
|
-
children:
|
|
734
|
-
routeContext: { outlet: null, matches:
|
|
748
|
+
location: t.location,
|
|
749
|
+
revalidation: t.revalidation,
|
|
750
|
+
component: g,
|
|
751
|
+
error: m,
|
|
752
|
+
children: E(),
|
|
753
|
+
routeContext: { outlet: null, matches: w, isDataRoute: !0 }
|
|
735
754
|
}
|
|
736
|
-
) :
|
|
755
|
+
) : E();
|
|
737
756
|
}, null);
|
|
738
757
|
}
|
|
739
758
|
function ae(e) {
|
|
740
759
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
741
760
|
}
|
|
742
761
|
function ut(e) {
|
|
743
|
-
let
|
|
744
|
-
return
|
|
762
|
+
let n = o.useContext(O);
|
|
763
|
+
return R(n, ae(e)), n;
|
|
745
764
|
}
|
|
746
765
|
function Ce(e) {
|
|
747
|
-
let
|
|
748
|
-
return
|
|
766
|
+
let n = o.useContext(_);
|
|
767
|
+
return R(n, ae(e)), n;
|
|
749
768
|
}
|
|
750
|
-
function
|
|
751
|
-
let
|
|
752
|
-
return
|
|
769
|
+
function ct(e) {
|
|
770
|
+
let n = o.useContext(k);
|
|
771
|
+
return R(n, ae(e)), n;
|
|
753
772
|
}
|
|
754
773
|
function ie(e) {
|
|
755
|
-
let
|
|
756
|
-
return
|
|
757
|
-
|
|
774
|
+
let n = ct(e), t = n.matches[n.matches.length - 1];
|
|
775
|
+
return R(
|
|
776
|
+
t.route.id,
|
|
758
777
|
`${e} can only be used on routes that contain a unique "id"`
|
|
759
|
-
),
|
|
778
|
+
), t.route.id;
|
|
760
779
|
}
|
|
761
|
-
function
|
|
780
|
+
function ft() {
|
|
762
781
|
return ie(
|
|
763
782
|
"useRouteId"
|
|
764
783
|
/* UseRouteId */
|
|
765
784
|
);
|
|
766
785
|
}
|
|
767
|
-
function
|
|
786
|
+
function cn() {
|
|
768
787
|
return Ce(
|
|
769
788
|
"useNavigation"
|
|
770
789
|
/* UseNavigation */
|
|
771
790
|
).navigation;
|
|
772
791
|
}
|
|
773
|
-
function
|
|
792
|
+
function dt() {
|
|
774
793
|
var a;
|
|
775
|
-
let e = o.useContext(ne),
|
|
794
|
+
let e = o.useContext(ne), n = Ce(
|
|
776
795
|
"useRouteError"
|
|
777
796
|
/* UseRouteError */
|
|
778
|
-
),
|
|
797
|
+
), t = ie(
|
|
779
798
|
"useRouteError"
|
|
780
799
|
/* UseRouteError */
|
|
781
800
|
);
|
|
782
|
-
return e !== void 0 ? e : (a =
|
|
801
|
+
return e !== void 0 ? e : (a = n.errors) == null ? void 0 : a[t];
|
|
783
802
|
}
|
|
784
|
-
function
|
|
803
|
+
function ht() {
|
|
785
804
|
let { router: e } = ut(
|
|
786
805
|
"useNavigate"
|
|
787
806
|
/* UseNavigateStable */
|
|
788
|
-
),
|
|
807
|
+
), n = ie(
|
|
789
808
|
"useNavigate"
|
|
790
809
|
/* UseNavigateStable */
|
|
791
|
-
),
|
|
792
|
-
return
|
|
793
|
-
|
|
810
|
+
), t = o.useRef(!1);
|
|
811
|
+
return be(() => {
|
|
812
|
+
t.current = !0;
|
|
794
813
|
}), o.useCallback(
|
|
795
814
|
async (r, i = {}) => {
|
|
796
|
-
L(
|
|
815
|
+
L(t.current, xe), t.current && (typeof r == "number" ? e.navigate(r) : await e.navigate(r, { fromRouteId: n, ...i }));
|
|
797
816
|
},
|
|
798
|
-
[e,
|
|
817
|
+
[e, n]
|
|
799
818
|
);
|
|
800
819
|
}
|
|
801
820
|
var fe = {};
|
|
802
|
-
function Se(e,
|
|
803
|
-
!
|
|
821
|
+
function Se(e, n, t) {
|
|
822
|
+
!n && !fe[e] && (fe[e] = !0, L(!1, t));
|
|
804
823
|
}
|
|
805
824
|
var de = {};
|
|
806
|
-
function he(e,
|
|
807
|
-
!e && !de[
|
|
825
|
+
function he(e, n) {
|
|
826
|
+
!e && !de[n] && (de[n] = !0, console.warn(n));
|
|
808
827
|
}
|
|
809
|
-
var
|
|
828
|
+
var mt = class {
|
|
810
829
|
constructor() {
|
|
811
|
-
this.status = "pending", this.promise = new Promise((e,
|
|
812
|
-
this.resolve = (
|
|
813
|
-
this.status === "pending" && (this.status = "resolved", e(
|
|
814
|
-
}, this.reject = (
|
|
815
|
-
this.status === "pending" && (this.status = "rejected", t
|
|
830
|
+
this.status = "pending", this.promise = new Promise((e, n) => {
|
|
831
|
+
this.resolve = (t) => {
|
|
832
|
+
this.status === "pending" && (this.status = "resolved", e(t));
|
|
833
|
+
}, this.reject = (t) => {
|
|
834
|
+
this.status === "pending" && (this.status = "rejected", n(t));
|
|
816
835
|
};
|
|
817
836
|
});
|
|
818
837
|
}
|
|
819
838
|
};
|
|
820
|
-
function
|
|
839
|
+
function fn({
|
|
821
840
|
router: e,
|
|
822
|
-
flushSync:
|
|
841
|
+
flushSync: n
|
|
823
842
|
}) {
|
|
824
|
-
let [
|
|
843
|
+
let [t, a] = o.useState(e.state), [r, i] = o.useState(), [s, c] = o.useState({
|
|
825
844
|
isTransitioning: !1
|
|
826
|
-
}), [l, u] = o.useState(), [
|
|
827
|
-
(y, { deletedFetchers:
|
|
845
|
+
}), [l, u] = o.useState(), [h, m] = o.useState(), [d, g] = o.useState(), f = o.useRef(/* @__PURE__ */ new Map()), w = o.useCallback(
|
|
846
|
+
(y, { deletedFetchers: b, flushSync: x, viewTransitionOpts: C }) => {
|
|
828
847
|
y.fetchers.forEach((S, P) => {
|
|
829
|
-
S.data !== void 0 &&
|
|
830
|
-
}),
|
|
831
|
-
x === !1 ||
|
|
848
|
+
S.data !== void 0 && f.current.set(P, S.data);
|
|
849
|
+
}), b.forEach((S) => f.current.delete(S)), he(
|
|
850
|
+
x === !1 || n != null,
|
|
832
851
|
'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.'
|
|
833
852
|
);
|
|
834
853
|
let $ = e.window != null && e.window.document != null && typeof e.window.document.startViewTransition == "function";
|
|
@@ -836,12 +855,12 @@ function sn({
|
|
|
836
855
|
C == null || $,
|
|
837
856
|
"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."
|
|
838
857
|
), !C || !$) {
|
|
839
|
-
|
|
858
|
+
n && x ? n(() => a(y)) : o.startTransition(() => a(y));
|
|
840
859
|
return;
|
|
841
860
|
}
|
|
842
|
-
if (
|
|
843
|
-
|
|
844
|
-
|
|
861
|
+
if (n && x) {
|
|
862
|
+
n(() => {
|
|
863
|
+
h && (l && l.resolve(), h.skipTransition()), c({
|
|
845
864
|
isTransitioning: !0,
|
|
846
865
|
flushSync: !0,
|
|
847
866
|
currentLocation: C.currentLocation,
|
|
@@ -849,16 +868,16 @@ function sn({
|
|
|
849
868
|
});
|
|
850
869
|
});
|
|
851
870
|
let S = e.window.document.startViewTransition(() => {
|
|
852
|
-
|
|
871
|
+
n(() => a(y));
|
|
853
872
|
});
|
|
854
873
|
S.finished.finally(() => {
|
|
855
|
-
|
|
856
|
-
u(void 0),
|
|
874
|
+
n(() => {
|
|
875
|
+
u(void 0), m(void 0), i(void 0), c({ isTransitioning: !1 });
|
|
857
876
|
});
|
|
858
|
-
}),
|
|
877
|
+
}), n(() => m(S));
|
|
859
878
|
return;
|
|
860
879
|
}
|
|
861
|
-
|
|
880
|
+
h ? (l && l.resolve(), h.skipTransition(), g({
|
|
862
881
|
state: y,
|
|
863
882
|
currentLocation: C.currentLocation,
|
|
864
883
|
nextLocation: C.nextLocation
|
|
@@ -869,85 +888,85 @@ function sn({
|
|
|
869
888
|
nextLocation: C.nextLocation
|
|
870
889
|
}));
|
|
871
890
|
},
|
|
872
|
-
[e.window,
|
|
891
|
+
[e.window, n, h, l]
|
|
873
892
|
);
|
|
874
|
-
o.useLayoutEffect(() => e.subscribe(
|
|
875
|
-
s.isTransitioning && !s.flushSync && u(new
|
|
893
|
+
o.useLayoutEffect(() => e.subscribe(w), [e, w]), o.useEffect(() => {
|
|
894
|
+
s.isTransitioning && !s.flushSync && u(new mt());
|
|
876
895
|
}, [s]), o.useEffect(() => {
|
|
877
896
|
if (l && r && e.window) {
|
|
878
|
-
let y = r,
|
|
879
|
-
o.startTransition(() => a(y)), await
|
|
897
|
+
let y = r, b = l.promise, x = e.window.document.startViewTransition(async () => {
|
|
898
|
+
o.startTransition(() => a(y)), await b;
|
|
880
899
|
});
|
|
881
900
|
x.finished.finally(() => {
|
|
882
|
-
u(void 0),
|
|
883
|
-
}),
|
|
901
|
+
u(void 0), m(void 0), i(void 0), c({ isTransitioning: !1 });
|
|
902
|
+
}), m(x);
|
|
884
903
|
}
|
|
885
904
|
}, [r, l, e.window]), o.useEffect(() => {
|
|
886
|
-
l && r &&
|
|
887
|
-
}, [l,
|
|
888
|
-
!s.isTransitioning &&
|
|
905
|
+
l && r && t.location.key === r.location.key && l.resolve();
|
|
906
|
+
}, [l, h, t.location, r]), o.useEffect(() => {
|
|
907
|
+
!s.isTransitioning && d && (i(d.state), c({
|
|
889
908
|
isTransitioning: !0,
|
|
890
909
|
flushSync: !1,
|
|
891
|
-
currentLocation:
|
|
892
|
-
nextLocation:
|
|
893
|
-
}),
|
|
894
|
-
}, [s.isTransitioning,
|
|
895
|
-
let
|
|
910
|
+
currentLocation: d.currentLocation,
|
|
911
|
+
nextLocation: d.nextLocation
|
|
912
|
+
}), g(void 0));
|
|
913
|
+
}, [s.isTransitioning, d]);
|
|
914
|
+
let E = o.useMemo(() => ({
|
|
896
915
|
createHref: e.createHref,
|
|
897
916
|
encodeLocation: e.encodeLocation,
|
|
898
917
|
go: (y) => e.navigate(y),
|
|
899
|
-
push: (y,
|
|
900
|
-
state:
|
|
918
|
+
push: (y, b, x) => e.navigate(y, {
|
|
919
|
+
state: b,
|
|
901
920
|
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
902
921
|
}),
|
|
903
|
-
replace: (y,
|
|
922
|
+
replace: (y, b, x) => e.navigate(y, {
|
|
904
923
|
replace: !0,
|
|
905
|
-
state:
|
|
924
|
+
state: b,
|
|
906
925
|
preventScrollReset: x == null ? void 0 : x.preventScrollReset
|
|
907
926
|
})
|
|
908
|
-
}), [e]),
|
|
927
|
+
}), [e]), p = e.basename || "/", v = o.useMemo(
|
|
909
928
|
() => ({
|
|
910
929
|
router: e,
|
|
911
|
-
navigator:
|
|
930
|
+
navigator: E,
|
|
912
931
|
static: !1,
|
|
913
|
-
basename:
|
|
932
|
+
basename: p
|
|
914
933
|
}),
|
|
915
|
-
[e,
|
|
934
|
+
[e, E, p]
|
|
916
935
|
);
|
|
917
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value:
|
|
936
|
+
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: v }, /* @__PURE__ */ o.createElement(_.Provider, { value: t }, /* @__PURE__ */ o.createElement(te.Provider, { value: f.current }, /* @__PURE__ */ o.createElement(J.Provider, { value: s }, /* @__PURE__ */ o.createElement(
|
|
918
937
|
Pe,
|
|
919
938
|
{
|
|
920
|
-
basename:
|
|
921
|
-
location:
|
|
922
|
-
navigationType:
|
|
923
|
-
navigator:
|
|
939
|
+
basename: p,
|
|
940
|
+
location: t.location,
|
|
941
|
+
navigationType: t.historyAction,
|
|
942
|
+
navigator: E
|
|
924
943
|
},
|
|
925
944
|
/* @__PURE__ */ o.createElement(
|
|
926
|
-
|
|
945
|
+
pt,
|
|
927
946
|
{
|
|
928
947
|
routes: e.routes,
|
|
929
948
|
future: e.future,
|
|
930
|
-
state:
|
|
949
|
+
state: t
|
|
931
950
|
}
|
|
932
951
|
)
|
|
933
952
|
))))), null);
|
|
934
953
|
}
|
|
935
|
-
var
|
|
936
|
-
function
|
|
954
|
+
var pt = o.memo(gt);
|
|
955
|
+
function gt({
|
|
937
956
|
routes: e,
|
|
938
|
-
future:
|
|
939
|
-
state:
|
|
957
|
+
future: n,
|
|
958
|
+
state: t
|
|
940
959
|
}) {
|
|
941
|
-
return
|
|
960
|
+
return Re(e, void 0, t, n);
|
|
942
961
|
}
|
|
943
|
-
function
|
|
962
|
+
function dn({
|
|
944
963
|
to: e,
|
|
945
|
-
replace:
|
|
946
|
-
state:
|
|
964
|
+
replace: n,
|
|
965
|
+
state: t,
|
|
947
966
|
relative: a
|
|
948
967
|
}) {
|
|
949
|
-
|
|
950
|
-
|
|
968
|
+
R(
|
|
969
|
+
I(),
|
|
951
970
|
// TODO: This error is probably because they somehow have 2 versions of
|
|
952
971
|
// the router loaded. We can help them understand how to avoid that.
|
|
953
972
|
"<Navigate> may be used only in the context of a <Router> component."
|
|
@@ -964,22 +983,22 @@ function cn({
|
|
|
964
983
|
a === "path"
|
|
965
984
|
), u = JSON.stringify(l);
|
|
966
985
|
return o.useEffect(() => {
|
|
967
|
-
c(JSON.parse(u), { replace:
|
|
968
|
-
}, [c, u, a,
|
|
986
|
+
c(JSON.parse(u), { replace: n, state: t, relative: a });
|
|
987
|
+
}, [c, u, a, n, t]), null;
|
|
969
988
|
}
|
|
970
|
-
function
|
|
971
|
-
return
|
|
989
|
+
function hn(e) {
|
|
990
|
+
return rt(e.context);
|
|
972
991
|
}
|
|
973
992
|
function Pe({
|
|
974
993
|
basename: e = "/",
|
|
975
|
-
children:
|
|
976
|
-
location:
|
|
994
|
+
children: n = null,
|
|
995
|
+
location: t,
|
|
977
996
|
navigationType: a = "POP",
|
|
978
997
|
navigator: r,
|
|
979
998
|
static: i = !1
|
|
980
999
|
}) {
|
|
981
|
-
|
|
982
|
-
!
|
|
1000
|
+
R(
|
|
1001
|
+
!I(),
|
|
983
1002
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
984
1003
|
);
|
|
985
1004
|
let s = e.replace(/^\/*/, "/"), c = o.useMemo(
|
|
@@ -991,69 +1010,69 @@ function Pe({
|
|
|
991
1010
|
}),
|
|
992
1011
|
[s, r, i]
|
|
993
1012
|
);
|
|
994
|
-
typeof
|
|
1013
|
+
typeof t == "string" && (t = Y(t));
|
|
995
1014
|
let {
|
|
996
1015
|
pathname: l = "/",
|
|
997
1016
|
search: u = "",
|
|
998
|
-
hash:
|
|
999
|
-
state:
|
|
1000
|
-
key:
|
|
1001
|
-
} =
|
|
1002
|
-
let
|
|
1003
|
-
return
|
|
1017
|
+
hash: h = "",
|
|
1018
|
+
state: m = null,
|
|
1019
|
+
key: d = "default"
|
|
1020
|
+
} = t, g = o.useMemo(() => {
|
|
1021
|
+
let f = A(l, s);
|
|
1022
|
+
return f == null ? null : {
|
|
1004
1023
|
location: {
|
|
1005
|
-
pathname:
|
|
1024
|
+
pathname: f,
|
|
1006
1025
|
search: u,
|
|
1007
|
-
hash:
|
|
1008
|
-
state:
|
|
1009
|
-
key:
|
|
1026
|
+
hash: h,
|
|
1027
|
+
state: m,
|
|
1028
|
+
key: d
|
|
1010
1029
|
},
|
|
1011
1030
|
navigationType: a
|
|
1012
1031
|
};
|
|
1013
|
-
}, [s, l, u,
|
|
1032
|
+
}, [s, l, u, h, m, d, a]);
|
|
1014
1033
|
return L(
|
|
1015
|
-
|
|
1016
|
-
`<Router basename="${s}"> is not able to match the URL "${l}${u}${
|
|
1017
|
-
),
|
|
1034
|
+
g != null,
|
|
1035
|
+
`<Router basename="${s}"> is not able to match the URL "${l}${u}${h}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
1036
|
+
), g == null ? null : /* @__PURE__ */ o.createElement(T.Provider, { value: c }, /* @__PURE__ */ o.createElement(K.Provider, { children: n, value: g }));
|
|
1018
1037
|
}
|
|
1019
|
-
var
|
|
1038
|
+
var j = "get", V = "application/x-www-form-urlencoded";
|
|
1020
1039
|
function q(e) {
|
|
1021
1040
|
return e != null && typeof e.tagName == "string";
|
|
1022
1041
|
}
|
|
1023
|
-
function
|
|
1042
|
+
function vt(e) {
|
|
1024
1043
|
return q(e) && e.tagName.toLowerCase() === "button";
|
|
1025
1044
|
}
|
|
1026
|
-
function
|
|
1045
|
+
function yt(e) {
|
|
1027
1046
|
return q(e) && e.tagName.toLowerCase() === "form";
|
|
1028
1047
|
}
|
|
1029
|
-
function
|
|
1048
|
+
function wt(e) {
|
|
1030
1049
|
return q(e) && e.tagName.toLowerCase() === "input";
|
|
1031
1050
|
}
|
|
1032
|
-
function
|
|
1051
|
+
function Et(e) {
|
|
1033
1052
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1034
1053
|
}
|
|
1035
|
-
function
|
|
1054
|
+
function xt(e, n) {
|
|
1036
1055
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1037
|
-
(!
|
|
1038
|
-
!
|
|
1056
|
+
(!n || n === "_self") && // Let browser handle "target=_blank" etc.
|
|
1057
|
+
!Et(e);
|
|
1039
1058
|
}
|
|
1040
1059
|
function Q(e = "") {
|
|
1041
1060
|
return new URLSearchParams(
|
|
1042
|
-
typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((
|
|
1043
|
-
let a = e[
|
|
1044
|
-
return
|
|
1045
|
-
Array.isArray(a) ? a.map((r) => [
|
|
1061
|
+
typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((n, t) => {
|
|
1062
|
+
let a = e[t];
|
|
1063
|
+
return n.concat(
|
|
1064
|
+
Array.isArray(a) ? a.map((r) => [t, r]) : [[t, a]]
|
|
1046
1065
|
);
|
|
1047
1066
|
}, [])
|
|
1048
1067
|
);
|
|
1049
1068
|
}
|
|
1050
|
-
function
|
|
1051
|
-
let
|
|
1052
|
-
return
|
|
1053
|
-
|
|
1054
|
-
|
|
1069
|
+
function bt(e, n) {
|
|
1070
|
+
let t = Q(e);
|
|
1071
|
+
return n && n.forEach((a, r) => {
|
|
1072
|
+
t.has(r) || n.getAll(r).forEach((i) => {
|
|
1073
|
+
t.append(r, i);
|
|
1055
1074
|
});
|
|
1056
|
-
}),
|
|
1075
|
+
}), t;
|
|
1057
1076
|
}
|
|
1058
1077
|
var z = null;
|
|
1059
1078
|
function Rt() {
|
|
@@ -1069,166 +1088,167 @@ function Rt() {
|
|
|
1069
1088
|
}
|
|
1070
1089
|
return z;
|
|
1071
1090
|
}
|
|
1072
|
-
var
|
|
1091
|
+
var Ct = /* @__PURE__ */ new Set([
|
|
1073
1092
|
"application/x-www-form-urlencoded",
|
|
1074
1093
|
"multipart/form-data",
|
|
1075
1094
|
"text/plain"
|
|
1076
1095
|
]);
|
|
1077
1096
|
function X(e) {
|
|
1078
|
-
return e != null && !
|
|
1097
|
+
return e != null && !Ct.has(e) ? (L(
|
|
1079
1098
|
!1,
|
|
1080
|
-
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${
|
|
1099
|
+
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${V}"`
|
|
1081
1100
|
), null) : e;
|
|
1082
1101
|
}
|
|
1083
|
-
function
|
|
1084
|
-
let
|
|
1085
|
-
if (
|
|
1102
|
+
function St(e, n) {
|
|
1103
|
+
let t, a, r, i, s;
|
|
1104
|
+
if (yt(e)) {
|
|
1086
1105
|
let c = e.getAttribute("action");
|
|
1087
|
-
a = c ?
|
|
1088
|
-
} else if (
|
|
1106
|
+
a = c ? A(c, n) : null, t = e.getAttribute("method") || j, r = X(e.getAttribute("enctype")) || V, i = new FormData(e);
|
|
1107
|
+
} else if (vt(e) || wt(e) && (e.type === "submit" || e.type === "image")) {
|
|
1089
1108
|
let c = e.form;
|
|
1090
1109
|
if (c == null)
|
|
1091
1110
|
throw new Error(
|
|
1092
1111
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1093
1112
|
);
|
|
1094
1113
|
let l = e.getAttribute("formaction") || c.getAttribute("action");
|
|
1095
|
-
if (a = l ?
|
|
1096
|
-
let { name: u, type:
|
|
1097
|
-
if (
|
|
1098
|
-
let
|
|
1099
|
-
i.append(`${
|
|
1100
|
-
} else u && i.append(u,
|
|
1114
|
+
if (a = l ? A(l, n) : null, t = e.getAttribute("formmethod") || c.getAttribute("method") || j, r = X(e.getAttribute("formenctype")) || X(c.getAttribute("enctype")) || V, i = new FormData(c, e), !Rt()) {
|
|
1115
|
+
let { name: u, type: h, value: m } = e;
|
|
1116
|
+
if (h === "image") {
|
|
1117
|
+
let d = u ? `${u}.` : "";
|
|
1118
|
+
i.append(`${d}x`, "0"), i.append(`${d}y`, "0");
|
|
1119
|
+
} else u && i.append(u, m);
|
|
1101
1120
|
}
|
|
1102
1121
|
} else {
|
|
1103
1122
|
if (q(e))
|
|
1104
1123
|
throw new Error(
|
|
1105
1124
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
1106
1125
|
);
|
|
1107
|
-
|
|
1126
|
+
t = j, a = null, r = V, s = e;
|
|
1108
1127
|
}
|
|
1109
|
-
return i && r === "text/plain" && (s = i, i = void 0), { action: a, method:
|
|
1128
|
+
return i && r === "text/plain" && (s = i, i = void 0), { action: a, method: t.toLowerCase(), encType: r, formData: i, body: s };
|
|
1110
1129
|
}
|
|
1111
|
-
function oe(e,
|
|
1130
|
+
function oe(e, n) {
|
|
1112
1131
|
if (e === !1 || e === null || typeof e > "u")
|
|
1113
|
-
throw new Error(
|
|
1132
|
+
throw new Error(n);
|
|
1114
1133
|
}
|
|
1115
|
-
async function
|
|
1116
|
-
if (e.id in
|
|
1117
|
-
return
|
|
1134
|
+
async function Pt(e, n) {
|
|
1135
|
+
if (e.id in n)
|
|
1136
|
+
return n[e.id];
|
|
1118
1137
|
try {
|
|
1119
|
-
let
|
|
1138
|
+
let t = await import(
|
|
1120
1139
|
/* @vite-ignore */
|
|
1121
1140
|
/* webpackIgnore: true */
|
|
1122
1141
|
e.module
|
|
1123
1142
|
);
|
|
1124
|
-
return
|
|
1125
|
-
} catch (
|
|
1143
|
+
return n[e.id] = t, t;
|
|
1144
|
+
} catch (t) {
|
|
1126
1145
|
return console.error(
|
|
1127
1146
|
`Error loading route module \`${e.module}\`, reloading page...`
|
|
1128
|
-
), console.error(
|
|
1147
|
+
), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
|
|
1129
1148
|
});
|
|
1130
1149
|
}
|
|
1131
1150
|
}
|
|
1132
|
-
function
|
|
1151
|
+
function Lt(e) {
|
|
1133
1152
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
1134
1153
|
}
|
|
1135
|
-
async function
|
|
1154
|
+
async function kt(e, n, t) {
|
|
1136
1155
|
let a = await Promise.all(
|
|
1137
1156
|
e.map(async (r) => {
|
|
1138
|
-
let i =
|
|
1157
|
+
let i = n.routes[r.route.id];
|
|
1139
1158
|
if (i) {
|
|
1140
|
-
let s = await
|
|
1159
|
+
let s = await Pt(i, t);
|
|
1141
1160
|
return s.links ? s.links() : [];
|
|
1142
1161
|
}
|
|
1143
1162
|
return [];
|
|
1144
1163
|
})
|
|
1145
1164
|
);
|
|
1146
|
-
return
|
|
1147
|
-
a.flat(1).filter(
|
|
1165
|
+
return Mt(
|
|
1166
|
+
a.flat(1).filter(Lt).filter((r) => r.rel === "stylesheet" || r.rel === "preload").map(
|
|
1148
1167
|
(r) => r.rel === "stylesheet" ? { ...r, rel: "prefetch", as: "style" } : { ...r, rel: "prefetch" }
|
|
1149
1168
|
)
|
|
1150
1169
|
);
|
|
1151
1170
|
}
|
|
1152
|
-
function me(e,
|
|
1153
|
-
let s = (l, u) =>
|
|
1154
|
-
var
|
|
1171
|
+
function me(e, n, t, a, r, i) {
|
|
1172
|
+
let s = (l, u) => t[u] ? l.route.id !== t[u].route.id : !0, c = (l, u) => {
|
|
1173
|
+
var h;
|
|
1155
1174
|
return (
|
|
1156
1175
|
// param change, /users/123 -> /users/456
|
|
1157
|
-
|
|
1176
|
+
t[u].pathname !== l.pathname || // splat param changed, which is not present in match.path
|
|
1158
1177
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
1159
|
-
((
|
|
1178
|
+
((h = t[u].route.path) == null ? void 0 : h.endsWith("*")) && t[u].params["*"] !== l.params["*"]
|
|
1160
1179
|
);
|
|
1161
1180
|
};
|
|
1162
|
-
return i === "assets" ?
|
|
1181
|
+
return i === "assets" ? n.filter(
|
|
1163
1182
|
(l, u) => s(l, u) || c(l, u)
|
|
1164
|
-
) : i === "data" ?
|
|
1165
|
-
var
|
|
1166
|
-
let
|
|
1167
|
-
if (!
|
|
1183
|
+
) : i === "data" ? n.filter((l, u) => {
|
|
1184
|
+
var m;
|
|
1185
|
+
let h = a.routes[l.route.id];
|
|
1186
|
+
if (!h || !h.hasLoader)
|
|
1168
1187
|
return !1;
|
|
1169
1188
|
if (s(l, u) || c(l, u))
|
|
1170
1189
|
return !0;
|
|
1171
1190
|
if (l.route.shouldRevalidate) {
|
|
1172
|
-
let
|
|
1191
|
+
let d = l.route.shouldRevalidate({
|
|
1173
1192
|
currentUrl: new URL(
|
|
1174
1193
|
r.pathname + r.search + r.hash,
|
|
1175
1194
|
window.origin
|
|
1176
1195
|
),
|
|
1177
|
-
currentParams: ((
|
|
1196
|
+
currentParams: ((m = t[0]) == null ? void 0 : m.params) || {},
|
|
1178
1197
|
nextUrl: new URL(e, window.origin),
|
|
1179
1198
|
nextParams: l.params,
|
|
1180
1199
|
defaultShouldRevalidate: !0
|
|
1181
1200
|
});
|
|
1182
|
-
if (typeof
|
|
1183
|
-
return
|
|
1201
|
+
if (typeof d == "boolean")
|
|
1202
|
+
return d;
|
|
1184
1203
|
}
|
|
1185
1204
|
return !0;
|
|
1186
1205
|
}) : [];
|
|
1187
1206
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
1190
|
-
e.map((
|
|
1191
|
-
let
|
|
1192
|
-
if (!
|
|
1193
|
-
let
|
|
1194
|
-
return
|
|
1207
|
+
function $t(e, n, { includeHydrateFallback: t } = {}) {
|
|
1208
|
+
return Tt(
|
|
1209
|
+
e.map((a) => {
|
|
1210
|
+
let r = n.routes[a.route.id];
|
|
1211
|
+
if (!r) return [];
|
|
1212
|
+
let i = [r.module];
|
|
1213
|
+
return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), t && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
|
|
1195
1214
|
}).flat(1)
|
|
1196
1215
|
);
|
|
1197
1216
|
}
|
|
1198
|
-
function
|
|
1217
|
+
function Tt(e) {
|
|
1199
1218
|
return [...new Set(e)];
|
|
1200
1219
|
}
|
|
1201
|
-
function
|
|
1202
|
-
let
|
|
1203
|
-
for (let a of
|
|
1204
|
-
|
|
1205
|
-
return
|
|
1220
|
+
function Nt(e) {
|
|
1221
|
+
let n = {}, t = Object.keys(e).sort();
|
|
1222
|
+
for (let a of t)
|
|
1223
|
+
n[a] = e[a];
|
|
1224
|
+
return n;
|
|
1206
1225
|
}
|
|
1207
|
-
function
|
|
1208
|
-
let
|
|
1209
|
-
return new Set(
|
|
1210
|
-
let i = JSON.stringify(
|
|
1211
|
-
return
|
|
1226
|
+
function Mt(e, n) {
|
|
1227
|
+
let t = /* @__PURE__ */ new Set();
|
|
1228
|
+
return new Set(n), e.reduce((a, r) => {
|
|
1229
|
+
let i = JSON.stringify(Nt(r));
|
|
1230
|
+
return t.has(i) || (t.add(i), a.push({ key: i, link: r })), a;
|
|
1212
1231
|
}, []);
|
|
1213
1232
|
}
|
|
1214
|
-
|
|
1233
|
+
var At = /* @__PURE__ */ new Set([100, 101, 204, 205]);
|
|
1234
|
+
function Dt(e, n) {
|
|
1215
1235
|
let t = typeof e == "string" ? new URL(
|
|
1216
1236
|
e,
|
|
1217
1237
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
1218
1238
|
// don't assume window is available
|
|
1219
1239
|
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
1220
1240
|
) : e;
|
|
1221
|
-
return t.pathname === "/" ? t.pathname = "_root.data" : t.pathname = `${t.pathname.replace(/\/$/, "")}.data`, t;
|
|
1241
|
+
return t.pathname === "/" ? t.pathname = "_root.data" : n && A(t.pathname, n) === "/" ? t.pathname = `${n.replace(/\/$/, "")}/_root.data` : t.pathname = `${t.pathname.replace(/\/$/, "")}.data`, t;
|
|
1222
1242
|
}
|
|
1223
|
-
function
|
|
1243
|
+
function Le() {
|
|
1224
1244
|
let e = o.useContext(O);
|
|
1225
1245
|
return oe(
|
|
1226
1246
|
e,
|
|
1227
1247
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
1228
1248
|
), e;
|
|
1229
1249
|
}
|
|
1230
|
-
function
|
|
1231
|
-
let e = o.useContext(
|
|
1250
|
+
function Ot() {
|
|
1251
|
+
let e = o.useContext(_);
|
|
1232
1252
|
return oe(
|
|
1233
1253
|
e,
|
|
1234
1254
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
@@ -1236,155 +1256,156 @@ function It() {
|
|
|
1236
1256
|
}
|
|
1237
1257
|
var le = o.createContext(void 0);
|
|
1238
1258
|
le.displayName = "FrameworkContext";
|
|
1239
|
-
function
|
|
1259
|
+
function ke() {
|
|
1240
1260
|
let e = o.useContext(le);
|
|
1241
1261
|
return oe(
|
|
1242
1262
|
e,
|
|
1243
1263
|
"You must render this element inside a <HydratedRouter> element"
|
|
1244
1264
|
), e;
|
|
1245
1265
|
}
|
|
1246
|
-
function
|
|
1247
|
-
let
|
|
1266
|
+
function It(e, n) {
|
|
1267
|
+
let t = o.useContext(le), [a, r] = o.useState(!1), [i, s] = o.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: h, onTouchStart: m } = n, d = o.useRef(null);
|
|
1248
1268
|
o.useEffect(() => {
|
|
1249
1269
|
if (e === "render" && s(!0), e === "viewport") {
|
|
1250
|
-
let
|
|
1251
|
-
|
|
1252
|
-
s(
|
|
1270
|
+
let w = (p) => {
|
|
1271
|
+
p.forEach((v) => {
|
|
1272
|
+
s(v.isIntersecting);
|
|
1253
1273
|
});
|
|
1254
|
-
},
|
|
1255
|
-
return
|
|
1256
|
-
|
|
1274
|
+
}, E = new IntersectionObserver(w, { threshold: 0.5 });
|
|
1275
|
+
return d.current && E.observe(d.current), () => {
|
|
1276
|
+
E.disconnect();
|
|
1257
1277
|
};
|
|
1258
1278
|
}
|
|
1259
1279
|
}, [e]), o.useEffect(() => {
|
|
1260
1280
|
if (a) {
|
|
1261
|
-
let
|
|
1281
|
+
let w = setTimeout(() => {
|
|
1262
1282
|
s(!0);
|
|
1263
1283
|
}, 100);
|
|
1264
1284
|
return () => {
|
|
1265
|
-
clearTimeout(
|
|
1285
|
+
clearTimeout(w);
|
|
1266
1286
|
};
|
|
1267
1287
|
}
|
|
1268
1288
|
}, [a]);
|
|
1269
|
-
let
|
|
1289
|
+
let g = () => {
|
|
1270
1290
|
r(!0);
|
|
1271
|
-
},
|
|
1291
|
+
}, f = () => {
|
|
1272
1292
|
r(!1), s(!1);
|
|
1273
1293
|
};
|
|
1274
|
-
return
|
|
1294
|
+
return t ? e !== "intent" ? [i, d, {}] : [
|
|
1275
1295
|
i,
|
|
1276
|
-
|
|
1296
|
+
d,
|
|
1277
1297
|
{
|
|
1278
|
-
onFocus: U(c,
|
|
1279
|
-
onBlur: U(l,
|
|
1280
|
-
onMouseEnter: U(u,
|
|
1281
|
-
onMouseLeave: U(
|
|
1282
|
-
onTouchStart: U(
|
|
1298
|
+
onFocus: U(c, g),
|
|
1299
|
+
onBlur: U(l, f),
|
|
1300
|
+
onMouseEnter: U(u, g),
|
|
1301
|
+
onMouseLeave: U(h, f),
|
|
1302
|
+
onTouchStart: U(m, g)
|
|
1283
1303
|
}
|
|
1284
|
-
] : [!1,
|
|
1304
|
+
] : [!1, d, {}];
|
|
1285
1305
|
}
|
|
1286
|
-
function U(e,
|
|
1287
|
-
return (
|
|
1288
|
-
e && e(
|
|
1306
|
+
function U(e, n) {
|
|
1307
|
+
return (t) => {
|
|
1308
|
+
e && e(t), t.defaultPrevented || n(t);
|
|
1289
1309
|
};
|
|
1290
1310
|
}
|
|
1291
|
-
function
|
|
1311
|
+
function _t({
|
|
1292
1312
|
page: e,
|
|
1293
|
-
...
|
|
1313
|
+
...n
|
|
1294
1314
|
}) {
|
|
1295
|
-
let { router:
|
|
1296
|
-
() => pe(
|
|
1297
|
-
[
|
|
1315
|
+
let { router: t } = Le(), a = o.useMemo(
|
|
1316
|
+
() => pe(t.routes, e, t.basename),
|
|
1317
|
+
[t.routes, e, t.basename]
|
|
1298
1318
|
);
|
|
1299
|
-
return a ? /* @__PURE__ */ o.createElement(
|
|
1319
|
+
return a ? /* @__PURE__ */ o.createElement(Ut, { page: e, matches: a, ...n }) : null;
|
|
1300
1320
|
}
|
|
1301
1321
|
function Ft(e) {
|
|
1302
|
-
let { manifest:
|
|
1322
|
+
let { manifest: n, routeModules: t } = ke(), [a, r] = o.useState([]);
|
|
1303
1323
|
return o.useEffect(() => {
|
|
1304
1324
|
let i = !1;
|
|
1305
|
-
return
|
|
1325
|
+
return kt(e, n, t).then(
|
|
1306
1326
|
(s) => {
|
|
1307
1327
|
i || r(s);
|
|
1308
1328
|
}
|
|
1309
1329
|
), () => {
|
|
1310
1330
|
i = !0;
|
|
1311
1331
|
};
|
|
1312
|
-
}, [e,
|
|
1332
|
+
}, [e, n, t]), a;
|
|
1313
1333
|
}
|
|
1314
|
-
function
|
|
1334
|
+
function Ut({
|
|
1315
1335
|
page: e,
|
|
1316
|
-
matches:
|
|
1317
|
-
...
|
|
1336
|
+
matches: n,
|
|
1337
|
+
...t
|
|
1318
1338
|
}) {
|
|
1319
|
-
let a = N(), { manifest: r, routeModules: i } = Le(), { loaderData:
|
|
1339
|
+
let a = N(), { manifest: r, routeModules: i } = ke(), { basename: s } = Le(), { loaderData: c, matches: l } = Ot(), u = o.useMemo(
|
|
1320
1340
|
() => me(
|
|
1321
1341
|
e,
|
|
1322
|
-
|
|
1323
|
-
|
|
1342
|
+
n,
|
|
1343
|
+
l,
|
|
1324
1344
|
r,
|
|
1325
1345
|
a,
|
|
1326
1346
|
"data"
|
|
1327
1347
|
),
|
|
1328
|
-
[e,
|
|
1329
|
-
),
|
|
1348
|
+
[e, n, l, r, a]
|
|
1349
|
+
), h = o.useMemo(
|
|
1330
1350
|
() => me(
|
|
1331
1351
|
e,
|
|
1332
|
-
|
|
1333
|
-
|
|
1352
|
+
n,
|
|
1353
|
+
l,
|
|
1334
1354
|
r,
|
|
1335
1355
|
a,
|
|
1336
1356
|
"assets"
|
|
1337
1357
|
),
|
|
1338
|
-
[e,
|
|
1358
|
+
[e, n, l, r, a]
|
|
1339
1359
|
), m = o.useMemo(() => {
|
|
1340
1360
|
if (e === a.pathname + a.search + a.hash)
|
|
1341
1361
|
return [];
|
|
1342
|
-
let
|
|
1343
|
-
if (
|
|
1344
|
-
var
|
|
1345
|
-
let
|
|
1346
|
-
!
|
|
1347
|
-
}),
|
|
1362
|
+
let f = /* @__PURE__ */ new Set(), w = !1;
|
|
1363
|
+
if (n.forEach((p) => {
|
|
1364
|
+
var y;
|
|
1365
|
+
let v = r.routes[p.route.id];
|
|
1366
|
+
!v || !v.hasLoader || (!u.some((b) => b.route.id === p.route.id) && p.route.id in c && ((y = i[p.route.id]) != null && y.shouldRevalidate) || v.hasClientLoader ? w = !0 : f.add(p.route.id));
|
|
1367
|
+
}), f.size === 0)
|
|
1348
1368
|
return [];
|
|
1349
|
-
let
|
|
1350
|
-
return
|
|
1369
|
+
let E = Dt(e, s);
|
|
1370
|
+
return w && f.size > 0 && E.searchParams.set(
|
|
1351
1371
|
"_routes",
|
|
1352
|
-
|
|
1353
|
-
), [
|
|
1372
|
+
n.filter((p) => f.has(p.route.id)).map((p) => p.route.id).join(",")
|
|
1373
|
+
), [E.pathname + E.search];
|
|
1354
1374
|
}, [
|
|
1355
1375
|
s,
|
|
1376
|
+
c,
|
|
1356
1377
|
a,
|
|
1357
1378
|
r,
|
|
1358
|
-
|
|
1359
|
-
|
|
1379
|
+
u,
|
|
1380
|
+
n,
|
|
1360
1381
|
e,
|
|
1361
1382
|
i
|
|
1362
|
-
]),
|
|
1363
|
-
() =>
|
|
1364
|
-
[
|
|
1365
|
-
),
|
|
1366
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, m.map((
|
|
1383
|
+
]), d = o.useMemo(
|
|
1384
|
+
() => $t(h, r),
|
|
1385
|
+
[h, r]
|
|
1386
|
+
), g = Ft(h);
|
|
1387
|
+
return /* @__PURE__ */ o.createElement(o.Fragment, null, m.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "prefetch", as: "fetch", href: f, ...t })), d.map((f) => /* @__PURE__ */ o.createElement("link", { key: f, rel: "modulepreload", href: f, ...t })), g.map(({ key: f, link: w }) => (
|
|
1367
1388
|
// these don't spread `linkProps` because they are full link descriptors
|
|
1368
1389
|
// already with their own props
|
|
1369
|
-
/* @__PURE__ */ o.createElement("link", { key:
|
|
1390
|
+
/* @__PURE__ */ o.createElement("link", { key: f, ...w })
|
|
1370
1391
|
)));
|
|
1371
1392
|
}
|
|
1372
|
-
function
|
|
1373
|
-
return (
|
|
1374
|
-
e.forEach((
|
|
1375
|
-
typeof
|
|
1393
|
+
function Wt(...e) {
|
|
1394
|
+
return (n) => {
|
|
1395
|
+
e.forEach((t) => {
|
|
1396
|
+
typeof t == "function" ? t(n) : t != null && (t.current = n);
|
|
1376
1397
|
});
|
|
1377
1398
|
};
|
|
1378
1399
|
}
|
|
1379
|
-
var
|
|
1400
|
+
var $e = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1380
1401
|
try {
|
|
1381
|
-
|
|
1402
|
+
$e && (window.__reactRouterVersion = "7.5.2");
|
|
1382
1403
|
} catch {
|
|
1383
1404
|
}
|
|
1384
|
-
var
|
|
1405
|
+
var Te = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ne = o.forwardRef(
|
|
1385
1406
|
function({
|
|
1386
|
-
onClick:
|
|
1387
|
-
discover:
|
|
1407
|
+
onClick: n,
|
|
1408
|
+
discover: t = "render",
|
|
1388
1409
|
prefetch: a = "none",
|
|
1389
1410
|
relative: r,
|
|
1390
1411
|
reloadDocument: i,
|
|
@@ -1392,58 +1413,58 @@ var $e = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Te = o.forwardRef(
|
|
|
1392
1413
|
state: c,
|
|
1393
1414
|
target: l,
|
|
1394
1415
|
to: u,
|
|
1395
|
-
preventScrollReset:
|
|
1396
|
-
viewTransition:
|
|
1397
|
-
...
|
|
1398
|
-
},
|
|
1399
|
-
let { basename:
|
|
1400
|
-
if (typeof u == "string" &&
|
|
1416
|
+
preventScrollReset: h,
|
|
1417
|
+
viewTransition: m,
|
|
1418
|
+
...d
|
|
1419
|
+
}, g) {
|
|
1420
|
+
let { basename: f } = o.useContext(T), w = typeof u == "string" && Te.test(u), E, p = !1;
|
|
1421
|
+
if (typeof u == "string" && w && (E = u, $e))
|
|
1401
1422
|
try {
|
|
1402
|
-
let P = new URL(window.location.href), D = u.startsWith("//") ? new URL(P.protocol + u) : new URL(u),
|
|
1403
|
-
D.origin === P.origin &&
|
|
1423
|
+
let P = new URL(window.location.href), D = u.startsWith("//") ? new URL(P.protocol + u) : new URL(u), se = A(D.pathname, f);
|
|
1424
|
+
D.origin === P.origin && se != null ? u = se + D.search + D.hash : p = !0;
|
|
1404
1425
|
} catch {
|
|
1405
1426
|
L(
|
|
1406
1427
|
!1,
|
|
1407
1428
|
`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
1408
1429
|
);
|
|
1409
1430
|
}
|
|
1410
|
-
let
|
|
1431
|
+
let v = et(u, { relative: r }), [y, b, x] = It(
|
|
1411
1432
|
a,
|
|
1412
|
-
|
|
1413
|
-
), C =
|
|
1433
|
+
d
|
|
1434
|
+
), C = jt(u, {
|
|
1414
1435
|
replace: s,
|
|
1415
1436
|
state: c,
|
|
1416
1437
|
target: l,
|
|
1417
|
-
preventScrollReset:
|
|
1438
|
+
preventScrollReset: h,
|
|
1418
1439
|
relative: r,
|
|
1419
|
-
viewTransition:
|
|
1440
|
+
viewTransition: m
|
|
1420
1441
|
});
|
|
1421
1442
|
function $(P) {
|
|
1422
|
-
|
|
1443
|
+
n && n(P), P.defaultPrevented || C(P);
|
|
1423
1444
|
}
|
|
1424
1445
|
let S = (
|
|
1425
1446
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1426
1447
|
/* @__PURE__ */ o.createElement(
|
|
1427
1448
|
"a",
|
|
1428
1449
|
{
|
|
1429
|
-
...
|
|
1450
|
+
...d,
|
|
1430
1451
|
...x,
|
|
1431
|
-
href:
|
|
1432
|
-
onClick:
|
|
1433
|
-
ref:
|
|
1452
|
+
href: E || v,
|
|
1453
|
+
onClick: p || i ? n : $,
|
|
1454
|
+
ref: Wt(g, b),
|
|
1434
1455
|
target: l,
|
|
1435
|
-
"data-discover": !
|
|
1456
|
+
"data-discover": !w && t === "render" ? "true" : void 0
|
|
1436
1457
|
}
|
|
1437
1458
|
)
|
|
1438
1459
|
);
|
|
1439
|
-
return y && !
|
|
1460
|
+
return y && !w ? /* @__PURE__ */ o.createElement(o.Fragment, null, S, /* @__PURE__ */ o.createElement(_t, { page: v })) : S;
|
|
1440
1461
|
}
|
|
1441
1462
|
);
|
|
1442
|
-
|
|
1463
|
+
Ne.displayName = "Link";
|
|
1443
1464
|
var Bt = o.forwardRef(
|
|
1444
1465
|
function({
|
|
1445
|
-
"aria-current":
|
|
1446
|
-
caseSensitive:
|
|
1466
|
+
"aria-current": n = "page",
|
|
1467
|
+
caseSensitive: t = !1,
|
|
1447
1468
|
className: a = "",
|
|
1448
1469
|
end: r = !1,
|
|
1449
1470
|
style: i,
|
|
@@ -1451,31 +1472,31 @@ var Bt = o.forwardRef(
|
|
|
1451
1472
|
viewTransition: c,
|
|
1452
1473
|
children: l,
|
|
1453
1474
|
...u
|
|
1454
|
-
},
|
|
1455
|
-
let
|
|
1475
|
+
}, h) {
|
|
1476
|
+
let m = H(s, { relative: u.relative }), d = N(), g = o.useContext(_), { navigator: f, basename: w } = o.useContext(T), E = g != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1456
1477
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
const
|
|
1460
|
-
let x =
|
|
1478
|
+
qt(m) && c === !0, p = f.encodeLocation ? f.encodeLocation(m).pathname : m.pathname, v = d.pathname, y = g && g.navigation && g.navigation.location ? g.navigation.location.pathname : null;
|
|
1479
|
+
t || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, p = p.toLowerCase()), y && w && (y = A(y, w) || y);
|
|
1480
|
+
const b = p !== "/" && p.endsWith("/") ? p.length - 1 : p.length;
|
|
1481
|
+
let x = v === p || !r && v.startsWith(p) && v.charAt(b) === "/", C = y != null && (y === p || !r && y.startsWith(p) && y.charAt(p.length) === "/"), $ = {
|
|
1461
1482
|
isActive: x,
|
|
1462
1483
|
isPending: C,
|
|
1463
|
-
isTransitioning:
|
|
1464
|
-
}, S = x ?
|
|
1484
|
+
isTransitioning: E
|
|
1485
|
+
}, S = x ? n : void 0, P;
|
|
1465
1486
|
typeof a == "function" ? P = a($) : P = [
|
|
1466
1487
|
a,
|
|
1467
1488
|
x ? "active" : null,
|
|
1468
1489
|
C ? "pending" : null,
|
|
1469
|
-
|
|
1490
|
+
E ? "transitioning" : null
|
|
1470
1491
|
].filter(Boolean).join(" ");
|
|
1471
1492
|
let D = typeof i == "function" ? i($) : i;
|
|
1472
1493
|
return /* @__PURE__ */ o.createElement(
|
|
1473
|
-
|
|
1494
|
+
Ne,
|
|
1474
1495
|
{
|
|
1475
1496
|
...u,
|
|
1476
1497
|
"aria-current": S,
|
|
1477
1498
|
className: P,
|
|
1478
|
-
ref:
|
|
1499
|
+
ref: h,
|
|
1479
1500
|
style: D,
|
|
1480
1501
|
to: s,
|
|
1481
1502
|
viewTransition: c
|
|
@@ -1488,71 +1509,71 @@ Bt.displayName = "NavLink";
|
|
|
1488
1509
|
var Ht = o.forwardRef(
|
|
1489
1510
|
({
|
|
1490
1511
|
discover: e = "render",
|
|
1491
|
-
fetcherKey:
|
|
1492
|
-
navigate:
|
|
1512
|
+
fetcherKey: n,
|
|
1513
|
+
navigate: t,
|
|
1493
1514
|
reloadDocument: a,
|
|
1494
1515
|
replace: r,
|
|
1495
1516
|
state: i,
|
|
1496
|
-
method: s =
|
|
1517
|
+
method: s = j,
|
|
1497
1518
|
action: c,
|
|
1498
1519
|
onSubmit: l,
|
|
1499
1520
|
relative: u,
|
|
1500
|
-
preventScrollReset:
|
|
1501
|
-
viewTransition:
|
|
1502
|
-
...
|
|
1503
|
-
},
|
|
1504
|
-
let
|
|
1521
|
+
preventScrollReset: h,
|
|
1522
|
+
viewTransition: m,
|
|
1523
|
+
...d
|
|
1524
|
+
}, g) => {
|
|
1525
|
+
let f = Jt(), w = Kt(c, { relative: u }), E = s.toLowerCase() === "get" ? "get" : "post", p = typeof c == "string" && Te.test(c), v = (y) => {
|
|
1505
1526
|
if (l && l(y), y.defaultPrevented) return;
|
|
1506
1527
|
y.preventDefault();
|
|
1507
|
-
let
|
|
1508
|
-
|
|
1509
|
-
fetcherKey:
|
|
1528
|
+
let b = y.nativeEvent.submitter, x = (b == null ? void 0 : b.getAttribute("formmethod")) || s;
|
|
1529
|
+
f(b || y.currentTarget, {
|
|
1530
|
+
fetcherKey: n,
|
|
1510
1531
|
method: x,
|
|
1511
|
-
navigate:
|
|
1532
|
+
navigate: t,
|
|
1512
1533
|
replace: r,
|
|
1513
1534
|
state: i,
|
|
1514
1535
|
relative: u,
|
|
1515
|
-
preventScrollReset:
|
|
1516
|
-
viewTransition:
|
|
1536
|
+
preventScrollReset: h,
|
|
1537
|
+
viewTransition: m
|
|
1517
1538
|
});
|
|
1518
1539
|
};
|
|
1519
1540
|
return /* @__PURE__ */ o.createElement(
|
|
1520
1541
|
"form",
|
|
1521
1542
|
{
|
|
1522
|
-
ref:
|
|
1523
|
-
method:
|
|
1524
|
-
action:
|
|
1525
|
-
onSubmit: a ? l :
|
|
1526
|
-
...
|
|
1527
|
-
"data-discover": !
|
|
1543
|
+
ref: g,
|
|
1544
|
+
method: E,
|
|
1545
|
+
action: w,
|
|
1546
|
+
onSubmit: a ? l : v,
|
|
1547
|
+
...d,
|
|
1548
|
+
"data-discover": !p && e === "render" ? "true" : void 0
|
|
1528
1549
|
}
|
|
1529
1550
|
);
|
|
1530
1551
|
}
|
|
1531
1552
|
);
|
|
1532
1553
|
Ht.displayName = "Form";
|
|
1533
|
-
function
|
|
1554
|
+
function zt(e) {
|
|
1534
1555
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1535
1556
|
}
|
|
1536
|
-
function
|
|
1537
|
-
let
|
|
1538
|
-
return
|
|
1557
|
+
function Me(e) {
|
|
1558
|
+
let n = o.useContext(O);
|
|
1559
|
+
return R(n, zt(e)), n;
|
|
1539
1560
|
}
|
|
1540
|
-
function
|
|
1541
|
-
target:
|
|
1542
|
-
replace:
|
|
1561
|
+
function jt(e, {
|
|
1562
|
+
target: n,
|
|
1563
|
+
replace: t,
|
|
1543
1564
|
state: a,
|
|
1544
1565
|
preventScrollReset: r,
|
|
1545
1566
|
relative: i,
|
|
1546
1567
|
viewTransition: s
|
|
1547
1568
|
} = {}) {
|
|
1548
|
-
let c = re(), l = N(), u =
|
|
1569
|
+
let c = re(), l = N(), u = H(e, { relative: i });
|
|
1549
1570
|
return o.useCallback(
|
|
1550
|
-
(
|
|
1551
|
-
if (
|
|
1552
|
-
|
|
1553
|
-
let
|
|
1571
|
+
(h) => {
|
|
1572
|
+
if (xt(h, n)) {
|
|
1573
|
+
h.preventDefault();
|
|
1574
|
+
let m = t !== void 0 ? t : W(l) === W(u);
|
|
1554
1575
|
c(e, {
|
|
1555
|
-
replace:
|
|
1576
|
+
replace: m,
|
|
1556
1577
|
state: a,
|
|
1557
1578
|
preventScrollReset: r,
|
|
1558
1579
|
relative: i,
|
|
@@ -1564,9 +1585,9 @@ function zt(e, {
|
|
|
1564
1585
|
l,
|
|
1565
1586
|
c,
|
|
1566
1587
|
u,
|
|
1567
|
-
n,
|
|
1568
|
-
a,
|
|
1569
1588
|
t,
|
|
1589
|
+
a,
|
|
1590
|
+
n,
|
|
1570
1591
|
e,
|
|
1571
1592
|
r,
|
|
1572
1593
|
i,
|
|
@@ -1574,19 +1595,19 @@ function zt(e, {
|
|
|
1574
1595
|
]
|
|
1575
1596
|
);
|
|
1576
1597
|
}
|
|
1577
|
-
function
|
|
1598
|
+
function mn(e) {
|
|
1578
1599
|
L(
|
|
1579
1600
|
typeof URLSearchParams < "u",
|
|
1580
1601
|
"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params."
|
|
1581
1602
|
);
|
|
1582
|
-
let
|
|
1603
|
+
let n = o.useRef(Q(e)), t = o.useRef(!1), a = N(), r = o.useMemo(
|
|
1583
1604
|
() => (
|
|
1584
1605
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
1585
1606
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
1586
1607
|
// remove a param with setSearchParams({}) if it has an initial value
|
|
1587
|
-
|
|
1608
|
+
bt(
|
|
1588
1609
|
a.search,
|
|
1589
|
-
|
|
1610
|
+
t.current ? null : n.current
|
|
1590
1611
|
)
|
|
1591
1612
|
),
|
|
1592
1613
|
[a.search]
|
|
@@ -1595,27 +1616,27 @@ function dn(e) {
|
|
|
1595
1616
|
const u = Q(
|
|
1596
1617
|
typeof c == "function" ? c(r) : c
|
|
1597
1618
|
);
|
|
1598
|
-
|
|
1619
|
+
t.current = !0, i("?" + u, l);
|
|
1599
1620
|
},
|
|
1600
1621
|
[i, r]
|
|
1601
1622
|
);
|
|
1602
1623
|
return [r, s];
|
|
1603
1624
|
}
|
|
1604
|
-
var Vt = 0,
|
|
1605
|
-
function
|
|
1606
|
-
let { router: e } =
|
|
1625
|
+
var Vt = 0, Yt = () => `__${String(++Vt)}__`;
|
|
1626
|
+
function Jt() {
|
|
1627
|
+
let { router: e } = Me(
|
|
1607
1628
|
"useSubmit"
|
|
1608
1629
|
/* UseSubmit */
|
|
1609
|
-
), { basename:
|
|
1630
|
+
), { basename: n } = o.useContext(T), t = ft();
|
|
1610
1631
|
return o.useCallback(
|
|
1611
1632
|
async (a, r = {}) => {
|
|
1612
|
-
let { action: i, method: s, encType: c, formData: l, body: u } =
|
|
1633
|
+
let { action: i, method: s, encType: c, formData: l, body: u } = St(
|
|
1613
1634
|
a,
|
|
1614
|
-
|
|
1635
|
+
n
|
|
1615
1636
|
);
|
|
1616
1637
|
if (r.navigate === !1) {
|
|
1617
|
-
let
|
|
1618
|
-
await e.fetch(
|
|
1638
|
+
let h = r.fetcherKey || Yt();
|
|
1639
|
+
await e.fetch(h, t, r.action || i, {
|
|
1619
1640
|
preventScrollReset: r.preventScrollReset,
|
|
1620
1641
|
formData: l,
|
|
1621
1642
|
body: u,
|
|
@@ -1632,71 +1653,71 @@ function Yt() {
|
|
|
1632
1653
|
formEncType: r.encType || c,
|
|
1633
1654
|
replace: r.replace,
|
|
1634
1655
|
state: r.state,
|
|
1635
|
-
fromRouteId:
|
|
1656
|
+
fromRouteId: t,
|
|
1636
1657
|
flushSync: r.flushSync,
|
|
1637
1658
|
viewTransition: r.viewTransition
|
|
1638
1659
|
});
|
|
1639
1660
|
},
|
|
1640
|
-
[e,
|
|
1661
|
+
[e, n, t]
|
|
1641
1662
|
);
|
|
1642
1663
|
}
|
|
1643
|
-
function
|
|
1644
|
-
let { basename:
|
|
1645
|
-
|
|
1646
|
-
let [r] = a.matches.slice(-1), i = { ...
|
|
1664
|
+
function Kt(e, { relative: n } = {}) {
|
|
1665
|
+
let { basename: t } = o.useContext(T), a = o.useContext(k);
|
|
1666
|
+
R(a, "useFormAction must be used inside a RouteContext");
|
|
1667
|
+
let [r] = a.matches.slice(-1), i = { ...H(e || ".", { relative: n }) }, s = N();
|
|
1647
1668
|
if (e == null) {
|
|
1648
1669
|
i.search = s.search;
|
|
1649
1670
|
let c = new URLSearchParams(i.search), l = c.getAll("index");
|
|
1650
|
-
if (l.some((
|
|
1651
|
-
c.delete("index"), l.filter((
|
|
1652
|
-
let
|
|
1653
|
-
i.search =
|
|
1671
|
+
if (l.some((h) => h === "")) {
|
|
1672
|
+
c.delete("index"), l.filter((m) => m).forEach((m) => c.append("index", m));
|
|
1673
|
+
let h = c.toString();
|
|
1674
|
+
i.search = h ? `?${h}` : "";
|
|
1654
1675
|
}
|
|
1655
1676
|
}
|
|
1656
|
-
return (!e || e === ".") && r.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"),
|
|
1677
|
+
return (!e || e === ".") && r.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), t !== "/" && (i.pathname = i.pathname === "/" ? t : M([t, i.pathname])), W(i);
|
|
1657
1678
|
}
|
|
1658
|
-
function
|
|
1659
|
-
let
|
|
1660
|
-
|
|
1661
|
-
|
|
1679
|
+
function qt(e, n = {}) {
|
|
1680
|
+
let t = o.useContext(J);
|
|
1681
|
+
R(
|
|
1682
|
+
t != null,
|
|
1662
1683
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
1663
1684
|
);
|
|
1664
|
-
let { basename: a } =
|
|
1685
|
+
let { basename: a } = Me(
|
|
1665
1686
|
"useViewTransitionState"
|
|
1666
1687
|
/* useViewTransitionState */
|
|
1667
|
-
), r =
|
|
1668
|
-
if (!
|
|
1688
|
+
), r = H(e, { relative: n.relative });
|
|
1689
|
+
if (!t.isTransitioning)
|
|
1669
1690
|
return !1;
|
|
1670
|
-
let i =
|
|
1671
|
-
return
|
|
1691
|
+
let i = A(t.currentLocation.pathname, a) || t.currentLocation.pathname, s = A(t.nextLocation.pathname, a) || t.nextLocation.pathname;
|
|
1692
|
+
return B(r.pathname, s) != null || B(r.pathname, i) != null;
|
|
1672
1693
|
}
|
|
1673
|
-
function
|
|
1694
|
+
function pn({
|
|
1674
1695
|
context: e,
|
|
1675
|
-
router:
|
|
1676
|
-
hydrate:
|
|
1696
|
+
router: n,
|
|
1697
|
+
hydrate: t = !0,
|
|
1677
1698
|
nonce: a
|
|
1678
1699
|
}) {
|
|
1679
|
-
|
|
1680
|
-
|
|
1700
|
+
R(
|
|
1701
|
+
n && e,
|
|
1681
1702
|
"You must provide `router` and `context` to <StaticRouterProvider>"
|
|
1682
1703
|
);
|
|
1683
1704
|
let r = {
|
|
1684
|
-
router:
|
|
1685
|
-
navigator:
|
|
1705
|
+
router: n,
|
|
1706
|
+
navigator: Qt(),
|
|
1686
1707
|
static: !0,
|
|
1687
1708
|
staticContext: e,
|
|
1688
1709
|
basename: e.basename || "/"
|
|
1689
1710
|
}, i = /* @__PURE__ */ new Map(), s = "";
|
|
1690
|
-
if (
|
|
1711
|
+
if (t !== !1) {
|
|
1691
1712
|
let l = {
|
|
1692
1713
|
loaderData: e.loaderData,
|
|
1693
1714
|
actionData: e.actionData,
|
|
1694
|
-
errors:
|
|
1715
|
+
errors: Xt(e.errors)
|
|
1695
1716
|
};
|
|
1696
|
-
s = `window.__staticRouterHydrationData = JSON.parse(${
|
|
1717
|
+
s = `window.__staticRouterHydrationData = JSON.parse(${an(JSON.stringify(JSON.stringify(l)))});`;
|
|
1697
1718
|
}
|
|
1698
1719
|
let { state: c } = r.router;
|
|
1699
|
-
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: r }, /* @__PURE__ */ o.createElement(
|
|
1720
|
+
return /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(O.Provider, { value: r }, /* @__PURE__ */ o.createElement(_.Provider, { value: c }, /* @__PURE__ */ o.createElement(te.Provider, { value: i }, /* @__PURE__ */ o.createElement(J.Provider, { value: { isTransitioning: !1 } }, /* @__PURE__ */ o.createElement(
|
|
1700
1721
|
Pe,
|
|
1701
1722
|
{
|
|
1702
1723
|
basename: r.basename,
|
|
@@ -1706,10 +1727,10 @@ function hn({
|
|
|
1706
1727
|
static: r.static
|
|
1707
1728
|
},
|
|
1708
1729
|
/* @__PURE__ */ o.createElement(
|
|
1709
|
-
|
|
1730
|
+
Gt,
|
|
1710
1731
|
{
|
|
1711
|
-
routes:
|
|
1712
|
-
future:
|
|
1732
|
+
routes: n.routes,
|
|
1733
|
+
future: n.future,
|
|
1713
1734
|
state: c
|
|
1714
1735
|
}
|
|
1715
1736
|
)
|
|
@@ -1722,18 +1743,18 @@ function hn({
|
|
|
1722
1743
|
}
|
|
1723
1744
|
) : null);
|
|
1724
1745
|
}
|
|
1725
|
-
function
|
|
1746
|
+
function Gt({
|
|
1726
1747
|
routes: e,
|
|
1727
|
-
future:
|
|
1728
|
-
state:
|
|
1748
|
+
future: n,
|
|
1749
|
+
state: t
|
|
1729
1750
|
}) {
|
|
1730
|
-
return
|
|
1751
|
+
return Re(e, void 0, t, n);
|
|
1731
1752
|
}
|
|
1732
|
-
function
|
|
1753
|
+
function Xt(e) {
|
|
1733
1754
|
if (!e) return null;
|
|
1734
|
-
let
|
|
1735
|
-
for (let [a, r] of
|
|
1736
|
-
we(r) ?
|
|
1755
|
+
let n = Object.entries(e), t = {};
|
|
1756
|
+
for (let [a, r] of n)
|
|
1757
|
+
we(r) ? t[a] = { ...r, __type: "RouteErrorResponse" } : r instanceof Error ? t[a] = {
|
|
1737
1758
|
message: r.message,
|
|
1738
1759
|
__type: "Error",
|
|
1739
1760
|
// If this is a subclass (i.e., ReferenceError), send up the type so we
|
|
@@ -1741,13 +1762,13 @@ function Gt(e) {
|
|
|
1741
1762
|
...r.name !== "Error" ? {
|
|
1742
1763
|
__subType: r.name
|
|
1743
1764
|
} : {}
|
|
1744
|
-
} :
|
|
1745
|
-
return
|
|
1765
|
+
} : t[a] = r;
|
|
1766
|
+
return t;
|
|
1746
1767
|
}
|
|
1747
|
-
function
|
|
1768
|
+
function Qt() {
|
|
1748
1769
|
return {
|
|
1749
|
-
createHref:
|
|
1750
|
-
encodeLocation:
|
|
1770
|
+
createHref: Zt,
|
|
1771
|
+
encodeLocation: en,
|
|
1751
1772
|
push(e) {
|
|
1752
1773
|
throw new Error(
|
|
1753
1774
|
`You cannot use navigator.push() on the server because it is a stateless environment. This error was probably triggered when you did a \`navigate(${JSON.stringify(e)})\` somewhere in your app.`
|
|
@@ -1775,47 +1796,51 @@ function Xt() {
|
|
|
1775
1796
|
}
|
|
1776
1797
|
};
|
|
1777
1798
|
}
|
|
1778
|
-
function Qt(e) {
|
|
1779
|
-
return typeof e == "string" ? e : B(e);
|
|
1780
|
-
}
|
|
1781
1799
|
function Zt(e) {
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1800
|
+
return typeof e == "string" ? e : W(e);
|
|
1801
|
+
}
|
|
1802
|
+
function en(e) {
|
|
1803
|
+
let n = typeof e == "string" ? e : W(e);
|
|
1804
|
+
n = n.replace(/ $/, "%20");
|
|
1805
|
+
let t = tn.test(n) ? new URL(n) : new URL(n, "http://localhost");
|
|
1785
1806
|
return {
|
|
1786
|
-
pathname:
|
|
1787
|
-
search:
|
|
1788
|
-
hash:
|
|
1807
|
+
pathname: t.pathname,
|
|
1808
|
+
search: t.search,
|
|
1809
|
+
hash: t.hash
|
|
1789
1810
|
};
|
|
1790
1811
|
}
|
|
1791
|
-
var
|
|
1812
|
+
var tn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, nn = {
|
|
1792
1813
|
"&": "\\u0026",
|
|
1793
1814
|
">": "\\u003e",
|
|
1794
1815
|
"<": "\\u003c",
|
|
1795
1816
|
"\u2028": "\\u2028",
|
|
1796
1817
|
"\u2029": "\\u2029"
|
|
1797
|
-
},
|
|
1798
|
-
function
|
|
1799
|
-
return e.replace(
|
|
1818
|
+
}, rn = /[&><\u2028\u2029]/g;
|
|
1819
|
+
function an(e) {
|
|
1820
|
+
return e.replace(rn, (n) => nn[n]);
|
|
1800
1821
|
}
|
|
1801
1822
|
new TextEncoder();
|
|
1823
|
+
[
|
|
1824
|
+
...At
|
|
1825
|
+
];
|
|
1802
1826
|
export {
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1827
|
+
Ne as L,
|
|
1828
|
+
dn as N,
|
|
1829
|
+
hn as O,
|
|
1830
|
+
fn as R,
|
|
1831
|
+
pn as S,
|
|
1808
1832
|
re as a,
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1833
|
+
mn as b,
|
|
1834
|
+
un as c,
|
|
1835
|
+
sn as d,
|
|
1836
|
+
dt as e,
|
|
1837
|
+
cn as f,
|
|
1838
|
+
Bt as g,
|
|
1839
|
+
on as h,
|
|
1816
1840
|
we as i,
|
|
1817
|
-
|
|
1818
|
-
|
|
1841
|
+
et as j,
|
|
1842
|
+
B as m,
|
|
1843
|
+
ln as r,
|
|
1819
1844
|
N as u
|
|
1820
1845
|
};
|
|
1821
|
-
//# sourceMappingURL=chunk-
|
|
1846
|
+
//# sourceMappingURL=chunk-BAXFHI7N-BLTsN6tl.js.map
|