@seriousgaming/sdk-tools 0.0.0-stage → 1.0.0-alpha.2
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/LICENSE +93 -0
- package/README.md +38 -2
- package/dist/bundling/logic-exports.d.ts +34 -0
- package/dist/bundling/node-builtins.d.ts +21 -0
- package/dist/bundling/transpiler.d.ts +7 -0
- package/dist/cli.js +27404 -0
- package/dist/client/dev-server.d.ts +59 -0
- package/dist/client/index.d.ts +28 -0
- package/dist/client/stub-services.d.ts +32 -0
- package/dist/client/test-session.d.ts +195 -0
- package/dist/client.js +16920 -0
- package/dist/core/asset-reference-translator.d.ts +46 -0
- package/dist/core/clock.d.ts +57 -0
- package/dist/core/faults.d.ts +65 -0
- package/dist/core/game-settings.d.ts +65 -0
- package/dist/core/history.d.ts +89 -0
- package/dist/core/listen-with-fallback.d.ts +30 -0
- package/dist/core/mutation-queue.d.ts +61 -0
- package/dist/core/package-scenario.d.ts +89 -0
- package/dist/core/participant-registry.d.ts +109 -0
- package/dist/core/pending-changes.d.ts +14 -0
- package/dist/core/protocol.d.ts +83 -0
- package/dist/core/scenario-drafts.d.ts +32 -0
- package/dist/core/session-endpoints.d.ts +108 -0
- package/dist/core/session-gates.d.ts +75 -0
- package/dist/core/session-host.d.ts +94 -0
- package/dist/core/session-refusals.d.ts +56 -0
- package/dist/core/session-rewind.d.ts +32 -0
- package/dist/core/session-roster.d.ts +128 -0
- package/dist/core/session-surfaces.d.ts +32 -0
- package/dist/core/session-ticks.d.ts +18 -0
- package/dist/core/session-timers.d.ts +84 -0
- package/dist/core/session-writes.d.ts +40 -0
- package/dist/core/session.d.ts +385 -0
- package/dist/core/settings-locks.d.ts +22 -0
- package/dist/core/team-names.d.ts +52 -0
- package/dist/core/team-state-store.d.ts +218 -0
- package/dist/core/tick-timer.d.ts +75 -0
- package/dist/dev/blob-links.d.ts +10 -0
- package/dist/dev/console/assets/index-DgFglsnA.js +204 -0
- package/dist/dev/console/index.html +12 -0
- package/dist/dev/console-path.d.ts +19 -0
- package/dist/dev/lockfile.d.ts +124 -0
- package/dist/dev/package-watcher.d.ts +21 -0
- package/dist/dev/routes.d.ts +67 -0
- package/dist/dev/shell.d.ts +260 -0
- package/dist/dev/surfaces.d.ts +41 -0
- package/dist/dev/tools-identity.d.ts +23 -0
- package/dist/dev/view/batch.d.ts +172 -0
- package/dist/dev/view/commands.d.ts +75 -0
- package/dist/dev/view/route.d.ts +58 -0
- package/dist/dev/view/view.d.ts +78 -0
- package/dist/dev/view/viewer.d.ts +32 -0
- package/dist/discovery/config.d.ts +9 -0
- package/dist/discovery/manifest-paths.d.ts +21 -0
- package/dist/discovery/removed-fields.d.ts +90 -0
- package/dist/docs/api/deck.md +386 -0
- package/dist/docs/api/index.md +67 -0
- package/dist/docs/api/sdk-commands.md +286 -0
- package/dist/docs/api/sdk-e2e.md +433 -0
- package/dist/docs/api/sdk-projection.md +207 -0
- package/dist/docs/api/sdk-testing.md +214 -0
- package/dist/docs/api/sdk-tools-client.md +560 -0
- package/dist/docs/api/sdk-ui-testing.md +231 -0
- package/dist/docs/api/sdk-ui.md +1269 -0
- package/dist/docs/api/sdk.md +2140 -0
- package/dist/docs/changelog-0.x.md +1156 -0
- package/dist/docs/changelog.md +241 -0
- package/dist/docs/cli-and-dev-server.md +217 -0
- package/dist/docs/cli-error-codes.md +156 -0
- package/dist/docs/cli-reference.md +2489 -0
- package/dist/docs/cli-simulation-testing.md +222 -0
- package/dist/docs/concepts/index.md +46 -0
- package/dist/docs/concepts/terminology.md +322 -0
- package/dist/docs/environment-variables.md +102 -0
- package/dist/docs/getting-started.md +145 -0
- package/dist/docs/guides/ai-facilitation.md +220 -0
- package/dist/docs/guides/capabilities.md +460 -0
- package/dist/docs/guides/endpoints.md +335 -0
- package/dist/docs/guides/engine-testing.md +477 -0
- package/dist/docs/guides/engine.md +527 -0
- package/dist/docs/guides/file-handling.md +405 -0
- package/dist/docs/guides/games.md +176 -0
- package/dist/docs/guides/global-settings.md +94 -0
- package/dist/docs/guides/guide.md +123 -0
- package/dist/docs/guides/hooks.md +183 -0
- package/dist/docs/guides/index.md +51 -0
- package/dist/docs/guides/internationalization.md +288 -0
- package/dist/docs/guides/llm-integration.md +635 -0
- package/dist/docs/guides/multi-team-games.md +586 -0
- package/dist/docs/guides/patterns.md +391 -0
- package/dist/docs/guides/presentation.md +196 -0
- package/dist/docs/guides/production-constraints.md +130 -0
- package/dist/docs/guides/scenario-editor.md +143 -0
- package/dist/docs/guides/scenarios.md +515 -0
- package/dist/docs/guides/session.md +972 -0
- package/dist/docs/guides/settings.md +458 -0
- package/dist/docs/guides/setup.md +193 -0
- package/dist/docs/guides/speech-generation.md +233 -0
- package/dist/docs/guides/starter-game.md +164 -0
- package/dist/docs/guides/testing.md +577 -0
- package/dist/docs/guides/tick-controller.md +569 -0
- package/dist/docs/guides/type-safety.md +516 -0
- package/dist/docs/guides/ui.md +1389 -0
- package/dist/docs/guides/upgrading.md +636 -0
- package/dist/docs/guides/validators.md +217 -0
- package/dist/docs/guides/waiting-room.md +244 -0
- package/dist/docs/index.md +41 -0
- package/dist/docs/recipes/act-on-the-session-from-an-endpoint.md +95 -0
- package/dist/docs/recipes/adapt-a-game-for-walkthroughs.md +133 -0
- package/dist/docs/recipes/adapt-ui-for-observers.md +74 -0
- package/dist/docs/recipes/call-endpoint-from-ui.md +109 -0
- package/dist/docs/recipes/check-a-package-from-a-script.md +117 -0
- package/dist/docs/recipes/create-capability.md +66 -0
- package/dist/docs/recipes/create-endpoint.md +127 -0
- package/dist/docs/recipes/create-engine.md +111 -0
- package/dist/docs/recipes/create-game.md +70 -0
- package/dist/docs/recipes/create-guide.md +75 -0
- package/dist/docs/recipes/create-hook.md +80 -0
- package/dist/docs/recipes/create-presentation.md +142 -0
- package/dist/docs/recipes/create-scenario-editor.md +102 -0
- package/dist/docs/recipes/create-scenario.md +98 -0
- package/dist/docs/recipes/create-session-ui.md +116 -0
- package/dist/docs/recipes/create-settings.md +88 -0
- package/dist/docs/recipes/create-setup.md +115 -0
- package/dist/docs/recipes/create-tick-controller.md +65 -0
- package/dist/docs/recipes/create-user-interface.md +96 -0
- package/dist/docs/recipes/create-validator.md +67 -0
- package/dist/docs/recipes/create-waiting-room-ui.md +109 -0
- package/dist/docs/recipes/declare-api-uses.md +67 -0
- package/dist/docs/recipes/design-state-for-concurrent-writes.md +96 -0
- package/dist/docs/recipes/distribute-package.md +80 -0
- package/dist/docs/recipes/e2e-testing.md +116 -0
- package/dist/docs/recipes/end-game-on-condition.md +154 -0
- package/dist/docs/recipes/fix-duplicate-packages.md +101 -0
- package/dist/docs/recipes/index.md +86 -0
- package/dist/docs/recipes/make-an-endpoint-external.md +101 -0
- package/dist/docs/recipes/negotiate-across-teams.md +164 -0
- package/dist/docs/recipes/observe-other-teams-state.md +119 -0
- package/dist/docs/recipes/publish-a-package.md +139 -0
- package/dist/docs/recipes/remember-a-viewers-choice.md +55 -0
- package/dist/docs/recipes/review-a-past-day.md +73 -0
- package/dist/docs/recipes/share-assets-across-scenarios.md +120 -0
- package/dist/docs/recipes/share-logic-between-engine-and-ui.md +130 -0
- package/dist/docs/recipes/show-all-teams-participants.md +109 -0
- package/dist/docs/recipes/start-from-an-empty-package.md +169 -0
- package/dist/docs/recipes/take-a-file-in-an-endpoint.md +82 -0
- package/dist/docs/recipes/test-a-multi-role-game.md +51 -0
- package/dist/docs/recipes/test-user-interface.md +95 -0
- package/dist/docs/recipes/test-with-engine.md +115 -0
- package/dist/docs/recipes/upload-and-display-files.md +148 -0
- package/dist/docs/recipes/use-request-play.md +65 -0
- package/dist/docs/recipes/use-request-tick.md +75 -0
- package/dist/docs/troubleshooting.md +816 -0
- package/dist/execution/blob-inputs.d.ts +57 -0
- package/dist/execution/bundle-reload.d.ts +42 -0
- package/dist/execution/config-resolver.d.ts +127 -0
- package/dist/execution/configuration-builder.d.ts +66 -0
- package/dist/execution/context-composition.d.ts +161 -0
- package/dist/execution/endpoint-actions.d.ts +9 -0
- package/dist/execution/endpoint-payloads.d.ts +32 -0
- package/dist/execution/endpoint-runner.d.ts +129 -0
- package/dist/execution/engine-state.d.ts +40 -0
- package/dist/execution/executor-callbacks.d.ts +56 -0
- package/dist/execution/executor.d.ts +436 -0
- package/dist/execution/gates.d.ts +45 -0
- package/dist/execution/hook-chain.d.ts +25 -0
- package/dist/execution/logic-calls.d.ts +190 -0
- package/dist/execution/logic-failure.d.ts +84 -0
- package/dist/execution/logic-loader.d.ts +54 -0
- package/dist/execution/logic-result.d.ts +76 -0
- package/dist/execution/tick-controller-call.d.ts +32 -0
- package/dist/execution/types.d.ts +48 -0
- package/dist/generation/ts-type.d.ts +39 -0
- package/dist/guide/locale.d.ts +12 -0
- package/dist/guide/video-registry.d.ts +42 -0
- package/dist/help-examples.d.ts +125 -0
- package/dist/host/adapter.d.ts +67 -0
- package/dist/host/host-channel.d.ts +222 -0
- package/dist/host/index.d.ts +20 -0
- package/dist/host/protocol.d.ts +783 -0
- package/dist/host/surfaces.d.ts +42 -0
- package/dist/host/theme.d.ts +55 -0
- package/dist/host.js +583 -0
- package/dist/prompts/index.d.ts +7 -0
- package/dist/prompts/schema-builder.d.ts +29 -0
- package/dist/prompts/types.d.ts +108 -0
- package/dist/prompts/validators.d.ts +32 -0
- package/dist/runtime/capability-scope.d.ts +6 -0
- package/dist/runtime/context-merge.d.ts +29 -0
- package/dist/runtime/context-projection.d.ts +41 -0
- package/dist/runtime/guarded-callbacks.d.ts +15 -0
- package/dist/runtime/index.d.ts +27 -0
- package/dist/runtime/manifest-version.d.ts +55 -0
- package/dist/runtime/tick-validation.d.ts +25 -0
- package/dist/runtime.js +346 -0
- package/dist/schema.json +1546 -0
- package/dist/server/vite-plugin.d.ts +46 -0
- package/dist/services/tts/client.d.ts +51 -0
- package/dist/services/tts/elevenlabs.d.ts +24 -0
- package/dist/services/tts/types.d.ts +44 -0
- package/dist/storage/asset-resolver.d.ts +49 -0
- package/dist/storage/blob-store.d.ts +41 -0
- package/dist/templates/endpoint/logic.test.ts.liquid +61 -0
- package/dist/templates/endpoint/logic.ts.liquid +25 -0
- package/dist/templates/engine/init.json.liquid +7 -0
- package/dist/templates/engine/logic-aggregate.test.ts.liquid +90 -0
- package/dist/templates/engine/logic-aggregate.ts.liquid +46 -0
- package/dist/templates/engine/logic.test.ts.liquid +61 -0
- package/dist/templates/engine/logic.ts.liquid +32 -0
- package/dist/templates/engine/run.json.liquid +7 -0
- package/dist/templates/guide/01-at-a-glance.md.liquid +19 -0
- package/dist/templates/guide/02-preparation.md.liquid +18 -0
- package/dist/templates/guide/03-running-the-session.md.liquid +37 -0
- package/dist/templates/hook/logic.test.ts.liquid +46 -0
- package/dist/templates/hook/logic.ts.liquid +12 -0
- package/dist/templates/package/CLAUDE.md.template +338 -0
- package/dist/templates/package/DESIGN.md.liquid +144 -0
- package/dist/templates/package/README.md.liquid +143 -0
- package/dist/templates/package/claude/rules/workflow-create-capability.md +26 -0
- package/dist/templates/package/claude/rules/workflow-create-endpoint.md +35 -0
- package/dist/templates/package/claude/rules/workflow-create-engine.md +35 -0
- package/dist/templates/package/claude/rules/workflow-create-guide.md +40 -0
- package/dist/templates/package/claude/rules/workflow-create-presentation.md +37 -0
- package/dist/templates/package/claude/rules/workflow-create-user-interface.md +31 -0
- package/dist/templates/package/claude/rules/workflow-publish-package.md +54 -0
- package/dist/templates/package/claude/rules/workflow-test-engine-or-ui.md +30 -0
- package/dist/templates/package/claude/rules/workflow-update-sdk-version.md +43 -0
- package/dist/templates/package/claude/settings.json.template +16 -0
- package/dist/templates/package/gitignore.template +15 -0
- package/dist/templates/package/global-setup.ts.template +21 -0
- package/dist/templates/package/globals.d.ts.template +2 -0
- package/dist/templates/package/oxfmtrc.json.template +14 -0
- package/dist/templates/package/oxlintrc.json.template +238 -0
- package/dist/templates/package/package.json.liquid +65 -0
- package/dist/templates/package/playwright.config.ts.liquid +19 -0
- package/dist/templates/package/pnpm-workspace.yaml.template +27 -0
- package/dist/templates/package/test-setup.ts.liquid +7 -0
- package/dist/templates/package/tsconfig.json.liquid +15 -0
- package/dist/templates/package/vite.config.ts.liquid +19 -0
- package/dist/templates/package/vitest.config.ts.liquid +25 -0
- package/dist/templates/package/vitest.engine.config.ts.liquid +12 -0
- package/dist/templates/presentation/index.html.liquid +20 -0
- package/dist/templates/presentation/src/App.tsx.liquid +49 -0
- package/dist/templates/presentation/src/Slides.tsx.liquid +81 -0
- package/dist/templates/presentation/src/i18n.ts.liquid +54 -0
- package/dist/templates/presentation/src/main.tsx.liquid +14 -0
- package/dist/templates/scenario_editor/src/App.test.tsx.liquid +30 -0
- package/dist/templates/scenario_editor/src/App.tsx.liquid +95 -0
- package/dist/templates/scenario_editor/src/i18n.ts.liquid +44 -0
- package/dist/templates/session/src/App.test.tsx.liquid +60 -0
- package/dist/templates/session/src/App.tsx.liquid +128 -0
- package/dist/templates/session/src/i18n.ts.liquid +53 -0
- package/dist/templates/session/src/main.tsx.liquid +48 -0
- package/dist/templates/session/src/theme.ts.liquid +46 -0
- package/dist/templates/settings-editor/index.html.liquid +12 -0
- package/dist/templates/settings-editor/src/main.tsx.liquid +48 -0
- package/dist/templates/settings-editor/src/theme.ts.liquid +24 -0
- package/dist/templates/setup/src/App.test.tsx.liquid +39 -0
- package/dist/templates/setup/src/App.tsx.liquid +102 -0
- package/dist/templates/setup/src/i18n.ts.liquid +47 -0
- package/dist/templates/starter-game/capabilities/briefing/capability.sdk.json +18 -0
- package/dist/templates/starter-game/capabilities/plan/capability.sdk.json +17 -0
- package/dist/templates/starter-game/capabilities/results/capability.sdk.json +61 -0
- package/dist/templates/starter-game/capabilities/roles/capability.sdk.json +17 -0
- package/dist/templates/starter-game/capabilities/weather/capability.sdk.json +23 -0
- package/dist/templates/starter-game/engine/defaults.ts +81 -0
- package/dist/templates/starter-game/engine/engine.sdk.json +12 -0
- package/dist/templates/starter-game/engine/logic.test.ts +221 -0
- package/dist/templates/starter-game/engine/logic.ts +149 -0
- package/dist/templates/starter-game/engine/test-helpers.ts +74 -0
- package/dist/templates/starter-game/engine/types.ts +139 -0
- package/dist/templates/starter-game/guide/content/en/01-at-a-glance.md +51 -0
- package/dist/templates/starter-game/guide/content/en/02-preparation.md +35 -0
- package/dist/templates/starter-game/guide/content/en/03-running-the-day.md +58 -0
- package/dist/templates/starter-game/guide/guide.sdk.json +10 -0
- package/dist/templates/starter-game/guide/guide.test.ts +108 -0
- package/dist/templates/starter-game/hooks/assignproducts/defaults.ts +37 -0
- package/dist/templates/starter-game/hooks/assignproducts/hook.sdk.json +13 -0
- package/dist/templates/starter-game/hooks/assignproducts/logic/logic.test.ts +77 -0
- package/dist/templates/starter-game/hooks/assignproducts/logic/logic.ts +47 -0
- package/dist/templates/starter-game/hooks/assignproducts/types.ts +55 -0
- package/dist/templates/starter-game/package.json +68 -0
- package/dist/templates/starter-game/playwright.config.ts +19 -0
- package/dist/templates/starter-game/scenarios/heatwave/scenario.sdk.json +20 -0
- package/dist/templates/starter-game/scenarios/ordinary_week/scenario.sdk.json +12 -0
- package/dist/templates/starter-game/seriousgaming.sdk.json +23 -0
- package/dist/templates/starter-game/session/defaults.ts +80 -0
- package/dist/templates/starter-game/session/index.html +12 -0
- package/dist/templates/starter-game/session/session.sdk.json +11 -0
- package/dist/templates/starter-game/session/src/App.test.tsx +307 -0
- package/dist/templates/starter-game/session/src/App.tsx +309 -0
- package/dist/templates/starter-game/session/src/Section.tsx +37 -0
- package/dist/templates/starter-game/session/src/TeamDoor.tsx +96 -0
- package/dist/templates/starter-game/session/src/format.ts +8 -0
- package/dist/templates/starter-game/session/src/i18n.ts +51 -0
- package/dist/templates/starter-game/session/src/main.tsx +48 -0
- package/dist/templates/starter-game/session/src/theme.ts +45 -0
- package/dist/templates/starter-game/session/types.ts +135 -0
- package/dist/templates/starter-game/settings/engine/settings.sdk.json +50 -0
- package/dist/templates/starter-game/settings/menu/settings.sdk.json +78 -0
- package/dist/templates/starter-game/settings/session/settings.sdk.json +23 -0
- package/dist/templates/starter-game/settings/ui/settings.sdk.json +25 -0
- package/dist/templates/starter-game/test-setup.ts +7 -0
- package/dist/templates/starter-game/testing/e2e/game.spec.ts +139 -0
- package/dist/templates/starter-game/testing/e2e/global-setup.ts +21 -0
- package/dist/templates/starter-game/testing/engine/game.engine.test.ts +171 -0
- package/dist/templates/starter-game/tsconfig.json +19 -0
- package/dist/templates/starter-game/ui/defaults.ts +60 -0
- package/dist/templates/starter-game/ui/index.html +12 -0
- package/dist/templates/starter-game/ui/src/App.test.tsx +138 -0
- package/dist/templates/starter-game/ui/src/App.tsx +175 -0
- package/dist/templates/starter-game/ui/src/DayBar.test.tsx +78 -0
- package/dist/templates/starter-game/ui/src/DayBar.tsx +72 -0
- package/dist/templates/starter-game/ui/src/HistoryPanel.test.tsx +74 -0
- package/dist/templates/starter-game/ui/src/HistoryPanel.tsx +120 -0
- package/dist/templates/starter-game/ui/src/MakeRow.tsx +129 -0
- package/dist/templates/starter-game/ui/src/Section.tsx +37 -0
- package/dist/templates/starter-game/ui/src/ThemeToggle.tsx +49 -0
- package/dist/templates/starter-game/ui/src/TodayPanel.test.tsx +179 -0
- package/dist/templates/starter-game/ui/src/TodayPanel.tsx +92 -0
- package/dist/templates/starter-game/ui/src/YesterdayPanel.tsx +142 -0
- package/dist/templates/starter-game/ui/src/format.ts +12 -0
- package/dist/templates/starter-game/ui/src/i18n.ts +95 -0
- package/dist/templates/starter-game/ui/src/main.tsx +48 -0
- package/dist/templates/starter-game/ui/src/menu.ts +18 -0
- package/dist/templates/starter-game/ui/src/test-helpers.ts +58 -0
- package/dist/templates/starter-game/ui/src/theme.ts +45 -0
- package/dist/templates/starter-game/ui/src/writes.ts +43 -0
- package/dist/templates/starter-game/ui/types.ts +137 -0
- package/dist/templates/starter-game/ui/ui.sdk.json +11 -0
- package/dist/templates/starter-game/validators/capacity/defaults.ts +37 -0
- package/dist/templates/starter-game/validators/capacity/logic/logic.test.ts +96 -0
- package/dist/templates/starter-game/validators/capacity/logic/logic.ts +45 -0
- package/dist/templates/starter-game/validators/capacity/types.ts +55 -0
- package/dist/templates/starter-game/validators/capacity/validator.sdk.json +11 -0
- package/dist/templates/starter-game/vite.config.ts +19 -0
- package/dist/templates/starter-game/vitest.config.ts +15 -0
- package/dist/templates/starter-game/vitest.engine.config.ts +19 -0
- package/dist/templates/starter-game/waiting_room/defaults.ts +40 -0
- package/dist/templates/starter-game/waiting_room/index.html +12 -0
- package/dist/templates/starter-game/waiting_room/src/App.test.tsx +102 -0
- package/dist/templates/starter-game/waiting_room/src/App.tsx +194 -0
- package/dist/templates/starter-game/waiting_room/src/i18n.ts +33 -0
- package/dist/templates/starter-game/waiting_room/src/main.tsx +48 -0
- package/dist/templates/starter-game/waiting_room/src/theme.ts +45 -0
- package/dist/templates/starter-game/waiting_room/types.ts +59 -0
- package/dist/templates/starter-game/waiting_room/waiting_room.sdk.json +10 -0
- package/dist/templates/tick-controller/logic.ts.liquid +8 -0
- package/dist/templates/ui/index.html.liquid +12 -0
- package/dist/templates/ui/src/App.test.tsx.liquid +41 -0
- package/dist/templates/ui/src/App.tsx.liquid +103 -0
- package/dist/templates/ui/src/i18n.ts.liquid +47 -0
- package/dist/templates/ui/src/main.tsx.liquid +48 -0
- package/dist/templates/ui/src/theme.ts.liquid +46 -0
- package/dist/templates/validator/logic.test.ts.liquid +42 -0
- package/dist/templates/validator/logic.ts.liquid +21 -0
- package/dist/templates/waiting-room/index.html.liquid +12 -0
- package/dist/templates/waiting-room/src/App.test.tsx.liquid +57 -0
- package/dist/templates/waiting-room/src/App.tsx.liquid +118 -0
- package/dist/templates/waiting-room/src/i18n.ts.liquid +44 -0
- package/dist/templates/waiting-room/src/main.tsx.liquid +48 -0
- package/dist/templates/waiting-room/src/theme.ts.liquid +46 -0
- package/dist/templating/resource-metadata.d.ts +131 -0
- package/dist/types.d.ts +14 -0
- package/dist/utils/atomic-write.d.ts +40 -0
- package/dist/utils/cli-error.d.ts +64 -0
- package/dist/utils/document-parser-client.d.ts +20 -0
- package/dist/utils/env-loader.d.ts +40 -0
- package/dist/utils/error-codes.d.ts +339 -0
- package/dist/utils/errors.d.ts +19 -0
- package/dist/utils/global-settings.d.ts +65 -0
- package/dist/utils/llm-client.d.ts +34 -0
- package/dist/utils/logger.d.ts +36 -0
- package/dist/utils/output.d.ts +109 -0
- package/dist/utils/platform.d.ts +14 -0
- package/dist/utils/prompt.d.ts +36 -0
- package/dist/utils/real-path.d.ts +6 -0
- package/dist/utils/schema-properties.d.ts +35 -0
- package/dist/validation/ajv.d.ts +17 -0
- package/dist/validation/facilitator-guide-validator.d.ts +27 -0
- package/dist/validation/findings.d.ts +40 -0
- package/dist/validation/game-constraints.d.ts +10 -0
- package/dist/validation/game-validator.d.ts +34 -0
- package/dist/validation/package-validation.d.ts +41 -0
- package/dist/validation/package-validator.d.ts +19 -0
- package/dist/validation/resource-validator.d.ts +79 -0
- package/dist/validation/schema-defaults-validator.d.ts +29 -0
- package/dist/validation/schema-validation.d.ts +115 -0
- package/dist/validation/semver.d.ts +9 -0
- package/package.json +123 -3
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function P(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ee(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var te=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function I(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,te)}catch(e){te(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ne(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else I(ne.bind(null,e))}var re={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=re,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ne,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return D(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)E.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ee}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=I,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),d=o(((e,t)=>{t.exports=u()}));function f(e,t){let n=Array.isArray(t),r=Array.isArray(e);return _(t)?t:v(e)?y(t):n&&r?h(e,t):n===r?b(e,t):y(t)}function p(e){let t=0,n=e.length,r=Array(n);for(t=0;t<n;t+=1)r[t]=y(e[t]);return r}function m(e){let t={};for(let n in e)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(t[n]=y(e[n]));return t}function h(e,t){let n=e.length;for(let r=0;r<t.length;r+=1)e[n+r]=y(t[r]);return e}function g(e){return typeof e==`object`&&!!e&&!(e instanceof RegExp)&&!(e instanceof Date)}function _(e){return typeof e!=`object`||!e}function v(e){return typeof e!=`object`||!e||e instanceof RegExp||e instanceof Date}function y(e){return g(e)?Array.isArray(e)?p(e):m(e):e}function b(e,t){for(let n in t)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(e[n]=n in e?f(e[n],t[n]):y(t[n]));return e}function x(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}function S(e){if(typeof e!=`string`)throw Error(x(7));return e.charAt(0).toUpperCase()+e.slice(1)}function C(e){if(e==null)return!0;for(let t in e)return!1;return!0}var w=o((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.view_transition`),f=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||e===d||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===f||e.getModuleId!==void 0))}})),T=o(((e,t)=>{t.exports=w()})),E=l(d(),1),D=T();function O(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function k(e){if(E.isValidElement(e)||(0,D.isValidElementType)(e)||!O(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=k(e[n])}),t}function A(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return O(e)&&O(t)&&Object.keys(t).forEach(i=>{E.isValidElement(t[i])||(0,D.isValidElementType)(t[i])?r[i]=t[i]:O(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&O(e[i])?r[i]=A(e[i],t[i],n):n.clone?r[i]=O(t[i])?k(t[i]):t[i]:r[i]=t[i]}),r}var j=/min-width:\s*([0-9.]+)/;function M(e,t){if(!e.containerQueries||!N(t))return t;let n=[];for(let e in t)e.startsWith(`@container`)&&n.push(e);n.sort((e,t)=>+(e.match(j)?.[1]||0)-(t.match(j)?.[1]||0));let r=t;for(let e=0;e<n.length;e+=1){let t=n[e],i=r[t];delete r[t],r[t]=i}return r}function N(e){for(let t in e)if(t.startsWith(`@container`))return!0;return!1}function P(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function F(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function ee(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var te=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function I(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=te(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}let f=[];for(let e=0;e<o.length;e+=1)f.push(s(o[e]));return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,internal_mediaKeys:f,...i}}var ne={},re={xs:0,sm:600,md:900,lg:1200,xl:1536},ie=I({values:re}),ae={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:re[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function oe(e,t,n){let r={};return se(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:f(r,a)})}function se(e,t,n,r){if(t??=ne,Array.isArray(n)){let i=t.breakpoints??ie;for(let t=0;t<n.length;t+=1)ce(e,i.up(i.keys[t]),n[t],void 0,r);return e}if(typeof n==`object`){let i=t.breakpoints??ie,a=i.values??re;for(let o in n)if(P(i.keys,o)){let i=F(t.containerQueries?t:ae,o);i&&ce(e,i,n[o],o,r)}else if(o in a)ce(e,i.up(o),n[o],o,r);else{let t=o;e[t]=n[t]}return e}return r(void 0,n),e}function ce(e,t,n,r,i){e[t]??={},i(t,n,r)}function le(e=ie){let{internal_mediaKeys:t}=e,n={};for(let e=0;e<t.length;e+=1)n[t[e]]={};return n}function ue(e,t){let n=e.internal_mediaKeys;for(let e=0;e<n.length;e+=1){let r=n[e];C(t[r])&&delete t[r]}return t}function de(e,...t){return ue(e,[le(e),...t].reduce((e,t)=>A(e,t),{}))}function L(e,t){if(typeof e!=`object`)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{e[t]!=null&&(n[t]=!0)}),n}function R(e){let{values:t,breakpoints:n,base:r}=e,i=r||L(t,n),a=Object.keys(i);if(a.length===0)return t;let o;return a.reduce((e,n,r)=>{if(Array.isArray(t))e[n]=t[r]==null?t[o]:t[r],o=r;else if(typeof t==`object`&&t){let r=t;e[n]=r[n]==null?r[o]:r[n],o=n}else e[n]=t;return e},{})}function fe(e,t){if(Array.isArray(t))return!0;if(typeof t==`object`&&t){for(let n=0;n<e.keys.length;n+=1)if(e.keys[n]in t)return!0;let n=Object.keys(t);for(let t=0;t<n.length;t+=1)if(P(e.keys,n[t]))return!0}return!1}function pe(e,t,n,r){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||n:typeof n==`string`&&me(e,n,!0,r)||n,t&&(i=t(i,n,e)),i}function me(e,t,n=!0,r=void 0){if(!e||!t)return null;let i=t.split(`.`);if(e.vars&&n){let t=he(e.vars,i,r);if(t!=null)return t}return he(e,i,r)}function he(e,t,n=void 0){let r,i=e,a=0;for(;a<t.length;){if(i==null)return i;r=i,i=i[t[a]],a+=1}if(n&&i===void 0){let e=t[t.length-1],i=`${n}${e==="default"?``:S(e)}`;return r?.[i]}return i}function z(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=me(o,r)||{};return oe(e,a,e=>{let r=pe(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}var ge={internal_cache:{}},_e={m:`margin`,p:`padding`},ve={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},ye={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},be={};for(let e in _e)be[e]=[_e[e]];for(let e in _e)for(let t in ve){let n=_e[e],r=ve[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];be[e+t]=i}for(let e in ye)be[e]=be[ye[e]];var xe=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),Se=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]);[...xe,...Se];function Ce(e,t,n,r){let i=me(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function we(e){return Ce(e,`spacing`,8,`spacing`)}function Te(e,t){return typeof t==`string`||t==null?t:e(t)}var Ee=[``];function De(e,t){let n=e.theme??ge,r=n?.internal_cache?.unarySpacing??we(n),i={};for(let n in e){if(!t.has(n))continue;let a=be[n]??(Ee[0]=n,Ee),o=e[n];se(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e<a.length;e+=1)n[a[e]]=Te(r,t)})}return i}function Oe(e){return De(e,xe)}Oe.propTypes={},Oe.filterProps=xe;var ke=Oe;function Ae(e){return De(e,Se)}Ae.propTypes={},Ae.filterProps=Se;var je=Ae;function Me(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>{let n={};for(let r in e)t[r]&&f(n,t[r](e));return n};return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Ne(e){return typeof e==`number`?`${e}px solid`:e}function Pe(e,t){return z({prop:e,themeKey:`borders`,transform:t})}var Fe=Pe(`border`,Ne),Ie=Pe(`borderTop`,Ne),Le=Pe(`borderRight`,Ne),Re=Pe(`borderBottom`,Ne),ze=Pe(`borderLeft`,Ne),Be=Pe(`borderColor`),Ve=Pe(`borderTopColor`),He=Pe(`borderRightColor`),Ue=Pe(`borderBottomColor`),We=Pe(`borderLeftColor`),Ge=Pe(`outline`,Ne),Ke=Pe(`outlineColor`),qe=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=Ce(e.theme,`shape.borderRadius`,4,`borderRadius`);return oe(e,e.borderRadius,e=>({borderRadius:Te(t,e)}))}return null};qe.propTypes={},qe.filterProps=[`borderRadius`],Me(Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,qe,Ge,Ke);var Je=e=>{if(e.gap!==void 0&&e.gap!==null){let t=Ce(e.theme,`spacing`,8,`gap`);return oe(e,e.gap,e=>({gap:Te(t,e)}))}return null};Je.propTypes={},Je.filterProps=[`gap`];var Ye=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=Ce(e.theme,`spacing`,8,`columnGap`);return oe(e,e.columnGap,e=>({columnGap:Te(t,e)}))}return null};Ye.propTypes={},Ye.filterProps=[`columnGap`];var Xe=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=Ce(e.theme,`spacing`,8,`rowGap`);return oe(e,e.rowGap,e=>({rowGap:Te(t,e)}))}return null};Xe.propTypes={},Xe.filterProps=[`rowGap`],Me(Je,Ye,Xe,z({prop:`gridColumn`}),z({prop:`gridRow`}),z({prop:`gridAutoFlow`}),z({prop:`gridAutoColumns`}),z({prop:`gridAutoRows`}),z({prop:`gridTemplateColumns`}),z({prop:`gridTemplateRows`}),z({prop:`gridTemplateAreas`}),z({prop:`gridArea`}));function Ze(e,t){return t===`grey`?t:e}Me(z({prop:`color`,themeKey:`palette`,transform:Ze}),z({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Ze}),z({prop:`backgroundColor`,themeKey:`palette`,transform:Ze}));var Qe=re;function $e(e){return e<=1&&e!==0?`${e*100}%`:e}var et=z({prop:`width`,transform:$e}),tt=e=>e.maxWidth!==void 0&&e.maxWidth!==null?oe(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Qe[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:$e(t)}}):null;tt.filterProps=[`maxWidth`];var nt=z({prop:`minWidth`,transform:$e}),rt=z({prop:`height`,transform:$e}),it=z({prop:`maxHeight`,transform:$e}),at=z({prop:`minHeight`,transform:$e});z({prop:`size`,cssProperty:`width`,transform:$e}),z({prop:`size`,cssProperty:`height`,transform:$e}),Me(et,tt,nt,rt,it,at,z({prop:`boxSizing`}));var ot={border:{themeKey:`borders`,transform:Ne},borderTop:{themeKey:`borders`,transform:Ne},borderRight:{themeKey:`borders`,transform:Ne},borderBottom:{themeKey:`borders`,transform:Ne},borderLeft:{themeKey:`borders`,transform:Ne},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:Ne},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:qe},color:{themeKey:`palette`,transform:Ze},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Ze},backgroundColor:{themeKey:`palette`,transform:Ze},p:{style:je},pt:{style:je},pr:{style:je},pb:{style:je},pl:{style:je},px:{style:je},py:{style:je},padding:{style:je},paddingTop:{style:je},paddingRight:{style:je},paddingBottom:{style:je},paddingLeft:{style:je},paddingX:{style:je},paddingY:{style:je},paddingInline:{style:je},paddingInlineStart:{style:je},paddingInlineEnd:{style:je},paddingBlock:{style:je},paddingBlockStart:{style:je},paddingBlockEnd:{style:je},m:{style:ke},mt:{style:ke},mr:{style:ke},mb:{style:ke},ml:{style:ke},mx:{style:ke},my:{style:ke},margin:{style:ke},marginTop:{style:ke},marginRight:{style:ke},marginBottom:{style:ke},marginLeft:{style:ke},marginX:{style:ke},marginY:{style:ke},marginInline:{style:ke},marginInlineStart:{style:ke},marginInlineEnd:{style:ke},marginBlock:{style:ke},marginBlockStart:{style:ke},marginBlockEnd:{style:ke},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Je},rowGap:{style:Xe},columnGap:{style:Ye},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:$e},maxWidth:{style:tt},minWidth:{transform:$e},height:{transform:$e},maxHeight:{transform:$e},minHeight:{transform:$e},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}},st={};function ct(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=st,nested:i}=t,a=r.unstable_sxConfig??ot,o={sx:null,theme:r,nested:!0};function s(n){let s=n;if(typeof n==`function`)s=n(r);else if(typeof n!=`object`)return n;if(!s)return null;let c=r.breakpoints??ie,l=le(c);for(let n in s){let i=dt(s[n],r);i!=null&&(typeof i==`object`?a[n]?ut(l,n,i,r,a):fe(c,i)?se(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o)):ut(l,n,i,r,a))}return!i&&r.modularCssLayers?{"@layer sx":M(r,ue(c,l))}:M(r,ue(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var lt=ct();function ut(e,t,n,r,i){let a=i[t];if(!a){e[t]=n;return}if(n==null)return;let{themeKey:o}=a;if(o===`typography`&&n===`inherit`){e[t]=n;return}let{style:s}=a;if(s){f(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=me(r,o);se(e,r,n,(n,r)=>{let i=pe(u,l,r,t);c===!1?f(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function dt(e,t){return typeof e==`function`?e(t):e}function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ft.apply(null,arguments)}function pt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function mt(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var ht=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(mt(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=pt(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),gt=`-ms-`,_t=`-moz-`,vt=`-webkit-`,yt=`comm`,bt=`rule`,xt=`decl`,St=`@import`,Ct=`@keyframes`,wt=`@layer`,Tt=Math.abs,Et=String.fromCharCode,Dt=Object.assign;function Ot(e,t){return Nt(e,0)^45?(((t<<2^Nt(e,0))<<2^Nt(e,1))<<2^Nt(e,2))<<2^Nt(e,3):0}function kt(e){return e.trim()}function At(e,t){return(e=t.exec(e))?e[0]:e}function jt(e,t,n){return e.replace(t,n)}function Mt(e,t){return e.indexOf(t)}function Nt(e,t){return e.charCodeAt(t)|0}function Pt(e,t,n){return e.slice(t,n)}function Ft(e){return e.length}function It(e){return e.length}function Lt(e,t){return t.push(e),e}function Rt(e,t){return e.map(t).join(``)}var zt=1,Bt=1,Vt=0,Ht=0,B=0,Ut=``;function Wt(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:zt,column:Bt,length:o,return:``}}function Gt(e,t){return Dt(Wt(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Kt(){return B}function qt(){return B=Ht>0?Nt(Ut,--Ht):0,Bt--,B===10&&(Bt=1,zt--),B}function Jt(){return B=Ht<Vt?Nt(Ut,Ht++):0,Bt++,B===10&&(Bt=1,zt++),B}function Yt(){return Nt(Ut,Ht)}function Xt(){return Ht}function Zt(e,t){return Pt(Ut,e,t)}function Qt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $t(e){return zt=Bt=1,Vt=Ft(Ut=e),Ht=0,[]}function en(e){return Ut=``,e}function tn(e){return kt(Zt(Ht-1,an(e===91?e+2:e===40?e+1:e)))}function nn(e){for(;(B=Yt())&&B<33;)Jt();return Qt(e)>2||Qt(B)>3?``:` `}function rn(e,t){for(;--t&&Jt()&&!(B<48||B>102||B>57&&B<65||B>70&&B<97););return Zt(e,Xt()+(t<6&&Yt()==32&&Jt()==32))}function an(e){for(;Jt();)switch(B){case e:return Ht;case 34:case 39:e!==34&&e!==39&&an(B);break;case 40:e===41&&an(e);break;case 92:Jt()}return Ht}function on(e,t){for(;Jt()&&e+B!==57&&(e+B!==84||Yt()!==47););return`/*`+Zt(t,Ht-1)+`*`+Et(e===47?e:Jt())}function sn(e){for(;!Qt(Yt());)Jt();return Zt(e,Ht)}function cn(e){return en(ln(``,null,null,null,[``],e=$t(e),0,[0],e))}function ln(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Jt()){case 40:if(m!=108&&Nt(C,d-1)==58){Mt(C+=jt(tn(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=tn(v);break;case 9:case 10:case 13:case 32:C+=nn(m);break;case 92:C+=rn(Xt()-1,7);continue;case 47:switch(Yt()){case 42:case 47:Lt(dn(on(Jt(),Xt()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=Ft(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=jt(C,/\f/g,``)),p>0&&Ft(C)-d&&Lt(p>32?fn(C+`;`,r,n,d-1):fn(jt(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Lt(S=un(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123){if(u===0)ln(C,t,S,S,b,a,d,s,x);else switch(f===99&&Nt(C,3)===110?100:f){case 100:case 108:case 109:case 115:ln(e,S,S,r&&Lt(un(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:ln(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+Ft(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&qt()==125)continue}switch(C+=Et(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(Ft(C)-1)*_,_=1;break;case 64:Yt()===45&&(C+=tn(Jt())),f=Yt(),u=d=Ft(y=C+=sn(Xt())),v++;break;case 45:m===45&&Ft(C)==2&&(h=0)}}return a}function un(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=It(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=Pt(e,d+1,d=Tt(h=o[m])),y=e;_<p;++_)(y=kt(h>0?f[_]+` `+v:jt(v,/&\f/g,f[_])))&&(c[g++]=y);return Wt(e,t,n,i===0?bt:s,c,l,u)}function dn(e,t,n){return Wt(e,t,n,yt,Et(Kt()),Pt(e,2,-2),0)}function fn(e,t,n,r){return Wt(e,t,n,xt,Pt(e,0,r),Pt(e,r+1,-1),r)}function pn(e,t){for(var n=``,r=It(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function mn(e,t,n,r){switch(e.type){case wt:if(e.children.length)break;case St:case xt:return e.return=e.return||e.value;case yt:return``;case Ct:return e.return=e.value+`{`+pn(e.children,r)+`}`;case bt:e.value=e.props.join(`,`)}return Ft(n=pn(e.children,r))?e.return=e.value+`{`+n+`}`:``}function hn(e){var t=It(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function gn(e){return function(t){t.root||(t=t.return)&&e(t)}}function _n(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var vn=function(e,t,n){for(var r=0,i=0;r=i,i=Yt(),r===38&&i===12&&(t[n]=1),!Qt(i);)Jt();return Zt(e,Ht)},yn=function(e,t){var n=-1,r=44;do switch(Qt(r)){case 0:r===38&&Yt()===12&&(t[n]=1),e[n]+=vn(Ht-1,t,n);break;case 2:e[n]+=tn(r);break;case 4:if(r===44){e[++n]=Yt()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=Et(r)}while(r=Jt());return e},bn=function(e,t){return en(yn($t(e),t))},xn=new WeakMap,Sn=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if((e.props.length!==1||t.charCodeAt(0)===58||xn.get(n))&&!r){xn.set(e,!0);for(var i=[],a=bn(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Cn=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function wn(e,t){switch(Ot(e,t)){case 5103:return vt+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return vt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return vt+e+_t+e+gt+e+e;case 6828:case 4268:return vt+e+gt+e+e;case 6165:return vt+e+gt+`flex-`+e+e;case 5187:return vt+e+jt(e,/(\w+).+(:[^]+)/,vt+`box-$1$2`+gt+`flex-$1$2`)+e;case 5443:return vt+e+gt+`flex-item-`+jt(e,/flex-|-self/,``)+e;case 4675:return vt+e+gt+`flex-line-pack`+jt(e,/align-content|flex-|-self/,``)+e;case 5548:return vt+e+gt+jt(e,`shrink`,`negative`)+e;case 5292:return vt+e+gt+jt(e,`basis`,`preferred-size`)+e;case 6060:return vt+`box-`+jt(e,`-grow`,``)+vt+e+gt+jt(e,`grow`,`positive`)+e;case 4554:return vt+jt(e,/([^-])(transform)/g,`$1`+vt+`$2`)+e;case 6187:return jt(jt(jt(e,/(zoom-|grab)/,vt+`$1`),/(image-set)/,vt+`$1`),e,``)+e;case 5495:case 3959:return jt(e,/(image-set\([^]*)/,vt+"$1$`$1");case 4968:return jt(jt(e,/(.+:)(flex-)?(.*)/,vt+`box-pack:$3`+gt+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+vt+e+e;case 4095:case 3583:case 4068:case 2532:return jt(e,/(.+)-inline(.+)/,vt+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ft(e)-1-t>6)switch(Nt(e,t+1)){case 109:if(Nt(e,t+4)!==45)break;case 102:return jt(e,/(.+:)(.+)-([^]+)/,`$1`+vt+`$2-$3$1`+_t+(Nt(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Mt(e,`stretch`)?wn(jt(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(Nt(e,t+1)!==115)break;case 6444:switch(Nt(e,Ft(e)-3-(~Mt(e,`!important`)&&10))){case 107:return jt(e,`:`,`:`+vt)+e;case 101:return jt(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+vt+(Nt(e,14)===45?`inline-`:``)+`box$3$1`+vt+`$2$3$1`+gt+`$2box$3`)+e}break;case 5936:switch(Nt(e,t+11)){case 114:return vt+e+gt+jt(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return vt+e+gt+jt(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return vt+e+gt+jt(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return vt+e+gt+e+e}return e}var Tn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case xt:e.return=wn(e.value,e.length);break;case Ct:return pn([Gt(e,{value:jt(e.value,`@`,`@`+vt)})],r);case bt:if(e.length)return Rt(e.props,function(t){switch(At(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return pn([Gt(e,{props:[jt(t,/:(read-\w+)/,`:`+_t+`$1`)]})],r);case`::placeholder`:return pn([Gt(e,{props:[jt(t,/:(plac\w+)/,`:`+vt+`input-$1`)]}),Gt(e,{props:[jt(t,/:(plac\w+)/,`:`+_t+`$1`)]}),Gt(e,{props:[jt(t,/:(plac\w+)/,gt+`input-$1`)]})],r)}return``})}}],En=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Tn,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[Sn,Cn],l,u=[mn,gn(function(e){l.insert(e)})],d=hn(c.concat(r,u)),f=function(e){return pn(cn(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new ht({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Dn=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),On=o(((e,t)=>{t.exports=Dn()})),kn=o(((e,t)=>{var n=On(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function An(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var jn=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Mn=function(e,t,n){jn(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function Nn(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Pn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Fn=/[A-Z]|^ms/g,In=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ln=function(e){return e.charCodeAt(1)===45},Rn=function(e){return e!=null&&typeof e!=`boolean`},zn=_n(function(e){return Ln(e)?e:e.replace(Fn,`-$&`).toLowerCase()}),Bn=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(In,function(e,t,n){return Wn={name:t,styles:n,next:Wn},t})}return Pn[e]!==1&&!Ln(e)&&typeof t==`number`&&t!==0?t+`px`:t};function Vn(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Wn={name:i.name,styles:i.styles,next:Wn},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Wn={name:o.name,styles:o.styles,next:Wn},o=o.next;return a.styles+`;`}return Hn(e,t,n);case`function`:if(e!==void 0){var s=Wn,c=n(e);return Wn=s,Vn(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Hn(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Vn(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Rn(s)&&(r+=zn(a)+`:`+Bn(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Rn(o[c])&&(r+=zn(a)+`:`+Bn(a,o[c])+`;`);else{var l=Vn(e,t,o);switch(a){case`animation`:case`animationName`:r+=zn(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var Un=/label:\s*([^\s;{]+)\s*(;|$)/g,Wn;function Gn(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Wn=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=Vn(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Vn(n,t,e[o]),r&&(i+=a[o]);Un.lastIndex=0;for(var s=``,c;(c=Un.exec(i))!==null;)s+=`-`+c[1];return{name:Nn(i)+s,styles:i,next:Wn}}var Kn=function(e){return e()},qn=E.useInsertionEffect?E.useInsertionEffect:!1,Jn=qn||Kn,Yn=qn||E.useLayoutEffect,Xn=E.createContext(typeof HTMLElement<`u`?En({key:`css`}):null);Xn.Provider;var Zn=function(e){return(0,E.forwardRef)(function(t,n){return e(t,(0,E.useContext)(Xn),n)})},Qn=E.createContext({}),$n={}.hasOwnProperty,er=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,tr=function(e,t){var n={};for(var r in t)$n.call(t,r)&&(n[r]=t[r]);return n[er]=e,n},nr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return jn(t,n,r),Jn(function(){return Mn(t,n,r)}),null},rr=Zn(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[er],a=[r],o=``;typeof e.className==`string`?o=An(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Gn(a,void 0,E.useContext(Qn));o+=t.key+`-`+s.name;var c={};for(var l in e)$n.call(e,l)&&l!==`css`&&l!==er&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),E.createElement(E.Fragment,null,E.createElement(nr,{cache:t,serialized:s,isStringTag:typeof i==`string`}),E.createElement(i,c))});kn();var ir=function(e,t){var n=arguments;if(t==null||!$n.call(t,`css`))return E.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=rr,i[1]=tr(e,t);for(var a=2;a<r;a++)i[a]=n[a];return E.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(ir||={});var ar=Zn(function(e,t){var n=e.styles,r=Gn([n],void 0,E.useContext(Qn)),i=E.useRef();return Yn(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Yn(function(){var e=i.current,n=e[0];e[1]?e[1]=!1:(r.next!==void 0&&Mn(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1))},[t,r.name]),null});function or(){return Gn([...arguments])}function sr(){var e=or.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var cr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,lr=_n(function(e){return cr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ur=function(e){return e!==`theme`},dr=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?lr:ur},fr=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},pr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return jn(t,n,r),Jn(function(){return Mn(t,n,r)}),null},mr=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=fr(t,n,r),c=s||dr(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=Zn(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=E.useContext(Qn)}typeof e.className==`string`?a=An(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Gn(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?dr(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),E.createElement(E.Fragment,null,E.createElement(pr,{cache:t,serialized:m,isStringTag:typeof r==`string`}),E.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return`.`+o}}),h.withComponent=function(t,r){return e(t,ft({},n,r,{shouldForwardProp:fr(h,r,!0)})).apply(void 0,d)},h}},hr=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),gr=mr.bind(null);hr.forEach(function(e){gr[e]=gr(e)});var _r=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),V=o(((e,t)=>{t.exports=_r()}))();function vr(e){return e==null||Object.keys(e).length===0}function yr(e){let{styles:t,defaultTheme:n={}}=e;return(0,V.jsx)(ar,{styles:typeof t==`function`?e=>t(vr(e)?n:e):t})}function br(e,t){return gr(e,t)}function xr(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Sr=[];function Cr(e){return Sr[0]=e,Gn(Sr)}var wr={borderRadius:4};function Tr(e=8,t=we({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function Er(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Dr(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=I(n),c=Tr(i),l=A({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...wr,...a}},o);return l=ee(l),l.applyStyles=Er,l=t.reduce((e,t)=>A(e,t),l),l.unstable_sxConfig={...ot,...o?.unstable_sxConfig},l.unstable_sx=function(e){return lt({sx:e,theme:this})},l.internal_cache={},l}function Or(e){return Object.keys(e).length===0}function kr(e=null){let t=E.useContext(Qn);return!t||Or(t)?e:t}var Ar=Dr();function jr(e=Ar){return kr(e)}function Mr(e){let t=Cr(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Nr({styles:e,themeId:t,defaultTheme:n={}}){let r=jr(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>Mr(typeof e==`function`?e(i):e)):Mr(a)),(0,V.jsx)(yr,{styles:a})}var Pr=e=>e,Fr=(()=>{let e=Pr;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Pr}}})();function Ir(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Ir(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function H(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ir(e))&&(r&&(r+=` `),r+=t);return r}function Lr(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r=`MuiBox-root`,generateClassName:i}=e,a=br(`div`,{shouldForwardProp:e=>e!==`theme`&&e!==`sx`&&e!==`as`})(lt);return E.forwardRef(function(e,o){let s=jr(n),{className:c,component:l=`div`,...u}=e;return(0,V.jsx)(a,{as:l,ref:o,className:H(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var Rr={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function zr(e,t,n=`Mui`){let r=Rr[t];return r?`${n}-${r}`:`${Fr.generate(e)}-${t}`}function U(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=zr(e,t,n)}),r}function Br(e){let{variants:t,...n}=e,r={variants:t,style:Cr(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=Cr(e.style))}),r}var Vr=Dr();function Hr(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function Ur(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Wr(e){return e?(t,n)=>n[e]:null}function Gr(e,t,n){e.theme=C(e.theme)?n:e.theme[t]||e.theme}function Kr(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Kr(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?Ur(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?Ur(Cr(i),n):i}return qr(e,r.variants,[t],n)}return r?.isProcessed?n?Ur(Cr(r.style),n):r.style:n?Ur(Cr(r),n):r}function qr(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Ur(Cr(o.style(i)),r):o.style(i))):n.push(r?Ur(Cr(o.style),r):o.style)}return n}function Jr(e={}){let{themeId:t,defaultTheme:n=Vr,rootShouldForwardProp:r=Hr,slotShouldForwardProp:i=Hr}=e;function a(e){Gr(e,t,n)}return(e,t={})=>{xr(e,e=>e.filter(e=>e!==lt));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=Wr(Xr(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=Hr;o===`Root`||o===`root`?m=r:o?m=i:Yr(e)&&(m=void 0);let h=br(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Kr(t,e,t.theme.modularCssLayers?d:void 0)};if(O(e)){let t=Br(e);return function(e){return t.variants?Kr(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?Ur(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Kr(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?qr(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(lt),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function Yr(e){return typeof e==`string`&&e.charCodeAt(0)>96}function Xr(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var Zr=Jr();function Qr(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e,s=i[t],c=o[t];typeof s==`function`||typeof c==`function`?r[a][t]=(...e)=>Qr((typeof s==`function`?s(...e):s)??{},(typeof c==`function`?c(...e):c)??{},n):r[a][t]=Qr(s??{},c??{},n)}}}else a===`className`&&n&&t.className!==void 0?r.className=H(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function $r(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Qr(t.components[n].defaultProps,r)}function ei(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,a=jr(r);return i&&(a=a[i]||a),$r({theme:a,name:n,props:t})}var ti=typeof window<`u`?E.useLayoutEffect:E.useEffect;function ni(e,t,n,r,i){let[a,o]=E.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return ti(()=>{if(!n)return;let t=n(e),r=()=>{o(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),a}var ri={...E}.useSyncExternalStore;function ii(e,t,n,r,i){let a=E.useCallback(()=>t,[t]),o=E.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[s,c]=E.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return ri(c,s,o)}function ai(e={}){let{themeId:t}=e;return function(e,n={}){let r=kr();r&&t&&(r=r[t]||r);let i=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:a=!1,matchMedia:o,ssrMatchMedia:s=null,noSsr:c=!1}=$r({name:`MuiUseMediaQuery`,props:n,theme:r}),l=E.useMemo(()=>o===void 0?i===null?null:i.bind(window):o,[o,i]),u=typeof e==`function`?e(r):e;return u=u.replace(/^@media( ?)/m,``),u.includes(`print`)&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.",`Using the print media query to modify print styles can lead to unexpected results.`,"Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
|
|
2
|
+
`)),(ri===void 0?ni:ii)(u,a,l,s,c)}}ai();function oi(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function si(e,t=0,n=1){return oi(e,t,n)}function ci(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function li(e){if(e.type)return e;if(e.charAt(0)===`#`)return li(ci(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(x(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(x(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var ui=e=>{let t=li(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},di=(e,t)=>{try{return ui(e)}catch{return e}};function fi(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function pi(e){e=li(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),fi({type:s,values:c})}function mi(e){e=li(e);let t=e.type===`hsl`||e.type===`hsla`?li(pi(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function hi(e,t){let n=mi(e),r=mi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function gi(e,t){return e=li(e),t=si(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,fi(e)}function _i(e,t,n){try{return gi(e,t)}catch{return e}}function vi(e,t){if(e=li(e),t=si(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return fi(e)}function yi(e,t,n){try{return vi(e,t)}catch{return e}}function bi(e,t){if(e=li(e),t=si(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return fi(e)}function xi(e,t,n){try{return bi(e,t)}catch{return e}}function Si(e,t=.15){return mi(e)>.5?vi(e,t):bi(e,t)}function Ci(e,t,n){try{return Si(e,t)}catch{return e}}var wi=E.createContext(null);function Ti(){return E.useContext(wi)}var Ei=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function Di(e,t){return typeof t==`function`?t(e):{...e,...t}}function Oi(e){let{children:t,theme:n}=e,r=Ti(),i=E.useMemo(()=>{let e=r===null?{...n}:Di(r,n);return e!=null&&(e[Ei]=r!==null),e},[n,r]);return(0,V.jsx)(wi.Provider,{value:i,children:t})}var ki=E.createContext();function Ai({value:e,...t}){return(0,V.jsx)(ki.Provider,{value:e??!0,...t})}var ji=()=>E.useContext(ki)??!1,Mi=E.createContext(void 0);function Ni({value:e,children:t}){return(0,V.jsx)(Mi.Provider,{value:e,children:t})}function Pi(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?Qr(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Qr(i,r,t.components.mergeClassNameAndStyle):r}function Fi({props:e,name:t}){return Pi({props:e,name:t,theme:{components:E.useContext(Mi)}})}var Ii=0;function Li(e){let[t,n]=E.useState(e),r=e||t;return E.useEffect(()=>{t??(Ii+=1,n(`mui-${Ii}`))},[t]),r}var Ri={...E}.useId;function zi(e){if(Ri!==void 0){let t=Ri();return e??t}return Li(e)}function Bi(e){let t=kr(),n=zi()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,ti(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,V.jsx)(Nr,{styles:i}):null}var Vi={};function Hi(e,t,n,r=!1){return E.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Ui(e){let{children:t,theme:n,themeId:r}=e,i=kr(Vi),a=Ti()||Vi,o=Hi(r,i,n),s=Hi(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=Bi(o);return(0,V.jsx)(Oi,{theme:s,children:(0,V.jsx)(Qn.Provider,{value:o,children:(0,V.jsx)(Ai,{value:c,children:(0,V.jsxs)(Ni,{value:r?o[r].components:o.components,children:[l,t]})})})})}var Wi={theme:void 0};function Gi(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(Wi.theme=r.theme,i=Br(e(Wi)),t=i,n=r.theme),i}}var Ki=`mode`,qi=`color-scheme`,Ji=`data-color-scheme`;({...E}).useSyncExternalStore;function Yi(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=Ki,colorSchemeStorageKey:a=qi,attribute:o=Ji,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
|
|
3
|
+
${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
|
|
4
|
+
${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
|
|
5
|
+
${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,V.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
|
|
6
|
+
try {
|
|
7
|
+
let colorScheme = '';
|
|
8
|
+
const mode = localStorage.getItem('${i}') || '${t}';
|
|
9
|
+
const dark = localStorage.getItem('${a}-dark') || '${r}';
|
|
10
|
+
const light = localStorage.getItem('${a}-light') || '${n}';
|
|
11
|
+
if (mode === 'system') {
|
|
12
|
+
// handle system mode
|
|
13
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
14
|
+
if (mql.matches) {
|
|
15
|
+
colorScheme = dark
|
|
16
|
+
} else {
|
|
17
|
+
colorScheme = light
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
if (mode === 'light') {
|
|
21
|
+
colorScheme = light;
|
|
22
|
+
}
|
|
23
|
+
if (mode === 'dark') {
|
|
24
|
+
colorScheme = dark;
|
|
25
|
+
}
|
|
26
|
+
if (colorScheme) {
|
|
27
|
+
${l}
|
|
28
|
+
}
|
|
29
|
+
} catch(e){}})();`}},`mui-color-scheme-init`)}function Xi(){}var Zi=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Xi;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function Qi(){}function $i(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function ea(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function ta(e){return ea(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function na(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Ki,colorSchemeStorageKey:o=qi,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=Zi,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=E.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=E.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=E.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=E.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:$i(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=E.useState(l||!d);E.useEffect(()=>{v(!0)},[]);let y=ta(h),b=E.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:$i(r)}})},[f,t]),x=E.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return ea(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=E.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=E.useRef(S);return C.current=S,E.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),E.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||Qi,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||Qi,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||Qi;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var ra=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function ia(e){let{themeId:t,theme:n={},modeStorageKey:r=Ki,colorSchemeStorageKey:i=qi,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=E.createContext(void 0),u=()=>E.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=E.useRef(!1),D=Ti(),O=E.useContext(l),k=!!O&&!b,A=E.useMemo(()=>u||(typeof n==`function`?n():n),[u]),j=A[t],M=j||A,{colorSchemes:N=d,components:P=f,cssVarPrefix:F}=M,ee=Object.keys(N).filter(e=>!!N[e]).join(`,`),te=E.useMemo(()=>ee.split(`,`),[ee]),I=typeof o==`string`?o:o.light,ne=typeof o==`string`?o:o.dark,{mode:re,setMode:ie,systemMode:ae,lightColorScheme:oe,darkColorScheme:se,colorScheme:ce,setColorScheme:le}=na({supportedColorSchemes:te,defaultLightColorScheme:I,defaultDarkColorScheme:ne,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:N[I]&&N[ne]?S:N[M.defaultColorScheme]?.palette?.mode||M.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),ue=re,de=ce;k&&(ue=O.mode,de=O.colorScheme);let L=de||M.defaultColorScheme;M.vars&&!C&&(L=M.defaultColorScheme);let R=E.useMemo(()=>{let e=M.generateThemeVars?.()||M.vars,t={...M,components:P,colorSchemes:N,cssVarPrefix:F,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),L){let e=N[L];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[M,L,P,N,F]),fe=M.colorSchemeSelector;ti(()=>{if(de&&y&&fe&&fe!==`media`){let e=fe,t=fe;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...te.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,de));else{let e=t.replace(`%s`,de).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||te.forEach(e=>{y.removeAttribute(t.replace(de,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,de)}}},[de,fe,y,te]),E.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(ra)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[de,h,v]),E.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let pe=E.useMemo(()=>({allColorSchemes:te,colorScheme:de,darkColorScheme:se,lightColorScheme:oe,mode:ue,setColorScheme:le,setMode:ie,systemMode:ae}),[te,de,se,oe,ue,le,ie,ae,R.colorSchemeSelector]),me=!0;(x||M.cssVariables===!1||k&&D?.cssVarPrefix===F)&&(me=!1);let he=(0,V.jsxs)(E.Fragment,{children:[(0,V.jsx)(Ui,{themeId:j?t:void 0,theme:R,children:c}),me&&(0,V.jsx)(yr,{styles:R.generateStyleSheets?.()||[]})]});return k?he:(0,V.jsx)(l.Provider,{value:pe,children:he})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>Yi({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function aa(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var oa=new Set([`__proto__`,`constructor`,`prototype`]),sa=(e,t,n,r=[])=>{let i=e;for(let e=0;e<t.length;e+=1){let a=t[e];if(oa.has(a))break;e===t.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i==`object`&&(i[a]=n):i&&typeof i==`object`&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])}},ca=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},la=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function ua(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return ca(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=la(e,t);Object.assign(i,{[r]:c}),sa(a,e,`var(${r})`,s),sa(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function da(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=ua(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=ua(n,t);p=A(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=ua(h,t);p=A(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=A(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function fa(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function W(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function pa(e,t){return E.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var ma=Dr(),ha=Zr(`div`,{name:`MuiStack`,slot:`Root`});function ga(e){return ei({props:e,name:`MuiStack`,defaultTheme:ma})}function _a(e,t){let n=E.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(E.cloneElement(t,{key:`separator-${i}`})),e),[])}var va=e=>({row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`})[e],ya=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...oe({theme:t},R({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=we(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>((typeof e.spacing==`object`&&e.spacing[n]!=null||typeof e.direction==`object`&&e.direction[n]!=null)&&(t[n]=!0),t),{}),a=R({values:e.direction,base:i}),o=R({values:e.spacing,base:i});typeof a==`object`&&Object.keys(a).forEach((e,t,n)=>{if(!a[e]){let r=t>0?a[n[t-1]]:`column`;a[e]=r}}),n=A(n,oe({theme:t},o,(t,n)=>e.useFlexGap?{gap:Te(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${va(n?a[n]:e.direction)}`]:Te(r,t)}}))}return n=de(t.breakpoints,n),n};function ba(e={}){let{createStyledComponent:t=ha,useThemeProps:n=ga,componentName:r=`MuiStack`}=e,i=()=>W({root:[`root`]},e=>zr(r,e),{}),a=t(ya);return E.forwardRef(function(e,t){let{component:r=`div`,direction:o=`column`,spacing:s=0,divider:c,children:l,className:u,useFlexGap:d=!1,...f}=n(e),p={direction:o,spacing:s,useFlexGap:d},m=i();return(0,V.jsx)(a,{as:r,ownerState:p,ref:t,className:H(m.root,u),...f,children:c?_a(l,c):l})})}var xa={black:`#000`,white:`#fff`},Sa={50:`#fafafa`,100:`#f5f5f5`,200:`#eeeeee`,300:`#e0e0e0`,400:`#bdbdbd`,500:`#9e9e9e`,600:`#757575`,700:`#616161`,800:`#424242`,900:`#212121`,A100:`#f5f5f5`,A200:`#eeeeee`,A400:`#bdbdbd`,A700:`#616161`},Ca={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},wa={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},Ta={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},Ea={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},Da={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},Oa={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function ka(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:xa.white,default:xa.white},action:{active:`rgba(0, 0, 0, 0.54)`,hover:`rgba(0, 0, 0, 0.04)`,hoverOpacity:.04,selected:`rgba(0, 0, 0, 0.08)`,selectedOpacity:.08,disabled:`rgba(0, 0, 0, 0.26)`,disabledBackground:`rgba(0, 0, 0, 0.12)`,disabledOpacity:.38,focus:`rgba(0, 0, 0, 0.12)`,focusOpacity:.12,activatedOpacity:.12}}}var Aa=ka();function ja(){return{text:{primary:xa.white,secondary:`rgba(255, 255, 255, 0.7)`,disabled:`rgba(255, 255, 255, 0.5)`,icon:`rgba(255, 255, 255, 0.5)`},divider:`rgba(255, 255, 255, 0.12)`,background:{paper:`#121212`,default:`#121212`},action:{active:xa.white,hover:`rgba(255, 255, 255, 0.08)`,hoverOpacity:.08,selected:`rgba(255, 255, 255, 0.16)`,selectedOpacity:.16,disabled:`rgba(255, 255, 255, 0.3)`,disabledBackground:`rgba(255, 255, 255, 0.12)`,disabledOpacity:.38,focus:`rgba(255, 255, 255, 0.12)`,focusOpacity:.12,activatedOpacity:.24}}}var Ma=ja();function Na(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=bi(e.main,i):t===`dark`&&(e.dark=vi(e.main,a)))}function Pa(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function Fa(e=`light`){return e===`dark`?{main:Ea[200],light:Ea[50],dark:Ea[400]}:{main:Ea[700],light:Ea[400],dark:Ea[800]}}function Ia(e=`light`){return e===`dark`?{main:Ca[200],light:Ca[50],dark:Ca[400]}:{main:Ca[500],light:Ca[300],dark:Ca[700]}}function La(e=`light`){return e===`dark`?{main:wa[500],light:wa[300],dark:wa[700]}:{main:wa[700],light:wa[400],dark:wa[800]}}function Ra(e=`light`){return e===`dark`?{main:Da[400],light:Da[300],dark:Da[700]}:{main:Da[700],light:Da[500],dark:Da[900]}}function za(e=`light`){return e===`dark`?{main:Oa[400],light:Oa[300],dark:Oa[700]}:{main:Oa[800],light:Oa[500],dark:Oa[900]}}function Ba(e=`light`){return e===`dark`?{main:Ta[400],light:Ta[300],dark:Ta[700]}:{main:`#ed6c02`,light:Ta[500],dark:Ta[900]}}function Va(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ha(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Fa(t),s=e.secondary||Ia(t),c=e.error||La(t),l=e.info||Ra(t),u=e.success||za(t),d=e.warning||Ba(t);function f(e){return i?Va(e):hi(e,Ma.text.primary)>=n?Ma.text.primary:Aa.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(x(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(x(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(Pa(i,e,`light`,a,r),Pa(i,e,`dark`,o,r)):(Na(e,`light`,a,r),Na(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=ka():t===`dark`&&(m=ja()),A({common:{...xa},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:Sa,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}var Ua=`--_focusVisible-offset`,Wa=`--_focusVisible-behavior`,Ga=`--_focusVisible-shadow`,Ka=`var(${Ua}, 1)`,qa=`var(${Wa}, )`,Ja={[Ua]:1,[Wa]:`initial`};function Ya(e){return{[Ga]:e}}function Xa(e){return{[Ua]:-e,[Wa]:`inset`}}function Za(e,t){return t.reduce((e,t)=>t&&`focusVisible`in t?A(e,{focusVisible:t.focusVisible}):e,{focusVisible:e}).focusVisible}function Qa(e){return typeof e==`object`&&!!e&&typeof e.outlineOffset==`string`&&e.outlineOffset.includes(Ua)}function $a(e,t){return eo({outlineStyle:`solid`,outlineColor:t,outlineWidth:2,outlineOffset:2,boxShadow:`var(${Ga}, 0 0)`,...e===!0?null:e})}function eo(e){let t=e.outlineOffset??0;(typeof t!=`string`||!t.includes(Ua))&&(e.outlineOffset=`calc(${Ka} * ${typeof t==`number`?`${t}px`:t})`);let n=new Set([`none`,`initial`,`inherit`,`unset`,`revert`,`revert-layer`]);return typeof e.boxShadow==`string`&&!n.has(e.boxShadow.trim().toLowerCase())&&!/\binset\b/.test(e.boxShadow)&&!e.boxShadow.includes(Wa)&&(e.boxShadow=`${qa} ${e.boxShadow}`),e}function to(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function no(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function ro(e){return Math.round(e*1e5)/1e5}var io={textTransform:`uppercase`},ao=`"Roboto", "Helvetica", "Arial", sans-serif`;function oo(e,t){let{fontFamily:n=ao,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===ao?{letterSpacing:`${ro(i/t)}em`}:{},...a,...l});return A({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,io),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,io),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var so=.2,co=.14,lo=.12;function uo(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${so})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${co})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${lo})`].join(`,`)}var fo=[`none`,uo(0,2,1,-1,0,1,1,0,0,1,3,0),uo(0,3,1,-2,0,2,2,0,0,1,5,0),uo(0,3,3,-2,0,3,4,0,0,1,8,0),uo(0,2,4,-1,0,4,5,0,0,1,10,0),uo(0,3,5,-1,0,5,8,0,0,1,14,0),uo(0,3,5,-1,0,6,10,0,0,1,18,0),uo(0,4,5,-2,0,7,10,1,0,2,16,1),uo(0,5,5,-3,0,8,10,1,0,3,14,2),uo(0,5,6,-3,0,9,12,1,0,3,16,2),uo(0,6,6,-3,0,10,14,1,0,4,18,3),uo(0,6,7,-4,0,11,15,1,0,4,20,3),uo(0,7,8,-4,0,12,17,2,0,5,22,4),uo(0,7,8,-4,0,13,19,2,0,5,24,4),uo(0,7,9,-4,0,14,21,2,0,5,26,4),uo(0,8,9,-5,0,15,22,2,0,6,28,5),uo(0,8,10,-5,0,16,24,2,0,6,30,5),uo(0,8,11,-5,0,17,26,2,0,6,32,5),uo(0,9,11,-5,0,18,28,2,0,7,34,6),uo(0,9,12,-6,0,19,29,2,0,7,36,6),uo(0,10,13,-6,0,20,31,3,0,8,38,7),uo(0,10,13,-6,0,21,33,3,0,8,40,7),uo(0,10,14,-6,0,22,35,3,0,8,42,7),uo(0,11,14,-7,0,23,36,3,0,9,44,8),uo(0,11,15,-7,0,24,38,3,0,9,46,8)],po=[`all`],mo={},ho={easeInOut:`cubic-bezier(0.4, 0, 0.2, 1)`,easeOut:`cubic-bezier(0.0, 0, 0.2, 1)`,easeIn:`cubic-bezier(0.4, 0, 1, 1)`,sharp:`cubic-bezier(0.4, 0, 0.6, 1)`},go={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function _o(e){return`${Math.round(e)}ms`}function vo(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function yo(e){let t={...e};delete t.reducedMotion;let n={...ho,...t.easing},r={...go,...t.duration};return{getAutoHeightDuration:vo,create:t.create??((e=po,t=mo)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:_o(i)} ${a} ${typeof o==`string`?o:_o(o)}`).join(`,`)}),...t,easing:n,duration:r}}var bo={};function xo(e=bo){return{reducedMotion:`never`,...e}}var So={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Co(e){return O(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function wo(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!Co(a)||i.startsWith(`unstable_`)||i.startsWith(`internal_`)?delete e[i]:O(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
30
|
+
|
|
31
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
32
|
+
|
|
33
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
34
|
+
theme.motion = { reducedMotion: 'never', ...theme.motion };
|
|
35
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
36
|
+
|
|
37
|
+
export default theme;`}function To(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var Eo=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function Do(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:gi(t,Eo(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${To(n)})`:bi(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${To(n)})`:vi(t,n)}})}function Oo(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},motion:o={},transitions:s={},typography:c={},shape:l,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(x(22));let f=Ha({...a,colorSpace:u}),p=Dr(e),m=A(p,{mixins:no(p.breakpoints,r),palette:f,shadows:fo.slice(),typography:oo(f,c),motion:xo(o),transitions:yo(s),zIndex:{...So}});return m=A(m,d),m=t.reduce((e,t)=>A(e,t),m),delete m.transitions.reducedMotion,m.focusVisible!=null&&m.focusVisible!==!1&&(m.focusVisible=$a(m.focusVisible,m.palette.primary.main)),m.unstable_sxConfig={...ot,...d?.unstable_sxConfig},m.unstable_sx=function(e){return lt({sx:e,theme:this})},m.toRuntimeSource=wo,Do(m),m}function ko(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var Ao=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=ko(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function jo(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Mo(e){return e===`dark`?Ao:[]}function No(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Ha({...t,colorSpace:i});return{palette:o,opacity:{...jo(o.mode),...n},overlays:r||Mo(o.mode),...a}}function Po(e){return e[0]===`motion`||e[0]===`focusVisible`||!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var Fo=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],Io=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return Fo(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function Lo(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function G(e,t,n){!e[t]&&n&&(e[t]=n)}function Ro(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:pi(e)}function zo(e,t){`${t}Channel`in e||(e[`${t}Channel`]=di(Ro(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
38
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Bo(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var Vo=e=>{try{return e()}catch{}},Ho=(e=`mui`)=>aa(e);function Uo(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=No({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=Oo({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...jo(a),...n?.opacity},overlays:n?.overlays||Mo(a)},s}function Wo(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=Po,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=Ho(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(x(21,f));let b;o&&(b=`oklch`);let S=Uo(b,v,y,u,f);h&&!v.light&&Uo(b,v,h,void 0,`light`),g&&!v.dark&&Uo(b,v,g,void 0,`dark`);let C={defaultColorScheme:f,...S,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...to(S.typography),...S.font},spacing:Bo(u.spacing)};Object.keys(C.colorSchemes).forEach(e=>{let t=C.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(G(t.common,`background`,`#fff`),G(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(G(t.common,`background`,`#000`),G(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===_i&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===yi&&(r=`#000 ${(n*100).toFixed(0)}%`),e===xi&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(Lo(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){G(t.Alert,`errorColor`,r(yi,o?p(`palette-error-light`):t.error.light,.6)),G(t.Alert,`infoColor`,r(yi,o?p(`palette-info-light`):t.info.light,.6)),G(t.Alert,`successColor`,r(yi,o?p(`palette-success-light`):t.success.light,.6)),G(t.Alert,`warningColor`,r(yi,o?p(`palette-warning-light`):t.warning.light,.6)),G(t.Alert,`errorFilledBg`,n(`palette-error-main`)),G(t.Alert,`infoFilledBg`,n(`palette-info-main`)),G(t.Alert,`successFilledBg`,n(`palette-success-main`)),G(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),G(t.Alert,`errorFilledColor`,Vo(()=>t.getContrastText(t.error.main))),G(t.Alert,`infoFilledColor`,Vo(()=>t.getContrastText(t.info.main))),G(t.Alert,`successFilledColor`,Vo(()=>t.getContrastText(t.success.main))),G(t.Alert,`warningFilledColor`,Vo(()=>t.getContrastText(t.warning.main))),G(t.Alert,`errorStandardBg`,r(xi,o?p(`palette-error-light`):t.error.light,.9)),G(t.Alert,`infoStandardBg`,r(xi,o?p(`palette-info-light`):t.info.light,.9)),G(t.Alert,`successStandardBg`,r(xi,o?p(`palette-success-light`):t.success.light,.9)),G(t.Alert,`warningStandardBg`,r(xi,o?p(`palette-warning-light`):t.warning.light,.9)),G(t.Alert,`errorIconColor`,n(`palette-error-main`)),G(t.Alert,`infoIconColor`,n(`palette-info-main`)),G(t.Alert,`successIconColor`,n(`palette-success-main`)),G(t.Alert,`warningIconColor`,n(`palette-warning-main`)),G(t.AppBar,`defaultBg`,n(`palette-grey-100`)),G(t.Avatar,`defaultBg`,n(`palette-grey-400`)),G(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),G(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),G(t.Chip,`defaultBorder`,n(`palette-grey-400`)),G(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),G(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),G(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),G(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),G(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),G(t.LinearProgress,`primaryBg`,r(xi,o?p(`palette-primary-main`):t.primary.main,.62)),G(t.LinearProgress,`secondaryBg`,r(xi,o?p(`palette-secondary-main`):t.secondary.main,.62)),G(t.LinearProgress,`errorBg`,r(xi,o?p(`palette-error-main`):t.error.main,.62)),G(t.LinearProgress,`infoBg`,r(xi,o?p(`palette-info-main`):t.info.main,.62)),G(t.LinearProgress,`successBg`,r(xi,o?p(`palette-success-main`):t.success.main,.62)),G(t.LinearProgress,`warningBg`,r(xi,o?p(`palette-warning-light`):t.warning.main,.62)),G(t.Skeleton,`bg`,b?r(_i,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),G(t.Slider,`primaryTrack`,r(xi,o?p(`palette-primary-main`):t.primary.main,.62)),G(t.Slider,`secondaryTrack`,r(xi,o?p(`palette-secondary-main`):t.secondary.main,.62)),G(t.Slider,`errorTrack`,r(xi,o?p(`palette-error-main`):t.error.main,.62)),G(t.Slider,`infoTrack`,r(xi,o?p(`palette-info-main`):t.info.main,.62)),G(t.Slider,`successTrack`,r(xi,o?p(`palette-success-main`):t.success.main,.62)),G(t.Slider,`warningTrack`,r(xi,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(yi,o?p(`palette-background-default`):t.background.default,.6825):Ci(t.background.default,.8);G(t.SnackbarContent,`bg`,e),G(t.SnackbarContent,`color`,Vo(()=>b?Ma.text.primary:t.getContrastText(e))),G(t.SpeedDialAction,`fabHoverBg`,Ci(t.background.paper,.15)),G(t.StepConnector,`border`,n(`palette-grey-400`)),G(t.StepContent,`border`,n(`palette-grey-400`)),G(t.Switch,`defaultColor`,n(`palette-common-white`)),G(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),G(t.Switch,`primaryDisabledColor`,r(xi,o?p(`palette-primary-main`):t.primary.main,.62)),G(t.Switch,`secondaryDisabledColor`,r(xi,o?p(`palette-secondary-main`):t.secondary.main,.62)),G(t.Switch,`errorDisabledColor`,r(xi,o?p(`palette-error-main`):t.error.main,.62)),G(t.Switch,`infoDisabledColor`,r(xi,o?p(`palette-info-main`):t.info.main,.62)),G(t.Switch,`successDisabledColor`,r(xi,o?p(`palette-success-main`):t.success.main,.62)),G(t.Switch,`warningDisabledColor`,r(xi,o?p(`palette-warning-main`):t.warning.main,.62)),G(t.TableCell,`border`,r(xi,_i(o?p(`palette-divider`):t.divider,1),.88)),G(t.Tooltip,`bg`,r(_i,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){G(t.Alert,`errorColor`,r(xi,o?p(`palette-error-light`):t.error.light,.6)),G(t.Alert,`infoColor`,r(xi,o?p(`palette-info-light`):t.info.light,.6)),G(t.Alert,`successColor`,r(xi,o?p(`palette-success-light`):t.success.light,.6)),G(t.Alert,`warningColor`,r(xi,o?p(`palette-warning-light`):t.warning.light,.6)),G(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),G(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),G(t.Alert,`successFilledBg`,n(`palette-success-dark`)),G(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),G(t.Alert,`errorFilledColor`,Vo(()=>t.getContrastText(t.error.dark))),G(t.Alert,`infoFilledColor`,Vo(()=>t.getContrastText(t.info.dark))),G(t.Alert,`successFilledColor`,Vo(()=>t.getContrastText(t.success.dark))),G(t.Alert,`warningFilledColor`,Vo(()=>t.getContrastText(t.warning.dark))),G(t.Alert,`errorStandardBg`,r(yi,o?p(`palette-error-light`):t.error.light,.9)),G(t.Alert,`infoStandardBg`,r(yi,o?p(`palette-info-light`):t.info.light,.9)),G(t.Alert,`successStandardBg`,r(yi,o?p(`palette-success-light`):t.success.light,.9)),G(t.Alert,`warningStandardBg`,r(yi,o?p(`palette-warning-light`):t.warning.light,.9)),G(t.Alert,`errorIconColor`,n(`palette-error-main`)),G(t.Alert,`infoIconColor`,n(`palette-info-main`)),G(t.Alert,`successIconColor`,n(`palette-success-main`)),G(t.Alert,`warningIconColor`,n(`palette-warning-main`)),G(t.AppBar,`defaultBg`,n(`palette-grey-900`)),G(t.AppBar,`darkBg`,n(`palette-background-paper`)),G(t.AppBar,`darkColor`,n(`palette-text-primary`)),G(t.Avatar,`defaultBg`,n(`palette-grey-600`)),G(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),G(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),G(t.Chip,`defaultBorder`,n(`palette-grey-700`)),G(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),G(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),G(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),G(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),G(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),G(t.LinearProgress,`primaryBg`,r(yi,o?p(`palette-primary-main`):t.primary.main,.5)),G(t.LinearProgress,`secondaryBg`,r(yi,o?p(`palette-secondary-main`):t.secondary.main,.5)),G(t.LinearProgress,`errorBg`,r(yi,o?p(`palette-error-main`):t.error.main,.5)),G(t.LinearProgress,`infoBg`,r(yi,o?p(`palette-info-main`):t.info.main,.5)),G(t.LinearProgress,`successBg`,r(yi,o?p(`palette-success-main`):t.success.main,.5)),G(t.LinearProgress,`warningBg`,r(yi,o?p(`palette-warning-main`):t.warning.main,.5)),G(t.Skeleton,`bg`,b?r(_i,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),G(t.Slider,`primaryTrack`,r(yi,o?p(`palette-primary-main`):t.primary.main,.5)),G(t.Slider,`secondaryTrack`,r(yi,o?p(`palette-secondary-main`):t.secondary.main,.5)),G(t.Slider,`errorTrack`,r(yi,o?p(`palette-error-main`):t.error.main,.5)),G(t.Slider,`infoTrack`,r(yi,o?p(`palette-info-main`):t.info.main,.5)),G(t.Slider,`successTrack`,r(yi,o?p(`palette-success-main`):t.success.main,.5)),G(t.Slider,`warningTrack`,r(yi,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(xi,o?p(`palette-background-default`):t.background.default,.985):Ci(t.background.default,.98);G(t.SnackbarContent,`bg`,e),G(t.SnackbarContent,`color`,Vo(()=>b?Aa.text.primary:t.getContrastText(e))),G(t.SpeedDialAction,`fabHoverBg`,Ci(t.background.paper,.15)),G(t.StepConnector,`border`,n(`palette-grey-600`)),G(t.StepContent,`border`,n(`palette-grey-600`)),G(t.Switch,`defaultColor`,n(`palette-grey-300`)),G(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),G(t.Switch,`primaryDisabledColor`,r(yi,o?p(`palette-primary-main`):t.primary.main,.55)),G(t.Switch,`secondaryDisabledColor`,r(yi,o?p(`palette-secondary-main`):t.secondary.main,.55)),G(t.Switch,`errorDisabledColor`,r(yi,o?p(`palette-error-main`):t.error.main,.55)),G(t.Switch,`infoDisabledColor`,r(yi,o?p(`palette-info-main`):t.info.main,.55)),G(t.Switch,`successDisabledColor`,r(yi,o?p(`palette-success-main`):t.success.main,.55)),G(t.Switch,`warningDisabledColor`,r(yi,o?p(`palette-warning-light`):t.warning.main,.55)),G(t.TableCell,`border`,r(yi,_i(o?p(`palette-divider`):t.divider,1),.68)),G(t.Tooltip,`bg`,r(_i,o?p(`palette-grey-700`):t.grey[700],.92))}o||(zo(t.background,`default`),zo(t.background,`paper`),zo(t.common,`background`),zo(t.common,`onBackground`),zo(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&G(t[e],`mainChannel`,di(Ro(n.main))),n.light&&G(t[e],`lightChannel`,di(Ro(n.light))),n.dark&&G(t[e],`darkChannel`,di(Ro(n.dark))),n.contrastText&&G(t[e],`contrastTextChannel`,di(Ro(n.contrastText))),e===`text`&&(zo(t[e],`primary`),zo(t[e],`secondary`)),e===`action`&&(n.active&&zo(t[e],`active`),n.selected&&zo(t[e],`selected`)))})}),C=t.reduce((e,t)=>A(e,t),C);let w=Za(e.focusVisible,t);w!=null&&w!==!1&&(C.focusVisible=$a(w,p(`palette-primary-main`)));let T={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Io(C),enableContrastVars:o},{vars:E,generateThemeVars:D,generateStyleSheets:O}=da(C,T);return C.vars=E,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([e,t])=>{C[e]=t}),C.generateThemeVars=D,C.generateStyleSheets=O,C.generateSpacing=function(){return Tr(u.spacing,we(this))},C.getColorSchemeSelector=fa(c),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...ot,...u?.unstable_sxConfig},C.unstable_sx=function(e){return lt({sx:e,theme:this})},C.internal_cache={},C.toRuntimeSource=wo,C}function Go(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ha({...n===!0?{}:n.palette,mode:t})})}function Ko(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return Oo(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Oo({...e,palette:r},...t);if(i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Go(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Go(i,`light`,l.light)),i.focusVisible!=null&&i.focusVisible!==!1){let n=i.focusVisible,r=Za(e.focusVisible,t),a=r&&typeof r==`object`?r.outlineColor:void 0;if(!a||Qa(r)&&a===i.palette.primary.main){let{outlineColor:e,...t}=n;n=t}Object.keys(i.colorSchemes).forEach(e=>{let t=i.colorSchemes?.[e]?.palette;t?.primary&&(i.colorSchemes[e].focusVisible=$a(n,t.primary.main))})}return i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Wo({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var qo=Ko(),Jo=`$$material`;function Yo(){let e=jr(qo);return e.$$material||e}function Xo(e){return(0,V.jsx)(Nr,{...e,defaultTheme:qo,themeId:Jo})}function Zo(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var Qo=e=>Zo(e)&&e!==`classes`,K=Jr({themeId:Jo,defaultTheme:qo,rootShouldForwardProp:Qo});function $o(e){return function(t){return(0,V.jsx)(Xo,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function q(e){return Fi(e)}var es=typeof $o({})==`function`,ts=(e,t)=>({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`,...t&&!e.vars&&{colorScheme:e.palette.mode}}),ns=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),rs=(e,t=!1)=>{let n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector==`function`&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={colorScheme:r.palette?.mode}});let r={html:ts(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...ns(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},is=`mui-ecs`,as=e=>{let t=rs(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${is})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={[`:root:not(:has(.${is}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={[`&:not(:has(.${is}))`]:{colorScheme:r.palette?.mode}}}),t},os=$o(es?({theme:e,enableColorScheme:t})=>rs(e,t):({theme:e})=>as(e));function ss(e){let{children:t,enableColorScheme:n=!1}=q({props:e,name:`MuiCssBaseline`});return(0,V.jsxs)(E.Fragment,{children:[es&&(0,V.jsx)(os,{enableColorScheme:n}),!es&&!n&&(0,V.jsx)(`span`,{className:is,style:{display:`none`}}),t]})}function cs(e){return typeof e==`string`}function ls(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function us(...e){let t=E.useRef(void 0),n=E.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return E.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function ds(e){let t=E.useRef(e);return ti(()=>{t.current=e}),E.useRef((...e)=>(0,t.current)(...e)).current}function fs(e){return e&&e.ownerDocument||document}function ps(e){return fs(e).defaultView||window}function ms(e){return parseInt(e,10)||0}var hs={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function gs(e){for(let t in e)return!1;return!0}function _s(e){return gs(e)||e.outerHeightStyle===0&&!e.overflowing}var vs=E.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=E.useRef(o!=null),l=E.useRef(null),u=us(t,l),d=E.useRef(null),f=E.useRef(null),p=E.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=ps(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
|
|
39
|
+
`&&(n.value+=` `);let o=a.boxSizing,s=ms(a.paddingBottom)+ms(a.paddingTop),c=ms(a.borderBottomWidth)+ms(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=ds(()=>{let e=l.current,t=p();if(!e||!t||_s(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=E.useCallback(()=>{let e=l.current,t=p();if(!e||!t||_s(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=E.useRef(-1);return ti(()=>{let e=ls(h),t=l?.current;if(!t)return;let n=ps(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),ti(()=>{h()}),(0,V.jsxs)(E.Fragment,{children:[(0,V.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(`
|
|
40
|
+
`),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,V.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...hs.shadow,...a,paddingTop:0,paddingBottom:0}})]})}),ys=E.createContext(void 0);function bs({props:e,states:t}){let n=E.useContext(ys),r={};return t.forEach(t=>{let i=e[t];r[t]=i===void 0&&n?n[t]:i}),[r,n]}var J=Gi,Y=S,xs=us,Ss=ti,Cs=fs;function ws(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var Ts=ws;function Es(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Ds(e,t=!1){return e&&(Es(e.value)&&e.value!==``||t&&Es(e.defaultValue)&&e.defaultValue!==``)}function Os(e){return e.startAdornment}function ks(e){return zr(`MuiInputBase`,e)}var As=U(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputTypeSearch`]),js={transition:`none`};function Ms(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var Ns=e=>e.scrollTop,Ps={offsetX:0,offsetY:0},Fs={},Is=[`all`],Ls={},Rs={matrix:[4,5],matrix3d:[12,13],translate:[0,1],translate3d:[0,1],translateX:[0,null],translateY:[null,0]};function zs(e){let t=parseFloat(e??``);return Number.isNaN(t)?0:t}function Bs(e){let t=e.match(/^(matrix|matrix3d|translate|translate3d|translateX|translateY)\((.+)\)$/);return t?{type:t[1],values:t[2].split(`,`).map(zs)}:null}function Vs(e,t){return t===null?0:e[t]||0}function Hs(e){if(!e||e===`none`)return Ps;let t=Bs(e);if(!t)return Ps;let{type:n,values:r}=t,i=Rs[n];return i?{offsetX:Vs(r,i[0]),offsetY:Vs(r,i[1])}:Ps}function Us(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function Ws(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Gs(e,t){let{timeout:n,easing:r,style:i=Fs}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function Ks(e,t){let n=t??js;return Ms(e.motion?.reducedMotion,n)}function qs(e,t=Is,n=Ls){let r=e.transitions?.create?.(t,n),i=Ks(e);if(r===void 0)return i??Fs;let a={transition:r};return i?{...a,...i}:a}var Js,Ys=`mui-auto-fill`,Xs=`mui-auto-fill-cancel`,Zs=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Y(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Qs=(e,t)=>{let{ownerState:n}=e;return[t.input,n.type===`search`&&t.inputTypeSearch]},$s=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return W({root:[`root`,`color${Y(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${Y(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,d&&`readOnly`]},ks,t)},ec=K(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:Zs})(J(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${As.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),tc=K(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:Qs})(J(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},...qs(e,`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${As.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${As.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:Xs,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:Ys}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),nc=$o({[`@keyframes ${Ys}`]:{from:{animationName:Ys}},[`@keyframes ${Xs}`]:{from:{animationName:Xs}}}),rc=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiInputBase`}),{"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,className:s,color:c,defaultValue:l,disabled:u,disableInjectingGlobalStyles:d,endAdornment:f,error:p,fullWidth:m=!1,id:h,inputComponent:g=`input`,inputProps:_={},inputRef:v,margin:y,maxRows:b,minRows:S,multiline:C=!1,name:w,onBlur:T,onChange:D,onClick:O,onFocus:k,onKeyDown:A,onKeyUp:j,placeholder:M,readOnly:N,renderSuffix:P,rows:F,size:ee,slotProps:te={},slots:I={},startAdornment:ne,type:re=`text`,value:ie,...ae}=n,oe=_.value==null?ie:_.value,{current:se}=E.useRef(oe!=null),ce=E.useRef(),le=E.useCallback(e=>{},[]),ue=xs(ce,v,_.ref,le),[de,L]=E.useState(!1),[R,fe]=bs({props:n,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});R.focused=fe?fe.focused:de,E.useEffect(()=>{!fe&&u&&de&&(L(!1),T&&T())},[fe,u,de,T]);let pe=fe&&fe.onFilled,me=fe&&fe.onEmpty,he=E.useCallback(e=>{Ds(e)?pe&&pe():me&&me()},[pe,me]);Ss(()=>{se&&he({value:oe})},[oe,he,se]),Ss(()=>{if(!o)return;let e=ce.current;if(!e)return;let t=Cs(e),n=Ts(t),r=n==null||n===t.body||n===t.documentElement;e===n?fe&&fe.onFocus?fe.onFocus():L(!0):r&&e.focus()},[o]);let z=e=>{k&&k(e),_.onFocus&&_.onFocus(e),fe&&fe.onFocus?fe.onFocus(e):L(!0)},ge=e=>{T&&T(e),_.onBlur&&_.onBlur(e),fe&&fe.onBlur?fe.onBlur(e):L(!1)},_e=(e,...t)=>{if(!se){let t=e.target||ce.current;if(t==null)throw Error(x(1));he({value:t.value})}_.onChange&&_.onChange(e,...t),D&&D(e,...t)};E.useEffect(()=>{he(ce.current)},[]);let ve=e=>{ce.current&&e.currentTarget===e.target&&ce.current.focus(),O&&O(e)},ye=g,be=_;C&&ye===`input`&&(be=F?{type:void 0,minRows:F,maxRows:F,...be}:{type:void 0,maxRows:b,minRows:S,...be},ye=vs);let xe=e=>{he(e.animationName===Xs?ce.current:{value:`x`})};E.useEffect(()=>{fe&&fe.setAdornedStart(!!ne)},[fe,ne]);let Se={...n,color:R.color||`primary`,disabled:R.disabled,endAdornment:f,error:R.error,focused:R.focused,formControl:fe,fullWidth:m,hiddenLabel:R.hiddenLabel,multiline:C,size:R.size,startAdornment:ne,type:re},Ce=$s(Se),we=I.root||ec,Te=te.root||{},Ee=I.input||tc;return be={...be,...te.input},(0,V.jsxs)(E.Fragment,{children:[!d&&typeof nc==`function`&&(Js||=(0,V.jsx)(nc,{})),(0,V.jsxs)(we,{...Te,ref:t,onClick:ve,...ae,...!cs(we)&&{ownerState:{...Se,...Te.ownerState}},className:H(Ce.root,Te.className,s,N&&`MuiInputBase-readOnly`),children:[ne,(0,V.jsx)(ys.Provider,{value:null,children:(0,V.jsx)(Ee,{"aria-invalid":R.error,"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,defaultValue:l,disabled:R.disabled,id:h,onAnimationStart:xe,name:w,placeholder:M,readOnly:N,required:R.required,rows:F,value:oe,onKeyDown:A,onKeyUp:j,type:re,...be,...!cs(Ee)&&{as:ye,ownerState:{...Se,...be.ownerState}},ref:ue,className:H(Ce.input,be.className,N&&`MuiInputBase-readOnly`),onBlur:ge,onChange:_e,onFocus:z})}),f,P?P({...R,startAdornment:ne}):null]})]})});function ic(e){return zr(`MuiFilledInput`,e)}var ac={...As,...U(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])};function oc(e){return zr(`MuiFormHelperText`,e)}var sc=U(`MuiFormHelperText`,[`root`,`error`,`disabled`,`sizeSmall`,`sizeMedium`,`contained`,`focused`,`filled`,`required`]);function cc(e){return zr(`MuiFormLabel`,e)}var lc=U(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]);function uc(e){return zr(`MuiInput`,e)}var dc={...As,...U(`MuiInput`,[`root`,`underline`,`input`])};function fc(e){return zr(`MuiListItemButton`,e)}var pc=U(`MuiListItemButton`,[`root`,`focusVisible`,`dense`,`alignItemsFlexStart`,`disabled`,`divider`,`gutters`,`selected`]);function mc(e){return zr(`MuiMenuItem`,e)}var hc=U(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);function gc(e){return zr(`MuiNativeSelect`,e)}var _c=U(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function vc(e){return zr(`MuiOutlinedInput`,e)}var yc={...As,...U(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])};function bc({theme:e,...t}){let n=`$$material`in e?e[Jo]:void 0;return(0,V.jsx)(Ui,{...t,themeId:n?Jo:void 0,theme:n||e})}var xc={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:Sc,useColorScheme:Cc,getInitColorSchemeScript:wc}=ia({themeId:Jo,theme:()=>Ko({cssVariables:!0}),colorSchemeStorageKey:xc.colorSchemeStorageKey,modeStorageKey:xc.modeStorageKey,defaultColorScheme:{light:xc.defaultLightColorScheme,dark:xc.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:oo(e.palette,e.typography)};return t.unstable_sx=function(e){return lt({sx:e,theme:this})},t}}),Tc=Sc;function Ec({theme:e,...t}){let n=E.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[Jo]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,V.jsx)(bc,{theme:n,...t}):(0,V.jsx)(Tc,{theme:e,...t})}var Dc=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Oc=o(((e,t)=>{t.exports=Dc()})),kc=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),Ac=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=kc()})),jc=o((e=>{var t=Oc(),n=d(),r=Ac();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function p(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function m(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function h(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function g(e){var t=[null,null],n=m(e);return n===null||_(t,e,n.child,{foundSelf:!1}),t}function _(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&_(e,t,n.child,r))return!0;n=n.sibling}return!1}function v(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var y=null,b=null;function x(e,t,n){return e===n||e===t&&(y=e,!0)}function S(e,t,n){return e===n?(b=e,!1):e===t&&(b!==null&&(y=e),!0)}function C(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function w(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var T=Object.assign,E=Symbol.for(`react.element`),D=Symbol.for(`react.transitional.element`),O=Symbol.for(`react.portal`),k=Symbol.for(`react.fragment`),A=Symbol.for(`react.strict_mode`),j=Symbol.for(`react.profiler`),M=Symbol.for(`react.consumer`),N=Symbol.for(`react.context`),P=Symbol.for(`react.forward_ref`),F=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),I=Symbol.for(`react.lazy`),ne=Symbol.for(`react.activity`),re=Symbol.for(`react.legacy_hidden`),ie=Symbol.for(`react.memo_cache_sentinel`),ae=Symbol.for(`react.view_transition`),oe=Symbol.for(`react.recoverable`),se=Symbol.iterator;function ce(e){return typeof e!=`object`||!e?null:(e=se&&e[se]||e[`@@iterator`],typeof e==`function`?e:null)}var le=Symbol.for(`react.client.reference`);function ue(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case k:return`Fragment`;case j:return`Profiler`;case A:return`StrictMode`;case F:return`Suspense`;case ee:return`SuspenseList`;case ne:return`Activity`;case ae:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case O:return`Portal`;case N:return e.displayName||`Context`;case M:return(e._context.displayName||`Context`)+`.Consumer`;case P:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case te:return t=e.displayName||null,t===null?ue(e.type)||`Memo`:t;case I:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var de=Array.isArray,L=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},pe=[],me=-1;function he(e){return{current:e}}function z(e){0>me||(e.current=pe[me],pe[me]=null,me--)}function ge(e,t){me++,pe[me]=e.current,e.current=t}var _e=he(null),ve=he(null),ye=he(null),be=he(null);function xe(e,t){switch(ge(ye,t),ge(ve,e),ge(_e,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?fp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=fp(t),e=pp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}z(_e),ge(_e,e)}function Se(){z(_e),z(ve),z(ye)}function Ce(e){var t=e.memoizedState;t!==null&&(lh._currentValue=t.memoizedState,ge(be,e)),t=_e.current;var n=pp(t,e.type);t!==n&&(ge(ve,e),ge(_e,n))}function we(e){ve.current===e&&(z(_e),z(ve)),be.current===e&&(z(be),lh._currentValue=fe)}var Te,Ee;function De(e){if(Te===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Te=t&&t[1]||``,Ee=-1<e.stack.indexOf(`
|
|
41
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
42
|
+
`+Te+e+Ee}var Oe=!1;function ke(e,t){if(!e||Oe)return``;Oe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
43
|
+
`),l=s.split(`
|
|
44
|
+
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
45
|
+
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Oe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?De(n):``}function Ae(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De(`Lazy`);case 13:return e.child!==t&&t!==null?De(`Suspense Fallback`):De(`Suspense`);case 19:return De(`SuspenseList`);case 0:case 15:return ke(e.type,!1);case 11:return ke(e.type.render,!1);case 1:return ke(e.type,!0);case 31:return De(`Activity`);case 30:return De(`ViewTransition`);default:return``}}function je(e){try{var t=``,n=null;do t+=Ae(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
46
|
+
Error generating stack: `+e.message+`
|
|
47
|
+
`+e.stack}}var Me=Object.prototype.hasOwnProperty,Ne=t.unstable_scheduleCallback,Pe=t.unstable_cancelCallback,Fe=t.unstable_shouldYield,Ie=t.unstable_requestPaint,Le=t.unstable_now,Re=t.unstable_getCurrentPriorityLevel,ze=t.unstable_ImmediatePriority,Be=t.unstable_UserBlockingPriority,Ve=t.unstable_NormalPriority,He=t.unstable_LowPriority,Ue=t.unstable_IdlePriority,We=t.log,Ge=t.unstable_setDisableYieldValue,Ke=null,qe=null;function Je(e){if(typeof We==`function`&&Ge(e),qe&&typeof qe.setStrictMode==`function`)try{qe.setStrictMode(Ke,e)}catch{}}var Ye=Math.clz32?Math.clz32:Qe,Xe=Math.log,Ze=Math.LN2;function Qe(e){return e>>>=0,e===0?32:31-(Xe(e)/Ze|0)|0}var $e=256,et=262144,tt=4194304;function nt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=nt(n))):i=nt(o):i=nt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=nt(n))):i=nt(o)):i=nt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function it(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function at(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ye(n),i=1<<r;t|=e[r],n&=~i}return t}function ot(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function st(){var e=tt;return tt<<=1,!(tt&62914560)&&(tt=4194304),e}function ct(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ut(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ye(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&dt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function dt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ye(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ft(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ye(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function pt(e,t){var n=t&-t;return n=n&42?1:mt(n),(n&(e.suspendedLanes|t))===0?n:0}function mt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ht(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function gt(){var e=R.p;return e===0?(e=window.event,e===void 0?32:Th(e.type)):e}function _t(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var vt=Math.random().toString(36).slice(2),yt=`__reactFiber$`+vt,bt=`__reactProps$`+vt,xt=`__reactContainer$`+vt,St=`__reactEvents$`+vt,Ct=`__reactListeners$`+vt,wt=`__reactHandles$`+vt,Tt=`__reactResources$`+vt,Et=`__reactMarker$`+vt,Dt=`__reactLoad$`+vt;function Ot(e){delete e[yt],delete e[bt],delete e[Ct],delete e[wt]}function kt(e){var t;if(t=e[yt])return t;for(var n=e.parentNode;n;){if(t=n[xt]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mm(e);e!==null;){if(n=e[yt])return n;e=mm(e)}return t}e=n,n=e.parentNode}return null}function At(e){if(e=e[yt]||e[xt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Mt(e){var t=e[Tt];return t||=e[Tt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Nt(e){e[Et]=!0}function Pt(e){e[Dt]=void 0}var Ft=new Set,It={};function Lt(e,t){Rt(e,t),Rt(e+`Capture`,t)}function Rt(e,t){for(It[e]=t,e=0;e<t.length;e++)Ft.add(t[e])}var zt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Bt={},Vt={};function Ht(e){return Me.call(Vt,e)?!0:Me.call(Bt,e)?!1:zt.test(e)?Vt[e]=!0:(Bt[e]=!0,!1)}var B=!1;function Ut(){var e=B;return B=!1,e}function Wt(e,t,n){if(Ht(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Gt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function Kt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function qt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Yt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xt(e){if(!e._valueTracker){var t=Jt(e)?`checked`:`value`;e._valueTracker=Yt(e,t,``+e[t])}}function Zt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Jt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Qt=/[\n"\\]/g;function $t(e){return e.replace(Qt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function en(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+qt(t)):e.value!==``+qt(t)&&(e.value=``+qt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):nn(e,qt(n)):o===`number`&&e.value==t?nn(e,qt(e.value)):nn(e,qt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+qt(s):e.removeAttribute(`name`)}function tn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Xt(e);return}n=n==null?``:``+qt(n),t=t==null?n:``+qt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Xt(e)}function nn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function rn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+qt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function an(e,t,n){t!=null&&(t=``+qt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+qt(n)}function on(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(de(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=qt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Xt(e)}function sn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function ln(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||cn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function un(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,B=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(ln(e,a,r),B=!0)}else for(var o in t)t.hasOwnProperty(o)&&ln(e,o,t[o])}function dn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var fn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),pn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function mn(e){return pn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function hn(){}var gn=null;function _n(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vn=null,yn=null;function bn(e){var t=At(e);if(t&&(e=t.stateNode)){var n=e[bt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(en(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+$t(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[bt]||null;if(!a)throw Error(i(90));en(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Zt(r)}break a;case`textarea`:an(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&rn(e,!!n.multiple,t,!1)}}}var xn=!1;function Sn(e,t,n){if(xn)return e(t,n);xn=!0;try{return e(t)}finally{if(xn=!1,(vn!==null||yn!==null)&&(Rd(),vn&&(t=vn,e=yn,yn=vn=null,bn(t),e)))for(t=0;t<e.length;t++)bn(e[t])}}function Cn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[bt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var wn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Tn=!1;if(wn)try{var En={};Object.defineProperty(En,"passive",{get:function(){Tn=!0}}),window.addEventListener(`test`,En,En),window.removeEventListener(`test`,En,En)}catch{Tn=!1}var Dn=null,On=null,kn=null;function An(){if(kn)return kn;var e,t=On,n=t.length,r,i=`value`in Dn?Dn.value:Dn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return kn=i.slice(e,1<r?1-r:void 0)}function jn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mn(){return!0}function Nn(){return!1}function Pn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Mn:Nn,this.isPropagationStopped=Nn,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Mn)},persist:function(){},isPersistent:Mn}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},In=Pn(Fn),Ln=T({},Fn,{view:0,detail:0}),Rn=Pn(Ln),zn,Bn,Vn,Hn=T({},Ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$n,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Vn&&(Vn&&e.type===`mousemove`?(zn=e.screenX-Vn.screenX,Bn=e.screenY-Vn.screenY):Bn=zn=0,Vn=e),zn)},movementY:function(e){return`movementY`in e?e.movementY:Bn}}),Un=Pn(Hn),Wn=Pn(T({},Hn,{dataTransfer:0})),Gn=Pn(T({},Ln,{relatedTarget:0})),Kn=Pn(T({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0})),qn=Pn(T({},Fn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Jn=Pn(T({},Fn,{data:0})),Yn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Xn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Qn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zn[e])?!!t[e]:!1}function $n(){return Qn}var er=Pn(T({},Ln,{key:function(e){if(e.key){var t=Yn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=jn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Xn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$n,charCode:function(e){return e.type===`keypress`?jn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?jn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),tr=Pn(T({},Hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nr=Pn(T({},Fn,{submitter:0})),rr=Pn(T({},Ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$n})),ir=Pn(T({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),ar=Pn(T({},Hn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),or=Pn(T({},Fn,{newState:0,oldState:0,source:0})),sr=[9,13,27,32],cr=wn&&`CompositionEvent`in window,lr=null;wn&&`documentMode`in document&&(lr=document.documentMode);var ur=wn&&`TextEvent`in window&&!lr,dr=wn&&(!cr||lr&&8<lr&&11>=lr),fr=` `,pr=!1;function mr(e,t){switch(e){case`keyup`:return sr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function hr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var gr=!1;function _r(e,t){switch(e){case`compositionend`:return hr(t);case`keypress`:return t.which===32?(pr=!0,fr):null;case`textInput`:return e=t.data,e===fr&&pr?null:e;default:return null}}function V(e,t){if(gr)return e===`compositionend`||!cr&&mr(e,t)?(e=An(),kn=On=Dn=null,gr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return dr&&t.locale!==`ko`?null:t.data;default:return null}}var vr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!vr[e.type]:t===`textarea`}function br(e,t,n,r){vn?yn?yn.push(r):yn=[r]:vn=r,t=Yf(t,`onChange`),0<t.length&&(n=new In(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var xr=null,Sr=null;function Cr(e){Vf(e,0)}function wr(e){if(Zt(jt(e)))return e}function Tr(e,t){if(e===`change`)return t}var Er=!1;if(wn){var Dr;if(wn){var Or=`oninput`in document;if(!Or){var kr=document.createElement(`div`);kr.setAttribute(`oninput`,`return;`),Or=typeof kr.oninput==`function`}Dr=Or}else Dr=!1;Er=Dr&&(!document.documentMode||9<document.documentMode)}function Ar(){xr&&(xr.detachEvent(`onpropertychange`,jr),Sr=xr=null)}function jr(e){if(e.propertyName===`value`&&wr(Sr)){var t=[];br(t,Sr,e,_n(e)),Sn(Cr,t)}}function Mr(e,t,n){e===`focusin`?(Ar(),xr=t,Sr=n,xr.attachEvent(`onpropertychange`,jr)):e===`focusout`&&Ar()}function Nr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return wr(Sr)}function Pr(e,t){if(e===`click`)return wr(t)}function Fr(e,t){if(e===`input`||e===`change`)return wr(t)}function Ir(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var H=typeof Object.is==`function`?Object.is:Ir;function Lr(e,t){if(H(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Me.call(t,i)||!H(e[i],t[i]))return!1}return!0}function Rr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function zr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function U(e,t){var n=zr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=zr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rr(e.document)}return t}function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ur=wn&&`documentMode`in document&&11>=document.documentMode,Wr=null,Gr=null,Kr=null,qr=!1;function Jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qr||Wr==null||Wr!==Rr(r)||(r=Wr,`selectionStart`in r&&Hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&Lr(Kr,r)||(Kr=r,r=Yf(Gr,`onSelect`),0<r.length&&(t=new In(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Wr)))}function Yr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Xr={animationend:Yr(`Animation`,`AnimationEnd`),animationiteration:Yr(`Animation`,`AnimationIteration`),animationstart:Yr(`Animation`,`AnimationStart`),transitionrun:Yr(`Transition`,`TransitionRun`),transitionstart:Yr(`Transition`,`TransitionStart`),transitioncancel:Yr(`Transition`,`TransitionCancel`),transitionend:Yr(`Transition`,`TransitionEnd`)},Zr={},Qr={};wn&&(Qr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Xr.animationend.animation,delete Xr.animationiteration.animation,delete Xr.animationstart.animation),`TransitionEvent`in window||delete Xr.transitionend.transition);function $r(e){if(Zr[e])return Zr[e];if(!Xr[e])return e;var t=Xr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qr)return Zr[e]=t[n];return e}var ei=$r(`animationend`),ti=$r(`animationiteration`),ni=$r(`animationstart`),ri=$r(`transitionrun`),ii=$r(`transitionstart`),ai=$r(`transitioncancel`),oi=$r(`transitionend`),si=new Map,ci=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);ci.push(`scrollEnd`);function li(e,t){si.set(e,t),Lt(t,[e])}var ui=0;function di(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=bd.identifierPrefix;var n=ui++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function fi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Dd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function pi(e,t){return e=fi(e),t=fi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var mi=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},hi=[],gi=0,_i=0;function vi(){for(var e=gi,t=_i=gi=0;t<e;){var n=hi[t];hi[t++]=null;var r=hi[t];hi[t++]=null;var i=hi[t];hi[t++]=null;var a=hi[t];if(hi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Si(n,i,a)}}function yi(e,t,n,r){hi[gi++]=e,hi[gi++]=t,hi[gi++]=n,hi[gi++]=r,_i|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function bi(e,t,n,r){return yi(e,t,n,r),Ci(e)}function xi(e,t){return yi(e,null,null,t),Ci(e)}function Si(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ye(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ci(e){if(50<Od)throw Od=0,kd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wi={};function Ti(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ei(e,t,n,r){return new Ti(e,t,n,r)}function Di(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oi(e,t){var n=e.alternate;return n===null?(n=Ei(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ki(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ai(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Di(r)&&(s=1);else if(typeof r==`string`)s=Ym(e,n,_e.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ne:return e=Ei(31,n,t,a),e.elementType=ne,e.lanes=o,e;case k:return ji(n.children,a,o,t);case A:s=8,a|=24;break;case j:return e=Ei(12,n,t,a|2),e.elementType=j,e.lanes=o,e;case F:return e=Ei(13,n,t,a),e.elementType=F,e.lanes=o,e;case ee:return e=Ei(19,n,t,a),e.elementType=ee,e.lanes=o,e;case re:case ae:return e=a|32,e=Ei(30,n,t,e),e.elementType=ae,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case N:s=10;break a;case M:s=9;break a;case P:s=11;break a;case te:s=14;break a;case I:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=Ei(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ji(e,t,n,r){return e=Ei(7,e,r,t),e.lanes=n,e}function Mi(e,t,n){return e=Ei(6,e,null,t),e.lanes=n,e}function Ni(e){var t=Ei(18,null,null,0);return t.stateNode=e,t}function Pi(e,t,n){return t=Ei(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fi=new WeakMap;function Ii(e,t){if(typeof e==`object`&&e){var n=Fi.get(e);return n===void 0?(t={value:e,source:t,stack:je(t)},Fi.set(e,t),t):n}return{value:e,source:t,stack:je(t)}}var Li=[],Ri=0,zi=null,Bi=0,Vi=[],Hi=0,Ui=null,Wi=1,Gi=``;function Ki(e,t){Li[Ri++]=Bi,Li[Ri++]=zi,zi=e,Bi=t}function qi(e,t,n){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Ui=e;var r=Wi;e=Gi;var i=32-Ye(r)-1;r&=~(1<<i),n+=1;var a=32-Ye(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Wi=1<<32-Ye(t)+i|n<<i|r,Gi=a+e}else Wi=1<<a|n<<i|r,Gi=e}function Ji(e){e.return!==null&&(Ki(e,1),qi(e,1,0))}function Yi(e){for(;e===zi;)zi=Li[--Ri],Li[Ri]=null,Bi=Li[--Ri],Li[Ri]=null;for(;e===Ui;)Ui=Vi[--Hi],Vi[Hi]=null,Gi=Vi[--Hi],Vi[Hi]=null,Wi=Vi[--Hi],Vi[Hi]=null}function Xi(e,t){Vi[Hi++]=Wi,Vi[Hi++]=Gi,Vi[Hi++]=Ui,Wi=t.id,Gi=t.overflow,Ui=e}var Zi=null,Qi=null,$i=!1,ea=null,ta=!1,na=Error(i(519));function ra(e){throw la(Ii(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),na}function ia(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[yt]=e,t[bt]=r,n){case`dialog`:Hf(`cancel`,t),Hf(`close`,t);break;case`iframe`:case`object`:case`embed`:Hf(`load`,t);break;case`video`:case`audio`:for(n=0;n<zf.length;n++)Hf(zf[n],t);break;case`source`:Hf(`error`,t);break;case`img`:case`image`:case`link`:Hf(`error`,t),Hf(`load`,t);break;case`details`:Hf(`toggle`,t);break;case`input`:Hf(`invalid`,t),tn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Hf(`invalid`,t);break;case`textarea`:Hf(`invalid`,t),on(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||tp(t.textContent,n)?(r.popover!=null&&(Hf(`beforetoggle`,t),Hf(`toggle`,t)),r.onScroll!=null&&Hf(`scroll`,t),r.onScrollEnd!=null&&Hf(`scrollend`,t),r.onClick!=null&&(t.onclick=hn),t=!0):t=!1,t||ra(e,!0)}function aa(e){for(Zi=e.return;Zi;)switch(Zi.tag){case 5:case 31:case 13:ta=!1;return;case 27:case 3:ta=!0;return;default:Zi=Zi.return}}function oa(e){if(e!==Zi)return!1;if(!$i)return aa(e),$i=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||hp(e.type,e.memoizedProps)),n=!n),n&&Qi&&ra(e),aa(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=pm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Qi=pm(e)}else t===27?(t=Qi,wp(e.type)?(e=fm,fm=null,Qi=e):Qi=t):Qi=Zi?dm(e.stateNode.nextSibling):null;return!0}function sa(){Qi=Zi=null,$i=!1}function ca(){var e=ea;return e!==null&&(fd===null?fd=e:fd.push.apply(fd,e),ea=null),e}function la(e){ea===null?ea=[e]:ea.push(e)}var ua=he(null),da=null,fa=null;function W(e,t,n){ge(ua,t._currentValue),t._currentValue=n}function pa(e){e._currentValue=ua.current,z(ua)}function ma(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ha(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),ma(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),ma(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ma(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ga(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;H(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===be.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[lh]:e.push(lh))}a=a.return}return e!==null&&ha(t,e,n,r),t.flags|=262144,e!==null}function _a(e){for(e=e.firstContext;e!==null;){if(!H(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function va(e){da=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ya(e){return xa(da,e)}function ba(e,t){return da===null&&va(e),xa(e,t)}function xa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},fa===null){if(e===null)throw Error(i(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return n}var Sa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ca=t.unstable_scheduleCallback,wa=t.unstable_NormalPriority,Ta={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ea(){return{controller:new Sa,data:new Map,refCount:0}}function Da(e){e.refCount--,e.refCount===0&&Ca(wa,function(){e.controller.abort()})}function Oa(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var ka=null;function Aa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var ja=null,Ma=0,Na=0,Pa=null;function Fa(e,t){if(ja===null){var n=ja=[];Ma=0,Na=Pf(),Pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ma++,t.then(Ia,Ia),t}function Ia(){if(--Ma===0&&(ka=null,ja!==null)){Pa!==null&&(Pa.status=`fulfilled`);var e=ja;ja=null,Na=0,Pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function La(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ra=L.S;L.S=function(e,t){if(hd=Le(),typeof t==`object`&&t&&typeof t.then==`function`&&Fa(e,t),ka!==null)for(var n=bf;n!==null;)Oa(n,ka),n=n.next;if(n=e.types,n!==null){for(var r=bf;r!==null;)Oa(r,n),r=r.next;if(Na!==0){r=ka,r===null&&(r=ka=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ra!==null&&Ra(e,t)};var za=he(null);function Ba(){var e=za.current;return e===null?Xu.pooledCache:e}function Va(e,t){t===null?ge(za,za.current):ge(za,t.pool)}function Ha(){var e=Ba();return e===null?null:{parent:Ta._currentValue,pool:e}}var Ua=Error(i(460)),Wa=Error(i(474)),Ga=Error(i(542)),Ka={then:function(){}};function qa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ja(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(hn,hn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Qa(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(hn,hn);else{if(e=Xu,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Qa(e),e}throw Xa=t,Ua}}function Ya(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Xa=e,Ua):e}}var Xa=null;function Za(){if(Xa===null)throw Error(i(459));var e=Xa;return Xa=null,e}function Qa(e){if(e===Ua||e===Ga)throw Error(i(483))}var $a=null,eo=0;function to(e){var t=eo;return eo+=1,$a===null&&($a=[]),Ja($a,e,t)}function no(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ro(e,t){throw t.$$typeof===E?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function io(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=Oi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===k?(e=d(e,t,n.props.children,r,n.key),no(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===I&&Ya(i)===t.type)?(t=a(t,n.props),no(t,n),t.return=e,t):(t=Ai(n.type,n.key,n.props,null,e.mode,r),no(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Pi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ji(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case D:return n=Ai(t.type,t.key,t.props,null,e.mode,n),no(n,t),n.return=e,n;case O:return t=Pi(t,e.mode,n),t.return=e,t;case I:return t=Ya(t),f(e,t,n)}if(de(t)||ce(t))return t=ji(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,to(t),n);if(t.$$typeof===N)return f(e,ba(e,t),n);ro(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case D:return n.key===i?l(e,t,n,r):null;case O:return n.key===i?u(e,t,n,r):null;case I:return n=Ya(n),p(e,t,n,r)}if(de(n)||ce(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,to(n),r);if(n.$$typeof===N)return p(e,t,ba(e,n),r);ro(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case D:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case O:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case I:return r=Ya(r),m(e,t,n,r,i)}if(de(r)||ce(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,to(r),i);if(r.$$typeof===N)return m(e,t,n,ba(t,r),i);ro(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),$i&&Ki(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return $i&&Ki(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),$i&&Ki(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),$i&&Ki(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return $i&&Ki(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),$i&&Ki(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===k&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case D:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===k){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),no(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===I&&Ya(l)===r.type){n(e,r.sibling),c=a(r,o.props),no(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===k?(c=ji(o.props.children,e.mode,c,o.key),no(c,o),c.return=e,e=c):(c=Ai(o.type,o.key,o.props,null,e.mode,c),no(c,o),c.return=e,e=c)}return s(e);case O:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Pi(o,e.mode,c),c.return=e,e=c}return s(e);case I:return o=Ya(o),_(e,r,o,c)}if(de(o))return h(e,r,o,c);if(ce(o)){if(l=ce(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,to(o),c);if(o.$$typeof===N)return _(e,r,ba(e,o),c);ro(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{eo=0;var i=_(e,t,n,r);return $a=null,i}catch(t){if(t===Ua||t===Ga)throw t;var a=Ei(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var ao=io(!0),oo=io(!1),so=!1;function co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function uo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Yu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ci(e),Si(e,null,n),t}return yi(e,r,t,n),Ci(e)}function po(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}function mo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ho=!1;function go(){if(ho){var e=Pa;if(e!==null)throw e}}function _o(e,t,n,r){ho=!1;var i=e.updateQueue;so=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Qu&f)===f:(r&f)===f){f!==0&&f===Na&&(ho=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:so=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),od|=o,e.lanes=o,e.memoizedState=d}}function vo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function yo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)vo(n[e],t)}var bo=he(null),xo=he(0);function So(e,t){e=id,ge(xo,e),ge(bo,t),id=e|t.baseLanes}function Co(){ge(xo,id),ge(bo,bo.current)}function wo(){id=xo.current,z(bo),z(xo)}var To=he(null),Eo=null;function Do(e){var t=e.alternate;ge(Mo,Mo.current&1),ge(To,e),Eo===null&&(t===null||bo.current!==null||t.memoizedState!==null)&&(Eo=e)}function Oo(e){ge(Mo,Mo.current),ge(To,e),Eo===null&&(Eo=e)}function ko(e){e.tag===22?(ge(Mo,Mo.current),ge(To,e),Eo===null&&(Eo=e)):Ao()}function Ao(){ge(Mo,Mo.current),ge(To,To.current)}function jo(e){z(To),Eo===e&&(Eo=null),z(Mo)}var Mo=he(0);function No(e,t){ge(To,To.current),ge(Mo,t)}function Po(e){z(Mo),z(To),Eo===e&&(Eo=null)}function Fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cm(n)||lm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Io=0,Lo=null,G=null,Ro=null,zo=!1,Bo=!1,Vo=!1,Ho=0,Uo=0,Wo=null,Go=0;function Ko(){throw Error(i(321))}function qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!H(e[n],t[n]))return!1;return!0}function Jo(e,t,n,r,i,a){return Io=a,Lo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?sc:cc,Vo=!1,a=n(r,i),Vo=!1,Bo&&(a=Xo(t,n,r,i)),Yo(e),a}function Yo(e){L.H=oc;var t=G!==null&&G.next!==null;if(Io=0,Ro=G=Lo=null,zo=!1,Uo=0,Wo=null,t)throw Error(i(300));e===null||Tc||(e=e.dependencies,e!==null&&_a(e)&&(Tc=!0))}function Xo(e,t,n,r){Lo=e;var a=0;do{if(Bo&&(Wo=null),Uo=0,Bo=!1,25<=a)throw Error(i(301));if(a+=1,Ro=G=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=lc,o=t(n,r)}while(Bo);return o}function Zo(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?ns(t):t,e=e.useState()[0],(G===null?null:G.memoizedState)!==e&&(Lo.flags|=1024),t}function Qo(){var e=Ho!==0;return Ho=0,e}function K(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function $o(e){if(zo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zo=!1}Io=0,Ro=G=Lo=null,Bo=!1,Uo=Ho=0,Wo=null}function q(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ro===null?Lo.memoizedState=Ro=e:Ro=Ro.next=e,Ro}function es(){if(G===null){var e=Lo.alternate;e=e===null?null:e.memoizedState}else e=G.next;var t=Ro===null?Lo.memoizedState:Ro.next;if(t!==null)Ro=t,G=e;else{if(e===null)throw Lo.alternate===null?Error(i(467)):Error(i(310));G=e,e={memoizedState:G.memoizedState,baseState:G.baseState,baseQueue:G.baseQueue,queue:G.queue,next:null},Ro===null?Lo.memoizedState=Ro=e:Ro=Ro.next=e}return Ro}function ts(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ns(e){var t=Uo;return Uo+=1,Wo===null&&(Wo=[]),e=Ja(Wo,e,t),t=Lo,(Ro===null?t.memoizedState:Ro.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?sc:cc),e}function rs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ns(e);if(e.$$typeof===oe)return;if(e.$$typeof===N)return ya(e)}throw Error(i(438,String(e)))}function is(e){var t=null,n=Lo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Lo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ts(),Lo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ie;return t.index++,n}function as(e,t){return typeof t==`function`?t(e):t}function os(e){return ss(es(),G,e)}function ss(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Io&f)===f:(Qu&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Na&&(d=!0);else if((Io&p)===p){u=u.next,p===Na&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Lo.lanes|=p,od|=p;f=u.action,Vo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Lo.lanes|=f,od|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!H(o,e.memoizedState)&&(Tc=!0,d&&(n=Pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function cs(e){var t=es(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);H(o,t.memoizedState)||(Tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ls(e,t,n){var r=Lo,a=es(),o=$i;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!H((G||a).memoizedState,n);if(s&&(a.memoizedState=n,Tc=!0),a=a.queue,Ms(fs.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Ro!==null&&!!(Ro.memoizedState.tag&1),Ds(e?9:8,{destroy:void 0},ds.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Xu===null)throw Error(i(349));o||Io&127||us(r,t,n)}return n}function us(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Lo.updateQueue,t===null?(t=ts(),Lo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ds(e,t,n,r){t.value=n,t.getSnapshot=r,ps(t)&&ms(e)}function fs(e,t,n){return n(function(){ps(t)&&ms(e)})}function ps(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!H(e,n)}catch{return!0}}function ms(e){var t=xi(e,2);t!==null&&Nd(t,e,2)}function hs(e){var t=q();if(typeof e==`function`){var n=e;if(e=n(),Vo){Je(!0);try{n()}finally{Je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:e},t}function gs(e,t,n,r){return e.baseState=n,ss(e,G,typeof r==`function`?r:as)}function _s(e,t,n,r,a){if(rc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};L.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,vs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function vs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};o.types=a===null?null:a.types,L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),ys(e,t,s)}catch(n){J(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),L.T=a}}else try{a=n(i,r),ys(e,t,a)}catch(n){J(e,t,n)}}function ys(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){bs(e,t,n)},function(n){return J(e,t,n)}):bs(e,t,n)}function bs(e,t,n){t.status=`fulfilled`,t.value=n,Y(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,vs(e,n)))}function J(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Y(t),t=t.next;while(t!==r)}e.action=null}function Y(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xs(e,t){return t}function Ss(e,t){if($i){var n=Xu.formState;if(n!==null){a:{var r=Lo;if($i){if(Qi){b:{for(var i=Qi,a=ta;i.nodeType!==8;)if(!a||(i=dm(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Qi=dm(i.nextSibling),r=i.data===`F!`;break a}}ra(r)}r=!1}r&&(t=n[0])}}return n=q(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:t},n.queue=r,n=ec.bind(null,Lo,r),r.dispatch=n,r=hs(!1),a=nc.bind(null,Lo,!1,r.queue),r=q(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=_s.bind(null,Lo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Cs(e){return ws(es(),G,e)}function ws(e,t,n){if(t=ss(e,t,xs)[0],e=os(as)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ns(t)}catch(e){throw e===Ua?Ga:e}else r=t;t=es();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Lo.flags|=2048,Ds(9,{destroy:void 0},Ts.bind(null,i,n),null)),[r,a,e]}function Ts(e,t){e.action=t}function Es(e){var t=es(),n=G;if(n!==null)return ws(t,n,e);es(),t=t.memoizedState,n=es();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ds(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Lo.updateQueue,t===null&&(t=ts(),Lo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Os(){return es().memoizedState}function ks(e,t,n,r){var i=q();Lo.flags|=e,i.memoizedState=Ds(1|t,{destroy:void 0},n,r===void 0?null:r)}function As(e,t,n,r){var i=es();r=r===void 0?null:r;var a=i.memoizedState.inst;G!==null&&r!==null&&qo(r,G.memoizedState.deps)?i.memoizedState=Ds(t,a,n,r):(Lo.flags|=e,i.memoizedState=Ds(1|t,a,n,r))}function js(e,t){ks(8390656,8,e,t)}function Ms(e,t){As(2048,8,e,t)}function Ns(e){Lo.flags|=4;var t=Lo.updateQueue;if(t===null)t=ts(),Lo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Ps(e){var t=es().memoizedState;return Ns({ref:t,nextImpl:e}),function(){if(Yu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Fs(e,t){return As(4,2,e,t)}function Is(e,t){return As(4,4,e,t)}function Ls(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Rs(e,t,n){n=n==null?null:n.concat([e]),As(4,4,Ls.bind(null,t,e),n)}function zs(){}function Bs(e,t){var n=es();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&qo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Vs(e,t){var n=es();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&qo(t,r[1]))return r[0];if(r=e(),Vo){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r}function Hs(e,t,n){return n===void 0||Io&1073741824&&!(Qu&261930)?e.memoizedState=t:(e.memoizedState=n,e=jd(),Lo.lanes|=e,od|=e,n)}function Us(e,t,n,r){return H(n,t)?n:bo.current===null?!(Io&106)||Io&1073741824&&!(Qu&261930)?(Tc=!0,e.memoizedState=n):(e=jd(),Lo.lanes|=e,od|=e,t):(e=Hs(e,n,r),H(e,t)||(Tc=!0),e)}function Ws(e,t,n,r,i){var a=R.p;R.p=a!==0&&8>a?a:8;var o=L.T,s={};s.types=o===null?null:o.types,L.T=s,nc(e,!1,t,n);try{var c=i(),l=L.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?tc(e,t,La(c,r),Ad(e)):tc(e,t,r,Ad(e))}catch(n){tc(e,t,{then:function(){},status:`rejected`,reason:n},Ad())}finally{R.p=a,o!==null&&s.types!==null&&(o.types=s.types),L.T=o}}function Gs(){}function Ks(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=qs(e).queue;Ws(e,a,t,fe,n===null?Gs:function(){return Js(e),n(r)})}function qs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:fe},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:as,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Js(e){var t=qs(e);t.next===null&&(t=e.alternate.memoizedState),tc(e,t.next.queue,{},Ad())}function Ys(){return ya(lh)}function Xs(){return es().memoizedState}function Zs(){return es().memoizedState}function Qs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ad();e=uo(n);var r=fo(t,e,n);r!==null&&(Nd(r,t,n),po(r,t,n)),t={cache:Ea()},e.payload=t;return}t=t.return}}function $s(e,t,n){var r=Ad();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},rc(e)?ic(t,n):(n=bi(e,t,n,r),n!==null&&(Nd(n,e,r),ac(n,t,r)))}function ec(e,t,n){tc(e,t,n,Ad())}function tc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(rc(e))ic(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,H(s,o))return yi(e,t,i,0),Xu===null&&vi(),!1}catch{}if(n=bi(e,t,i,r),n!==null)return Nd(n,e,r),ac(n,t,r),!0}return!1}function nc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},rc(e)){if(t)throw Error(i(479))}else t=bi(e,n,r,2),t!==null&&Nd(t,e,2)}function rc(e){var t=e.alternate;return e===Lo||t!==null&&t===Lo}function ic(e,t){Bo=zo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ac(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}var oc={readContext:ya,use:rs,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useInsertionEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useDeferredValue:Ko,useTransition:Ko,useSyncExternalStore:Ko,useId:Ko,useHostTransitionStatus:Ko,useFormState:Ko,useActionState:Ko,useOptimistic:Ko,useMemoCache:Ko,useCacheRefresh:Ko,useEffectEvent:Ko},sc={readContext:ya,use:rs,useCallback:function(e,t){return q().memoizedState=[e,t===void 0?null:t],e},useContext:ya,useEffect:js,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ks(4194308,4,Ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ks(4194308,4,e,t)},useInsertionEffect:function(e,t){ks(4,2,e,t)},useMemo:function(e,t){var n=q();t=t===void 0?null:t;var r=e();if(Vo){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=q();if(n!==void 0){var i=n(t);if(Vo){Je(!0);try{n(t)}finally{Je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=$s.bind(null,Lo,e),[r.memoizedState,e]},useRef:function(e){var t=q();return e={current:e},t.memoizedState=e},useState:function(e){e=hs(e);var t=e.queue,n=ec.bind(null,Lo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:zs,useDeferredValue:function(e,t){return Hs(q(),e,t)},useTransition:function(){var e=hs(!1);return e=Ws.bind(null,Lo,e.queue,!0,!1),q().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Lo,a=q();if($i){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Xu===null)throw Error(i(349));Qu&127||us(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,js(fs.bind(null,r,o,e),[e]),r.flags|=2048,Ds(9,{destroy:void 0},ds.bind(null,r,o,n,t),null),n},useId:function(){var e=q(),t=Xu.identifierPrefix;if($i){var n=Gi,r=Wi;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ho++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Go++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ys,useFormState:Ss,useActionState:Ss,useOptimistic:function(e){var t=q();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=nc.bind(null,Lo,!0,n),n.dispatch=t,[e,t]},useMemoCache:is,useCacheRefresh:function(){return q().memoizedState=Qs.bind(null,Lo)},useEffectEvent:function(e){var t=q(),n={impl:e};return t.memoizedState=n,function(){if(Yu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},cc={readContext:ya,use:rs,useCallback:Bs,useContext:ya,useEffect:Ms,useImperativeHandle:Rs,useInsertionEffect:Fs,useLayoutEffect:Is,useMemo:Vs,useReducer:os,useRef:Os,useState:function(){return os(as)},useDebugValue:zs,useDeferredValue:function(e,t){return Us(es(),G.memoizedState,e,t)},useTransition:function(){var e=os(as)[0],t=es().memoizedState;return[typeof e==`boolean`?e:ns(e),t]},useSyncExternalStore:ls,useId:Xs,useHostTransitionStatus:Ys,useFormState:Cs,useActionState:Cs,useOptimistic:function(e,t){return gs(es(),G,e,t)},useMemoCache:is,useCacheRefresh:Zs,useEffectEvent:Ps},lc={readContext:ya,use:rs,useCallback:Bs,useContext:ya,useEffect:Ms,useImperativeHandle:Rs,useInsertionEffect:Fs,useLayoutEffect:Is,useMemo:Vs,useReducer:cs,useRef:Os,useState:function(){return cs(as)},useDebugValue:zs,useDeferredValue:function(e,t){var n=es();return G===null?Hs(n,e,t):Us(n,G.memoizedState,e,t)},useTransition:function(){var e=cs(as)[0],t=es().memoizedState;return[typeof e==`boolean`?e:ns(e),t]},useSyncExternalStore:ls,useId:Xs,useHostTransitionStatus:Ys,useFormState:Es,useActionState:Es,useOptimistic:function(e,t){var n=es();return G===null?(n.baseState=e,[e,n.queue.dispatch]):gs(n,G,e,t)},useMemoCache:is,useCacheRefresh:Zs,useEffectEvent:Ps};function uc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var dc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=uo(r);i.payload=t,n!=null&&(i.callback=n),t=fo(e,i,r),t!==null&&(Nd(t,e,r),po(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=uo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=fo(e,i,r),t!==null&&(Nd(t,e,r),po(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ad(),r=uo(n);r.tag=2,t!=null&&(r.callback=t),t=fo(e,r,n),t!==null&&(Nd(t,e,n),po(t,e,n))}};function fc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Lr(n,r)||!Lr(i,a):!0}function pc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&dc.enqueueReplaceState(t,t.state,null)}function mc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=T({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function hc(e){mi(e)}function gc(e){console.error(e)}function _c(e){mi(e)}function vc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function yc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function bc(e,t,n){return n=uo(n),n.tag=3,n.payload={element:null},n.callback=function(){vc(e,t)},n}function xc(e){return e=uo(e),e.tag=3,e}function Sc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){yc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){yc(t,n,r),typeof i!=`function`&&(vd===null?vd=new Set([this]):vd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Cc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ga(t,n,a,!0),n=To.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Eo===null?Gd():n.alternate===null&&ad===0&&(ad=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ka?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),mf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ka?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),mf(e,r,a)),!1}throw Error(i(435,n.tag))}return mf(e,r,a),Gd(),!1}if($i)return t=To.current,t===null?(r!==na&&(t=Error(i(423),{cause:r}),la(Ii(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Ii(r,n),a=bc(e.stateNode,r,a),mo(e,a),ad!==4&&(ad=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==na&&(e=Error(i(422),{cause:r}),la(Ii(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Ii(o,n),dd===null?dd=[o]:dd.push(o),ad!==4&&(ad=2),t===null)return!0;r=Ii(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=bc(n.stateNode,r,e),mo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(vd===null||!vd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=xc(a),Sc(a,e,n,r),mo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var wc=Error(i(461)),Tc=!1;function Ec(e,t,n,r){t.child=e===null?oo(t,null,n,r):ao(t,e.child,n,r)}function Dc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return va(t),r=Jo(e,t,n,o,a,i),s=Qo(),e!==null&&!Tc?(K(e,t,i),rl(e,t,i)):($i&&s&&Ji(t),t.flags|=1,Ec(e,t,r,i),t.child)}function kc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Di(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,jc(e,t,a,r,i)):(e=Ai(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!il(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Lr:n,n(o,r)&&e.ref===t.ref)return rl(e,t,i)}return t.flags|=1,e=Oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function jc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Lr(a,r)&&e.ref===t.ref){if(Tc=!1,t.pendingProps=r=a,il(e,i))e.flags&131072&&(Tc=!0);else return t.lanes=e.lanes,rl(e,t,i)}}return zc(e,t,n,r,i)}function Mc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Pc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Va(t,a===null?null:a.cachePool),a===null?Co():So(t,a),ko(t);else return r=t.lanes=536870912,Pc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Va(t,null),Co(),Ao()):(Va(t,a.cachePool),So(t,a),Ao(),t.memoizedState=null);return Ec(e,t,i,n),t.child}function Nc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Pc(e,t,n,r,i){var a=Ba();return a=a===null?null:{parent:Ta._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Va(t,null),Co(),ko(t),e!==null&&ga(e,t,r,!0),t.childLanes=i,null}function Fc(e,t){return t=Jc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ic(e,t,n){return ao(t,e.child,null,n),e=Fc(t,t.pendingProps),e.flags|=2,jo(t),t.memoizedState=null,e}function Lc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if($i){if(r.mode===`hidden`)return e=Fc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Nc(null,e);if(Oo(t),(e=Qi)?(e=sm(e,ta),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=536870912,null}return Fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Oo(t),a){if(t.flags&256)t.flags&=-257,t=Ic(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Tc||ga(e,t,n,!1),a=(n&e.childLanes)!==0,Tc||a){if(bo.current===null){if(r=Xu,r!==null&&(s=pt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,xi(e,s),Nd(r,e,s),wc;Gd()}t=Ic(e,t,n)}else e=o.treeContext,Qi=dm(s.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=Fc(t,r),t.flags|=134221824;return t}return e=Oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Rc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function zc(e,t,n,r,i){return va(t),n=Jo(e,t,n,r,void 0,i),r=Qo(),e!==null&&!Tc?(K(e,t,i),rl(e,t,i)):($i&&r&&Ji(t),t.flags|=1,Ec(e,t,n,i),t.child)}function Bc(e,t,n,r,i,a){return va(t),t.updateQueue=null,n=Xo(t,r,n,i),Yo(e),r=Qo(),e!==null&&!Tc?(K(e,t,a),rl(e,t,a)):($i&&r&&Ji(t),t.flags|=1,Ec(e,t,n,a),t.child)}function Vc(e,t,n,r,i){if(va(t),t.stateNode===null){var a=wi,o=n.contextType;typeof o==`object`&&o&&(a=ya(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=dc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},co(t),o=n.contextType,a.context=typeof o==`object`&&o?ya(o):wi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(uc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&dc.enqueueReplaceState(a,a.state,null),_o(t,r,a,i),go(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=mc(n,s);a.props=c;var l=a.context,u=n.contextType;o=wi,typeof u==`object`&&u&&(o=ya(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&pc(t,a,r,o),so=!1;var f=t.memoizedState;a.state=f,_o(t,r,a,i),go(),l=t.memoizedState,s||f!==l||so?(typeof d==`function`&&(uc(t,n,d,r),l=t.memoizedState),(c=so||fc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,lo(e,t),o=t.memoizedProps,u=mc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=wi,typeof l==`object`&&l&&(c=ya(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&pc(t,a,r,c),so=!1,f=t.memoizedState,a.state=f,_o(t,r,a,i),go();var p=t.memoizedState;o!==d||f!==p||so||e!==null&&e.dependencies!==null&&_a(e.dependencies)?(typeof s==`function`&&(uc(t,n,s,r),p=t.memoizedState),(u=so||fc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&_a(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Rc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=ao(t,e.child,null,i),t.child=ao(t,null,n,i)):Ec(e,t,n,i),t.memoizedState=a.state,e=t.child):e=rl(e,t,i),e}function Hc(e,t,n,r){return sa(),t.flags|=256,Ec(e,t,n,r),t.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wc(e){return{baseLanes:e,cachePool:Ha()}}function Gc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ld),e}function Kc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Mo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if($i){if(i?Do(t):Ao(),(e=Qi)?(e=sm(e,ta),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ui===null?null:{id:Wi,overflow:Gi},retryLane:536870912,hydrationErrors:null},n=Ni(e),n.return=t,t.child=n,Zi=t,Qi=null)):e=null,e===null)throw ra(t);return t.lanes=lm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Ao(),i=t.mode,a=Jc({mode:`hidden`,children:a},i),r=ji(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Wc(n),r.childLanes=Gc(e,o,n),t.memoizedState=Uc,Nc(null,r)):(Do(t),qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Xc(e,t,a,o,r,c,s,n)}return i?(Ao(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Oi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=ji(i,a,n,null),i.flags|=2):i=Oi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Nc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Wc(n):(a=i.cachePool,a===null?a=Ha():(s=Ta._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Gc(e,o,n),t.memoizedState=Uc,Nc(e.child,r)):(Do(t),n=e.child,e=n.sibling,n=Oi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function qc(e,t){return t=Jc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Jc(e,t){return e=Ei(22,e,null,t),e.lanes=0,e}function Yc(e,t,n){return ao(t,e.child,null,n),e=qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Do(t),t.flags&=-257,Yc(e,t,c)):t.memoizedState===null?(Ao(),o=a.fallback,s=t.mode,a=Jc({mode:`visible`,children:a.children},s),o=ji(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,ao(t,e.child,null,c),a=t.child,a.memoizedState=Wc(c),a.childLanes=Gc(e,r,c),t.memoizedState=Uc,Nc(null,a)):(Ao(),t.child=e.child,t.flags|=128,null);if(Do(t),lm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,la({value:a,source:null,stack:null})),Yc(e,t,c)}if(Tc||ga(e,t,c,!1),r=(c&e.childLanes)!==0,Tc||r){if(bo.current!==null)return Yc(e,t,c);if(r=Xu,r!==null&&(a=pt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,xi(e,a),Nd(r,e,a),wc;return cm(o)||Gd(),Yc(e,t,c)}return cm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,Qi=dm(o.nextSibling),Zi=t,$i=!0,ea=null,ta=!1,e!==null&&Xi(t,e),t=qc(t,a.children),t.flags|=134221824,t)}function Zc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ma(e.return,t,n)}function Qc(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Fo(n)===null&&(t=e),e=e.sibling}return t}function $c(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function el(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function tl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Mo.current;if(t.flags&128)return No(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,No(t,o),i===`backwards`&&e!==null?(el(e),Ec(e,t,r,n),el(e)):Ec(e,t,r,n),r=$i?Bi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zc(e,n,t);else if(e.tag===19)Zc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=Qc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,el(t)),$c(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}$c(t,!0,n,null,a,r);break;case`together`:$c(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=Qc(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),$c(t,!1,i,n,a,r)}return t.child}function nl(e,t,n){var r=t.pendingProps;return W(t,t.type,r.value),Ec(e,t,r.children,n),t.child}function rl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),od|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ga(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=Oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function il(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&_a(e)))}function al(e,t,n){switch(t.tag){case 3:xe(t,t.stateNode.containerInfo),W(t,Ta,e.memoizedState.cache),sa();break;case 27:case 5:Ce(t);break;case 4:xe(t,t.stateNode.containerInfo);break;case 10:W(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Do(t),t.flags|=128,null;r=ga(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Kc(e,t,n):(Do(t),e=rl(e,t,n),e===null?null:e.sibling)}Do(t);break;case 19:if(t.flags&128)return tl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ga(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return tl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),No(t,Mo.current),r)break;return null;case 22:return t.lanes=0,Mc(e,t,n,t.pendingProps);case 24:W(t,Ta,e.memoizedState.cache)}return rl(e,t,n)}function ol(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Tc=!0;else{if(!il(e,n)&&!(t.flags&128))return Tc=!1,al(e,t,n);Tc=!!(e.flags&131072)}}else Tc=!1,$i&&t.flags&1048576&&qi(t,Bi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ya(t.elementType),t.type=e,typeof e==`function`)Di(e)?(r=mc(e,r),t.tag=1,t=Vc(null,t,e,r,n)):(t.tag=0,t=zc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===P){t.tag=11,t=Dc(null,t,e,r,n);break a}if(a===te){t.tag=14,t=kc(null,t,e,r,n);break a}if(a===N){t.tag=10,t.type=e,t=nl(null,t,n);break a}}throw t=ue(e)||e,Error(i(306,t,``))}}return t;case 0:return zc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=mc(r,t.pendingProps),Vc(e,t,r,a,n);case 3:a:{if(xe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,lo(e,t),_o(t,r,null,n);var s=t.memoizedState;if(r=s.cache,W(t,Ta,r),r!==o.cache&&ha(t,[Ta],n,!0),go(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Hc(e,t,r,n);break a}if(r!==a){a=Ii(Error(i(424)),t),la(a),t=Hc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Qi=dm(e.firstChild),Zi=t,$i=!0,ea=null,ta=!0,n=oo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(sa(),r===a){t=rl(e,t,n);break a}Ec(e,t,r,n)}t=t.child}return t;case 26:return Rc(e,t),e===null?(n=Fm(t.type,null,t.pendingProps,null))?t.memoizedState=n:$i||(t.stateNode=mp(t.type,t.pendingProps,ye.current,t)):t.memoizedState=Fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ce(t),e===null&&$i&&(r=t.stateNode=_m(t.type,t.pendingProps,ye.current),Zi=t,ta=!0,a=Qi,wp(t.type)?(fm=a,Qi=dm(r.firstChild)):Qi=a),Ec(e,t,t.pendingProps.children,n),Rc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&$i&&((a=r=Qi)&&(r=am(r,t.type,t.pendingProps,ta),r===null?a=!1:(t.stateNode=r,Zi=t,Qi=dm(r.firstChild),ta=!1,a=!0)),a||ra(t)),Ce(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,hp(a,o)?r=null:s!==null&&hp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Jo(e,t,Zo,null,null,n),lh._currentValue=a),Rc(e,t),Ec(e,t,r,n),t.child;case 6:return e===null&&$i&&((e=n=Qi)&&(n=om(n,t.pendingProps,ta),n===null?e=!1:(t.stateNode=n,Zi=t,Qi=null,e=!0)),e||ra(t)),null;case 13:return Kc(e,t,n);case 4:return xe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ao(t,null,r,n):Ec(e,t,r,n),t.child;case 11:return Dc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Rc(e,t),Ec(e,t,r,n),t.child;case 8:return Ec(e,t,t.pendingProps.children,n),t.child;case 12:return Ec(e,t,t.pendingProps.children,n),t.child;case 10:return nl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,va(t),a=ya(a),r=r(a),t.flags|=1,Ec(e,t,r,n),t.child;case 14:return kc(e,t,t.type,t.pendingProps,n);case 15:return jc(e,t,t.type,t.pendingProps,n);case 19:return tl(e,t,n);case 31:return Lc(e,t,n);case 22:return Mc(e,t,n,t.pendingProps);case 24:return va(t),r=ya(Ta),e===null?(a=Ba(),a===null&&(a=Xu,o=Ea(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},co(t),W(t,Ta,a)):((e.lanes&n)!==0&&(lo(e,t),_o(t,null,null,n),go()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,W(t,Ta,r),r!==a.cache&&ha(t,[Ta],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),W(t,Ta,r))),Ec(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:$i&&Ji(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Rc(e,t),Ec(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function sl(e){e.flags|=4}function cl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Xm(t,r):Xm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Hd())e.flags|=8192;else throw Xa=Ka,Wa}}else e.flags&=-16777217}function ll(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zm(t)){if(Hd())e.flags|=8192;else throw Xa=Ka,Wa}}function ul(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:st(),e.lanes|=t,ud|=t)}function dl(e,t){if(!$i)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function fl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pl(e,t,n){var r=t.pendingProps;switch(Yi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fl(t),null;case 1:return fl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),pa(Ta),Se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(oa(t)?sl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ca())),fl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(sl(t),o===null?(fl(t),cl(t,a,null,r,n)):(fl(t),ll(t,o))):o?o===e.memoizedState?(fl(t),t.flags&=-16777217):(sl(t),fl(t),ll(t,o)):(e=e.memoizedProps,e!==r&&sl(t),fl(t),cl(t,a,e,r,n)),null;case 27:if(we(t),n=ye.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return fl(t),t.subtreeFlags&=-33554433,null}e=_e.current,oa(t)?ia(t,e):(e=_m(a,r,n),t.stateNode=e,sl(t))}return fl(t),t.subtreeFlags&=-33554433,null;case 5:if(we(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return fl(t),t.subtreeFlags&=-33554433,null}if(o=_e.current,oa(t))ia(t,o);else{var s=dp(ye.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[yt]=t,o[bt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(ip(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&sl(t)}}return fl(t),t.subtreeFlags&=-33554433,cl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&sl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ye.current,oa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Zi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[yt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||tp(e.nodeValue,n)),e||ra(t,!0)}else e=dp(e).createTextNode(r),e[yt]=t,t.stateNode=e}return fl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=oa(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[yt]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),e=!1}else n=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(jo(t),t):(jo(t),null);if(t.flags&128)throw Error(i(558))}return fl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=oa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[yt]=t}else sa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fl(t),a=!1}else a=ca(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(jo(t),t):(jo(t),null)}return jo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ul(t,t.updateQueue),fl(t),null);case 4:return Se(),e===null&&Gf(t.stateNode.containerInfo),t.flags|=67108864,fl(t),null;case 10:return pa(t.type),fl(t),null;case 19:if(Po(t),r=t.memoizedState,r===null)return fl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)dl(r,!1);else{if(ad!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Fo(e),o!==null){for(t.flags|=128,dl(r,!1),e=o.updateQueue,t.updateQueue=e,ul(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ki(n,e),n=n.sibling;return No(t,Mo.current&1|2),$i&&Ki(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Le()>gd&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ul(t,e),dl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!$i)return fl(t),null}else 2*Le()-r.renderingStartTime>gd&&n!==536870912&&(t.flags|=128,a=!0,dl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Le(),e.sibling=null,o=Mo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||$i?No(t,o):(n=o,ge(To,t),ge(Mo,n),Eo===null&&(Eo=t)),$i&&Ki(t,r.treeForkCount),e}return fl(t),null;case 22:case 23:return jo(t),wo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(fl(t),t.subtreeFlags&6&&(t.flags|=8192)):fl(t),n=t.updateQueue,n!==null&&ul(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&z(za),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),pa(Ta),fl(t),null;case 25:return null;case 30:return t.flags|=33554432,fl(t),null}throw Error(i(156,t.tag))}function ml(e,t){switch(Yi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pa(Ta),Se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(jo(t),t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(jo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Po(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Se(),null;case 10:return pa(t.type),null;case 22:case 23:return jo(t),wo(),e!==null&&z(za),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pa(Ta),null;case 25:return null;default:return null}}function hl(e,t){switch(Yi(t),t.tag){case 3:pa(Ta),Se();break;case 26:case 27:case 5:we(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&jo(t);break;case 13:jo(t);break;case 19:Po(t);break;case 10:pa(t.type);break;case 22:case 23:jo(t),wo(),e!==null&&z(za);break;case 24:pa(Ta)}}function gl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){pf(t,t.return,e)}}function _l(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){pf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){pf(t,t.return,e)}}function vl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yo(t,n)}catch(t){pf(e,e.return,t)}}}function yl(e,t,n){n.props=mc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){pf(e,t,n)}}function bl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=di(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Ip(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Lp(e);p(e.child,!1,em,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){pf(e,t,n)}}function xl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){pf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){pf(e,t,n)}else n.current=null}}function Sl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)nm(e.stateNode,t[n])}function Cl(e){for(var t=e.return;t!==null&&(El(t)&&nm(e.stateNode,t.stateNode),!Tl(t));)t=t.return}function wl(e){for(var t=e.return;t!==null&&(El(t)&&rm(e.stateNode,t.stateNode),!Tl(t));)t=t.return}function Tl(e){return e.tag===5||e.tag===3||e.tag===27}function El(e){return e&&e.tag===7&&e.stateNode!==null}function Dl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){pf(e,e.return,t)}}function Ol(e,t,n){try{var r=e.stateNode;op(r,e.type,n,t),r[bt]=t}catch(t){pf(e,e.return,t)}}function kl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wp(e.type)||e.tag===4}function Al(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||kl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&wp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hn)),Sl(e,r),B=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,wp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(jl(e,t,n,r),e=e.sibling;e!==null;)jl(e,t,n,r),e=e.sibling}function Ml(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Sl(e,r),B=!0;else if(i!==4&&(i===27&&(Sl(e,r),r=null,wp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ml(e,t,n,r),e=e.sibling;e!==null;)Ml(e,t,n,r),e=e.sibling}function Nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ip(t,r,n),t[yt]=e,t[bt]=n}catch(t){pf(e,e.return,t)}}var Pl=!1,Fl=null;function Il(e){(e.tag===30||e.subtreeFlags&33554432)&&(Pl=!0)}var Ll=null;function Rl(){var e=Ll;return Ll=null,e}var zl=0;function Bl(e,t,n,r,i){return zl=0,Vl(e.child,t,n,r,i)}function Vl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Ap(o);r.push(s),s.view&&(a=!0)}else a||Ap(o).view&&(a=!0);Pl=!0,Dp(o,zl===0?t:t+`_`+zl,n),zl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Vl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Hl(e,t){for(;e!==null;)e.tag===5?Op(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Hl(e.child,t)),e=e.sibling}function Ul(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Ul(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=pi(t.default,t.share),t!==`none`&&(Bl(e,n,t,null,!1)||Hl(e.child,!1))}e=e.sibling}}function Wl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=di(r,n),a=pi(r.default,n.paired?r.share:r.enter);a===`none`?Ul(e):Bl(e,i,a,null,!1)?(Ul(e),n.paired||t||Md(e,r.onEnter)):Hl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Wl(e,t),e=e.sibling;else Ul(e)}function Gl(e){if(Fl!==null&&Fl.size!==0){var t=Fl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=pi(n.default,n.share);if(a!==`none`&&(Bl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Md(e,n.onShare)):Hl(e.child,!1)),t.delete(r),t.size===0)break}}}Gl(e)}e=e.sibling}}}function Kl(e){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode),r=Fl===null?void 0:Fl.get(n),i=pi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Bl(e,n,i,null,!1)?r===void 0?Md(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Fl.delete(n),Md(e,t.onShare)):Hl(e.child,!1)),Fl!==null&&Gl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Kl(e),e=e.sibling;else Fl!==null&&Gl(e)}function ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=di(t,e.stateNode);t=pi(t.default,t.update),e.flags&=-5,t!==`none`&&Bl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&ql(e);e=e.sibling}}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Hl(e.child,!1))}Jl(e)}e=e.sibling}}function Yl(e){if(e.tag===30)e.stateNode.paired=null,Hl(e.child,!1),Jl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e),e=e.sibling;else Jl(e)}function Xl(e){for(e=e.child;e!==null;)e.tag===30?Hl(e.child,!1):e.subtreeFlags&33554432&&Xl(e),e=e.sibling}function Zl(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&zl<a.length){var l=a[zl],u=Ap(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Dp(c,zl===0?n:n+`_`+zl,i),s&&e.flags&4||(Ll===null&&(Ll=[]),Ll.push(c,zl===0?r:r+`_`+zl,t.memoizedProps)),zl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Zl(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function Ql(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=di(n,r),a=pi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(jp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;zl=0,i=Zl(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Md(e,n.onUpdate))}else e.subtreeFlags&33554432&&Ql(e,t);e=e.sibling}}var $l=!1,X=!1,eu=!1,tu=!1,nu=typeof WeakSet==`function`?WeakSet:Set,ru=null,iu=!1,au=!1,ou=!1,su=!1;function cu(e,t,n){if(e=e.containerInfo,lp=vh,e=Vr(e),Hr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(up={focusedElem:e,selectionRange:r},vh=!1,n=(n&335544064)===n,ru=t,t=n?9270:1024;ru!==null;){if(e=ru,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Kl(r[a]);if(e.alternate===null&&e.flags&2)n&&Il(e),lu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Kl(r),lu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Il(e),lu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,ru=r):(n&&ql(e),lu(n))}}Fl=null}function lu(e){for(;ru!==null;){var t=ru,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=mc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){pf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)im(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:im(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=di(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=pi(a.default,a.update),a!==`none`&&Bl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,ru=r;break}ru=t.return}}function uu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Au(e,n),r&4&&gl(5,n);break;case 1:if(Au(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){pf(n,n.return,e)}else{var i=mc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){pf(n,n.return,e)}}}r&64&&vl(n),r&512&&bl(n,n.return);break;case 3:if(Au(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{yo(e,t)}catch(e){pf(n,n.return,e)}}break;case 27:t===null&&r&4&&Nl(n);case 26:case 5:Au(e,n),t===null&&r&4&&Dl(n),r&512&&bl(n,n.return);break;case 12:Au(e,n);break;case 31:Au(e,n),r&4&&yu(e,n);break;case 13:Au(e,n),r&4&&bu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_f.bind(null,n),um(e,n))));break;case 22:if(r=n.memoizedState!==null||$l,!r){var a=t!==null&&t.memoizedState!==null||X;t=$l,i=X,$l=r,(X=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Mu(e,n,r)):Au(e,n),$l=t,X=i}break;case 30:Au(e,n),r&512&&bl(n,n.return);break;case 7:r&512&&bl(n,n.return);default:Au(e,n)}}function du(e,t){for(e=e.child;e!==null;)fu(e,t),e=e.sibling}function fu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){pf(e,e.return,t)}pu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,B=!0}catch(t){pf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Ep(s,!0):Ep(e.stateNode,!1)}catch(t){pf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&du(e,t);break;default:du(e,t)}}function pu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:fu(n,r);break a;case 22:n.memoizedState===null&&pu(n,r);break a;default:pu(n,r)}}e=e.sibling}}function mu(e){var t=e.alternate;t!==null&&(e.alternate=null,mu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ot(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var hu=null,gu=!1;function _u(e,t,n){for(n=n.child;n!==null;)vu(e,t,n),n=n.sibling}function vu(e,t,n){if(qe&&typeof qe.onCommitFiberUnmount==`function`)try{qe.onCommitFiberUnmount(Ke,n)}catch{}switch(n.tag){case 26:X||xl(n,t),_u(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!X&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:X||xl(n,t),wl(n);var r=hu,i=gu;wp(n.type)&&(hu=n.stateNode,gu=!1),_u(e,t,n),vm(n.stateNode,n.type,n.memoizedProps),hu=r,gu=i;break;case 5:X||xl(n,t),wl(n);case 6:if(n.tag===6&&wl(n),r=hu,i=gu,hu=null,_u(e,t,n),hu=r,gu=i,hu!==null){if(gu)try{(hu.nodeType===9?hu.body:hu.nodeName===`HTML`?hu.ownerDocument.body:hu).removeChild(n.stateNode),B=!0}catch(e){pf(n,t,e)}else try{hu.removeChild(n.stateNode),B=!0}catch(e){pf(n,t,e)}}break;case 18:hu!==null&&(gu?(e=hu,Tp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Wh(e)):Tp(hu,n.stateNode));break;case 4:r=hu,i=gu,hu=n.stateNode.containerInfo,gu=!0,_u(e,t,n),hu=r,gu=i;break;case 0:case 11:case 14:case 15:_l(2,n,t),X||_l(4,n,t),_u(e,t,n);break;case 1:X||(xl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&yl(n,t,r)),_u(e,t,n);break;case 21:_u(e,t,n);break;case 22:X=(r=X)||n.memoizedState!==null,_u(e,t,n),X=r;break;case 30:xl(n,t),_u(e,t,n);break;case 7:X||xl(n,t),_u(e,t,n);break;default:_u(e,t,n)}}function yu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wh(e)}catch(e){pf(t,t.return,e)}}}function bu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wh(e)}catch(e){pf(t,t.return,e)}}function xu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nu),t;default:throw Error(i(435,e.tag))}}function Su(e,t){var n=xu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=vf.bind(null,e,t);t.then(r,r)}})}function Cu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(wp(l.type)){hu=l.stateNode,gu=!1;break a}break;case 5:hu=l.stateNode,gu=!1;break a;case 3:case 4:hu=l.stateNode.containerInfo,gu=!0;break a}l=l.return}if(hu===null)throw Error(i(160));vu(s,c,o),hu=null,gu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Tu(t,e,n),t=t.sibling}var wu=null;function Tu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Cu(t,e,n),Eu(e),a&4&&(_l(3,e,e.return),gl(3,e),_l(5,e,e.return));break;case 1:Cu(t,e,n),Eu(e),a&512&&(X||r===null||xl(r,r.return)),a&64&&$l&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=wu,Cu(t,e,n),Eu(e),a&512&&(X||r===null||xl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if($l)e.stateNode=mp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Et]||r[yt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),ip(r,t,n),r[yt]=e,Nt(r),t=r;break a;case`link`:if(o=qm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),ip(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=qm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),ip(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[yt]=e,Nt(r),t=r}e.stateNode=t}}else $l||Jm(o,e.type,e.stateNode)}else e.stateNode=Hm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Ol(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||X||t.parentNode.removeChild(t)):a.count--,n===null?$l||Jm(o,e.type,e.stateNode):Hm(o,n,e.memoizedProps))}break;case 27:Cu(t,e,n),Eu(e),a&512&&(X||r===null||xl(r,r.return)),r!==null&&a&4&&Ol(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=eu,eu=!1,Cu(t,e,n),eu=o,Eu(e),a&512&&(X||r===null||xl(r,r.return)),e.flags&32){t=e.stateNode;try{sn(t,``),B=!0}catch(t){pf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Ol(e,t,r===null?t:r.memoizedProps)),a&1024&&(tu=!0);break;case 6:if(Cu(t,e,n),Eu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,B=!0}catch(t){pf(e,e.return,t)}}break;case 3:if(B=!1,Km=null,o=wu,wu=Sm(t.containerInfo),Cu(t,e,n),wu=o,Eu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Wh(t.containerInfo)}catch(t){pf(e,e.return,t)}tu&&(tu=!1,Du(e)),B=!1;break;case 4:a=eu,eu=$l,r=Ut(),o=wu,wu=Sm(e.stateNode.containerInfo),Cu(t,e,n),Eu(e),wu=o,B&&au&&(ou=!0),B=r,eu=a;break;case 12:Cu(t,e,n),Eu(e);break;case 31:Cu(t,e,n),Eu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Su(e,t)));break;case 13:Cu(t,e,n),Eu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(md=Le()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Su(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=$l,l=X,u=eu;$l=c||o,eu=u||o,X=l||s,Cu(t,e,n),X=l,eu=u,$l=c,Eu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||$l||X||(t=s||X,n=$l,r=X,$l=o||$l,X=t,ju(e,2),$l=n,X=r),!o&&eu||du(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Su(e,n))));break;case 19:Cu(t,e,n),Eu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Su(e,t)));break;case 30:a&512&&(X||r===null||xl(r,r.return)),a=Ut(),o=au,s=(n&335544064)===n,c=e.memoizedProps,au=s&&pi(c.default,c.update)!==`none`,Cu(t,e,n),Eu(e),s&&r!==null&&B&&(e.flags|=4),au=o,B=a;break;case 21:break;case 7:a&512&&(X||r===null||xl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Cu(t,e,n),Eu(e)}}function Eu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(kl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(El(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Tl(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ml(e,Al(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(sn(l,``),n.flags&=-33),Ml(e,Al(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;jl(e,Al(e),u,s);break;default:throw Error(i(161))}}catch(t){pf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Du(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Du(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,vh=!0,t.reset(),vh=!1),e=e.sibling}}function Ou(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ku(t,e),t=t.sibling;else Ql(t,!1)}function ku(e,t){var n=e.alternate;if(n===null)Wl(e,!1);else switch(e.tag){case 3:if(su=iu=!1,Rl(),Ou(t,e),!iu&&!ou){if(e=Ll,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Op(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),su=!0}Ll=null;break;case 5:Ou(t,e);break;case 4:r=iu,iu=!1,Ou(t,e),iu&&(ou=!0),iu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Ou(t,e):Wl(e,!1));break;case 30:r=iu,i=Rl(),iu=!1,Ou(t,e),iu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=di(a,o),o=di(n.memoizedProps,o);var s=pi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,zl=0,t=Zl(e,n,t,o,s,a,!0),zl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Md(e,e.memoizedProps.onUpdate),Ll=i):i!==null&&(i.push.apply(i,Ll),Ll=i),iu=e.flags&32?!0:r;break;default:Ou(t,e)}}function Au(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)uu(e,t.alternate,t),t=t.sibling}function ju(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:_l(4,n,n.return),ju(n,r);break;case 1:xl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&yl(n,n.return,i),ju(n,r);break;case 27:r&2&&vm(n.stateNode,n.type,n.memoizedProps);case 5:xl(n,n.return),n.tag!==5&&n.tag!==27||wl(n),ju(n,r);break;case 6:wl(n);break;case 26:xl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||X||i.parentNode.removeChild(i),ju(n,r);break;case 22:n.memoizedState===null&&ju(n,r);break;case 30:xl(n,n.return),ju(n,r);break;case 7:xl(n,n.return);default:ju(n,r)}e=e.sibling}}function Mu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Mu(i,a,n),gl(4,a);break;case 1:if(Mu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){pf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)vo(l[i],c)}catch(e){pf(r,r.return,e)}}s&&o&64&&vl(a),bl(a,a.return);break;case 27:n&2&&Nl(a);case 5:a.tag!==5&&a.tag!==27||Cl(a),Mu(i,a,n),s&&r===null&&o&4&&Dl(a),bl(a,a.return);break;case 6:Cl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||$l||Jm(Sm(c.ownerDocument),a.type,c),Mu(i,a,n),s&&r===null&&o&4&&Dl(a),bl(a,a.return);break;case 12:Mu(i,a,n);break;case 31:Mu(i,a,n),s&&o&4&&yu(i,a);break;case 13:Mu(i,a,n),s&&o&4&&bu(i,a);break;case 22:a.memoizedState===null&&Mu(i,a,n),bl(a,a.return);break;case 30:Mu(i,a,n),bl(a,a.return);break;case 7:bl(a,a.return);default:Mu(i,a,n)}t=t.sibling}}function Nu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Da(n))}function Pu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Da(e))}function Fu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Iu(e,t,n,r),t=t.sibling;else i&&Xl(t)}function Iu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Yl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Fu(e,t,n,r),a&2048&&gl(9,t);break;case 1:Fu(e,t,n,r);break;case 3:Fu(e,t,n,r),i&&su&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Da(a)));break;case 12:if(a&2048){Fu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){pf(t,t.return,e)}}else Fu(e,t,n,r);break;case 31:Fu(e,t,n,r);break;case 13:Fu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Yl(t),o._visibility&2?Fu(e,t,n,r):(o._visibility|=2,Lu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Yl(s),o._visibility&2?Fu(e,t,n,r):Ru(e,t)),a&2048&&Nu(s,t);break;case 24:Fu(e,t,n,r),a&2048&&Pu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Hl(a.child,!0),Hl(t.child,!0))),Fu(e,t,n,r);break;default:Fu(e,t,n,r)}}function Lu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Lu(a,o,s,c,i),gl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Lu(a,o,s,c,i)):u._visibility&2?Lu(a,o,s,c,i):Ru(a,o),i&&l&2048&&Nu(o.alternate,o);break;case 24:Lu(a,o,s,c,i),i&&l&2048&&Pu(o.alternate,o);break;default:Lu(a,o,s,c,i)}t=t.sibling}}function Ru(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ru(n,r),i&2048&&Nu(r.alternate,r);break;case 24:Ru(n,r),i&2048&&Pu(r.alternate,r);break;default:Ru(n,r)}t=t.sibling}}var zu=8192;function Bu(e,t,n){if(e.subtreeFlags&zu)for(e=e.child;e!==null;)Vu(e,t,n),e=e.sibling}function Vu(e,t,n){switch(e.tag){case 26:Bu(e,t,n),e.flags&zu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&$m(n,e)):eh(n,wu,e.memoizedState,e.memoizedProps));break;case 5:Bu(e,t,n),e.flags&zu&&(e=e.stateNode,(t&335544128)===t&&$m(n,e));break;case 3:case 4:var r=wu;wu=Sm(e.stateNode.containerInfo),Bu(e,t,n),wu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=zu,zu=16777216,Bu(e,t,n),zu=r):Bu(e,t,n));break;case 30:if((e.flags&zu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Fl===null&&(Fl=new Map),Fl.set(r,i)}Bu(e,t,n);break;default:Bu(e,t,n)}}function Hu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Uu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ru=r,Ku(r,e)}Hu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Wu(e),e=e.sibling}function Wu(e){switch(e.tag){case 0:case 11:case 15:Uu(e),e.flags&2048&&_l(9,e,e.return);break;case 3:Uu(e);break;case 12:Uu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gu(e)):Uu(e);break;default:Uu(e)}}function Gu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ru=r,Ku(r,e)}Hu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_l(8,t,t.return),Gu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Gu(t));break;default:Gu(t)}e=e.sibling}}function Ku(e,t){for(;ru!==null;){var n=ru;switch(n.tag){case 0:case 11:case 15:_l(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Da(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ru=r;else a:for(n=e;ru!==null;){r=ru;var i=r.sibling,a=r.return;if(mu(r),r===n){ru=null;break a}if(i!==null){i.return=a,ru=i;break a}ru=a}}}var qu={getCacheForType:function(e){var t=ya(Ta),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ya(Ta).controller.signal}},Ju=typeof WeakMap==`function`?WeakMap:Map,Yu=0,Xu=null,Zu=null,Qu=0,$u=0,ed=null,td=!1,nd=!1,rd=!1,id=0,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=null,fd=null,pd=!1,md=0,hd=0,gd=1/0,_d=null,vd=null,yd=0,bd=null,xd=null,Z=0,Sd=0,Cd=null,wd=null,Td=null,Ed=null,Dd=null,Od=0,kd=null;function Ad(){return Yu&2&&Qu!==0?Qu&-Qu:L.T===null?gt():Pf()}function jd(){if(ld===0){if(!(Qu&536870912)||$i){var e=et;et<<=1,!(et&3932160)&&(et=262144),ld=e}else ld=536870912}return e=To.current,e!==null&&(e.flags|=32),ld}function Md(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Ip(di(e.memoizedProps,n))),Ed===null&&(Ed=[]),Ed.push(t.bind(null,r))}}function Nd(e,t,n){(e===Xu&&($u===2||$u===9)||e.cancelPendingCommit!==null)&&(Bd(e,0),Ld(e,Qu,ld,!1)),lt(e,n),(!(Yu&2)||e!==Xu)&&(e===Xu&&(!(Yu&2)&&(sd|=n),ad===4&&Ld(e,Qu,ld,!1)),Ef(e))}function Pd(e,t,n){if(Yu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||it(e,t),a=r?Jd(e,t):Kd(e,t,!0),o=r;do{if(a===0){nd&&!r&&Ld(e,t,0,!1);break}if(n=e.current.alternate,o&&!Id(n))a=Kd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=dd;var l=c.current.memoizedState.isDehydrated;if(l&&(Bd(c,s).flags|=256),s=Kd(c,s,!1),s!==2&&s!==6){if(rd&&!l){c.errorRecoveryDisabledLanes|=o,sd|=o,a=4;break a}o=fd,fd=a,o!==null&&(fd===null?fd=o:fd.push.apply(fd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Bd(e,0),Ld(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ld(r,t,ld,!td);break a;case 2:fd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=md+300-Le(),10<a)){if(Ld(r,t,ld,!td),rt(r,0,!0)!==0)break a;Z=t,r.timeoutHandle=vp(Fd.bind(null,r,n,fd,_d,pd,t,ld,sd,ud,td,o,`Throttled`,-0,0),a);break a}Fd(r,n,fd,_d,pd,t,ld,sd,ud,td,o,null,-0,0)}break}}while(1);Ef(e)}function Fd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:hn},Fl=null,Vu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ih.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?md-Le():(a&4194048)===a?hd-Le():0,m=nh(d,m),m!==null)?(Z=a,e.cancelPendingCommit=m(tf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Ld(e,a,o,!l)):tf(e,t,a,n,r,i,o,s,c,l,u,d)}function Id(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!H(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ld(e,t,n,r){t=at(e,t),t&=~cd,t&=~sd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ye(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&dt(e,n,t)}function Rd(){return Yu&6?!0:(Df(0,!1),!1)}function zd(){if(Zu!==null){if($u===0)var e=Zu.return;else e=Zu,fa=da=null,$o(e),$a=null,eo=0,e=Zu;for(;e!==null;)hl(e.alternate,e),e=e.return;Zu=null}}function Bd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,yp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Z=0,zd(),Xu=e,Zu=n=Oi(e.current,null),Qu=t,$u=0,ed=null,td=!1,nd=it(e,t),rd=!1,ud=ld=cd=sd=od=ad=0,fd=dd=null,pd=!1,id=at(e,t),vi(),n}function Vd(e,t){Lo=null,L.H=oc,t===Ua||t===Ga?(t=Za(),$u=3):t===Wa?(t=Za(),$u=4):$u=t===wc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ed=t,Zu===null&&(ad=1,vc(e,Ii(t,e.current)))}function Hd(){var e=To.current;return e===null?!0:(Qu&4194048)===Qu?Eo===null:(Qu&62914560)===Qu||Qu&536870912?e===Eo:!1}function Ud(){var e=L.H;return L.H=oc,e===null?oc:e}function Wd(){var e=L.A;return L.A=qu,e}function Gd(){ad=4,td||(Qu&4194048)!==Qu&&To.current!==null||(nd=!0),!(od&134217727)&&!(sd&134217727)||Xu===null||Ld(Xu,Qu,ld,!1)}function Kd(e,t,n){var r=Yu;Yu|=2;var i=Ud(),a=Wd();(Xu!==e||Qu!==t)&&(_d=null,Bd(e,t)),t=!1;var o=ad;a:do try{if($u!==0&&Zu!==null){var s=Zu,c=ed;switch($u){case 8:zd(),o=6;break a;case 3:case 2:case 9:case 6:To.current===null&&(t=!0);var l=$u;if($u=0,ed=null,Qd(e,s,c,l),n&&nd){o=0;break a}break;default:l=$u,$u=0,ed=null,Qd(e,s,c,l)}}qd(),o=ad;break}catch(t){Vd(e,t)}while(1);return t&&e.shellSuspendCounter++,fa=da=null,Yu=r,L.H=i,L.A=a,Zu===null&&(Xu=null,Qu=0,vi()),o}function qd(){for(;Zu!==null;)Xd(Zu)}function Jd(e,t){var n=Yu;Yu|=2;var r=Ud(),a=Wd();Xu!==e||Qu!==t?(_d=null,gd=Le()+500,Bd(e,t)):nd=it(e,t);a:do try{if($u!==0&&Zu!==null){t=Zu;var o=ed;b:switch($u){case 1:$u=0,ed=null,Qd(e,t,o,1);break;case 2:case 9:if(qa(o)){$u=0,ed=null,Zd(t);break}t=function(){$u!==2&&$u!==9||Xu!==e||($u=7),Ef(e)},o.then(t,t);break a;case 3:$u=7;break a;case 4:$u=5;break a;case 7:qa(o)?($u=0,ed=null,Zd(t)):($u=0,ed=null,Qd(e,t,o,7));break;case 5:var s=null;switch(Zu.tag){case 26:s=Zu.memoizedState;case 5:case 27:var c=Zu;if(s?Zm(s):c.stateNode.complete){$u=0,ed=null;var l=c.sibling;if(l!==null)Zu=l;else{var u=c.return;u===null?Zu=null:(Zu=u,$d(u))}break b}}$u=0,ed=null,Qd(e,t,o,5);break;case 6:$u=0,ed=null,Qd(e,t,o,6);break;case 8:zd(),ad=6;break a;default:throw Error(i(462))}}Yd();break}catch(t){Vd(e,t)}while(1);return fa=da=null,L.H=r,L.A=a,Yu=n,Zu===null?(Xu=null,Qu=0,vi(),ad):0}function Yd(){for(;Zu!==null&&!Fe();)Xd(Zu)}function Xd(e){var t=ol(e.alternate,e,id);e.memoizedProps=e.pendingProps,t===null?$d(e):Zu=t}function Zd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Bc(n,t,t.pendingProps,t.type,void 0,Qu);break;case 11:t=Bc(n,t,t.pendingProps,t.type.render,t.ref,Qu);break;case 5:$o(t);var r=t;r===Zi&&($i?(aa(r),r.tag===5&&r.stateNode!=null&&(Qi=r.stateNode)):(aa(r),$i=!0));default:hl(n,t),t=Zu=ki(t,id),t=ol(n,t,id)}e.memoizedProps=e.pendingProps,t===null?$d(e):Zu=t}function Qd(e,t,n,r){fa=da=null,$o(t),$a=null,eo=0;var i=t.return;try{if(Cc(e,i,t,n,Qu)){ad=1,vc(e,Ii(n,e.current)),Zu=null;return}}catch(t){if(i!==null)throw Zu=i,t;ad=1,vc(e,Ii(n,e.current)),Zu=null;return}t.flags&32768?($i||r===1?e=!0:nd||Qu&536870912?e=!1:(td=e=!0,(r===2||r===9||r===3||r===6)&&(r=To.current,r!==null&&r.tag===13&&(r.flags|=16384))),ef(t,e)):$d(t)}function $d(e){var t=e;do{if(t.flags&32768){ef(t,td);return}e=t.return;var n=pl(t.alternate,t,id);if(n!==null){Zu=n;return}if(t=t.sibling,t!==null){Zu=t;return}Zu=t=e}while(t!==null);ad===0&&(ad=5)}function ef(e,t){do{var n=ml(e.alternate,e);if(n!==null){n.flags&=32767,Zu=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Zu=e;return}Zu=e=n}while(e!==null);ad=6,Zu=null}function tf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do uf();while(yd!==0);if(Yu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Xu&&(Zu=Xu=null,Qu=0),xd=t,bd=e,Z=n,Cd=a,wd=r,nf(e,t,n,s,c,l,f)}}function nf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Sd=s,s|=_i,ut(e,n,s,r,i,a),Ed=null,(n&335544064)===n?(Dd=Aa(e),r=10262):(Dd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,yf(Ve,function(){return df(),null})):(e.callbackNode=null,e.callbackPriority=0),Pl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=L.T,L.T=null,i=R.p,R.p=2,a=Yu,Yu|=4;try{cu(e,t,n)}finally{Yu=a,R.p=i,L.T=r}}yd=1,Pl?Td=Pp(o,e.containerInfo,Dd,of,sf,af,cf,df,rf,null,null):(of(),sf(),cf())}function rf(e){if(yd!==0){var t=bd.onRecoverableError;t(e,{componentStack:null})}}function af(){yd===3&&(yd=0,ku(xd,bd),yd=4)}function of(){if(yd===1){yd=0;var e=bd,t=xd,n=Z,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=L.T,L.T=null;var i=R.p;R.p=2;var a=Yu;Yu|=4;try{au=ou=!1,Tu(t,e,n),n=up;var o=Vr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Br(s.ownerDocument.documentElement,s)){if(c!==null&&Hr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=U(s,h),v=U(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}vh=!!lp,up=lp=null}finally{Yu=a,R.p=i,L.T=r}}e.current=t,yd=2}}function sf(){if(yd===2){yd=0;var e=bd,t=xd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=L.T,L.T=null;var r=R.p;R.p=2;var i=Yu;Yu|=4;try{uu(e,t.alternate,t)}finally{Yu=i,R.p=r,L.T=n}}yd=3}}function cf(){if(yd===4||yd===3){yd=0;var e=Td;Td=null,Ie();var t=bd,n=xd,r=Z,i=wd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?yd=5:(yd=0,xd=bd=null,lf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(vd=null),ht(r),n=n.stateNode,qe&&typeof qe.onCommitFiberRoot==`function`)try{qe.onCommitFiberRoot(Ke,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=L.T,a=R.p,R.p=2,L.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{L.T=n,R.p=a}}if(i=Ed,o=Dd,Dd=null,i!==null&&(Ed=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Z&3&&uf(),Ef(t),a=t.pendingLanes,r&261930&&a&42?t===kd?Od++:(Od=0,kd=t):(Od=0,kd=null),Df(0,!1)}}function lf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Da(t)))}function uf(){return Td!==null&&(Td.skipTransition(),Td=null),of(),sf(),cf(),df()}function df(){if(yd!==5)return!1;var e=bd,t=Sd;Sd=0;var n=ht(Z),r=L.T,a=R.p;try{R.p=32>n?32:n,L.T=null,n=Cd,Cd=null;var o=bd,s=Z;if(yd=0,xd=bd=null,Z=0,Yu&6)throw Error(i(331));var c=Yu;if(Yu|=4,Wu(o.current),Iu(o,o.current,s,n),Yu=c,Df(0,!1),qe&&typeof qe.onPostCommitFiberRoot==`function`)try{qe.onPostCommitFiberRoot(Ke,o)}catch{}return!0}finally{R.p=a,L.T=r,lf(e,t)}}function ff(e,t,n){t=Ii(n,t),t=bc(e.stateNode,t,2),e=fo(e,t,2),e!==null&&(lt(e,2),Ef(e))}function pf(e,t,n){if(e.tag===3)ff(e,e,n);else for(;t!==null;){if(t.tag===3){ff(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vd===null||!vd.has(r))){e=Ii(n,e),n=xc(2),r=fo(t,n,2),r!==null&&(Sc(n,r,t,e),lt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ju;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(rd=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Xu===e&&(Qu&n)===n&&(ad===4||ad===3&&(Qu&62914560)===Qu&&300>Le()-md?Yu&2?cd|=n:Bd(e,0):cd|=n,ud===Qu&&(ud=0)),Ef(e)}function gf(e,t){t===0&&(t=st()),e=xi(e,t),e!==null&&(lt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),gf(e,n)}function yf(e,t){return Ne(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ye(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=Qu,a=rt(r,r===Xu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||it(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&_p()&&(e=Tf);for(var t=Le(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}yd!==0&&yd!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ye(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ot(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Xu,n=Qu,n=rt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&($u===2||$u===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Pe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||it(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Pe(r),ht(n)){case 2:case 8:n=Be;break;case 32:n=Ve;break;case 268435456:n=Ue;break;default:n=Ve}return r=jf.bind(null,e),n=Ne(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Pe(r),e.callbackPriority=2,e.callbackNode=null,2}function jf(e,t){if(yd!==0&&yd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(uf()&&e.callbackNode!==n)return null;var r=Qu;return r=rt(e,e===Xu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Pd(e,r,t),Af(e,Le()),e.callbackNode!=null&&e.callbackNode===n?jf.bind(null,e):null)}function Mf(e,t){if(uf())return null;Pd(e,t,!0)}function Nf(){Sp(function(){Yu&6?Ne(ze,Of):kf()})}function Pf(){if(Tf===0){var e=Na;e===0&&(e=$e,$e<<=1,!($e&261888)&&($e=256)),Tf=e}return Tf}function Ff(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:mn(e)}function If(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Ff((i[bt]||null).action),o=r.submitter;o&&(t=(t=o[bt]||null)?Ff(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new In(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Tf!==0){var e=new FormData(i,o);Ks(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Ks(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Lf=0;Lf<ci.length;Lf++){var Rf=ci[Lf];li(Rf.toLowerCase(),`on`+(Rf[0].toUpperCase()+Rf.slice(1)))}li(ei,`onAnimationEnd`),li(ti,`onAnimationIteration`),li(ni,`onAnimationStart`),li(`dblclick`,`onDoubleClick`),li(`focusin`,`onFocus`),li(`focusout`,`onBlur`),li(ri,`onTransitionRun`),li(ii,`onTransitionStart`),li(ai,`onTransitionCancel`),li(oi,`onTransitionEnd`),Rt(`onMouseEnter`,[`mouseout`,`mouseover`]),Rt(`onMouseLeave`,[`mouseout`,`mouseover`]),Rt(`onPointerEnter`,[`pointerout`,`pointerover`]),Rt(`onPointerLeave`,[`pointerout`,`pointerover`]),Lt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Lt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Lt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Lt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var zf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Bf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(zf));function Vf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){mi(e)}i.currentTarget=null,a=c}}}}function Hf(e,t){var n=t[St];n===void 0&&(n=t[St]=new Set);var r=e+`__bubble`;n.has(r)||(Kf(t,e,2,!1),n.add(r))}function Uf(e,t,n){var r=0;t&&(r|=4),Kf(n,e,r,t)}var Wf=`_reactListening`+Math.random().toString(36).slice(2);function Gf(e){if(!e[Wf]){e[Wf]=!0,Ft.forEach(function(t){t!==`selectionchange`&&(Bf.has(t)||Uf(t,!1,e),Uf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wf]||(t[Wf]=!0,Uf(`selectionchange`,!1,t))}}function Kf(e,t,n,r){switch(Th(t)){case 2:var i=yh;break;case 8:i=bh;break;default:i=xh}n=i.bind(null,t,n,e),i=void 0,!Tn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function qf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=kt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Sn(function(){var r=a,i=_n(n),s=[];a:{var c=si.get(e);if(c!==void 0){var l=In,u=e;switch(e){case`keypress`:if(jn(n)===0)break a;case`keydown`:case`keyup`:l=er;break;case`focusin`:u=`focus`,l=Gn;break;case`focusout`:u=`blur`,l=Gn;break;case`beforeblur`:case`afterblur`:l=Gn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Un;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Wn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=rr;break;case ei:case ti:case ni:l=Kn;break;case oi:l=ir;break;case`scroll`:case`scrollend`:l=Rn;break;case`wheel`:l=ar;break;case`copy`:case`cut`:case`paste`:l=qn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=tr;break;case`submit`:l=nr;break;case`toggle`:case`beforetoggle`:l=or}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Cn(m,p),g!=null&&d.push(Jf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==gn&&(u=n.relatedTarget||n.fromElement)&&(kt(u)||u[xt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?kt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Un,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=tr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:jt(c),h=l==null?u:jt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,kt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?w(c,l,Xf):null,c!==null&&Zf(s,u,c,d,!1),l!==null&&f!==null&&Zf(s,f,l,d,!0)))}a:{if(c=r?jt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Tr;else if(yr(c)){if(Er)_=Fr;else{_=Nr;var v=Mr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&dn(r.elementType)&&(_=Tr):_=Pr;if(_&&=_(e,r)){br(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?jt(r):window,e){case`focusin`:(yr(v)||v.contentEditable===`true`)&&(Wr=v,Gr=r,Kr=null);break;case`focusout`:Kr=Gr=Wr=null;break;case`mousedown`:qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:qr=!1,Jr(s,n,i);break;case`selectionchange`:if(Ur)break;case`keydown`:case`keyup`:Jr(s,n,i)}var y;if(cr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else gr?mr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(dr&&n.locale!==`ko`&&(gr||b!==`onCompositionStart`?b===`onCompositionEnd`&&gr&&(y=An()):(Dn=i,On=`value`in Dn?Dn.value:Dn.textContent,gr=!0)),v=Yf(r,b),0<v.length&&(b=new Jn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=hr(n),y!==null&&(b.data=y)))),(y=ur?_r(e,n):V(e,n))&&(b=Yf(r,`onBeforeInput`),0<b.length&&(v=new Jn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),If(s,e,r,n,i)}Vf(s,t)})}function Jf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Cn(e,n),i!=null&&r.unshift(Jf(e,i,a)),i=Cn(e,t),i!=null&&r.push(Jf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Xf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zf(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Cn(n,a),l!=null&&o.unshift(Jf(n,l,c))):i||(l=Cn(n,a),l!=null&&o.push(Jf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Qf=/\r\n?/g,$f=/\u0000|\uFFFD/g;function ep(e){return(typeof e==`string`?e:``+e).replace(Qf,`
|
|
48
|
+
`).replace($f,``)}function tp(e,t){return t=ep(t),ep(e)===t}function np(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||sn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&sn(e,``+r);else return;break;case`className`:Gt(e,`class`,r);break;case`tabIndex`:Gt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Gt(e,n,r);break;case`style`:un(e,r,o);return;case`data`:if(t!==`object`){Gt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=mn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&np(e,t,`name`,a.name,a,null),np(e,t,`formEncType`,a.formEncType,a,null),np(e,t,`formMethod`,a.formMethod,a,null),np(e,t,`formTarget`,a.formTarget,a,null)):(np(e,t,`encType`,a.encType,a,null),np(e,t,`method`,a.method,a,null),np(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=mn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=hn);return;case`onScroll`:r!=null&&Hf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Hf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=mn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Hf(`beforetoggle`,e),Hf(`toggle`,e),Wt(e,`popover`,r);break;case`xlinkActuate`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Wt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=fn.get(n)||n,Wt(e,n,r);else return}B=!0}function rp(e,t,n,r,a,o){switch(n){case`style`:un(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)sn(e,r);else if(typeof r==`number`||typeof r==`bigint`)sn(e,``+r);else return;break;case`onScroll`:r!=null&&Hf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Hf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=hn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!It.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[bt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}B=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Wt(e,n,r)}return}B=!0}function ip(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Hf(`error`,e),Hf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:np(e,t,o,s,n,null)}}a&&np(e,t,`srcSet`,n.srcSet,n,null),r&&np(e,t,`src`,n.src,n,null);return;case`input`:Hf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:np(e,t,r,d,n,null)}}tn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Hf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:np(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&rn(e,!!r,n,!0):rn(e,!!r,t,!1);return;case`textarea`:for(s in Hf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:np(e,t,s,c,n,null)}on(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:np(e,t,l,r,n,null)}return;case`dialog`:Hf(`beforetoggle`,e),Hf(`toggle`,e),Hf(`cancel`,e),Hf(`close`,e);break;case`iframe`:case`object`:Hf(`load`,e);break;case`video`:case`audio`:for(r=0;r<zf.length;r++)Hf(zf[r],e);break;case`image`:Hf(`error`,e),Hf(`load`,e);break;case`details`:Hf(`toggle`,e);break;case`embed`:case`source`:case`link`:Hf(`error`,e),Hf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:np(e,t,u,r,n,null)}return;default:if(dn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&rp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&np(e,t,c,r,n,null))}var ap={};function op(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||np(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(B=!0),o=m;break;case`name`:m!==f&&(B=!0),a=m;break;case`checked`:m!==f&&(B=!0),u=m;break;case`defaultChecked`:m!==f&&(B=!0),d=m;break;case`value`:m!==f&&(B=!0),s=m;break;case`defaultValue`:m!==f&&(B=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&np(e,t,p,m,r,f)}}en(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||np(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(B=!0),p=o;break;case`defaultValue`:o!==l&&(B=!0),c=o;break;case`multiple`:o!==l&&(B=!0),s=o;default:o!==l&&np(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?rn(e,!!n,n?[]:``,!1):rn(e,!!n,t,!0)):rn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:np(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(B=!0),p=a;break;case`defaultValue`:a!==o&&(B=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&np(e,t,s,a,r,o)}an(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:np(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(B=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:np(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&np(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:np(e,t,u,p,r,m)}return;default:if(dn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&rp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||rp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&np(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||np(e,t,f,p,r,m)}function sp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function cp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&sp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&sp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var lp=null,up=null;function dp(e){return e.nodeType===9?e:e.ownerDocument}function fp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function pp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function mp(e,t,n,r){return n=dp(n).createElement(e),n[yt]=r,n[bt]=t,ip(n,e,t),Nt(n),n}function hp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var gp=null;function _p(){var e=window.event;return e&&e.type===`popstate`?e!==gp&&(gp=e,!0):(gp=null,!1)}var vp=typeof setTimeout==`function`?setTimeout:void 0,yp=typeof clearTimeout==`function`?clearTimeout:void 0,bp=typeof Promise==`function`?Promise:void 0,xp=typeof requestAnimationFrame==`function`?requestAnimationFrame:vp,Sp=typeof queueMicrotask==`function`?queueMicrotask:bp===void 0?vp:function(e){return bp.resolve(null).then(e).catch(Cp)};function Cp(e){setTimeout(function(){throw e})}function wp(e){return e===`head`}function Tp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Wh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)ym(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,ym(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Et]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&ym(e.ownerDocument.body)}n=i}while(n);Wh(t)}function Ep(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Dp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Op(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function kp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Ap(e){return kp(e.getBoundingClientRect(),getComputedStyle(e),e)}function jp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return kp(t,n,e)}function Mp(e){return e.documentElement.clientHeight}function Np(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Pp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Mp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Qm(f),u>th){s.length=o;break}f=new Promise(Np.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Fp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Fp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Fp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Fp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Ip(e){return{name:e,group:new Fp(`group`,e),imagePair:new Fp(`image-pair`,e),old:new Fp(`old`,e),new:new Fp(`new`,e)}}function Lp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Lp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Hp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Bp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,Rp,e,s,r)}this._eventListeners=a}};function Rp(e,t,n,r){return v(e).addEventListener(t,n,r),!1}Lp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Hp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Bp(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,zp,e,n,i),r.splice(t,1),a!==null&&a()}};function zp(e,t,n,r){return v(e).removeEventListener(t,n,r),!1}function Bp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Vp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Hp(e,t,n,r){if(e.length===0)return-1;r=Vp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Vp(a.optionsOrUseCapture)===r)return i}return-1}Lp.prototype.dispatchEvent=function(e){var t=m(this._fragmentFiber);if(t===null)return!0;t=v(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Lp.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Up,e,void 0,void 0)};function Up(e,t){return e.tag!==6&&(e=v(e),hm(e,t))}Lp.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Wp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Up(t[n],e);n--);};function Wp(e,t){return t.push(e),!1}Lp.prototype.blur=function(){var e=m(this._fragmentFiber);e!==null&&(e=v(e),e=dp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Gp,e,void 0,void 0))};function Gp(e,t){return e.tag!==6&&(e=v(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Lp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag===6||(e=v(e),t.observe(e)),!1}Lp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,qp,e,void 0,void 0);for(var n=t=0;n<Jp.length;n++){var r=Jp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Jp[t++]=r}Jp.length=t}};function qp(e,t){return e.tag===6||(e=v(e),t.unobserve(e)),!1}var Jp=[],Yp=!1;function Xp(e,t,n){Jp.push({fragmentInstance:e,observer:t,instance:n}),Yp||(Yp=!0,gm(function(){Yp=!1;var e=Jp;Jp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Lp.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,Zp,e,void 0,void 0),e};function Zp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=v(e),t.push.apply(t,e.getClientRects());return!1}Lp.prototype.getRootNode=function(e){var t=m(this._fragmentFiber);return t===null?this:v(t).getRootNode(e)},Lp.prototype.compareDocumentPosition=function(e){var t=m(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,Wp,n,void 0,void 0);var r=v(t);if(n.length===0){if(n=r,h(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=g(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=v(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=v(n[0]),i=v(n[n.length-1]);var a=h(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Qp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Qp(e,t,n,r,i){var a=kt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=m(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=w(n,a,C),t===null?t=!1:(p(t,!0,x,a,n),a=y,y=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=w(r,a,C),t===null?t=!1:(p(t,!0,S,a,r),a=y,b=y=null,t=a!==null)),t):!1}function $p(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Lp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];p(this._fragmentFiber.child,!1,Wp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=g(this._fragmentFiber);if(r=n?r[1]||r[0]||m(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=v(r),$p(e,n);return}if(r=v(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=v(a),$p(a,n)):v(a).scrollIntoView(e),r+=n?-1:1}};function em(e,t){return e=v(e),tm(e,t),!1}function tm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function nm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Jp.length;i++){var a=Jp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Jp[r++]=a)}Jp.length=r,n.observe(e)}),tm(e,t))}function rm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Xp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function im(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:im(n),Ot(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function am(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Et])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=dm(e.nextSibling),e===null)break}return null}function om(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=dm(e.nextSibling),e===null))return null;return e}function sm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=dm(e.nextSibling),e===null))return null;return e}function cm(e){return e.data===`$?`||e.data===`$~`}function lm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function um(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function dm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var fm=null;function pm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return dm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function hm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function gm(e){xp(function(){xp(function(t){return e(t)})})}function _m(e,t,n){switch(t=dp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function vm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&np(e,t,r,null,ap,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===hn&&(e.onclick=null),Ot(e)}function ym(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ot(e)}var bm=new Map,xm=new Set;function Sm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Cm=R.d;R.d={f:wm,r:Tm,D:Om,C:km,L:Am,m:jm,X:Nm,S:Mm,M:Pm};function wm(){var e=Cm.f(),t=Rd();return e||t}function Tm(e){var t=At(e);t!==null&&t.tag===5&&t.type===`form`?Js(t):Cm.r(e)}var Em=typeof document>`u`?null:document;function Dm(e,t,n){var r=Em;if(r&&typeof t==`string`&&t){var i=$t(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xm.has(i)||(xm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),ip(t,`link`,e),Nt(t),r.head.appendChild(t)))}}function Om(e){Cm.D(e),Dm(`dns-prefetch`,e,null)}function km(e,t){Cm.C(e,t),Dm(`preconnect`,e,t)}function Am(e,t,n){Cm.L(e,t,n);var r=Em;if(r&&e&&t){var i=`link[rel="preload"][as="`+$t(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+$t(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+$t(n.imageSizes)+`"]`)):i+=`[href="`+$t(e)+`"]`;var a=i;switch(t){case`style`:a=Im(e);break;case`script`:a=Bm(e)}if(!(bm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),bm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lm(a))||t===`script`&&r.querySelector(Vm(a))))){var o=r.createElement(`link`);ip(o,`link`,e),t===`style`&&(o[Dt]=!0,o.onload=o.onerror=function(){Pt(o)}),Nt(o),r.head.appendChild(o)}}}function jm(e,t){Cm.m(e,t);var n=Em;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+$t(r)+`"][href="`+$t(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bm(e)}if(!bm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),bm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vm(a)))return}r=n.createElement(`link`),ip(r,`link`,e),Nt(r),n.head.appendChild(r)}}}function Mm(e,t,n){Cm.S(e,t,n);var r=Em;if(r&&e){var i=Mt(r).hoistableStyles,a=Im(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=bm.get(a))&&Wm(e,n);var c=o=r.createElement(`link`);Nt(c),ip(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Um(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nm(e,t){Cm.X(e,t);var n=Em;if(n&&e){var r=Mt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=T({src:e,async:!0},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Nt(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t){Cm.M(e,t);var n=Em;if(n&&e){var r=Mt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Nt(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t,n,r){var a=(a=ye.current)?Sm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Im(n.href),t=Mt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Im(n.href);var o=Mt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Lm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=bm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},bm.set(e,o)),zm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Bm(n),t=Mt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Im(e){return`href="`+$t(e)+`"`}function Lm(e){return`link[rel="stylesheet"][`+e+`]`}function Rm(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function zm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Dt]){r.loading=1;return}}else t=e.createElement(`link`),t[Dt]=!0,t.onload=t.onerror=Pt.bind(null,t),ip(t,`link`,n),Nt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Bm(e){return`[src="`+$t(e)+`"]`}function Vm(e){return`script[async]`+e}function Hm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+$t(n.href)+`"]`);if(r)return t.instance=r,Nt(r),r;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Nt(r),ip(r,`style`,a),Um(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Im(n.href);var o=e.querySelector(Lm(a));if(o)return t.state.loading|=4,t.instance=o,Nt(o),o;r=Rm(n),(a=bm.get(a))&&Wm(r,a),o=(e.ownerDocument||e).createElement(`link`),Nt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ip(o,`link`,r),t.state.loading|=4,Um(o,n.precedence,e),t.instance=o;case`script`:return o=Bm(n.src),(a=e.querySelector(Vm(o)))?(t.instance=a,Nt(a),a):(r=n,(a=bm.get(o))&&(r=T({},n),Gm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Nt(a),ip(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Um(r,n.precedence,e));return t.instance}function Um(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Km=null;function qm(e,t,n){if(Km===null){var r=new Map,i=Km=new Map;i.set(n,r)}else i=Km,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Et]||a[yt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Jm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Ym(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Xm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Zm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function $m(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Qm(t),e.suspenseyImages.push(t)),e=ah.bind(e),t.decode().then(e,e))}function eh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Im(r.href),a=t.querySelector(Lm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ih.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Nt(a);return}a=t.ownerDocument||t,r=Rm(r),(i=bm.get(i))&&Wm(r,i),a=a.createElement(`link`),Nt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ip(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ih.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var th=0;function nh(e,t){return e.stylesheets&&e.count===0&&sh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&th===0&&(th=62500*cp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>th?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)sh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ih(){this.count--,rh(this)}function ah(){this.imgCount--,rh(this)}var oh=null;function sh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oh=new Map,t.forEach(ch,e),oh=null,ih.call(e))}function ch(e,t){if(!(t.state.loading&4)){var n=oh.get(e);if(n)var r=n.get(null);else{n=new Map,oh.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=ih.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var lh={$$typeof:N,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function uh(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ct(0),this.hiddenUpdates=ct(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function dh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new uh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ei(3,null,null,t),e.current=a,a.stateNode=e,t=Ea(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},co(a),e}function fh(e){return e?(e=wi,e):wi}function ph(e,t,n,r,i,a){i=fh(i),r.context===null?r.context=i:r.pendingContext=i,r=uo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=fo(e,r,t),n!==null&&(Nd(n,e,t),po(n,e,t))}function mh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hh(e,t){mh(e,t),(e=e.alternate)&&mh(e,t)}function gh(e){if(e.tag===13||e.tag===31){var t=xi(e,67108864);t!==null&&Nd(t,e,67108864),hh(e,67108864)}}function _h(e){if(e.tag===13||e.tag===31){var t=Ad();t=mt(t);var n=xi(e,t);n!==null&&Nd(n,e,t),hh(e,t)}}var vh=!0;function yh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=2,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function bh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=8,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function xh(e,t,n,r){if(vh){var i=Sh(r);if(i===null)qf(e,t,r,Ch,n),Ph(e,r);else if(Ih(i,e,t,n,r))r.stopPropagation();else if(Ph(e,r),t&4&&-1<Nh.indexOf(e)){for(;i!==null;){var a=At(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=nt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ye(o);s.entanglements[1]|=c,o&=~c}Ef(a),!(Yu&6)&&(gd=Le()+500,Df(0,!1))}}break;case 31:case 13:s=xi(a,2),s!==null&&Nd(s,a,2),Rd(),hh(a,2)}if(a=Sh(r),a===null&&qf(e,t,r,Ch,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else qf(e,t,r,null,n)}}function Sh(e){return e=_n(e),wh(e)}var Ch=null;function wh(e){if(Ch=null,e=kt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ch=e,null}function Th(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Re()){case ze:return 2;case Be:return 8;case Ve:case He:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var Eh=!1,Dh=null,Oh=null,kh=null,Ah=new Map,jh=new Map,Mh=[],Nh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Ph(e,t){switch(e){case`focusin`:case`focusout`:Dh=null;break;case`dragenter`:case`dragleave`:Oh=null;break;case`mouseover`:case`mouseout`:kh=null;break;case`pointerover`:case`pointerout`:Ah.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:jh.delete(t.pointerId)}}function Fh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=At(t),t!==null&&gh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ih(e,t,n,r,i){switch(t){case`focusin`:return Dh=Fh(Dh,e,t,n,r,i),!0;case`dragenter`:return Oh=Fh(Oh,e,t,n,r,i),!0;case`mouseover`:return kh=Fh(kh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ah.set(a,Fh(Ah.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,jh.set(a,Fh(jh.get(a)||null,e,t,n,r,i)),!0}return!1}function Lh(e){var t=kt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,_t(e.priority,function(){_h(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,_t(e.priority,function(){_h(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);gn=r,n.target.dispatchEvent(r),gn=null}else return t=At(n),t!==null&&gh(t),e.blockedOn=n,!1;t.shift()}return!0}function zh(e,t,n){Rh(e)&&n.delete(t)}function Bh(){Eh=!1,Dh!==null&&Rh(Dh)&&(Dh=null),Oh!==null&&Rh(Oh)&&(Oh=null),kh!==null&&Rh(kh)&&(kh=null),Ah.forEach(zh),jh.forEach(zh)}function Vh(e,n){e.blockedOn===n&&(e.blockedOn=null,Eh||(Eh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bh)))}var Hh=null;function Uh(e){Hh!==e&&(Hh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Hh===e&&(Hh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(wh(r||n)===null)continue;break}var a=At(n);a!==null&&(e.splice(t,3),t-=3,Ks(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Wh(e){function t(t){return Vh(t,e)}Dh!==null&&Vh(Dh,e),Oh!==null&&Vh(Oh,e),kh!==null&&Vh(kh,e),Ah.forEach(t),jh.forEach(t);for(var n=0;n<Mh.length;n++){var r=Mh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Mh.length&&(n=Mh[0],n.blockedOn===null);)Lh(n),n.blockedOn===null&&Mh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[bt]||null;if(typeof a==`function`)o||Uh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[bt]||null)s=o.formAction;else if(wh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Uh(n)}}}function Gh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Kh(e){this._internalRoot=e}qh.prototype.render=Kh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ph(n,Ad(),e,t,null,null)},qh.prototype.unmount=Kh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ph(e.current,2,null,e,null,null),Rd(),t[xt]=null}};function qh(e){this._internalRoot=e}qh.prototype.unstable_scheduleHydration=function(e){if(e){var t=gt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mh.length&&t!==0&&t<Mh[n].priority;n++);Mh.splice(n,0,e),n===0&&Lh(e)}};var Jh=n.version;if(Jh!==`19.3.0`)throw Error(i(527,Jh,`19.3.0`));R.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Yh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xh.isDisabled&&Xh.supportsFiber)try{Ke=Xh.inject(Yh),qe=Xh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=hc,s=gc,c=_c;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=dh(e,1,!1,null,null,n,r,null,o,s,c,Gh),e[xt]=t.current,Gf(e),new Kh(t)}})),Mc=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=jc()}))();Object.freeze({settings:[],manifest:[],capabilities:[]});function Nc(e){return e!==void 0&&e.settings.length+e.manifest.length+e.capabilities.length>0}function Pc(e){return e.settings.length>0?`Settings changed: re-initialise to apply`:`Package changed: re-initialise to apply`}function Fc(e){let t=e=>e.map(e=>`"${e}"`).join(`, `);return`Changed on disk since the session started: ${[...e.settings.length>0?[`settings ${t(e.settings)}`]:[],...e.manifest.length>0?[`seriousgaming.sdk.json ${t(e.manifest)}`]:[],...e.capabilities.length>0?[`the scope or presence of capabilities ${t(e.capabilities)}`]:[]].join(`; `)}. These apply only when the session initialises, so it is still running on what it started with`}var Ic=[[/^\/walkthrough\/?$/,()=>({kind:`player`,teamIndex:0,participant:1})],[/^\/team\/(\d+)\/player\/(\d+)\/?$/,e=>Lc(e[1],e[2])],[/^\/team\/(\d+)\/player\/?$/,e=>Lc(e[1],`1`)],[/^\/team\/(\d+)\/observe\/?$/,e=>({kind:`observer`,teamIndex:Rc(e[1])})],[/^\/team\/(\d+)\/join\/?$/,e=>({kind:`join`,teamIndex:Rc(e[1])})],[/^\/team\/(\d+)\/waiting-room\/?$/,e=>({kind:`waiting-room`,teamIndex:Rc(e[1])})],[/^\/setup\/?$/,()=>({kind:`setup`})],[/^\/scenario-editor\/?$/,()=>({kind:`scenario-editor`})],[/^\/guide\/?$/,()=>({kind:`guide`})],[/^\/print\/?$/,()=>({kind:`print`})],[/^\/presentation\/?$/,()=>({kind:`presentation`})]];function Lc(e,t){return{kind:`player`,teamIndex:Rc(e),participant:Math.max(1,Number(t))}}function Rc(e){return Math.max(0,Number(e)-1)}function zc(e,t){let n=new URLSearchParams(t),r=n.has(`bare`),i=n.has(`preview`),a=n.get(`scenario`),o=/^\/walkthrough(\/|$)/.test(e)?`walkthrough`:`session`;for(let[t,n]of Ic){let s=e.match(t);if(s)return{...n(s),bare:r,run:o,...a===null?{}:{scenario:a},...i?{preview:i}:{}}}return{kind:`console`,bare:r,run:o}}function Bc(e){let t=(e.teamIndex??0)+1,n=e.run===`walkthrough`?`/walkthrough`:e.kind===`player`?`/team/${t}/player/${e.participant??1}`:e.kind===`observer`?`/team/${t}/observe`:e.kind===`join`?`/team/${t}/join`:e.kind===`waiting-room`?`/team/${t}/waiting-room`:e.kind===`console`?`/`:`/${e.kind}`,r=new URLSearchParams;e.scenario!==void 0&&r.set(`scenario`,e.scenario),e.preview&&r.set(`preview`,``),e.bare&&r.set(`bare`,``);let i=r.toString().replace(/(bare|preview)=(?=&|$)/g,`$1`);return i?`${n}?${i}`:n}function Vc(e){let t=e.teams;return{maxTicks:e.maxTicks??null,teams:{min:t?.min??null,max:t?.max??null,perTeam:{minParticipants:t?.perTeam?.minParticipants??null,maxParticipants:t?.perTeam?.maxParticipants??null},defaultNames:t?.defaultNames??[]},waitingRoom:{openOnStart:e.waitingRoom?.openOnStart===!0}}}function Hc(e){let t=Vc({}),n=e.game??{};return{maxTicks:n.maxTicks??null,teams:{min:n.teams?.min??null,max:n.teams?.max??null,perTeam:{minParticipants:n.teams?.perTeam?.minParticipants??null,maxParticipants:n.teams?.perTeam?.maxParticipants??null},defaultNames:n.teams?.defaultNames??t.teams.defaultNames},waitingRoom:{openOnStart:n.waitingRoom?.openOnStart===!0}}}function Uc(e,t){let n=new Set([...t.reads,...t.writes]),r={};for(let[t,i]of Object.entries(e))n.has(t)&&(r[t]=i);return r}function Wc(e,t,{withoutSession:n=!1}={}){let r=n?e.settingsWithoutSession:e.settings;return Object.fromEntries(t.settings.filter(e=>e in r).map(e=>[e,r[e]]))}function Gc(e,t,n){let r=n.scenario??null,i=e.scenarioDrafts?.find(e=>e.scenarioId===r)?.settings??{};return Object.fromEntries(t.settings.filter(e=>e in i).map(e=>[e,i[e]]))}function Kc(e,t,{sessionless:n=!1}={}){return t.kind===`scenario-editor`||t.kind===`presentation`&&n?`outside-session:${e.game.identifier}`:e.session.sessionKey}function qc(e){return[{type:`setTheme`,payload:e.palette},{type:`themePreferenceChanged`,preference:e.preference}]}function Jc(e){return{blobPrefix:`${e}/assets/blobs/`,scenarioAssetPrefix:`${e}/assets/scenario/`,sharedAssetPrefix:`${e}/assets/shared/`,assetAuthRedeemUrl:`${e}/assets/auth/redeem`}}function Yc(e,t){return t===void 0?e.teams[0]:e.teams.find(e=>e.index===t)}function Xc(e){return[...e.teams].sort((e,t)=>e.index-t.index).map(e=>({teamId:e.teamId,index:e.index,name:e.name}))}var Zc={enabled:!1,paused:!1,nextTickAt:null,intervalMs:null,pausedAt:null,pausedMs:0,extendedMs:0,scheduleStartedAt:null};function Qc(e){let{surface:t,state:n,theme:r,origin:i,assetOrigin:a}=e,o=[{type:`setLocale`,payload:{locale:n.session.locale}},{type:`setAssetUrls`,payload:Jc(a??i)},...r?qc(r):[]];switch(t.kind){case`game`:case`waiting-room`:return[...tl(e),...o];case`session`:return[...nl(e),...o];case`setup`:return[{type:`setSettings`,payload:Wc(n,t)},...o];case`scenario-editor`:return[{type:`setSettings`,payload:Gc(n,t,e.viewer)},...o];case`presentation`:return[...rl(e),...o]}return o}function $c(e,t,n){let r=new Set(t.crossTeamReads);return[...e.teams].sort((e,t)=>e.index-t.index).map(e=>({teamId:e.teamId,index:e.index,name:e.name,context:e.index===n?Uc(e.context,t):Object.fromEntries(Object.entries(e.context).filter(([e])=>r.has(e)))}))}function el(e,t){return`${e}/team/${t+1}/join?bare`}function tl({surface:e,state:t,viewer:n,origin:r,roundProcessing:i}){let a=Yc(t,n.teamIndex),o=n.observer?void 0:a?.participants.find(e=>e.id===n.participantId)??a?.participants[0],s=[{type:`stateChanged`,payload:Uc(a?.context??{},e),completedTicks:a?.completedTicks??t.session.completedTicks},{type:`setSettings`,payload:Wc(t,e)}];return o&&s.push({type:`setParticipant`,payload:{id:o.id,name:o.name,index:o.index,teamId:a?.teamId??`team-1`}}),s.push({type:`setViewerRole`,role:n.observer?`observer`:`participant`},{type:`setRunKind`,runKind:t.session.runKind},{type:`setOwnTeam`,payload:a?{teamId:a.teamId,index:a.index,name:a.name}:{teamId:`team-1`,index:0,name:`Team 1`}},{type:`setOwnTeamJoinLink`,payload:a?{joinUrl:el(r,a.index)}:null},{type:`setParticipantList`,participants:a?.participants??[]},{type:`setTeamList`,payload:Xc(t)},{type:`setTimer`,payload:a?.timer??Zc}),e.kind===`game`&&s.push({type:`setRoundProcessing`,processing:i===!0}),(e.kind===`game`||e.kind===`waiting-room`)&&e.crossTeamReads.length>0&&t.session.mode===`shared-state`&&s.push({type:`setCrossTeamData`,payload:$c(t,e,a?.index)}),s}function nl({surface:e,state:t,gameName:n,origin:r,hasGuide:i}){return[{type:`setSessionMeta`,payload:{sessionId:`dev-session`,name:n,readOnly:!1,waitingRoomOpen:t.session.waitingRoomOpen,joinPin:null}},{type:`setSessionData`,payload:cl(t,e)},{type:`setSettings`,payload:Wc(t,e)},{type:`setTeamConfiguration`,payload:sl(t)},{type:`setTeamList`,payload:Xc(t)},{type:`setParticipantList`,participants:t.teams.flatMap(e=>e.participants.map(t=>({id:t.id,name:t.name,index:t.index,connected:t.connected,teamId:e.teamId})))},{type:`setTeamLinks`,payload:ol(t,r)},{type:`setWalkthroughLink`,payload:il(r)},{type:`setRunKind`,runKind:t.session.runKind},{type:`setAvailableOverlays`,overlays:al(i)}]}function rl({surface:e,state:t,gameName:n,sessionless:r,scenarioName:i}){return[{type:`setPresentation`,payload:{game:{name:t.game.name,maxTicks:r?Hc(t.settingsWithoutSession).maxTicks:t.session.maxTicks,mode:t.session.mode,scenarioName:i??null},session:r?null:{id:`dev-session`,name:n,completedTicks:Math.max(t.session.completedTicks,...t.teams.map(e=>e.completedTicks)),data:cl(t,e),teams:Xc(t)}}},{type:`setSettings`,payload:Wc(t,e,{withoutSession:r})}]}function il(e){return{url:`${e}/walkthrough`}}function al(e=!1){return e?[`facilitator-guide`,`print-sheets`]:[`print-sheets`]}function ol(e,t){return[...e.teams].sort((e,t)=>e.index-t.index).map(e=>({teamId:e.teamId,joinUrl:el(t,e.index),observeUrl:`${t}/team/${e.index+1}/observe`}))}function sl(e){return{mode:e.session.mode,...e.session.teamBounds.min===void 0?{}:{min:e.session.teamBounds.min},max:e.session.teamBounds.max}}function cl(e,t){let n={};for(let r of e.teams){let i={};for(let[t,n]of Object.entries(r.context))t in e.shared||(i[t]=n);n[r.teamId]={context:Uc(i,t),completedTicks:r.completedTicks,timer:r.timer??Zc,revision:r.completedTicks}}return{shared:{context:Uc(e.shared,t),revision:e.session.completedTicks},teams:n}}function ll(e,t){let n={...t.teamIndex===void 0?{}:{teamIndex:t.teamIndex},...t.kind===`observer`?{observer:!0,role:`observer`}:{}};if(t.kind!==`player`||t.teamIndex===void 0)return{kind:`viewer`,viewer:n};let r=e.teams.find(e=>e.index===t.teamIndex);if(!r)return{kind:`no-such-team`,teamIndex:t.teamIndex};let i=t.participant??1,a=r.participants[i-1];return a?{kind:`viewer`,viewer:{...n,participantId:a.id,role:`participant`}}:{kind:`no-such-participant`,teamIndex:t.teamIndex,slot:i,held:r.participants.length}}var ul={console:`session`,player:`game`,observer:`game`,"waiting-room":`waiting-room`,setup:`setup`,"scenario-editor":`scenario-editor`,presentation:`presentation`},dl=new Set([`console`,`player`,`observer`,`waiting-room`,`join`,`setup`]);function fl(e){return e.bare&&dl.has(e.kind)}function pl(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function ml(e){return zr(`MuiSvgIcon`,e)}U(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var hl=e=>{let{color:t,fontSize:n,classes:r}=e;return W({root:[`root`,t!==`inherit`&&`color${Y(t)}`,`fontSize${Y(n)}`]},ml,r)},gl=K(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${Y(n.color)}`],t[`fontSize${Y(n.fontSize)}`]]}})(J(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,...qs(e,`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),_l=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=E.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=hl(m);return(0,V.jsxs)(gl,{as:o,className:H(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,V.jsx)(`title`,{children:u}):null]})});_l.muiName=`SvgIcon`;function vl(e,t){function n(t,n){return(0,V.jsx)(_l,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=_l.muiName,E.memo(E.forwardRef(n))}var yl=ls,bl=pa,xl=ps;function Sl(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var Cl=zi;function wl(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=E.useRef(t!==void 0),[o,s]=E.useState(n);return[a?t:o,E.useCallback(e=>{a||s(e)},[])]}var Tl=wl,El=ds;function Dl(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Ol(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Dl(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=H(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=H(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var kl={};function Al(e,t){let n=E.useRef(kl);return n.current===kl&&(n.current=e(t)),n}function jl(e){let t=Al(()=>Ml(e)).current;return t.next=e,ti(t.effect),t}function Ml(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Nl=E.createContext(null);function Pl(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e==`number`)return{appear:e,enter:e,exit:e};let t=e.enter,n=e.exit;return{appear:e.appear===void 0?t:e.appear,enter:t,exit:n}}function Fl(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=Pl(e.timeout);return e.currentStatus===`entering`?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function Il(e){let{in:t=!1,appear:n=!1,enter:r=!0,exit:i=!0,mountOnEnter:a=!1,unmountOnExit:o=!1,timeout:s,addEndListener:c,reduceMotion:l=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,children:v,...y}=e,b=E.useContext(Nl),x=b&&!b.isMounting?r:n,[S,C]=E.useState(()=>t?x?`exited`:`entered`:a||o?`unmounted`:`exited`),w=E.useRef(S);w.current=S,t&&S===`unmounted`&&(w.current=`exited`,C(`exited`));let T=E.useRef(t&&x),D=E.useRef(!1),O=E.useRef(null),k=E.useRef(S),A=E.useRef(!1),j=E.useRef(l),M=jl({timeout:s,addEndListener:c,reduceMotion:l,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,enter:r,exit:i,mountOnEnter:a,unmountOnExit:o,nodeRef:d,parentGroup:b}),N=E.useCallback(()=>{O.current!==null&&(O.current.cancel(),O.current=null)},[]),P=E.useCallback(e=>{let t=!0,n=()=>{t&&(t=!1,O.current=null,e())};return n.cancel=()=>{t=!1},O.current=n,n},[]),F=E.useCallback((e,t)=>{let n,r=()=>{n!==void 0&&(clearTimeout(n),n=void 0)},i=P(()=>{r(),w.current=e,C(e)}),a=i.cancel;i.cancel=()=>{r(),a()};let o=M.current.nodeRef.current,s=M.current.addEndListener,c=M.current.getAutoTimeout!==void 0,l=M.current.getAutoTimeout?.(),u=Fl({currentStatus:t,isAppearing:A.current,timeout:M.current.timeout,autoTimeout:l}),d=j.current,f=u??(d&&c?0:null),p=e=>{n=setTimeout(i,e)};o?s?(f!=null&&p(d?0:f),s.length>=2?s(o,i):s(i)):p(d?0:u??0):p(0)},[P,M]),ee=E.useCallback(e=>{let t=M.current,n=t.parentGroup?t.parentGroup.isMounting:e;A.current=n,!e&&!t.enter?(w.current=`entered`,C(`entered`)):(j.current=t.reduceMotion,t.onEnter?.(n),w.current=`entering`,C(`entering`))},[M]),te=E.useCallback(()=>{let e=M.current;e.exit?(j.current=e.reduceMotion,e.onExit?.(),w.current=`exiting`,C(`exiting`)):(w.current=`exited`,C(`exited`))},[M]),I=E.useCallback((e,t)=>{if(N(),t===`entering`){let t=M.current;if(t.mountOnEnter||t.unmountOnExit){let e=t.nodeRef.current;e&&Ns(e)}ee(e)}else te()},[N,ee,te,M]);return ti(()=>(D.current=!0,T.current&&(T.current=!1,I(!0,`entering`)),()=>{D.current=!1,N()}),[N,I]),ti(()=>{if(!D.current)return;let e=w.current;t?e!==`entering`&&e!==`entered`&&I(!1,`entering`):e===`entering`||e===`entered`?I(!1,`exiting`):e===`exited`&&o&&(w.current=`unmounted`,C(`unmounted`))},[t,S,o,I]),ti(()=>{if(S===`unmounted`||k.current===`unmounted`){k.current=S;return}let e=k.current!==S;e&&(k.current=S);let t=M.current;S===`entering`?(e&&t.onEntering?.(A.current),O.current===null&&w.current===S&&F(`entered`,`entering`)):S===`exiting`?(e&&t.onExiting?.(),O.current===null&&w.current===S&&F(`exited`,`exiting`)):S===`entered`&&e?t.onEntered?.(A.current):S===`exited`&&e&&t.onExited?.()},[M,F,S]),S===`unmounted`?null:(0,V.jsx)(Nl.Provider,{value:null,children:v(S,y)})}var Ll=`(prefers-reduced-motion: reduce)`,Rl=0,zl=`0ms`,Bl=()=>{},Vl=()=>!1,Hl=()=>!0,Ul=()=>Bl;function Wl(e){let[t,n]=E.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),ti(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(Ll),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var Gl={...E}.useSyncExternalStore;function Kl(e){let t=e?Hl:Vl,[n,r]=E.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[Vl,Ul];let t=window.matchMedia(Ll);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return Gl(r,n,t)}var ql=Gl===void 0?Wl:Kl;function Jl(e,t){let n=ql(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return E.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:Rl,delay:zl}:e}}),[r])}function Yl(e,t,n){return e===void 0||cs(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Xl(e,t,n){return typeof e==`function`?e(t,n):e}function Zl(e){if(e===void 0)return{};let t={};for(let n of Object.keys(e))Dl(n,e[n])&&(t[n]=e[n]);return t}function Ql(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function $l(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=H(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=Zl({...i,...r}),s=Ql(r),c=Ql(i),l=t(o),u=H(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function X(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Xl(d[e],i),{props:{component:h,...g},internalRef:_}=$l({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=us(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Yl(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function eu(e){return zr(`MuiPaper`,e)}U(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var tu=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return W({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},eu,i)},nu=K(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(J(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...qs(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),ru=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiPaper`}),r=Yo(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=tu(u);return(0,V.jsx)(nu,{as:a,ownerState:u,className:H(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${gi(`#fff`,ko(o))}, ${gi(`#fff`,ko(o))})`}},...l.style}})});function iu(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function au(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return E.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var ou={};function su(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=E.useRef(null),m=l===!0,h=au({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=E.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),_=E.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:E.useCallback((e=ou)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{u&&e.stopPropagation(),a?e.preventDefault():t?.(e)},s=e=>{m&&h.onKeyDown(e),!a&&(d?.(e),n?.(e),!(e.target!==e.currentTarget||g())&&(e.key===` `?e.preventDefault():e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())))},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var cu=class e{static create(){return new e}static use(){let t=Al(e.create).current,[n,r]=E.useState(!1);return t.shouldMount=n,t.setShouldMount=r,E.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=uu(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function lu(){return cu.use()}function uu(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var du=[];function fu(e){E.useEffect(e,du)}var pu=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function mu(){let e=Al(pu.create).current;return fu(e.disposeEffect),e}function hu(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=E.useState(!1),f=mu(),p=E.useRef(!1),m=E.useRef(c);m.current=c;let h=c!=null,g=H(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=H(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),E.useEffect(()=>{!s&&h?p.current||(p.current=!0,f.start(l,()=>{p.current=!1,m.current?.()})):(p.current=!1,f.clear())},[f,h,s,l]),(0,V.jsx)(`span`,{className:g,style:_,children:(0,V.jsx)(`span`,{className:v})})}var gu=U(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),_u=550,vu={},yu=[],bu=()=>{};function xu(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function Su({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var Cu=sr`
|
|
49
|
+
0% {
|
|
50
|
+
transform: scale(0);
|
|
51
|
+
opacity: 0.1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
100% {
|
|
55
|
+
transform: scale(1);
|
|
56
|
+
opacity: 0.3;
|
|
57
|
+
}
|
|
58
|
+
`,wu=sr`
|
|
59
|
+
0% {
|
|
60
|
+
opacity: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
100% {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
}
|
|
66
|
+
`,Tu=sr`
|
|
67
|
+
0% {
|
|
68
|
+
transform: scale(1);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
50% {
|
|
72
|
+
transform: scale(0.92);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
100% {
|
|
76
|
+
transform: scale(1);
|
|
77
|
+
}
|
|
78
|
+
`;function Eu(e){if(e.motion.reducedMotion===`always`)return null;let t=or`
|
|
79
|
+
&.${gu.rippleVisible} {
|
|
80
|
+
animation-name: ${Cu};
|
|
81
|
+
animation-duration: ${_u}ms;
|
|
82
|
+
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.${gu.ripplePulsate} {
|
|
86
|
+
animation-duration: ${e.transitions.duration.shorter}ms;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
& .${gu.childLeaving} {
|
|
90
|
+
animation-name: ${wu};
|
|
91
|
+
animation-duration: ${_u}ms;
|
|
92
|
+
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
& .${gu.childPulsate} {
|
|
96
|
+
animation-name: ${Tu};
|
|
97
|
+
animation-duration: 2500ms;
|
|
98
|
+
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
99
|
+
animation-iteration-count: infinite;
|
|
100
|
+
animation-delay: 200ms;
|
|
101
|
+
}
|
|
102
|
+
`;return e.motion.reducedMotion===`system`?or`
|
|
103
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
104
|
+
${t}
|
|
105
|
+
}
|
|
106
|
+
`:t}var Du=K(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Ou=K(hu,{name:`MuiTouchRipple`,slot:`Ripple`})`
|
|
107
|
+
opacity: 0;
|
|
108
|
+
position: absolute;
|
|
109
|
+
|
|
110
|
+
&.${gu.rippleVisible} {
|
|
111
|
+
opacity: 0.3;
|
|
112
|
+
transform: scale(1);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/*
|
|
116
|
+
* Order matters: 'child', 'childLeaving' and 'childPulsate' apply to the same
|
|
117
|
+
* element with equal specificity, so the later rule wins. 'child' must come
|
|
118
|
+
* before 'childLeaving' so the leaving 'opacity: 0' takes precedence. A focus
|
|
119
|
+
* (pulsate) ripple keeps 'pulsateKeyframe' (no opacity animation) on exit, so
|
|
120
|
+
* it relies on this static 'opacity: 0' to disappear on blur instead of
|
|
121
|
+
* lingering until removal.
|
|
122
|
+
*/
|
|
123
|
+
& .${gu.child} {
|
|
124
|
+
opacity: 1;
|
|
125
|
+
display: block;
|
|
126
|
+
width: 100%;
|
|
127
|
+
height: 100%;
|
|
128
|
+
border-radius: 50%;
|
|
129
|
+
background-color: currentColor;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
& .${gu.childLeaving} {
|
|
133
|
+
opacity: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
& .${gu.childPulsate} {
|
|
137
|
+
position: absolute;
|
|
138
|
+
/* @noflip */
|
|
139
|
+
left: 0px;
|
|
140
|
+
top: 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
${({theme:e})=>Eu(e)}
|
|
144
|
+
`,ku=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiTouchRipple`}),r=Jl(Yo().motion.reducedMotion,!1),{center:i=!1,classes:a=vu,className:o,...s}=n,[c,l]=E.useState({items:yu,order:yu}),u=c.items,d=E.useRef(0),f=E.useRef(null),p=E.useRef(!1);fu(()=>(p.current=!0,()=>{p.current=!1})),E.useEffect(()=>{f.current&&=(f.current(),null)},[u]);let m=E.useRef(!1),h=mu(),g=E.useRef(null),_=E.useRef(null),v=El(e=>{p.current&&l(t=>{let n=t.items.filter(t=>t.key!==e);return{items:n,order:xu(t.order.filter(t=>t!==e),n.filter(e=>!e.exiting).map(e=>e.key))}})}),y=El(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e,o=d.current;d.current+=1,l(e=>{let a=[...e.items,{key:o,pulsate:t,rippleX:n,rippleY:r,rippleSize:i,exiting:!1}];return{items:a,order:xu(e.order,a.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=a}),b=El((e=vu,t=vu,n=bu)=>{let{pulsate:r=!1,center:a=i||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&m.current){m.current=!1;return}e?.type===`touchstart`&&(m.current=!0);let{rippleX:s,rippleY:c,rippleSize:l}=Su({event:e,element:o?null:_.current,center:a});e?.touches?g.current===null&&(g.current=()=>{y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})},h.start(80,()=>{g.current&&=(g.current(),null)})):y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})}),x=El(()=>{b(vu,{pulsate:!0})}),S=El((e,t)=>{h.clear(),e?.type===`touchend`&&g.current?(g.current(),g.current=null,h.start(0,()=>{S(e,t)})):(g.current=null,l(e=>{let t=e.items.findIndex(e=>!e.exiting);if(t===-1)return e;let n=e.items.slice();return n[t]={...n[t],exiting:!0},{items:n,order:xu(e.order,n.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=t)});E.useImperativeHandle(t,()=>({pulsate:x,start:b,stop:S}),[x,b,S]);let C=new Map(u.map(e=>[e.key,e])),w=c.order.map(e=>C.get(e)).filter(Boolean);return(0,V.jsx)(Du,{className:H(gu.root,a.root,o),ref:_,...s,children:w.map(e=>(0,V.jsx)(Ou,{classes:{ripple:H(a.ripple,gu.ripple),rippleVisible:H(a.rippleVisible,gu.rippleVisible),ripplePulsate:H(a.ripplePulsate,gu.ripplePulsate),child:H(a.child,gu.child),childLeaving:H(a.childLeaving,gu.childLeaving),childPulsate:H(a.childPulsate,gu.childPulsate)},timeout:r.shouldReduceMotion?0:_u,pulsate:e.pulsate,rippleX:e.rippleX,rippleY:e.rippleY,rippleSize:e.rippleSize,in:!e.exiting,onExited:()=>v(e.key)},e.key))})});function Au(e){return zr(`MuiButtonBase`,e)}var ju=U(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),Mu=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=W({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},Au,a);return n&&!i&&r&&(o.root+=` ${r}`),o},Nu=K(`button`,{name:`MuiButtonBase`,slot:`Root`})(J(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${ju.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`},variants:[{props:{internalDisabledThemeFocusVisible:!1},style:e.focusVisible&&{...Ja,[`&.${ju.focusVisible}`]:e.focusVisible}}]}))),Pu=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,focusableWhenDisabled:p,suppressFocusVisible:m=!1,internalNativeButton:h,internalDisabledThemeFocusVisible:g=!1,LinkComponent:_=`a`,nativeButton:v,onBlur:y,onClick:b,onContextMenu:x,onDragLeave:S,onFocus:C,onFocusVisible:w,onKeyDown:T,onKeyUp:D,onMouseDown:O,onMouseLeave:k,onMouseUp:A,onTouchEnd:j,onTouchMove:M,onTouchStart:N,tabIndex:P=0,TouchRippleProps:F,touchRippleRef:ee,type:te,...I}=n,ne=!!(I.href||I.to),re=!!I.formAction,ie=s;ie===`button`&&ne&&(ie=_);let ae=typeof ie==`string`?ie===`button`:h??!1,oe=v??ae,se=lu(),ce=xs(se.ref,ee),[le,ue]=E.useState(!1);(c||m)&&le&&ue(!1);let de=El(e=>{d&&!e.repeat&&le&&e.key===` `&&se.stop(e,()=>{se.start(e)})}),L=El(e=>{d&&e.key===` `&&le&&!e.defaultPrevented&&se.stop(e,()=>{se.pulsate(e)})}),{getButtonProps:R,rootRef:fe}=su({nativeButton:oe,nativeButtonProp:v,internalNativeButton:ae,allowInferredHostMismatch:ne||typeof ie==`string`,disabled:c,type:te,hasFormAction:re,tabIndex:P,onBeforeKeyDown:de,onBeforeKeyUp:L}),{onClick:pe,onKeyDown:me,onKeyUp:he,...z}=R({onClick:b,onKeyDown:T,onKeyUp:D});E.useImperativeHandle(r,()=>({focusVisible:()=>{ue(!0),fe.current.focus()}}),[fe]);let ge=se.shouldMount&&!l&&!c;E.useEffect(()=>{le&&d&&!l&&se.pulsate()},[l,d,le,se]);let _e=Fu(se,`start`,O,u),ve=Fu(se,`stop`,x,u),ye=Fu(se,`stop`,S,u),be=Fu(se,`stop`,A,u),xe=Fu(se,`stop`,e=>{le&&e.preventDefault(),k&&k(e)},u),Se=Fu(se,`start`,N,u),Ce=Fu(se,`stop`,j,u),we=Fu(se,`stop`,M,u),Te=Fu(se,`stop`,e=>{iu(e.target)||ue(!1),y&&y(e)},!1),Ee=El(e=>{fe.current||=e.currentTarget,!m&&iu(e.target)&&(ue(!0),w&&w(e)),C&&C(e)}),De={};ne&&(De.tabIndex=c?-1:P,c&&(De[`aria-disabled`]=c),De.type=te);let Oe=xs(t,fe),ke={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,suppressFocusVisible:m,tabIndex:P,focusVisible:le,internalDisabledThemeFocusVisible:g},Ae=Mu(ke);return(0,V.jsxs)(Nu,{as:ie,className:H(Ae.root,o),ownerState:ke,onBlur:Te,onClick:pe,onContextMenu:ve,onFocus:Ee,onKeyDown:me,onKeyUp:he,onMouseDown:_e,onMouseLeave:xe,onMouseUp:be,onDragLeave:ye,onTouchEnd:Ce,onTouchMove:we,onTouchStart:Se,ref:Oe,...ne?De:z,...I,children:[a,ge?(0,V.jsx)(ku,{ref:ce,center:i,...F}):null]})});function Fu(e,t,n,r=!1){return El(i=>(n&&n(i),r||e[t](i),!0))}function Iu(e){return typeof e.main==`string`}function Lu(e,t=[]){if(!Iu(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function Ru(e=[]){return([,t])=>t&&Lu(t,e)}function zu(e){return zr(`MuiAlert`,e)}var Bu=U(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]);function Vu(e){return zr(`MuiCircularProgress`,e)}U(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var Hu=44,Uu=sr`
|
|
145
|
+
0% {
|
|
146
|
+
transform: rotate(0deg);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
100% {
|
|
150
|
+
transform: rotate(360deg);
|
|
151
|
+
}
|
|
152
|
+
`,Wu=sr`
|
|
153
|
+
0% {
|
|
154
|
+
stroke-dasharray: 1px, 200px;
|
|
155
|
+
stroke-dashoffset: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
50% {
|
|
159
|
+
stroke-dasharray: 100px, 200px;
|
|
160
|
+
stroke-dashoffset: -15px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
100% {
|
|
164
|
+
stroke-dasharray: 1px, 200px;
|
|
165
|
+
stroke-dashoffset: -126px;
|
|
166
|
+
}
|
|
167
|
+
`,Gu=typeof Uu==`string`?null:or`
|
|
168
|
+
animation: ${Uu} 1.4s linear infinite;
|
|
169
|
+
`,Ku=typeof Wu==`string`?null:or`
|
|
170
|
+
animation: ${Wu} 1.4s ease-in-out infinite;
|
|
171
|
+
`,qu=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return W({root:[`root`,n,`color${Y(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},Vu,t)},Ju=K(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Y(n.color)}`]]}})(J(({theme:e})=>{let t=Ks(e,{animation:`none`});return{display:`inline-block`,variants:[{props:{variant:`determinate`},style:{...qs(e,`transform`)}},{props:{variant:`indeterminate`},style:Gu||{animation:`${Uu} 1.4s linear infinite`}},...t?[{props:{variant:`indeterminate`},style:t}]:[],...Object.entries(e.palette).filter(Ru()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),Yu=K(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),Xu=K(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(J(({theme:e})=>{let t=Ks(e,{animation:`none`});return{stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{...qs(e,`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:Ku||{animation:`${Wu} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:t}]:[]]}})),Zu=K(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(J(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),Qu=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,min:s,max:c,size:l=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p=`indeterminate`,...m}=n,h=s??0,g=c??100,_={...n,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:p,enableTrackSlot:o},v=qu(_),y={},b={},x={};if(p===`determinate`){let e=2*Math.PI*((Hu-d)/2),t=g-h;y.strokeDasharray=e.toFixed(3),y.strokeDashoffset=t>0?`${((g-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,b.transform=`rotate(-90deg)`,x[`aria-valuenow`]=f,x[`aria-valuemin`]=h,x[`aria-valuemax`]=g}return(0,V.jsx)(Ju,{className:H(v.root,r),style:{width:l,height:l,...b,...u},ownerState:_,ref:t,role:`progressbar`,...x,...m,children:(0,V.jsxs)(Yu,{className:v.svg,ownerState:_,viewBox:`${Hu/2} ${Hu/2} ${Hu} ${Hu}`,children:[o?(0,V.jsx)(Zu,{className:v.track,ownerState:_,cx:Hu,cy:Hu,r:(Hu-d)/2,fill:`none`,strokeWidth:d,"aria-hidden":`true`}):null,(0,V.jsx)(Xu,{className:v.circle,style:y,ownerState:_,cx:Hu,cy:Hu,r:(Hu-d)/2,fill:`none`,strokeWidth:d})]})})});function $u(e){return zr(`MuiIconButton`,e)}var ed=U(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),td=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return W({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${Y(r)}`,i&&`edge${Y(i)}`,`size${Y(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},$u,t)},nd=K(Pu,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Y(n.color)}`],n.edge&&t[`edge${Y(n.edge)}`],t[`size${Y(n.size)}`]]}})(J(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,...qs(e,`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),J(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(Ru()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${ed.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${ed.loading}`]:{color:`transparent`}}))),rd=K(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),id=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=Cl(u),h=f??(0,V.jsx)(Qu,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=td(g);return(0,V.jsxs)(nd,{id:d?m:u,className:H(_.root,a),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,V.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,V.jsx)(rd,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),ad=vl((0,V.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`}),`SuccessOutlined`),od=vl((0,V.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),sd=vl((0,V.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`ErrorOutline`),cd=vl((0,V.jsx)(`path`,{d:`M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z`}),`InfoOutlined`),ld=vl((0,V.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),ud=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return W({root:[`root`,`color${Y(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},zu,i)},dd=K(ru,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(J(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(Ru([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${Bu.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Ru([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${Bu.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(Ru([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{...e.focusVisible&&Ya(`0 0 0 4px ${(e.vars||e).palette.background.default}`),fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),fd=K(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),pd=K(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),md=K(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),hd={success:(0,V.jsx)(ad,{fontSize:`inherit`}),warning:(0,V.jsx)(od,{fontSize:`inherit`}),error:(0,V.jsx)(sd,{fontSize:`inherit`}),info:(0,V.jsx)(cd,{fontSize:`inherit`})},gd=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,icon:c,iconMapping:l=hd,onClose:u,role:d=`alert`,severity:f=`success`,slotProps:p={},slots:m={},variant:h=`standard`,...g}=n,_={...n,color:s,severity:f,variant:h,colorSeverity:s||f},v=ud(_),y={slots:m,slotProps:p},[b,x]=X(`root`,{ref:t,shouldForwardComponentProp:!0,className:H(v.root,a),elementType:dd,externalForwardedProps:{...y,...g},ownerState:_,additionalProps:{role:d,elevation:0}}),[S,C]=X(`icon`,{className:v.icon,elementType:fd,externalForwardedProps:y,ownerState:_}),[w,T]=X(`message`,{className:v.message,elementType:pd,externalForwardedProps:y,ownerState:_}),[E,D]=X(`action`,{className:v.action,elementType:md,externalForwardedProps:y,ownerState:_}),[O,k]=X(`closeButton`,{elementType:id,externalForwardedProps:y,ownerState:_}),[A,j]=X(`closeIcon`,{elementType:ld,externalForwardedProps:y,ownerState:_});return(0,V.jsxs)(b,{...x,children:[c===!1?null:(0,V.jsx)(S,{...C,children:c||l[f]||hd[f]}),(0,V.jsx)(w,{...T,children:i}),r==null?null:(0,V.jsx)(E,{...D,children:r}),r==null&&u?(0,V.jsx)(E,{...D,children:(0,V.jsx)(O,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:u,...k,children:(0,V.jsx)(A,{fontSize:`small`,...j})})}):null]})});function _d(e){return zr(`MuiTypography`,e)}var vd=U(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`]),yd=e=>{let{align:t,gutterBottom:n,noWrap:r,variant:i,classes:a}=e;return W({root:[`root`,i,e.align!==`inherit`&&`align${Y(t)}`,n&&`gutterBottom`,r&&`noWrap`]},_d,a)},bd=K(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!==`inherit`&&t[`align${Y(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom]}})(J(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(Ru()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${Y(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}}]}))),xd={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},Z=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiTypography`}),{color:r,align:i=`inherit`,className:a,component:o,gutterBottom:s=!1,noWrap:c=!1,variant:l=`body1`,variantMapping:u=xd,...d}=n,f={...n,align:i,color:r,className:a,component:o,gutterBottom:s,noWrap:c,variant:l,variantMapping:u},p=o||u[l]||xd[l]||`span`,m=yd(f);return(0,V.jsx)(bd,{as:p,ref:t,className:H(m.root,a),...d,ownerState:f,style:{...i!==`inherit`&&{"--Typography-textAlign":i},...d.style}})});function Sd(e){return zr(`MuiAppBar`,e)}U(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]);var Cd=e=>{let{color:t,position:n,classes:r}=e;return W({root:[`root`,`color${Y(t)}`,`position${Y(n)}`]},Sd,r)},wd=(e,t)=>e?`${e.replace(`)`,``)}, ${t})`:t,Td=K(ru,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${Y(n.position)}`],t[`color${Y(n.color)}`]]}})(J(({theme:e})=>({display:`flex`,flexDirection:`column`,width:`100%`,boxSizing:`border-box`,flexShrink:0,variants:[{props:{position:`fixed`},style:{position:`fixed`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0,"@media print":{position:`absolute`}}},{props:{position:`absolute`},style:{position:`absolute`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`sticky`},style:{position:`sticky`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`static`},style:{position:`static`}},{props:{position:`relative`},style:{position:`relative`}},{props:{color:`inherit`},style:{"--AppBar-color":`inherit`,color:`var(--AppBar-color)`}},{props:{color:`default`},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles(`dark`,{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Ru([`contrastText`])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText,...e.focusVisible&&Ya(`0 0 0 4px ${(e.vars||e).palette.background.default}`)}})),{props:e=>e.enableColorOnDark===!0&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`}},{props:e=>e.enableColorOnDark===!1&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundColor:e.vars?wd(e.vars.palette.AppBar.darkBg,`var(--AppBar-background)`):null,color:e.vars?wd(e.vars.palette.AppBar.darkColor,`var(--AppBar-color)`):null})}},{props:{color:`transparent`},style:{"--AppBar-background":`transparent`,"--AppBar-color":`inherit`,backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundImage:`none`})}}]}))),Ed=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiAppBar`}),{className:r,color:i=`primary`,enableColorOnDark:a=!1,position:o=`fixed`,...s}=n,c={...n,color:i,position:o,enableColorOnDark:a},l=Cd(c);return(0,V.jsx)(Td,{square:!0,component:`header`,ownerState:c,elevation:4,className:H(l.root,r,o===`fixed`&&`mui-fixed`),ref:t,...s})});function Dd(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}var Od=`bottom`,kd=`right`,Ad=`left`,jd=`auto`,Md=[`top`,Od,kd,Ad],Nd=`start`,Pd=`clippingParents`,Fd=`viewport`,Id=`popper`,Ld=`reference`,Rd=Md.reduce(function(e,t){return e.concat([t+`-`+Nd,t+`-end`])},[]),zd=[].concat(Md,[jd]).reduce(function(e,t){return e.concat([t,t+`-`+Nd,t+`-end`])},[]),Bd=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function Vd(e){return e?(e.nodeName||``).toLowerCase():null}function Hd(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ud(e){return e instanceof Hd(e).Element||e instanceof Element}function Wd(e){return e instanceof Hd(e).HTMLElement||e instanceof HTMLElement}function Gd(e){return typeof ShadowRoot>`u`?!1:e instanceof Hd(e).ShadowRoot||e instanceof ShadowRoot}function Kd(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Wd(i)&&Vd(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function qd(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});Wd(r)&&Vd(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var Jd={name:`applyStyles`,enabled:!0,phase:`write`,fn:Kd,effect:qd,requires:[`computeStyles`]};function Yd(e){return e.split(`-`)[0]}var Xd=Math.max,Zd=Math.min,Qd=Math.round;function $d(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function ef(){return!/^((?!chrome|android).)*safari/i.test($d())}function tf(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Wd(e)&&(i=e.offsetWidth>0&&Qd(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Qd(r.height)/e.offsetHeight||1);var o=(Ud(e)?Hd(e):window).visualViewport,s=!ef()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function nf(e){var t=tf(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function rf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gd(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function af(e){return Hd(e).getComputedStyle(e)}function of(e){return[`table`,`td`,`th`].indexOf(Vd(e))>=0}function sf(e){return((Ud(e)?e.ownerDocument:e.document)||window.document).documentElement}function cf(e){return Vd(e)===`html`?e:e.assignedSlot||e.parentNode||(Gd(e)?e.host:null)||sf(e)}function lf(e){return!Wd(e)||af(e).position===`fixed`?null:e.offsetParent}function uf(e){var t=/firefox/i.test($d());if(/Trident/i.test($d())&&Wd(e)&&af(e).position===`fixed`)return null;var n=cf(e);for(Gd(n)&&(n=n.host);Wd(n)&&[`html`,`body`].indexOf(Vd(n))<0;){var r=af(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function df(e){for(var t=Hd(e),n=lf(e);n&&of(n)&&af(n).position===`static`;)n=lf(n);return n&&(Vd(n)===`html`||Vd(n)===`body`&&af(n).position===`static`)?t:n||uf(e)||t}function ff(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function pf(e,t,n){return Xd(e,Zd(t,n))}function mf(e,t,n){var r=pf(e,t,n);return r>n?n:r}function hf(){return{top:0,right:0,bottom:0,left:0}}function gf(e){return Object.assign({},hf(),e)}function _f(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var vf=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,gf(typeof e==`number`?_f(e,Md):e)};function yf(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Yd(n.placement),c=ff(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=vf(i.padding,n),d=nf(a),f=c===`y`?`top`:Ad,p=c===`y`?Od:kd,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=df(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=pf(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function bf(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||rf(t.elements.popper,r)&&(t.elements.arrow=r))}var xf={name:`arrow`,enabled:!0,phase:`main`,fn:yf,effect:bf,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function Sf(e){return e.split(`-`)[1]}var Cf={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function wf(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Qd(n*i)/i||0,y:Qd(r*i)/i||0}}function Tf(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=Ad,b=`top`,x=window;if(l){var S=df(n),C=`clientHeight`,w=`clientWidth`;if(S===Hd(n)&&(S=sf(n),af(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=Od;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=kd;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&Cf),O=u===!0?wf({x:p,y:h},Hd(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function Ef(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:Yd(t.placement),variation:Sf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Tf(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Tf(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Df={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:Ef,data:{}},Of={passive:!0};function kf(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=Hd(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,Of)}),s&&c.addEventListener(`resize`,n.update,Of),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,Of)}),s&&c.removeEventListener(`resize`,n.update,Of)}}var Af={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:kf,data:{}},jf={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Mf(e){return e.replace(/left|right|bottom|top/g,function(e){return jf[e]})}var Nf={start:`end`,end:`start`};function Pf(e){return e.replace(/start|end/g,function(e){return Nf[e]})}function Ff(e){var t=Hd(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function If(e){return tf(sf(e)).left+Ff(e).scrollLeft}function Lf(e,t){var n=Hd(e),r=sf(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=ef();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+If(e),y:c}}function Rf(e){var t=sf(e),n=Ff(e),r=e.ownerDocument?.body,i=Xd(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Xd(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+If(e),s=-n.scrollTop;return af(r||t).direction===`rtl`&&(o+=Xd(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function zf(e){var t=af(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Bf(e){return[`html`,`body`,`#document`].indexOf(Vd(e))>=0?e.ownerDocument.body:Wd(e)&&zf(e)?e:Bf(cf(e))}function Vf(e,t){t===void 0&&(t=[]);var n=Bf(e),r=n===e.ownerDocument?.body,i=Hd(n),a=r?[i].concat(i.visualViewport||[],zf(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(Vf(cf(a)))}function Hf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Uf(e,t){var n=tf(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Wf(e,t,n){return t===`viewport`?Hf(Lf(e,n)):Ud(t)?Uf(t,n):Hf(Rf(sf(e)))}function Gf(e){var t=Vf(cf(e)),n=[`absolute`,`fixed`].indexOf(af(e).position)>=0&&Wd(e)?df(e):e;return Ud(n)?t.filter(function(e){return Ud(e)&&rf(e,n)&&Vd(e)!==`body`}):[]}function Kf(e,t,n,r){var i=t===`clippingParents`?Gf(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Wf(e,n,r);return t.top=Xd(i.top,t.top),t.right=Zd(i.right,t.right),t.bottom=Zd(i.bottom,t.bottom),t.left=Xd(i.left,t.left),t},Wf(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qf(e){var t=e.reference,n=e.element,r=e.placement,i=r?Yd(r):null,a=r?Sf(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case Od:c={x:o,y:t.y+t.height};break;case kd:c={x:t.x+t.width,y:s};break;case Ad:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?ff(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case Nd:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function Jf(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Pd:s,l=n.rootBoundary,u=l===void 0?Fd:l,d=n.elementContext,f=d===void 0?Id:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=gf(typeof g==`number`?_f(g,Md):g),v=f===`popper`?Ld:Id,y=e.rects.popper,b=e.elements[m?v:f],x=Kf(Ud(b)?b:b.contextElement||sf(e.elements.popper),c,u,o),S=tf(e.elements.reference),C=qf({reference:S,element:y,strategy:`absolute`,placement:i}),w=Hf(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function Yf(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?zd:c,u=Sf(r),d=u?s?Rd:Rd.filter(function(e){return Sf(e)===u}):Md,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Jf(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Yd(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Xf(e){if(Yd(e)===`auto`)return[];var t=Mf(e);return[Pf(e),t,Pf(t)]}function Zf(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=Yd(g)===g,v=c||(_||!m?[Mf(g)]:Xf(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(Yd(n)===`auto`?Yf(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=Yd(E),O=Sf(E)===Nd,k=[`top`,Od].indexOf(D)>=0,A=k?`width`:`height`,j=Jf(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),M=k?O?kd:Ad:O?Od:`top`;b[A]>x[A]&&(M=Mf(M));var N=Mf(M),P=[];if(a&&P.push(j[D]<=0),s&&P.push(j[M]<=0,j[N]<=0),P.every(function(e){return e})){w=E,C=!1;break}S.set(E,P)}if(C)for(var F=m?3:1,ee=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},te=F;te>0&&ee(te)!==`break`;te--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var Qf={name:`flip`,enabled:!0,phase:`main`,fn:Zf,requiresIfExists:[`offset`],data:{_skip:!1}};function $f(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ep(e){return[`top`,kd,Od,Ad].some(function(t){return e[t]>=0})}function tp(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Jf(t,{elementContext:`reference`}),s=Jf(t,{altBoundary:!0}),c=$f(o,r),l=$f(s,i,a),u=ep(c),d=ep(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var np={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:tp};function rp(e,t,n){var r=Yd(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function ip(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=zd.reduce(function(e,n){return e[n]=rp(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var ap={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:ip};function op(e){var t=e.state,n=e.name;t.modifiersData[n]=qf({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var sp={name:`popperOffsets`,enabled:!0,phase:`read`,fn:op,data:{}};function cp(e){return e===`x`?`y`:`x`}function lp(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=Jf(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=Yd(t.placement),v=Sf(t.placement),y=!v,b=ff(_),x=cp(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:Ad,A=b===`y`?Od:kd,j=b===`y`?`height`:`width`,M=S[b],N=M+g[k],P=M-g[A],F=p?-w[j]/2:0,ee=v===`start`?C[j]:w[j],te=v===`start`?-w[j]:-C[j],I=t.elements.arrow,ne=p&&I?nf(I):{width:0,height:0},re=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:hf(),ie=re[k],ae=re[A],oe=pf(0,C[j],ne[j]),se=y?C[j]/2-F-oe-ie-E.mainAxis:ee-oe-ie-E.mainAxis,ce=y?-C[j]/2+F+oe+ae+E.mainAxis:te+oe+ae+E.mainAxis,le=t.elements.arrow&&df(t.elements.arrow),ue=le?b===`y`?le.clientTop||0:le.clientLeft||0:0,de=D?.[b]??0,L=M+se-de-ue,R=M+ce-de,fe=pf(p?Zd(N,L):N,M,p?Xd(P,R):P);S[b]=fe,O[b]=fe-M}if(s){var pe=b===`x`?`top`:Ad,me=b===`x`?Od:kd,he=S[x],z=x===`y`?`height`:`width`,ge=he+g[pe],_e=he-g[me],ve=[`top`,Ad].indexOf(_)!==-1,ye=D?.[x]??0,be=ve?ge:he-C[z]-w[z]-ye+E.altAxis,xe=ve?he+C[z]+w[z]-ye-E.altAxis:_e,Se=p&&ve?mf(be,he,xe):pf(p?be:ge,he,p?xe:_e);S[x]=Se,O[x]=Se-he}t.modifiersData[r]=O}}var up={name:`preventOverflow`,enabled:!0,phase:`main`,fn:lp,requiresIfExists:[`offset`]};function dp(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function fp(e){return e===Hd(e)||!Wd(e)?Ff(e):dp(e)}function pp(e){var t=e.getBoundingClientRect(),n=Qd(t.width)/e.offsetWidth||1,r=Qd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function mp(e,t,n){n===void 0&&(n=!1);var r=Wd(t),i=Wd(t)&&pp(t),a=sf(t),o=tf(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Vd(t)!==`body`||zf(a))&&(s=fp(t)),Wd(t)?(c=tf(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=If(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function hp(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function gp(e){var t=hp(e);return Bd.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function _p(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function vp(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var yp={placement:`bottom`,modifiers:[],strategy:`absolute`};function bp(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function xp(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?yp:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},yp,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:Ud(e)?Vf(e):e.contextElement?Vf(e.contextElement):[],popper:Vf(t)};var s=gp(vp([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(bp(t,n)){i.rects={reference:mp(t,df(n),i.options.strategy===`fixed`),popper:nf(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(i.reset===!0)i.reset=!1,r=-1;else{var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:_p(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!bp(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var Sp=xp({defaultModifiers:[Af,sp,Df,Jd,ap,Qf,up,xf,np]});function Cp(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Xl(n,r),{props:s,internalRef:c}=$l({...a,externalSlotProps:o}),l=us(c,o?.ref,e.additionalProps?.ref);return Yl(t,{...s,ref:l},r)}function wp(e){return e?.props?.ref||null}var Tp=l(Ac(),1);function Ep(e){return typeof e==`function`?e():e}var Dp=E.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=E.useState(null),s=us(E.isValidElement(n)?wp(n):null,t);if(ti(()=>{i||o(Ep(r)||document.body)},[r,i]),ti(()=>{if(a&&!i)return Sl(t,a),()=>{Sl(t,null)}},[t,a,i]),i){if(E.isValidElement(n)){let e={ref:s};return E.cloneElement(n,e)}return n}return a&&Tp.createPortal(n,a)});function Op(e){return zr(`MuiPopper`,e)}U(`MuiPopper`,[`root`]);function kp(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function Ap(e){return typeof e==`function`?e():e}function jp(e){return e.nodeType!==void 0}var Mp=e=>{let{classes:t}=e;return W({root:[`root`]},Op,t)},Np={},Pp=E.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=E.useRef(null),_=us(g,t),v=E.useRef(null),y=us(v,u),b=E.useRef(y);ti(()=>{b.current=y},[y]),E.useImperativeHandle(u,()=>v.current,[]);let x=kp(c,i),[S,C]=E.useState(x),w=E.useMemo(()=>Ap(n),[n]);E.useEffect(()=>{v.current&&v.current.forceUpdate()}),ti(()=>{if(!w||!s)return;let e=e=>{C(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=Sp(w,g.current,{placement:x,...l,modifiers:t});b.current(n);let r=g.current;return()=>{if(r){let{style:e}=r,t=e.position,i=e.top,a=e.left,o=e.transform;n.destroy(),e.position=t,e.top=i,e.left=a,e.transform=o}else n.destroy();b.current(null)}},[w,a,o,s,l,x]);let T={placement:S};p!==null&&(T.TransitionProps=p);let D=Mp(e),O=f.root??`div`,k=Cp({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root});return(0,V.jsx)(O,{...k,children:typeof r==`function`?r(T):r})}),Fp=K(E.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=Np,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=E.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=Ap(n);S=e&&jp(e)?fs(e).body:fs(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,V.jsx)(Dp,{disablePortal:o,container:S,children:(0,V.jsx)(Pp,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:C,...p},TransitionProps:w,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),Ip=E.forwardRef(function(e,t){let n=ji(),{anchorEl:r,component:i,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,slots:m,slotProps:h,...g}=q({props:e,name:`MuiPopper`}),_={anchorEl:r,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,...g};return(0,V.jsx)(Fp,{as:i,direction:n?`rtl`:`ltr`,slots:m,slotProps:h,..._,ref:t})}),Lp=vl((0,V.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z`}),`Cancel`);function Rp(e){return zr(`MuiChip`,e)}var zp=U(`MuiChip`,[`root`,`sizeSmall`,`sizeMedium`,`colorDefault`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`disabled`,`clickable`,`deletable`,`outlined`,`filled`,`avatar`,`icon`,`label`,`deleteIcon`,`focusVisible`]),Bp=e=>{let{classes:t,disabled:n,size:r,color:i,onDelete:a,clickable:o,variant:s}=e;return W({root:[`root`,s,n&&`disabled`,`size${Y(r)}`,`color${Y(i)}`,o&&`clickable`,a&&`deletable`],label:[`label`],avatar:[`avatar`],icon:[`icon`],deleteIcon:[`deleteIcon`]},Rp,t)},Vp=K(`div`,{name:`MuiChip`,slot:`Root`,shouldForwardProp:e=>Qo(e)&&e!==`focusableWhenDisabled`&&e!==`skipFocusWhenDisabled`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{color:r,clickable:i,onDelete:a,size:o,variant:s}=n;return[{[`& .${zp.avatar}`]:t.avatar},{[`& .${zp.icon}`]:t.icon},{[`& .${zp.deleteIcon}`]:t.deleteIcon},t.root,t[`size${Y(o)}`],t[`color${Y(r)}`],i&&t.clickable,a&&t.deletable,t[s]]}})(J(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:`100%`,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:`nowrap`,...qs(e,[`background-color`,`box-shadow`]),cursor:`unset`,outline:0,textDecoration:`none`,border:0,padding:0,verticalAlign:`middle`,boxSizing:`border-box`,[`&.${zp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:`none`},[`& .${zp.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${zp.icon}`]:{marginLeft:5,marginRight:-6},[`& .${zp.deleteIcon}`]:{WebkitTapHighlightColor:`transparent`,color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:`pointer`,margin:`0 5px 0 -6px`,"&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{color:`primary`},style:{[`& .${zp.avatar}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark}}},{props:{color:`secondary`},style:{[`& .${zp.avatar}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark}}},{props:{size:`small`},style:{height:24,[`& .${zp.avatar}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${zp.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${zp.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Ru([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${zp.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${zp.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${zp.icon}`]:{color:`inherit`}}},{props:{onDelete:!0},style:!e.focusVisible&&{[`&.${zp.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(Ru([`dark`])).map(([t])=>({props:{color:t,onDelete:!0},style:!e.focusVisible&&{[`&.${zp.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:`none`,WebkitTapHighlightColor:`transparent`,cursor:`pointer`,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},...!e.focusVisible&&{[`&.${zp.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Ru([`dark`])).map(([t])=>({props:{color:t,clickable:!0},style:{"&:hover":{backgroundColor:(e.vars||e).palette[t].dark},...!e.focusVisible&&{[`&.${zp.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}})),{props:{variant:`outlined`},style:{backgroundColor:`transparent`,border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${zp.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},...!e.focusVisible&&{[`&.${zp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`& .${zp.avatar}`]:{marginLeft:4},[`& .${zp.icon}`]:{marginLeft:4},[`& .${zp.deleteIcon}`]:{marginRight:5}}},{props:{size:`small`,variant:`outlined`},style:{[`& .${zp.avatar}`]:{marginLeft:2},[`& .${zp.icon}`]:{marginLeft:2},[`& .${zp.deleteIcon}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Ru()).map(([t])=>({props:{variant:`outlined`,color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${zp.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},...!e.focusVisible&&{[`&.${zp.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)}},[`& .${zp.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),Hp=K(`span`,{name:`MuiChip`,slot:`Label`})({overflow:`hidden`,textOverflow:`ellipsis`,paddingLeft:12,paddingRight:12,whiteSpace:`nowrap`,variants:[{props:{variant:`outlined`},style:{paddingLeft:11,paddingRight:11}},{props:{size:`small`},style:{paddingLeft:8,paddingRight:8}},{props:{size:`small`,variant:`outlined`},style:{paddingLeft:7,paddingRight:7}}]});function Up(e){return e.key===`Backspace`||e.key===`Delete`}var Wp=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiChip`}),{avatar:r,className:i,clickable:a,color:o=`default`,component:s,deleteIcon:c,disabled:l=!1,icon:u,label:d,onClick:f,onDelete:p,onKeyDown:m,onKeyUp:h,size:g=`medium`,variant:_=`filled`,tabIndex:v,skipFocusWhenDisabled:y=!1,slots:b={},slotProps:x={},...S}=n,{nativeButton:C,...w}=S,T=xs(E.useRef(null),t),D=e=>{e.stopPropagation(),p(e)},O=e=>{e.currentTarget===e.target&&Up(e)&&e.preventDefault(),m&&m(e)},k=e=>{e.currentTarget===e.target&&p&&Up(e)&&p(e),h&&h(e)},A=a!==!1&&f?!0:a,j=A||p?Pu:s||`div`,M={...n,component:j,disabled:l,size:g,color:o,iconColor:E.isValidElement(u)&&u.props.color||o,onDelete:!!p,clickable:A,variant:_},N=Bp(M),P=j===Pu?{component:s||`div`,internalNativeButton:!1,focusVisibleClassName:N.focusVisible,...p&&{disableRipple:!0},...C!==void 0&&{nativeButton:C}}:{},F=null;p&&(F=c&&E.isValidElement(c)?E.cloneElement(c,{className:H(c.props.className,N.deleteIcon),onClick:D}):(0,V.jsx)(Lp,{className:N.deleteIcon,onClick:D}));let ee=null;r&&E.isValidElement(r)&&(ee=E.cloneElement(r,{className:H(N.avatar,r.props.className)}));let te=null;u&&E.isValidElement(u)&&(te=E.cloneElement(u,{className:H(N.icon,u.props.className)}));let I={slots:b,slotProps:x},[ne,re]=X(`root`,{elementType:Vp,externalForwardedProps:{...I,...w},ownerState:M,shouldForwardComponentProp:!0,ref:T,className:H(N.root,i),additionalProps:{disabled:A&&l?!0:void 0,tabIndex:y&&l?-1:v,...P},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),f?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),O(t)},onKeyUp:t=>{e.onKeyUp?.(t),k(t)}})}),[ie,ae]=X(`label`,{elementType:Hp,externalForwardedProps:I,ownerState:M,className:N.label});return(0,V.jsxs)(ne,{as:j,...re,children:[ee||te,(0,V.jsx)(ie,{...ae,children:d}),F]})}),Gp=vl((0,V.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`),Kp={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},qp={opacity:0,visibility:`hidden`},Jp=E.forwardRef(function(e,t){let n=Yo(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,disablePrefersReducedMotion:s=!1,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:g,timeout:_=r,...v}=e,y=Jl(n.motion.reducedMotion,s),b=E.useRef(null),x=xs(b,wp(o),t),S=Us(b,f),C=Us(b,(e,t)=>{y.shouldReduceMotion||Ns(e);let r=Gs({style:g,timeout:_,easing:c},{mode:`enter`}),i=y.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`opacity`,{duration:i.duration,easing:r.easing,delay:i.delay}),u&&u(e,t)}),w=Us(b,d),T=Us(b,h),D=Us(b,e=>{let t=Gs({style:g,timeout:_,easing:c},{mode:`exit`}),r=y.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`opacity`,{duration:r.duration,easing:t.easing,delay:r.delay}),p&&p(e)}),O=Us(b,e=>{e.style.transition=``,m&&m(e)});return(0,V.jsx)(Il,{appear:a,in:l,nodeRef:b,onEnter:C,onEntered:w,onEntering:S,onExit:D,onExited:O,onExiting:T,addEndListener:i?e=>{i(b.current,e)}:void 0,reduceMotion:y.shouldReduceMotion,timeout:_,...v,children:(e,{ownerState:t,...n})=>{let r=Ws(e,l,Kp,qp,g,o.props.style);return E.cloneElement(o,{style:r,ref:x,...n})}})});function Yp(e){return zr(`MuiBackdrop`,e)}U(`MuiBackdrop`,[`root`,`invisible`]);var Xp=e=>{let{classes:t,invisible:n}=e;return W({root:[`root`,n&&`invisible`]},Yp,t)},Zp=K(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),Qp=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,slotProps:c={},slots:l={},transitionDuration:u,...d}=n,f={...n,component:a,invisible:o},p=Xp(f),m={component:a,slots:l,slotProps:c},[h,g]=X(`root`,{elementType:Zp,externalForwardedProps:m,className:H(p.root,i),ownerState:f}),[_,v]=X(`transition`,{elementType:Jp,externalForwardedProps:m,ownerState:f});return(0,V.jsx)(_,{in:s,timeout:u,...d,...v,children:(0,V.jsx)(h,{...g,ref:t,children:r})})}),$p=U(`MuiBox`,[`root`]),em=Lr({themeId:Jo,defaultTheme:Ko(),defaultClassName:$p.root,generateClassName:Fr.generate});function tm(e){return zr(`MuiButton`,e)}var nm=U(`MuiButton`,`root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),rm=E.createContext({}),im=E.createContext(void 0),am=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=W({root:[`root`,o&&`loading`,a,`size${Y(i)}`,`color${Y(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${Y(s)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},tm,c);return{...c,...l}},om=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],sm=K(Pu,{shouldForwardProp:e=>Qo(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Y(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(J(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,...qs(e,[`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${nm.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${nm.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},[`&.${nm.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${nm.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(Ru()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${nm.focusVisible}`]:{boxShadow:e.focusVisible?.boxShadow??`none`},"&:active":{boxShadow:`none`},[`&.${nm.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{...qs(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${nm.loading}`]:{color:`transparent`}}}]}})),cm=K(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,alignItems:`center`,marginRight:8,marginLeft:-4,"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`},variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{...qs(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...om]})),lm=K(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{...qs(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...om]})),um=K(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),dm=K(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),fm=E.forwardRef(function(e,t){let n=E.useContext(rm),r=E.useContext(im),i=q({props:Qr(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=Cl(h),T=_??(0,V.jsx)(Qu,{"aria-labelledby":w,color:`inherit`,size:16}),D={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},O=am(D),k=(b||g&&v===`start`)&&(0,V.jsx)(cm,{className:O.startIcon,ownerState:D,children:b||(0,V.jsx)(dm,{className:O.loadingIconPlaceholder,ownerState:D})}),A=(f||g&&v===`end`)&&(0,V.jsx)(lm,{className:O.endIcon,ownerState:D,children:f||(0,V.jsx)(dm,{className:O.loadingIconPlaceholder,ownerState:D})}),j=r||``,M=typeof g==`boolean`?(0,V.jsx)(`span`,{className:O.loadingWrapper,style:{display:`contents`},children:g&&(0,V.jsx)(um,{className:O.loadingIndicator,ownerState:D,children:T})}):null,{root:N,...P}=O;return(0,V.jsxs)(sm,{ownerState:D,className:H(n.className,O.root,c,j),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:H(O.focusVisible,p),ref:t,internalNativeButton:!0,type:x,id:g?w:h,...C,classes:P,children:[k,v!==`end`&&M,a,v===`end`&&M,A]})});function pm(e){return zr(`MuiCard`,e)}U(`MuiCard`,[`root`]);var mm=e=>{let{classes:t}=e;return W({root:[`root`]},pm,t)},hm=K(ru,{name:`MuiCard`,slot:`Root`})({overflow:`hidden`}),gm=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiCard`}),{className:r,raised:i=!1,...a}=n,o={...n,raised:i},s=mm(o);return(0,V.jsx)(hm,{className:H(s.root,r),elevation:i?8:void 0,ref:t,ownerState:o,...a})});function _m(e){return zr(`MuiCardActionArea`,e)}var vm=U(`MuiCardActionArea`,[`root`,`focusVisible`,`focusHighlight`]),ym=e=>{let{classes:t}=e;return W({root:[`root`],focusHighlight:[`focusHighlight`]},_m,t)},bm=K(Pu,{name:`MuiCardActionArea`,slot:`Root`})(J(({theme:e})=>({display:`block`,textAlign:`inherit`,borderRadius:`inherit`,width:`100%`,[`&:hover .${vm.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},...e.focusVisible?Xa(1):{[`&.${vm.focusVisible} .${vm.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}}))),xm=K(`span`,{name:`MuiCardActionArea`,slot:`FocusHighlight`})(J(({theme:e})=>({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`,opacity:0,backgroundColor:`currentcolor`,...qs(e,`opacity`,{duration:e.transitions.duration.short})}))),Sm=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiCardActionArea`}),{children:r,className:i,focusVisibleClassName:a,slots:o={},slotProps:s={},...c}=n,l=n,u=ym(l),d={slots:o,slotProps:s},[f,p]=X(`root`,{elementType:bm,externalForwardedProps:{...d,...c},shouldForwardComponentProp:!0,ownerState:l,ref:t,className:H(u.root,i),additionalProps:{internalNativeButton:!0,focusVisibleClassName:H(a,u.focusVisible)}}),[m,h]=X(`focusHighlight`,{elementType:xm,externalForwardedProps:d,ownerState:l,className:u.focusHighlight});return(0,V.jsxs)(f,{...p,children:[r,(0,V.jsx)(m,{...h})]})});function Cm(e){return e.substring(2).toLowerCase()}function wm(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Tm(e){let{children:t,disableReactTree:n=!1,mouseEvent:r=`onClick`,onClickAway:i,touchEvent:a=`onTouchEnd`}=e,o=E.useRef(!1),s=E.useRef(null),c=E.useRef(!1),l=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let u=us(wp(t),s),d=ds(e=>{let t=l.current;l.current=!1;let r=fs(s.current);if(!c.current||!s.current||`clientX`in e&&wm(e,r))return;if(o.current){o.current=!1;return}let a;a=e.composedPath?e.composedPath().includes(s.current):!Dd(r.documentElement,e.target)||Dd(s.current,e.target),!a&&(n||!t)&&i(e)}),f=e=>n=>{l.current=!0;let r=t.props[e];r&&r(n)},p={ref:u};return a!==!1&&(p[a]=f(a)),E.useEffect(()=>{if(a!==!1){let e=Cm(a),t=fs(s.current),n=()=>{o.current=!0};return t.addEventListener(e,d),t.addEventListener(`touchmove`,n),()=>{t.removeEventListener(e,d),t.removeEventListener(`touchmove`,n)}}},[d,a]),r!==!1&&(p[r]=f(r)),E.useEffect(()=>{if(r!==!1){let e=Cm(r),t=fs(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),E.cloneElement(t,p)}function Em(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Dm(e){let t=fs(e);return e===t.body||e===t.documentElement?ps(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Om(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function km(e){return parseFloat(ps(e).getComputedStyle(e).paddingRight)||0}function Am(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function jm(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!Am(e);t&&n&&Om(e,i)})}function Mm(e,t){let n=[],r=e.container;if(!t.disableScrollLock){let e;if(r.parentNode instanceof DocumentFragment)e=fs(r).body;else{let t=r.parentElement,n=ps(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}if(Dm(e)){let t=Em(ps(e));n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${km(e)+t}px`;let i=fs(r).querySelectorAll(`.mui-fixed`);[].forEach.call(i,e=>{n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${km(e)+t}px`})}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function Nm(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var Pm=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Om(e.modalRef,!1);let r=Nm(t);jm(t,e.mount,e.modalRef,r,!0);let i=this.containers.findIndex(e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=this.containers.findIndex(t=>t.modals.includes(e)),r=this.containers[n];r.restore||=Mm(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=this.containers.findIndex(t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&Om(e.modalRef,t),jm(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&Om(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},Fm=Dd,Im=`data-mui-focusable`;function Lm(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Im}]`):null}var Rm=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function zm(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function Bm(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function Vm(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||Bm(e))}function Hm(e){let t=[],n=[];return Array.from(e.querySelectorAll(Rm)).forEach((e,r)=>{let i=zm(e);i!==-1&&Vm(e)&&(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Um(){return!0}function Wm(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Hm,isEnabled:o=Um,open:s}=e,c=E.useRef(!1),l=E.useRef(null),u=E.useRef(null),d=E.useRef(null),f=E.useRef(null),p=E.useRef(!1),m=E.useRef(null),h=us(wp(t),m),g=E.useRef(null);E.useEffect(()=>{s&&m.current&&(p.current=!n)},[n,s]),E.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=Ts(fs(m.current)),t=Lm(m.current)??m.current;return Fm(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{!i&&d.current&&(c.current=!0,d.current.focus(),d.current=null)}},[s]),E.useEffect(()=>{if(!s||!m.current)return;let e=fs(m.current),t=t=>{if(g.current=t,r||!o()||t.key!==`Tab`)return;let n=m.current,i=Ts(e);if(n===null)return;let s=Lm(n);if(i===n||i===s){let e=a(n);if(e.length===0)return;t.preventDefault(),t.shiftKey?e[e.length-1].focus():e[0].focus()}else if(Fm(n,i)){let e=a(n),r=e.indexOf(i);if(r===-1||!e.some(e=>zm(e)>0))return;t.preventDefault();let o=0;o=t.shiftKey?r<=0?e.length-1:r-1:r===e.length-1?0:r+1,e[o].focus()}},n=()=>{let t=m.current;if(t===null)return;let n=Ts(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(Fm(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=Ts(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,V.jsxs)(E.Fragment,{children:[(0,V.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),E.cloneElement(t,{ref:h,onFocus:_}),(0,V.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function Gm(e){return typeof e==`function`?e():e}function Km(e){return e?e.props.hasOwnProperty(`in`):!1}var qm=()=>{},Jm=new Pm;function Ym(e){let{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:o,onClose:s,open:c,rootRef:l}=e,u=E.useRef({}),d=E.useRef(null),f=E.useRef(null),p=E.useRef(null),m=us(p,l),[h,g]=E.useState(!c),_=Km(o),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>fs(d.current),b=()=>(u.current.modalRef=p.current,u.current.mount=d.current,u.current),x=()=>{Jm.mount(b(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},S=ds(()=>{let e=Gm(t)||y().body;Jm.add(b(),e),p.current&&x()}),C=()=>Jm.isTopModal(b()),w=ds(e=>{d.current=e,e&&(f.current=e,c&&C()?x():p.current&&Om(p.current,v))}),T=E.useCallback(()=>{Jm.remove(b(),v)},[v]);E.useEffect(()=>()=>{T()},[T]),E.useEffect(()=>{c?S():(!_||!r)&&T()},[c,T,_,r,S]);let D=e=>t=>{e.onKeyDown?.(t),t.key===`Escape`&&t.which!==229&&C()&&(t.stopPropagation(),s&&s(t,`escapeKeyDown`))},O=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Zl(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:D(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:O(t),open:c}},getTransitionProps:()=>({onEnter:pl(()=>{g(!1),i&&i()},o?.props.onEnter??qm),onExited:pl(()=>{g(!0),a&&a(),r&&T()},o?.props.onExited??qm)}),rootRef:m,portalRef:w,portalContainer:!c&&_&&!h?f.current??t:t,isTopModal:C,exited:h,hasTransition:_}}function Xm(e){return zr(`MuiModal`,e)}U(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Zm=e=>{let{open:t,exited:n,classes:r}=e;return W({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Xm,r)},Qm=K(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(J(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),$m=K(Qp,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),eh=E.forwardRef(function(e,t){let n=q({name:`MuiModal`,props:e}),{classes:r,className:i,closeAfterTransition:a=!1,children:o,container:s,component:c,disableAutoFocus:l=!1,disableEnforceFocus:u=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:p=!1,hideBackdrop:m=!1,keepMounted:h=!1,onClose:g,onTransitionEnter:_,onTransitionExited:v,open:y,slotProps:b={},slots:x={},theme:S,...C}=n,w={...n,closeAfterTransition:a,disableAutoFocus:l,disableEnforceFocus:u,disablePortal:d,disableRestoreFocus:f,disableScrollLock:p,hideBackdrop:m,keepMounted:h},{getRootProps:T,getBackdropProps:D,getTransitionProps:O,portalRef:k,portalContainer:A,isTopModal:j,exited:M,hasTransition:N}=Ym({...w,rootRef:t}),P={...w,exited:M},F=Zm(P),ee={};if(o.props.tabIndex===void 0&&(ee.tabIndex=`-1`),N){let{onEnter:e,onExited:t}=O();ee.onEnter=e,ee.onExited=t}let te={slots:x,slotProps:b},[I,ne]=X(`root`,{ref:t,elementType:Qm,externalForwardedProps:{...te,...C,component:c},getSlotProps:T,ownerState:P,className:H(i,F?.root,!P.open&&P.exited&&F?.hidden)}),[re,ie]=X(`backdrop`,{elementType:$m,externalForwardedProps:te,shouldForwardComponentProp:!0,getSlotProps:e=>D({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:F?.backdrop,ownerState:P});return!h&&!y&&(!N||M)?null:(0,V.jsx)(Dp,{ref:k,container:A,disablePortal:d,children:(0,V.jsxs)(I,{...ne,children:[m?null:(0,V.jsx)(re,{...ie}),(0,V.jsx)(Wm,{disableEnforceFocus:u,disableAutoFocus:l,disableRestoreFocus:f,isEnabled:j,open:y,children:E.cloneElement(o,ee)})]})})});function th(e){return zr(`MuiDialog`,e)}U(`MuiDialog`,[`root`,`backdrop`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]);var nh=E.createContext({}),rh=K(Qp,{name:`MuiDialog`,slot:`Backdrop`})({zIndex:-1}),ih=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e;return W({root:[`root`],backdrop:[`backdrop`],container:[`container`,`scroll${Y(n)}`],paper:[`paper`,`paperWidth${Y(String(r))}`,i&&`paperFullWidth`,a&&`paperFullScreen`]},th,t)},ah=K(eh,{name:`MuiDialog`,slot:`Root`})({"@media print":{position:`absolute !important`}}),oh=K(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${Y(n.scroll)}`]]}})({height:`100%`,"@media print":{height:`auto`},outline:0,variants:[{props:{scroll:`paper`},style:{display:`flex`,justifyContent:`center`,alignItems:`center`}},{props:{scroll:`body`},style:{overflowY:`auto`,overflowX:`hidden`,textAlign:`center`,"&::after":{content:`""`,display:`inline-block`,verticalAlign:`middle`,height:`100%`,width:`0`}}}]}),sh=K(ru,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperWidth${Y(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(J(({theme:e})=>({margin:32,position:`relative`,overflowY:`auto`,outline:0,"@media print":{overflowY:`visible`,boxShadow:`none`},variants:[{props:{scroll:`paper`},style:{display:`flex`,flexDirection:`column`,maxHeight:`calc(100% - 64px)`}},{props:{scroll:`body`},style:{display:`inline-block`,verticalAlign:`middle`,textAlign:`initial`}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:`calc(100% - 64px)`}},{props:{maxWidth:`xs`},style:{maxWidth:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:`xs`,scroll:`body`},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}},...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t,scroll:`body`},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:`calc(100% - 64px)`}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:`calc(100% - 64px)`}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:`100%`,maxWidth:`100%`,height:`100%`,maxHeight:`none`,borderRadius:0}},{props:({ownerState:e})=>e.fullScreen&&e.scroll===`body`,style:{margin:0,maxWidth:`100%`}}]}))),ch=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiDialog`}),r=Yo(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":o,"aria-modal":s=!0,children:c,className:l,fullScreen:u=!1,fullWidth:d=!1,maxWidth:f=`sm`,onClick:p,onClose:m,open:h,PaperComponent:g=ru,role:_=`dialog`,scroll:v=`paper`,slots:y={},slotProps:b={},transitionDuration:x=i,...S}=n,C={...n,fullScreen:u,fullWidth:d,maxWidth:f,scroll:v},w=ih(C),T=E.useRef(),D=e=>{T.current=e.target===e.currentTarget},O=e=>{p&&p(e),T.current&&(T.current=null,m&&m(e,`backdropClick`))},k=zi(o),A=E.useMemo(()=>({titleId:k}),[k]),j={slots:y,slotProps:b},[M,N]=X(`root`,{elementType:ah,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:C,className:H(w.root,l),ref:t}),[P,F]=X(`backdrop`,{elementType:rh,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:C,className:w.backdrop}),[ee,te]=X(`paper`,{elementType:sh,shouldForwardComponentProp:!0,externalForwardedProps:j,ownerState:C,className:w.paper,additionalProps:{elevation:24,role:_,"aria-describedby":a,"aria-labelledby":k,"aria-modal":s,tabIndex:-1,[Im]:``}}),[I,ne]=X(`container`,{elementType:oh,externalForwardedProps:j,ownerState:C,className:w.container}),[re,ie]=X(`transition`,{elementType:Jp,externalForwardedProps:j,ownerState:C,additionalProps:{appear:!0,in:h,timeout:x,role:`presentation`}});return(0,V.jsx)(M,{closeAfterTransition:!0,slots:{backdrop:P},slotProps:{backdrop:{transitionDuration:x,...F}},onClose:m,open:h,onClick:O,...N,...S,children:(0,V.jsx)(re,{...ie,children:(0,V.jsx)(I,{onMouseDown:D,...ne,children:(0,V.jsx)(ee,{as:g,...te,children:(0,V.jsx)(nh.Provider,{value:A,children:c})})})})})});function lh(e){return zr(`MuiDialogActions`,e)}U(`MuiDialogActions`,[`root`,`spacing`]);var uh=e=>{let{classes:t,disableSpacing:n}=e;return W({root:[`root`,!n&&`spacing`]},lh,t)},dh=K(`div`,{name:`MuiDialogActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,justifyContent:`flex-end`,flex:`0 0 auto`,variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),fh=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiDialogActions`}),{className:r,disableSpacing:i=!1,...a}=n,o={...n,disableSpacing:i},s=uh(o);return(0,V.jsx)(dh,{className:H(s.root,r),ownerState:o,ref:t,...a})});function ph(e){return zr(`MuiDialogContent`,e)}U(`MuiDialogContent`,[`root`,`dividers`]);function mh(e){return zr(`MuiDialogTitle`,e)}var hh=U(`MuiDialogTitle`,[`root`]),gh=e=>{let{classes:t,dividers:n}=e;return W({root:[`root`,n&&`dividers`]},ph,t)},_h=K(`div`,{name:`MuiDialogContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(J(({theme:e})=>({flex:`1 1 auto`,WebkitOverflowScrolling:`touch`,overflowY:`auto`,padding:`20px 24px`,variants:[{props:({ownerState:e})=>e.dividers,style:{padding:`16px 24px`,borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${hh.root} + &`]:{paddingTop:0}}}]}))),vh=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiDialogContent`}),{className:r,dividers:i=!1,...a}=n,o={...n,dividers:i},s=gh(o);return(0,V.jsx)(_h,{className:H(s.root,r),ownerState:o,ref:t,...a})}),yh=e=>{let{classes:t}=e;return W({root:[`root`]},mh,t)},bh=K(Z,{name:`MuiDialogTitle`,slot:`Root`})({padding:`16px 24px`,flex:`0 0 auto`}),xh=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiDialogTitle`}),{className:r,id:i,...a}=n,o=n,s=yh(o),{titleId:c=i}=E.useContext(nh);return(0,V.jsx)(bh,{component:`h2`,className:H(s.root,r),ownerState:o,ref:t,variant:`h6`,id:i??c,...a})});function Sh(e){return zr(`MuiDivider`,e)}var Ch=U(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`vertical`,`withChildren`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),wh=e=>{let{absolute:t,children:n,classes:r,flexItem:i,orientation:a,textAlign:o,variant:s}=e;return W({root:[`root`,t&&`absolute`,s,a===`vertical`&&`vertical`,i&&`flexItem`,n&&`withChildren`,o===`right`&&a!==`vertical`&&`textAlignRight`,o===`left`&&a!==`vertical`&&`textAlignLeft`],wrapper:[`wrapper`,a===`vertical`&&`wrapperVertical`]},Sh,r)},Th=K(`div`,{name:`MuiDivider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.orientation===`vertical`&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.textAlign===`right`&&n.orientation!==`vertical`&&t.textAlignRight,n.textAlign===`left`&&n.orientation!==`vertical`&&t.textAlignLeft]}})(J(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:`solid`,borderColor:(e.vars||e).palette.divider,borderBottomWidth:`thin`,variants:[{props:{absolute:!0},style:{position:`absolute`,bottom:0,left:0,width:`100%`}},{props:{variant:`inset`},style:{marginLeft:72}},{props:{variant:`middle`,orientation:`horizontal`},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:`middle`,orientation:`vertical`},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:`vertical`},style:{height:`100%`,borderBottomWidth:0,borderRightWidth:`thin`}},{props:{flexItem:!0},style:{alignSelf:`stretch`,height:`auto`}},{props:({ownerState:e})=>!!e.children,style:{display:`flex`,textAlign:`center`,border:0,borderTopStyle:`solid`,borderLeftStyle:`solid`,"&::before, &::after":{content:`""`,alignSelf:`center`}}},{props:({ownerState:e})=>e.children&&e.orientation!==`vertical`,style:{"&::before, &::after":{width:`100%`,borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:`inherit`}}},{props:({ownerState:e})=>e.orientation===`vertical`&&e.children,style:{flexDirection:`column`,"&::before, &::after":{height:`100%`,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:`inherit`}}},{props:({ownerState:e})=>e.textAlign===`right`&&e.orientation!==`vertical`,style:{"&::before":{width:`90%`},"&::after":{width:`10%`}}},{props:({ownerState:e})=>e.textAlign===`left`&&e.orientation!==`vertical`,style:{"&::before":{width:`10%`},"&::after":{width:`90%`}}}]}))),Eh=K(`span`,{name:`MuiDivider`,slot:`Wrapper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,n.orientation===`vertical`&&t.wrapperVertical]}})(J(({theme:e})=>({display:`inline-block`,paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:`nowrap`,variants:[{props:{orientation:`vertical`},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Dh=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiDivider`}),{absolute:r=!1,children:i,className:a,orientation:o=`horizontal`,component:s=i||o===`vertical`?`div`:`hr`,flexItem:c=!1,role:l=s===`hr`?void 0:`separator`,textAlign:u=`center`,variant:d=`fullWidth`,...f}=n,p={...n,absolute:r,component:s,flexItem:c,orientation:o,role:l,textAlign:u,variant:d},m=wh(p);return(0,V.jsx)(Th,{as:s,className:H(m.root,a),role:l,ref:t,ownerState:p,"aria-orientation":l===`separator`&&(s!==`hr`||o===`vertical`)?o:void 0,...f,children:i?(0,V.jsx)(Eh,{className:m.wrapper,ownerState:p,children:i}):null})}),Oh={visibility:`hidden`},kh={};function Ah(e){return typeof e==`string`&&/^translate\(.+,\s*.+\)$/.test(e)}function jh(e,t,n,r=kh){let{resetInlineTransform:i=!0}=r,a=n&&n.getBoundingClientRect(),o=xl(t),s,c;if(i){let e=t.style.transform,n=t.style.transition;t.style.transition=``,t.style.transform=``,s=t.getBoundingClientRect(),c=o.getComputedStyle(t).getPropertyValue(`transform`),t.style.transform=e,t.style.transition=n}else s=t.getBoundingClientRect(),c=o.getComputedStyle(t).getPropertyValue(`transform`);let{offsetX:l,offsetY:u}=Hs(c);return e===`left`?a?`translateX(${a.right+l-s.left}px)`:`translateX(${o.innerWidth+l-s.left}px)`:e===`right`?a?`translateX(-${s.right-a.left-l}px)`:`translateX(-${s.left+s.width-l}px)`:e===`up`?a?`translateY(${a.bottom+u-s.top}px)`:`translateY(${o.innerHeight+u-s.top}px)`:a?`translateY(-${s.top-a.top+s.height-u}px)`:`translateY(-${s.top+s.height-u}px)`}function Mh(e){return typeof e==`function`?e():e}function Nh(e,t,n,r){let i=jh(e,t,Mh(n),r);i&&(t.style.transform=i)}var Ph=E.forwardRef(function(e,t){let n=Yo(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,container:c,disablePrefersReducedMotion:l=!1,direction:u=`down`,easing:d=r,in:f,onEnter:p,onEntered:m,onEntering:h,onExit:g,onExited:_,onExiting:v,style:y,timeout:b=i,...x}=e,S=Jl(n.motion.reducedMotion,l),C=E.useRef(null),w=E.useRef(!1),T=xs(wp(s),C,t),D=Us(C,(e,t)=>{Nh(u,e,c),S.shouldReduceMotion||Ns(e),p&&p(e,t)}),O=Us(C,(e,t)=>{let r=Gs({timeout:b,style:y,easing:d},{mode:`enter`}),i=S.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`transform`,{duration:i.duration,easing:r.easing,delay:i.delay}),e.style.transform=`none`,h&&h(e,t)}),k=Us(C,m),A=Us(C,v),j=Us(C,e=>{let t=Gs({timeout:b,style:y,easing:d},{mode:`exit`}),r=S.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`transform`,{duration:r.duration,easing:t.easing,delay:r.delay});let i=Ah(e.style.transform);w.current=i,Nh(u,e,c,{resetInlineTransform:!i}),g&&g(e)}),M=Us(C,e=>{w.current=!1,e.style.transition=``,_&&_(e)}),N=a?e=>{a(C.current,e)}:void 0,P=E.useCallback(()=>{C.current&&Nh(u,C.current,c)},[u,c]);return E.useEffect(()=>{if(f||u===`down`||u===`right`)return;let e=yl(()=>{C.current&&Nh(u,C.current,c)}),t=xl(C.current);return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[u,f,c]),E.useEffect(()=>{!f&&!w.current&&P()},[f,P]),(0,V.jsx)(Il,{nodeRef:C,onEnter:D,onEntered:k,onEntering:O,onExit:j,onExited:M,onExiting:A,addEndListener:N,appear:o,in:f,reduceMotion:S.shouldReduceMotion,timeout:b,...x,children:(e,{ownerState:t,...n})=>{let r;return r=e===`exited`&&!f?y||s.props.style?{visibility:`hidden`,...y,...s.props.style}:Oh:y&&s.props.style?{...y,...s.props.style}:y||s.props.style,E.cloneElement(s,{ref:T,style:r,...n})}})});function Fh(e){return zr(`MuiDrawer`,e)}U(`MuiDrawer`,[`root`,`docked`,`paper`,`anchorLeft`,`anchorRight`,`anchorTop`,`anchorBottom`,`modal`]);var Ih=(e,t)=>{let{ownerState:n}=e;return[t.root,(n.variant===`permanent`||n.variant===`persistent`)&&t.docked,n.variant===`temporary`&&t.modal]},Lh=e=>{let{classes:t,anchor:n,variant:r}=e;return W({root:[`root`,`anchor${Y(n)}`],docked:[(r===`permanent`||r===`persistent`)&&`docked`],modal:[`modal`],paper:[`paper`]},Fh,t)},Rh=K(eh,{name:`MuiDrawer`,slot:`Root`,overridesResolver:Ih})(J(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),zh=K(`div`,{shouldForwardProp:Qo,name:`MuiDrawer`,slot:`Docked`,skipVariantsResolver:!1,overridesResolver:Ih})({flex:`0 0 auto`}),Bh=K(ru,{name:`MuiDrawer`,slot:`Paper`})(J(({theme:e})=>({overflowY:`auto`,display:`flex`,flexDirection:`column`,height:`100%`,flex:`1 0 auto`,zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:`touch`,position:`fixed`,top:0,outline:0,variants:[{props:{anchor:`left`},style:{left:0}},{props:{anchor:`top`},style:{top:0,left:0,right:0,height:`auto`,maxHeight:`100%`}},{props:{anchor:`right`},style:{right:0}},{props:{anchor:`bottom`},style:{top:`auto`,left:0,bottom:0,right:0,height:`auto`,maxHeight:`100%`}},{props:({ownerState:e})=>e.anchor===`left`&&e.variant!==`temporary`,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`top`&&e.variant!==`temporary`,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`right`&&e.variant!==`temporary`,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>e.anchor===`bottom`&&e.variant!==`temporary`,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),Vh={left:`right`,right:`left`,top:`down`,bottom:`up`};function Hh(e){return[`left`,`right`].includes(e)}function Uh({direction:e},t){return e===`rtl`&&Hh(t)?Vh[t]:t}var Wh=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiDrawer`}),r=Yo(),i=ji(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:o=`left`,children:s,className:c,elevation:l=16,hideBackdrop:u=!1,ModalProps:d={},onClose:f,open:p=!1,transitionDuration:m=a,variant:h=`temporary`,slots:g={},slotProps:_={},...v}=n,y=E.useRef(!1),b=E.useRef(null),x=xs(t,b);E.useEffect(()=>{y.current=!0},[]);let S=E.useCallback(()=>b.current,[]),C=Uh({direction:i?`rtl`:`ltr`},o),w=o,T={...n,anchor:w,elevation:l,open:p,variant:h,...v},D=Lh(T),O={slots:g,slotProps:{..._,backdrop:Ol(_.backdrop,{transitionDuration:m})}},[k,A]=X(`root`,{ref:x,elementType:Rh,className:H(D.root,D.modal,c),shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{...O,...v,...d},additionalProps:{closeAfterTransition:!0,open:p,onClose:f,hideBackdrop:u,slots:{backdrop:O.slots.backdrop},slotProps:{backdrop:O.slotProps.backdrop}}}),[j,M]=X(`paper`,{elementType:Bh,shouldForwardComponentProp:!0,className:D.paper,ownerState:T,externalForwardedProps:O,additionalProps:{elevation:h===`temporary`?l:0,square:!0,...h===`temporary`&&{role:`dialog`,"aria-modal":`true`,"data-mui-focusable":``,tabIndex:-1}}}),[N,P]=X(`docked`,{elementType:zh,ref:x,className:H(D.root,D.docked,c),ownerState:T,externalForwardedProps:O,additionalProps:v}),[F,ee]=X(`transition`,{elementType:Ph,ownerState:T,externalForwardedProps:O,additionalProps:{in:p,direction:Vh[C],timeout:m,appear:y.current,...h===`temporary`&&(g.transition==null||g.transition===Ph)&&{container:S}}}),te=(0,V.jsx)(j,{...M,children:s});if(h===`permanent`)return(0,V.jsx)(N,{...P,children:te});let I=(0,V.jsx)(F,{...ee,children:te});return h===`persistent`?(0,V.jsx)(N,{...P,children:I}):(0,V.jsx)(k,{...A,children:I})});function Gh(e){return zr(`MuiFab`,e)}var Kh=U(`MuiFab`,[`root`,`primary`,`secondary`,`extended`,`circular`,`focusVisible`,`disabled`,`colorInherit`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`info`,`error`,`warning`,`success`]),qh=e=>{let{color:t,variant:n,classes:r,size:i}=e,a=W({root:[`root`,n,`size${Y(i)}`,t===`inherit`?`colorInherit`:t]},Gh,r);return{...r,...a}},Jh=K(Pu,{name:`MuiFab`,slot:`Root`,shouldForwardProp:e=>Qo(e)||e===`classes`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Y(n.size)}`],n.color===`inherit`&&t.colorInherit,t[Y(n.size)],t[n.color]]}})(J(({theme:e})=>({...e.typography.button,minHeight:36,...qs(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),borderRadius:`50%`,padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:`none`},[`&.${Kh.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},variants:[{props:{size:`small`},style:{width:40,height:40}},{props:{size:`medium`},style:{width:48,height:48}},{props:{variant:`extended`},style:{borderRadius:24,padding:`0 16px`,width:`auto`,minHeight:`auto`,minWidth:48,height:48}},{props:{variant:`extended`,size:`small`},style:{width:`auto`,padding:`0 8px`,borderRadius:17,minWidth:34,height:34}},{props:{variant:`extended`,size:`medium`},style:{width:`auto`,padding:`0 16px`,borderRadius:20,minWidth:40,height:40}},{props:{color:`inherit`},style:{color:`inherit`}}]})),J(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Ru([`dark`,`contrastText`])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),J(({theme:e})=>({[`&.${Kh.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Yh=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiFab`}),{children:r,className:i,color:a=`default`,component:o=`button`,disabled:s=!1,disableFocusRipple:c=!1,focusVisibleClassName:l,size:u=`large`,variant:d=`circular`,...f}=n,p={...n,color:a,component:o,disabled:s,disableFocusRipple:c,size:u,variant:d},m=qh(p),{root:h,...g}=m;return(0,V.jsx)(Jh,{className:H(m.root,i),component:o,internalNativeButton:!0,disabled:s,focusRipple:!c,focusVisibleClassName:H(m.focusVisible,l),ownerState:p,ref:t,...f,classes:g,children:r})});function Xh(e){return zr(`MuiSelect`,e)}var Zh=U(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`nativeInput`,`error`]),Qh=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=W({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${Y(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},ic,t);return{...t,...c}},$h=K(ec,{shouldForwardProp:e=>Qo(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...Zs(e,t),!n.disableUnderline&&t.underline]}})(J(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,...qs(e,`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ac.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ac.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,...qs(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${ac.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${ac.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,...qs(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${ac.disabled}, .${ac.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ac.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Ru()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{"--_trailingPad":`12px`,paddingRight:`var(--_trailingPad)`,[`&.${Zh.root}`]:{"--_trailingPad":`0px`}}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),eg=K(tc,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:Qs})(J(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`,...e.vars&&e.applyStyles(`dark`,{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`})},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),tg=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,fullWidth:i=!1,hiddenLabel:a,inputComponent:o=`input`,multiline:s=!1,notched:c,slotProps:l,slots:u={},type:d=`text`,...f}=n,p={...n,disableUnderline:r,fullWidth:i,inputComponent:o,multiline:s,type:d},m=Qh(n),h={root:{ownerState:p},input:{ownerState:p}},g=l?A(h,l):h,_=u.root??$h,v=u.input??eg;return(0,V.jsx)(rc,{slots:{root:_,input:v},slotProps:g,fullWidth:i,inputComponent:o,multiline:s,ref:t,type:d,...f,classes:m})});tg.muiName=`Input`;function ng(e){return zr(`MuiFormControl`,e)}U(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var rg=e=>{let{classes:t,margin:n,fullWidth:r}=e;return W({root:[`root`,n!==`none`&&`margin${Y(n)}`,r&&`fullWidth`]},ng,t)},ig=K(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${Y(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),ag=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=rg(_),[y,b]=E.useState(()=>{let e=!1;return r&&E.Children.forEach(r,t=>{if(!bl(t,[`Input`,`Select`]))return;let n=bl(t,[`Select`])?t.props.input:t;n&&Os(n.props)&&(e=!0)}),e}),[x,S]=E.useState(()=>{let e=!1;return r&&E.Children.forEach(r,t=>{bl(t,[`Input`,`Select`])&&(Ds(t.props,!0)||Ds(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=E.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C,D;E.useRef(!1);let O=E.useCallback(()=>{S(!0)},[]),k=E.useCallback(()=>{S(!1)},[]),A=E.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:k,onFilled:O,registerEffect:D,required:p,variant:h}),[y,a,s,c,x,T,u,d,D,k,O,p,m,h]);return(0,V.jsx)(ys.Provider,{value:A,children:(0,V.jsx)(ig,{as:o,ownerState:_,className:H(v.root,i),ref:t,...g,children:r})})}),og,sg=e=>{let{classes:t,contained:n,size:r,disabled:i,error:a,filled:o,focused:s,required:c}=e;return W({root:[`root`,i&&`disabled`,a&&`error`,r&&`size${Y(r)}`,n&&`contained`,s&&`focused`,o&&`filled`,c&&`required`]},oc,t)},cg=K(`p`,{name:`MuiFormHelperText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size&&t[`size${Y(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(J(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:`left`,marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${sc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${sc.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:`small`},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),lg=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiFormHelperText`}),{children:r,className:i,component:a=`p`,disabled:o,error:s,filled:c,focused:l,margin:u,required:d,variant:f,...p}=n,[m]=bs({props:n,states:[`variant`,`size`,`disabled`,`error`,`filled`,`focused`,`required`]}),h={...n,component:a,contained:m.variant===`filled`||m.variant===`outlined`,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete h.ownerState;let g=sg(h);return(0,V.jsx)(cg,{as:a,className:H(g.root,i),ref:t,...p,ownerState:h,children:r===` `?og||=(0,V.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``}):r})}),ug=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return W({root:[`root`,`color${Y(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},cc,t)},dg=K(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(J(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(Ru()).map(([t])=>({props:{color:t},style:{[`&.${lc.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${lc.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${lc.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),fg=K(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(J(({theme:e})=>({[`&.${lc.error}`]:{color:(e.vars||e).palette.error.main}}))),pg=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,[p]=bs({props:n,states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=ug(m);return(0,V.jsxs)(dg,{as:o,ownerState:m,className:H(h.root,i),ref:t,...f,children:[r,p.required&&(0,V.jsxs)(fg,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function mg(e){return`scale(${e}, ${e**2})`}var hg={entering:{opacity:1,transform:mg(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:mg(.75)},exited:{opacity:0,transform:mg(.75)}},gg={opacity:0,transform:mg(.75),visibility:`hidden`},_g=E.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,disablePrefersReducedMotion:a=!1,easing:o,in:s,onEnter:c,onEntered:l,onEntering:u,onExit:d,onExited:f,onExiting:p,style:m,timeout:h=`auto`,...g}=e,_=E.useRef(null),v=Yo(),y=Jl(v.motion.reducedMotion,a),b=E.useRef(null),x=xs(b,wp(i),t),S=Us(b,u),C=Us(b,(e,t)=>{y.shouldReduceMotion||Ns(e);let{duration:n,delay:r,easing:i}=Gs({style:m,timeout:h,easing:o},{mode:`enter`}),a;h===`auto`&&!y.shouldReduceMotion?(a=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=a):(a=n,_.current=null);let s=y.getTransitionTiming({duration:a,delay:r});e.style.transition=[v.transitions.create(`opacity`,{duration:s.duration,delay:s.delay}),v.transitions.create(`transform`,{duration:typeof s.duration==`string`?s.duration:s.duration*.666,delay:s.delay,easing:i})].join(`,`),c&&c(e,t)}),w=Us(b,l),T=Us(b,p),D=Us(b,e=>{let{duration:t,delay:n,easing:r}=Gs({style:m,timeout:h,easing:o},{mode:`exit`}),i;h===`auto`&&!y.shouldReduceMotion?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):(i=t,_.current=null);let a=y.getTransitionTiming({duration:i,delay:n});e.style.transition=[v.transitions.create(`opacity`,{duration:a.duration,delay:a.delay}),v.transitions.create(`transform`,{duration:typeof a.duration==`string`?a.duration:a.duration*.666,delay:a.delay||(typeof a.duration==`string`?a.duration:a.duration*.333),easing:r})].join(`,`),e.style.opacity=0,e.style.transform=mg(.75),d&&d(e)}),O=Us(b,e=>{e.style.transition=``,f&&f(e)});return(0,V.jsx)(Il,{appear:r,in:s,nodeRef:b,onEnter:C,onEntered:w,onEntering:S,onExit:D,onExited:O,onExiting:T,addEndListener:n?e=>{n(b.current,e)}:void 0,getAutoTimeout:h===`auto`?()=>_.current:void 0,reduceMotion:y.shouldReduceMotion,timeout:h===`auto`?null:h,...g,children:(e,{ownerState:t,...n})=>{let r=Ws(e,s,hg,gg,m,i.props.style);return E.cloneElement(i,{style:r,ref:x,...n})}})});_g&&(_g.muiSupportAuto=!0);function vg(e){return zr(`MuiInputLabel`,e)}var yg=U(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]),bg=e=>{let{classes:t,disableUnderline:n}=e,r=W({root:[`root`,!n&&`underline`],input:[`input`]},uc,t);return{...t,...r}},xg=K(ec,{shouldForwardProp:e=>Qo(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...Zs(e,t),!n.disableUnderline&&t.underline]}})(J(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{[`label + &, .${yg.root} + &`]:{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,...qs(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${dc.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${dc.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,...qs(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${dc.disabled}, .${dc.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${dc.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(Ru()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),Sg=K(tc,{name:`MuiInput`,slot:`Input`,overridesResolver:Qs})({}),Cg=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiInput`}),{disableUnderline:r=!1,fullWidth:i=!1,inputComponent:a=`input`,multiline:o=!1,notched:s,slotProps:c,slots:l={},type:u=`text`,...d}=n,f=bg(n),p={root:{ownerState:{disableUnderline:r}}},m=c?A(c,p):p,h=l.root??xg,g=l.input??Sg;return(0,V.jsx)(rc,{slots:{root:h,input:g},slotProps:m,fullWidth:i,inputComponent:a,multiline:o,ref:t,type:u,...d,classes:f})});Cg.muiName=`Input`;var wg=U(`MuiInputAdornment`,[`root`,`filled`,`standard`,`outlined`,`positionStart`,`positionEnd`,`disablePointerEvents`,`hiddenLabel`,`sizeSmall`]),Tg=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=W({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${Y(r)}`,o],asterisk:[s&&`asterisk`]},vg,t);return{...t,...c}},Eg=K(pg,{shouldForwardProp:e=>Qo(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${lc.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(J(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{...qs(e,[`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),Dg=E.forwardRef(function(e,t){let n=q({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,[l,u]=bs({props:n,states:[`size`,`variant`,`required`,`focused`]}),d=a;d===void 0&&u&&(d=u.filled||u.focused||u.adornedStart);let f={...n,disableAnimation:r,formControl:u,shrink:d,size:l.size,variant:l.variant,required:l.required,focused:l.focused},p=Tg(f);return(0,V.jsx)(Eg,{"data-shrink":d,ref:t,className:H(p.root,s),...c,ownerState:f,classes:p})}),Og=E.createContext({});function kg(e){return zr(`MuiList`,e)}U(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var Ag=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return W({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},kg,t)},jg=K(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0,isolation:`isolate`}}]}),Mg=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=E.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=Ag(d);return(0,V.jsx)(Og.Provider,{value:u,children:(0,V.jsxs)(jg,{as:a,className:H(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),Ng=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Pg=e=>{let{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:o,selected:s}=e,c=W({root:[`root`,r&&`dense`,!a&&`gutters`,o&&`divider`,i&&`disabled`,t===`flex-start`&&`alignItemsFlexStart`,s&&`selected`]},fc,n);return{...n,...c}},Fg=K(Pu,{shouldForwardProp:e=>Qo(e)||e===`classes`,name:`MuiListItemButton`,slot:`Root`,overridesResolver:Ng})(J(({theme:e})=>({display:`flex`,flexGrow:1,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minWidth:0,boxSizing:`border-box`,textAlign:`left`,paddingTop:8,paddingBottom:8,...qs(e,`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${pc.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),...!e.focusVisible&&{[`&.${pc.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},[`&.${pc.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},...e.focusVisible?Xa(1):{[`&.${pc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${pc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Ig=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiListItemButton`}),{alignItems:r=`center`,autoFocus:i=!1,component:a=`div`,children:o,dense:s=!1,disableGutters:c=!1,divider:l=!1,focusVisibleClassName:u,selected:d=!1,className:f,...p}=n,m=E.useContext(Og),h=E.useMemo(()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:c}),[r,m.dense,s,c]),g=E.useRef(null);Ss(()=>{i&&g.current&&g.current.focus()},[i]);let _={...n,alignItems:r,dense:h.dense,disableGutters:c,divider:l,selected:d},v=Pg(_),{root:y,...b}=v,x=xs(g,t);return(0,V.jsx)(Og.Provider,{value:h,children:(0,V.jsx)(Fg,{ref:x,href:p.href||p.to,component:(p.href||p.to)&&a===`div`?`button`:a,internalNativeButton:!1,focusVisibleClassName:H(v.focusVisible,u),ownerState:_,className:H(v.root,f),...p,classes:b,children:o})})}),Lg=U(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]);function Rg(e){return zr(`MuiListItemText`,e)}var zg=U(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),Bg=e=>{let{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return W({root:[`root`,n&&`inset`,a&&`dense`,r&&i&&`multiline`],primary:[`primary`],secondary:[`secondary`]},Rg,t)},Vg=K(`div`,{name:`MuiListItemText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${zg.primary}`]:t.primary},{[`& .${zg.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:`1 1 auto`,minWidth:0,marginTop:4,marginBottom:4,[`.${vd.root}:where(& .${zg.primary})`]:{display:`block`},[`.${vd.root}:where(& .${zg.secondary})`]:{display:`block`},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Hg=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiListItemText`}),{children:r,className:i,disableTypography:a=!1,inset:o=!1,primary:s,secondary:c,slots:l={},slotProps:u={},...d}=n,{dense:f}=E.useContext(Og),p=s??r,m=c,h={...n,disableTypography:a,inset:o,primary:!!p,secondary:!!m,dense:f},g=Bg(h),_={slots:l,slotProps:u},[v,y]=X(`root`,{className:H(g.root,i),elementType:Vg,externalForwardedProps:{..._,...d},ownerState:h,ref:t}),[b,x]=X(`primary`,{className:g.primary,elementType:Z,externalForwardedProps:_,ownerState:h}),[S,C]=X(`secondary`,{className:g.secondary,elementType:Z,externalForwardedProps:_,ownerState:h});return p!=null&&p.type!==Z&&!a&&(p=(0,V.jsx)(b,{variant:f?`body2`:`body1`,component:x?.variant?void 0:`span`,...x,children:p})),m!=null&&m.type!==Z&&!a&&(m=(0,V.jsx)(S,{variant:`body2`,color:`textSecondary`,...C,children:m})),(0,V.jsxs)(v,{...y,children:[p,m]})}),Ug=E.createContext(void 0);function Wg(){let e=E.useContext(Ug);if(e===void 0)throw Error(`MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.`);return e}var Gg=Object.is;function Kg(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!Gg(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var qg=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`,`Home`,`End`];function Jg(e){let{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:i=!1,isItemFocusable:a=c_,wrap:o=!0}=e,[s,c]=E.useState(t),[l,u]=E.useState(t),d=s;t!==l&&(u(t),t!==void 0&&t!==s&&(d=t,c(t)));let f=E.useRef(null),p=E.useRef(new Map),[m,h]=E.useState(0),g=E.useMemo(()=>a_(p.current),[m]),_=Xg(d,g,a,n),v=E.useRef(_);v.current=_;let y=E.useCallback(()=>{let e=a_(p.current);return n_(e,Xg(v.current,e,a,n))},[n,a]),b=E.useCallback(()=>p.current,[]),x=ds(e=>{Kg(p.current.get(e.id)??null,e)||(p.current.set(e.id,e),h(e=>e+1))}),S=ds(e=>{p.current.delete(e)&&h(e=>e+1)}),C=ds(e=>{c(e)}),w=E.useCallback(e=>v.current===e,[]),T=E.useCallback((e,t,n,r)=>{let i=e_(o_(p.current),e,t,n,r??a);return i?(i.element?.focus(),c(i.id),i):null},[a]),D=E.useCallback((e,t,n)=>({onFocus:e=>{t?.(e);let n=o_(p.current),r=i_(n,e.target);r!==-1&&c(n[r].id)},onKeyDown:e=>{if(n?.(e),e.defaultPrevented||e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||!qg.includes(e.key))return;let t=r===`horizontal`?`ArrowLeft`:`ArrowUp`,a=r===`horizontal`?`ArrowRight`:`ArrowDown`;r===`horizontal`&&i&&(t=`ArrowRight`,a=`ArrowLeft`);let s=o_(p.current),c=ws(fs(f.current)),l=c===f.current,u=$g(s,c,v.current),d=`next`;switch(e.key){case t:d=`previous`,e.preventDefault(),l&&(u=s.length);break;case a:e.preventDefault(),l&&(u=-1);break;case`Home`:e.preventDefault(),u=-1;break;case`End`:e.preventDefault(),d=`previous`,u=s.length;break;default:return}T(u,d,o)},ref:d_(e,e=>{f.current=e})}),[T,i,r,o]),O=E.useCallback(e=>{let t=o_(p.current),n=ws(fs(f.current)),r=n===f.current?-1:$g(t,n,v.current);return T(r,`next`,!0,e)?.id??null},[T]);return E.useMemo(()=>({activeItemId:_,focusNext:O,getActiveItem:y,getContainerProps:D,getItemMap:b,isItemActive:w,registerItem:x,setActiveItemId:C,unregisterItem:S}),[_,O,y,D,b,w,x,C,S])}function Yg(e){let{activeItemId:t,registerItem:n,unregisterItem:r}=Wg(),i=E.useRef(null),a=E.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),o=E.useRef(a);o.current=a;let s=E.useCallback(t=>{i.current=t,t==null?queueMicrotask(()=>{i.current??r(e.id)}):n({...o.current,element:t})},[e.id,n,r]),c=us(e.ref,s);return ti(()=>{i.current&&n({...a,element:i.current})},[a,n]),ti(()=>{let t=e.id;return()=>{r(t)}},[e.id,r]),{ref:c,tabIndex:t===e.id?0:-1}}function Xg(e,t,n,r){return e==null?Qg(t,n,r):Zg(e,t,n)}function Zg(e,t,n){let r=r_(t,e);return r===-1?t_(t,n):n(t[r])?t[r].id:e_(t,r,`next`,!1,n)?.id??null}function Qg(e,t,n){let r=n?.(e);if(r!=null){let n=n_(e,r);if(n&&t(n))return n.id}return t_(e,t)}function $g(e,t,n){if(t){let n=i_(e,t);if(n!==-1)return n}return r_(e,n)}function e_(e,t,n,r,i){let a=e.length-1;if(a===-1)return null;let o=!1,s=s_(t,a,n,r),c=s;for(;s!==-1;){if(s===c){if(o)return null;o=!0}let t=e[s];if(!t||!i(t))s=s_(s,a,n,r);else return t}return null}function t_(e,t){return e.find(e=>t(e))?.id??null}function n_(e,t){return t==null?null:e.find(e=>e.id===t)??null}function r_(e,t){return t==null?-1:e.findIndex(e=>e.id===t)}function i_(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function a_(e){let t=Array.from(e.values());if(t.every(e=>e.element==null))return t;let n=t.filter(l_).sort((e,t)=>u_(e.element,t.element)),r=t.filter(e=>!l_(e));return[...n,...r]}function o_(e){return a_(e).filter(l_)}function s_(e,t,n,r=!0){return n===`next`?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function c_(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute(`disabled`)&&e.element.getAttribute(`aria-disabled`)!==`true`&&e.element.hasAttribute(`tabindex`):!1}function l_(e){return e.element!=null&&e.element.isConnected}function u_(e,t){if(e===t)return 0;let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function d_(...e){return t=>{e.forEach(e=>{Sl(e??null,t)})}}var f_=Em;function p_(e,t){if(t==null)e.focus();else try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}function m_(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function h_(e){return e==null||typeof e==`string`&&!e.trim()}function g_(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var __=E.createContext(null);function v_(){return E.useContext(__)}var y_=__.Provider,b_=E.createContext(void 0);function x_(){let e=E.useContext(b_);if(e===void 0)throw Error(`MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.`);return e}function S_(e){let t=e?.element??e;if(!t)return``;if(e?.textValue!==void 0)return e.textValue;let n=t.innerText;return n===void 0&&(n=t.textContent),n??``}function C_(e,t){if(t===void 0)return!0;let n=S_(e);return n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function w_(e,t){return C_(e,t)?c_(e):!1}function T_(e,t){p_(e,t)}var E_=E.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=E.useRef(null),p=E.useRef(!1),[m,h]=E.useState(!1),g=v_(),_=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),v=Jg({activeItemId:void 0,getDefaultActiveItemId:E.useCallback(e=>u===`selectedMenu`?e.find(e=>e.selected&&c_(e))?.id??e.find(e=>c_(e))?.id??null:e.find(e=>c_(e))?.id??null,[u]),orientation:`vertical`,wrap:!c}),{activeItemId:y,focusNext:b,getActiveItem:x,getContainerProps:S,getItemMap:C}=v,w=El((e=!1)=>{if(!f.current||!e&&p.current)return null;if(i){let e=x();if(e?.element){let t=Array.from(C().values()).some(e=>e.selected),n=u===`menu`&&t&&!e.selected&&g==null;return h(n),T_(e.element,g),p.current=!0,e.element}return r?(h(!1),f.current.focus(),f.current):null}return r?(h(!1),f.current.focus(),p.current=!0,f.current):(h(!1),null)});Ss(()=>{!r&&!i?(p.current=!1,h(!1)):w()},[y,i,r,w]),E.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=xl(e),r=f_(n);if(r>0){let e=`${r}px`,i=t===`rtl`?`paddingLeft`:`paddingRight`,a=parseFloat(n.getComputedStyle(f.current)[i])||0;f.current.style[i]=`${a+r}px`,f.current.style.width=`calc(100% + ${e})`}}return f.current},focusInitialTarget:()=>{if(!f.current)return null;let e=Ts(Cs(f.current));return e&&Fm(f.current,e)?e:w(!0)}}),[w]);let T=S(void 0,d.onFocus),D=xs(f,T.ref,t),O=E.useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:m,variant:u}),[s,m,u]),k=El(e=>{if(m&&h(!1),(e.ctrlKey||e.metaKey||e.altKey)&&l)l(e);else{if(T.onKeyDown(e),e.key.length===1){let t=_.current,n=e.key.toLowerCase(),r=performance.now();t.keys.length>0&&(r-t.lastTime>500?(t.keys=[],t.repeating=!0,t.previousKeyMatched=!0):t.repeating&&n!==t.keys[0]&&(t.repeating=!1)),t.lastTime=r,t.keys.push(n);let i=Ts(Cs(f.current)),a=i&&!t.repeating&&C_(i,t);t.previousKeyMatched&&(a||b(e=>w_(e,t))!=null)?e.preventDefault():t.previousKeyMatched=!1}l&&l(e)}});return(0,V.jsx)(Mg,{role:`menu`,ref:D,className:o,onKeyDown:k,tabIndex:-1,...d,onFocus:T.onFocus,children:(0,V.jsx)(b_.Provider,{value:O,children:(0,V.jsx)(Ug.Provider,{value:v,children:a})})})});function D_(e){return zr(`MuiPopover`,e)}U(`MuiPopover`,[`root`,`paper`]);function O_(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function k_(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function A_(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function j_(e){return typeof e==`function`?e():e}var M_=e=>{let{classes:t}=e;return W({root:[`root`],paper:[`paper`]},D_,t)},N_=K(eh,{name:`MuiPopover`,slot:`Root`})({}),P_=K(ru,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),F_=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,disableAutoFocus:d=!1,elevation:f=8,marginThreshold:p=16,open:m,slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},transitionDuration:v=`auto`,disableScrollLock:y=!1,...b}=n,x=E.useRef(),S={...n,anchorOrigin:a,anchorReference:s,elevation:f,marginThreshold:p,transformOrigin:_,transitionDuration:v},C=M_(S),w=E.useCallback(()=>{if(s===`anchorPosition`)return o;let e=j_(i),t=(e&&e.nodeType===1?e:Cs(x.current).body).getBoundingClientRect();return{top:t.top+O_(t,a.vertical),left:t.left+k_(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),T=E.useCallback(e=>({vertical:O_(e,_.vertical),horizontal:k_(e,_.horizontal)}),[_.horizontal,_.vertical]),D=E.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if(s===`none`)return{top:null,left:null,transformOrigin:A_(n)};let r=w(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=xl(j_(i)),d=u.innerHeight-p,f=u.innerWidth-p;if(p!=null&&a<p){let e=a-p;a-=e,n.vertical+=e}else if(p!=null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(p!=null&&o<p){let e=o-p;o-=e,n.horizontal+=e}else if(l>f){let e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:A_(n)}},[i,s,w,T,p]),[O,k]=E.useState(m),A=E.useCallback(()=>{let e=x.current;if(!e)return;let t=D(e);t.top!=null&&e.style.setProperty(`top`,t.top),t.left!=null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,k(!0)},[D]);E.useEffect(()=>(y&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,y,A]);let j=()=>{A()},M=()=>{k(!1)};E.useEffect(()=>{m&&A()}),E.useImperativeHandle(r,()=>m?{updatePosition:()=>{A()}}:null,[m,A]),E.useEffect(()=>{if(!m)return;let e=yl(()=>{A()}),t=xl(j_(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,m,A]);let N=v,P={slots:h,slotProps:g},[F,ee]=X(`transition`,{elementType:_g,externalForwardedProps:P,ownerState:S,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),j()},onExited:t=>{e.onExited?.(t),M()}}),additionalProps:{appear:!0,in:m}});v===`auto`&&!F.muiSupportAuto&&(N=void 0);let te=u||(i?Cs(j_(i)).body:void 0),[I,{slots:ne,slotProps:re,...ie}]=X(`root`,{ref:t,elementType:N_,externalForwardedProps:{...P,...b},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Ol(typeof g.backdrop==`function`?g.backdrop(S):g.backdrop,{invisible:!0})},container:te,open:m},ownerState:S,className:H(C.root,l)}),[ae,oe]=X(`paper`,{ref:x,className:C.paper,elementType:P_,externalForwardedProps:P,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:O?void 0:{opacity:0}},ownerState:S});return(0,V.jsx)(I,{...ie,...!cs(I)&&{slots:ne,slotProps:re,disableAutoFocus:d,disableScrollLock:y},children:(0,V.jsx)(F,{...ee,timeout:N,children:(0,V.jsx)(ae,{...oe,children:c})})})});function I_(e){return zr(`MuiMenu`,e)}U(`MuiMenu`,[`root`,`paper`,`list`]);var L_={vertical:`top`,horizontal:`right`},R_={vertical:`top`,horizontal:`left`},z_=e=>{let{classes:t}=e;return W({root:[`root`],paper:[`paper`],list:[`list`]},I_,t)},B_=K(F_,{shouldForwardProp:e=>Qo(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),V_=K(P_,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),H_=K(E_,{name:`MuiMenu`,slot:`List`})({outline:0}),U_=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,onClose:s,open:c,PopoverClasses:l,transitionDuration:u=`auto`,variant:d=`selectedMenu`,slots:f={},slotProps:p={},...m}=n,h=ji(),g={...n,autoFocus:r,disableAutoFocusItem:o,transitionDuration:u,variant:d},_=z_(g),v=r&&c,y=v&&!o,b=E.useRef(null),x=(e,t)=>{b.current&&(b.current.adjustStyleForScrollbar(e,{direction:h?`rtl`:`ltr`}),v&&b.current.focusInitialTarget?.())},S=e=>{e.key===`Tab`&&(e.preventDefault(),s&&s(e,`tabKeyDown`))},C={slots:f,slotProps:p},w=Cp({elementType:f.root,externalSlotProps:p.root,ownerState:g,className:[_.root,a]}),[T,D]=X(`paper`,{className:_.paper,elementType:V_,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:g}),[O,k]=X(`list`,{className:_.list,elementType:H_,shouldForwardComponentProp:!0,externalForwardedProps:C,getSlotProps:e=>({...e,onKeyDown:t=>{S(t),e.onKeyDown?.(t)}}),ownerState:g}),A=typeof p.transition==`function`?p.transition(g):p.transition;return(0,V.jsx)(B_,{disableAutoFocus:r,onClose:s,anchorOrigin:{vertical:`bottom`,horizontal:h?`right`:`left`},transformOrigin:h?L_:R_,slots:{root:f.root,paper:T,backdrop:f.backdrop,transition:f.transition},slotProps:{root:w,paper:D,backdrop:typeof p.backdrop==`function`?p.backdrop(g):p.backdrop,transition:{...A,onEntering:(...e)=>{x(...e),A?.onEntering?.(...e)}}},open:c,ref:t,transitionDuration:u,ownerState:g,...m,classes:l,children:(0,V.jsx)(O,{actions:b,autoFocus:v,autoFocusItem:y,variant:d,...k,children:i})})}),W_=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},G_=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=W({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},mc,o);return{...o,...s}},K_=K(Pu,{shouldForwardProp:e=>Qo(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:W_})(J(({theme:e})=>({...e.typography.body1,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:`border-box`,whiteSpace:`nowrap`,"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${hc.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),...!e.focusVisible&&{[`&.${hc.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},[`&.${hc.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},...e.focusVisible?Xa(1):{[`&.${hc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${hc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ch.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ch.inset}`]:{marginLeft:52},[`& .${zg.root}`]:{marginTop:0,marginBottom:0},[`& .${zg.inset}`]:{paddingLeft:36},[`& .${Lg.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Lg.root} svg`]:{fontSize:`1.25rem`}}}]}))),q_=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=l===`menuitemcheckbox`||l===`menuitemradio`?!!n.selected:void 0,m=v_(),h=E.useContext(Og),g=E.useMemo(()=>({dense:a||h.dense||!1,disableGutters:s}),[h.dense,a,s]),_=x_(),v=Cl(),y=_.suppressInitialFocusVisible,b=_.itemsFocusableWhenDisabled,x=E.useRef(null);Ss(()=>{r&&x.current&&p_(x.current,m)},[r]);let S={...n,dense:g.dense,divider:o,disableGutters:s},C=G_(n),{root:w,...T}=C,D=Yg({id:v,ref:t,disabled:n.disabled,focusableWhenDisabled:b,selected:n.selected}),O=xs(x,D.ref),k;return u===void 0?_.variant===`selectedMenu`?k=D.tabIndex:(!n.disabled||b)&&(k=-1):k=u,(0,V.jsx)(Og.Provider,{value:g,children:(0,V.jsx)(K_,{ref:O,role:l,"aria-checked":p,tabIndex:k,component:i,internalNativeButton:!1,focusableWhenDisabled:b,suppressFocusVisible:y,focusVisibleClassName:H(C.focusVisible,c),className:H(C.root,d),...f,ownerState:S,classes:T})})}),J_=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return W({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${Y(n)}`,a&&`iconOpen`,r&&`disabled`]},gc,t)},Y_=K(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${_c.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},[`& ~ .${wg.root}`]:{position:`absolute`,top:`50%`,transform:`translateY(-50%)`,right:`calc(var(--_caret, 24px) + (var(--_endAdornment, 28px) - 1.5rem)/2)`},[`.${As.root}:has(> &)`]:{"--_endAdornment":`0px`},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{[`.${As.root}:has(> &)`]:{"--_caret":`24px`},[`.${As.root}:has(> & ~ .${wg.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 24px) + var(--_endAdornment, 0px))`,minWidth:16}}},{props:{variant:`filled`},style:{[`.${As.root}:has(> &)`]:{"--_caret":`32px`},[`.${As.root}:has(> & ~ .${wg.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}},{props:{variant:`outlined`},style:{[`.${As.root}:has(> &)`]:{"--_caret":`32px`},[`.${As.root}:has(> & ~ .${wg.root})`]:{"--_endAdornment":`28px`},borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}}]})),X_=K(Y_,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:Qo,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${_c.multiple}`]:t.multiple}]}})({}),Z_=K(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${_c.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),Q_=K(Z_,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Y(n.variant)}`],n.open&&t.iconOpen]}})({}),$_=E.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=J_(l);return(0,V.jsxs)(E.Fragment,{children:[(0,V.jsx)(X_,{ownerState:l,className:H(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,V.jsx)(Q_,{as:a,ownerState:l,className:u.icon})]})}),ev,tv=K(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:Qo})({textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`}),nv=K(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:Qo})(J(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,...qs(e,`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,...qs(e,`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,...qs(e,`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function rv(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,V.jsx)(tv,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,V.jsx)(nv,{ownerState:c,children:s?(0,V.jsx)(`span`,{children:i}):ev||=(0,V.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``})})})}var iv=e=>{let{classes:t}=e,n=W({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},vc,t);return{...t,...n}},av=K(ec,{shouldForwardProp:e=>Qo(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:Zs})(J(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${yc.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${yc.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${yc.focused} .${yc.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ru()).map(([t])=>({props:{color:t},style:{[`&.${yc.focused} .${yc.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${yc.error} .${yc.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${yc.disabled} .${yc.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{"--_trailingPad":`14px`,paddingRight:`var(--_trailingPad)`,[`&.${Zh.root}`]:{"--_trailingPad":`0px`}}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),ov=K(rv,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(J(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),sv=K(tc,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:Qs})(J(({theme:e})=>({padding:`16.5px 14px`,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderRadius:`inherit`,...e.vars&&e.applyStyles(`dark`,{WebkitBoxShadow:`0 0 0 100px #266798 inset`,WebkitTextFillColor:`#fff`,caretColor:`#fff`})},variants:[{props:{size:`small`},style:{padding:`8.5px 14px`}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),cv=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiOutlinedInput`}),{fullWidth:r=!1,inputComponent:i=`input`,label:a,multiline:o=!1,notched:s,slots:c={},slotProps:l={},type:u=`text`,...d}=n,f=iv(n),[p,m]=bs({props:n,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),h={...n,color:p.color||`primary`,disabled:p.disabled,error:p.error,focused:p.focused,formControl:m,fullWidth:r,hiddenLabel:p.hiddenLabel,multiline:o,size:p.size,type:u},g=c.root??av,_=c.input??sv,[v,y]=X(`notchedOutline`,{elementType:ov,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:h,externalForwardedProps:{slots:c,slotProps:l},additionalProps:{label:a!=null&&a!==``&&p.required?(0,V.jsxs)(E.Fragment,{children:[a,` `,`*`]}):a}});return(0,V.jsx)(rc,{slots:{root:g,input:_},slotProps:l,renderSuffix:e=>(0,V.jsx)(v,{...y,notched:s===void 0?!!(e.startAdornment||e.filled||e.focused):s}),fullWidth:r,inputComponent:i,multiline:o,ref:t,type:u,...d,classes:{...f,notchedOutline:null}})});cv.muiName=`Input`;function lv(e){return Object.prototype.hasOwnProperty.call(e.props,`value`)}function uv(e){if(typeof e==`string`||typeof e==`number`)return String(e);let t=``;return E.Children.forEach(e,e=>{typeof e==`string`||typeof e==`number`?t+=String(e):E.isValidElement(e)&&(t+=uv(e.props.children))}),t}function dv(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length;for(let n=0;n<e.length;n+=1){let i=(r+n)%e.length;if(e[i].label.startsWith(t))return i}return-1}function fv(e,t){return!e.some(e=>e.label[0]===t&&e.label[1]===t)}function pv(e,t){let n=[],r=-1;for(let i=0;i<e.length;i+=1){let a=e[i];if(!E.isValidElement(a)||!lv(a)||a.props.disabled)continue;let o=uv(a.props.children).trim().toLowerCase();o!==``&&(r===-1&&g_(t,a.props.value)&&(r=n.length),n.push({child:a,label:o,value:a.props.value}))}return{options:n,selectedIndex:r}}var mv,hv=2,gv=400,_v=200,vv=750,yv=` `,bv=`ArrowUp`,xv=`ArrowDown`,Sv=`Enter`;function Cv(e,t){if(!t)return!1;if(e.composedPath().includes(t)||e.target?.nodeType&&t.contains(e.target))return!0;let n=t.getBoundingClientRect();return n.width===0&&n.height===0?!1:e.clientX>=n.left-hv&&e.clientX<=n.right+hv&&e.clientY>=n.top-hv&&e.clientY<=n.bottom+hv}var wv=K(Y_,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${Zh.select}`]:t.select},{[`&.${Zh.select}`]:t[n.variant]},{[`&.${Zh.error}`]:t.error},{[`&.${Zh.multiple}`]:t.multiple}]}})({[`&.${Zh.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),Tv=K(Z_,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.open&&t.iconOpen]}})({}),Ev=K(`input`,{shouldForwardProp:e=>Zo(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),Dv=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return W({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},Xh,t)},Ov=E.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:b,onClose:S,onFocus:C,onKeyDown:w,onMouseDown:T,onOpen:D,open:O,readOnly:k,renderValue:A,required:j,SelectDisplayProps:M={},tabIndex:N,type:P,value:F,variant:ee=`standard`,...te}=e,[I,ne]=Tl({controlled:F,default:l,name:`Select`}),[re,ie]=Tl({controlled:O,default:c,name:`Select`}),ae=E.useRef(null),oe=E.useRef(null),se=E.useRef(null),ce=E.useRef(!1),le=E.useRef(!1),ue=E.useRef(null),de=E.useRef(!1),L=E.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),R=E.useRef({buffer:``,previousSearchIndex:null,matchedIndex:null}),fe=mu(),pe=mu(),me=mu(),[he,z]=E.useState(null),{current:ge}=E.useRef(O!=null),[_e,ve]=E.useState(),[ye,be]=E.useState(null),xe=xs(t,m),Se=E.useCallback(e=>{oe.current=e,e&&z(e)},[]),Ce=he?.parentNode;E.useImperativeHandle(xe,()=>({focus:()=>{oe.current.focus()},node:ae.current,value:I}),[I]);let we=he!==null&&re,Te=E.useCallback(()=>{me.clear(),R.current.buffer=``,R.current.previousSearchIndex=null,R.current.matchedIndex=null},[me]);Ss(()=>{ce.current=we,we&&Te()},[we,Te]);let Ee=E.useCallback(()=>{fe.clear(),pe.clear()},[fe,pe]),De=E.useCallback(()=>{Ee(),de.current=!1,L.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},[Ee]),Oe=E.useCallback(()=>{ue.current&&=(ue.current(),null)},[]);E.useEffect(()=>{we||(De(),Oe())},[we,De,Oe]),E.useEffect(()=>()=>{De(),Oe(),Te()},[De,Oe,Te]),E.useEffect(()=>{if(!we||!Ce||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{ve(Ce.clientWidth)});return e.observe(Ce),()=>{e.disconnect()}},[we,Ce,a]),E.useEffect(()=>{c&&re&&he&&!ge&&(ve(a?null:Ce.clientWidth),oe.current.focus())},[he,a]),E.useEffect(()=>{i&&oe.current.focus()},[i]),E.useEffect(()=>{if(!h)return;let e=Cs(oe.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&oe.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let ke=El((e,t)=>{e||(De(),Oe()),e?(Te(),be(m_(t)),D&&D(t)):(be(null),S&&S(t)),ge||(ce.current=e,ve(a?null:Ce.clientWidth),ie(e))}),Ae=()=>{De(),le.current?pe.start(_v,()=>{L.current.allowUnselectedMouseUp=!0,fe.start(_v,()=>{L.current.allowSelectedMouseUp=!0})}):fe.start(gv,()=>{L.current.allowSelectedMouseUp=!0,L.current.allowUnselectedMouseUp=!0})},je=e=>{if(T?.(e),e.button!==0||(e.preventDefault(),!oe.current))return;oe.current.focus();let t=Cs(e.currentTarget);Ae(),Oe();let n=e=>{ue.current=null,oe.current&&(Cv(e,oe.current)||Cv(e,se.current)||(ce.current||!ge)&&ke(!1,e))};t.addEventListener(`mouseup`,n,{capture:!0,once:!0}),ue.current=()=>{t.removeEventListener(`mouseup`,n,!0)},ke(!0,e)},Me=e=>{ke(!1,e)},Ne=E.Children.toArray(o),Pe=e=>{let t=Ne.find(t=>t.props.value===e.target.value);t!==void 0&&(ne(t.props.value),b&&b(e,t))},Fe=(e,t,n)=>{if(ne(n),b){let r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),b(i,t)}},Ie=e=>t=>{de.current=!1;let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(I)?I.slice():[];let t=I.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),I!==n&&Fe(t,e,n),_||ke(!1,t)}},Le=(e,t)=>n=>{if(e.props.onMouseUp?.(n),de.current){de.current=!1;return}let r=!L.current.allowSelectedMouseUp&&t,i=!L.current.allowUnselectedMouseUp&&!t;r||i||n.currentTarget.click()},Re=e=>{let t=R.current,n=t.buffer!==``;if(we||_||u||e.defaultPrevented||e.nativeEvent?.isComposing||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey||e.key===yv&&!n)return!1;e.key===yv&&e.preventDefault();let r=t.buffer===``,{options:i,selectedIndex:a}=pv(Ne,I);if(i.length===0)return e.key!==yv&&Te(),!0;r&&(t.previousSearchIndex=a);let o=e.key.toLowerCase();t.buffer===o&&fv(i,o)&&(t.buffer=``,t.previousSearchIndex=t.matchedIndex),t.buffer+=o,me.start(vv,Te);let s=dv(i,t.buffer,(t.previousSearchIndex??-1)+1);if(s!==-1){let n=i[s];return t.matchedIndex=s,g_(I,n.value)||Fe(e,n.child,n.value),!0}return e.key!==yv&&Te(),!0},ze=e=>{if(!k){let t=Re(e),n=e.key===yv||e.key===bv||e.key===xv||e.key===Sv;!t&&n&&(e.preventDefault(),ke(!0,e)),w?.(e)}},Be=e=>{Te(),!we&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:I,name:v}}),y(e))},Ve=e=>t=>{e?.props?.onKeyDown?.(t),t.key===yv&&t.target===t.currentTarget&&!t.defaultPrevented&&(t.preventDefault(),t.repeat||t.currentTarget.click())};delete te[`aria-invalid`];let He,Ue,We=[],Ge=!1,Ke=!1;(Ds({value:I})||d)&&(A?He=A(I):Ge=!0);let qe=Ne.map(e=>{if(!E.isValidElement(e))return null;let t;if(_){if(!Array.isArray(I))throw Error(x(2));t=I.some(t=>g_(t,e.props.value)),t&&Ge&&We.push(e.props.children)}else t=g_(I,e.props.value),t&&Ge&&(Ue=e.props.children);return t&&(Ke=!0),E.cloneElement(e,{"aria-selected":t?`true`:`false`,onMouseDown:t=>{de.current=!0,e.props.onMouseDown?.(t)},onPointerDown:t=>{de.current=!0,e.props.onPointerDown?.(t)},onClick:Ie(e),onMouseUp:Le(e,t),onKeyUp:t=>{t.key===yv&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},onKeyDown:Ve(e),role:`option`,selected:t,value:void 0,"data-value":e.props.value})});Ss(()=>{le.current=Ke,!we&&!_&&!Ke&&Te()},[Ke,_,we,Te]),Ge&&(He=_?We.length===0?null:We.reduce((e,t,n)=>(e.push(t),n<We.length-1&&e.push(`, `),e),[]):Ue);let Je=_e;!a&&ge&&he&&(Je=Ce.clientWidth);let Ye;Ye=N===void 0?u?null:0:N;let Xe=M.id||(v?`mui-component-select-${v}`:void 0),Ze={...e,variant:ee,value:I,open:we,error:f},Qe=Dv(Ze),$e=typeof g.slotProps?.paper==`function`?g.slotProps.paper(Ze):g.slotProps?.paper,et=xs($e?.ref,se),tt=typeof g.slotProps?.list==`function`?g.slotProps.list(Ze):g.slotProps?.list,nt=zi(),rt=zi();return(0,V.jsxs)(E.Fragment,{children:[(0,V.jsx)(wv,{as:`div`,ref:Se,tabIndex:Ye,role:`combobox`,"aria-controls":we?nt:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":we?`true`:`false`,"aria-haspopup":`listbox`,"aria-readonly":k?`true`:void 0,"aria-label":r,"aria-labelledby":h,"aria-describedby":n,"aria-required":j?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:ze,onMouseDown:u||k?null:je,onBlur:Be,onFocus:C,...M,ownerState:Ze,className:H(M.className,Qe.select,s),id:Xe,children:h_(He)?mv||=(0,V.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``}):He}),(0,V.jsx)(Ev,{"aria-invalid":f,value:Array.isArray(I)?I.join(`,`):I,name:v,ref:ae,"aria-hidden":!0,onChange:Pe,tabIndex:-1,disabled:u,readOnly:k,className:Qe.nativeInput,autoFocus:i,required:j,...te,id:te.id??rt,ownerState:Ze}),(0,V.jsx)(Tv,{as:p,className:Qe.icon,ownerState:Ze}),(0,V.jsx)(y_,{value:ye,children:(0,V.jsx)(U_,{id:`menu-${v||``}`,anchorEl:Ce,open:we,onClose:Me,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":h,role:`listbox`,"aria-multiselectable":_?`true`:void 0,disableListWrap:!0,id:nt,...tt},paper:{...$e,ref:et,style:{minWidth:Je,...$e?.style}}},children:qe})})]})}),kv=e=>{let{classes:t}=e,n=W({root:[`root`]},Xh,t);return{...t,...n}},Av={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>Qo(e)&&e!==`variant`},jv=K(Cg,Av)(``),Mv=K(cv,Av)(``),Nv=K(tg,Av)(``),Pv=E.forwardRef(function(e,t){let n=q({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=Gp,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:S,variant:C=`outlined`,...w}=n,T=_?$_:Ov,[D]=bs({props:n,states:[`variant`,`error`]}),O=D.variant||C,k={...n,variant:O,classes:a},j=kv(k),{root:M,...N}=j,P=d||{standard:(0,V.jsx)(jv,{ownerState:k}),outlined:(0,V.jsx)(Mv,{label:p,ownerState:k}),filled:(0,V.jsx)(Nv,{ownerState:k})}[O],F=xs(t,wp(P));return(0,V.jsx)(E.Fragment,{children:E.cloneElement(P,{inputComponent:T,inputProps:{children:i,error:D.error,IconComponent:l,variant:O,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:{id:u,...S}},...f,classes:f?A(N,f.classes):N,...d?d.props.inputProps:{}},...(g&&_||c)&&O===`outlined`?{notched:!0}:{},ref:F,className:H(P.props.className,o,j.root),...!d&&{variant:O},...w})})});Pv.muiName=`Select`;function Fv(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,o=mu();E.useEffect(()=>{if(!i)return;function e(e){e.defaultPrevented||e.key===`Escape`&&r?.(e,`escapeKeyDown`)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[i,r]);let s=ds((e,t)=>{r?.(e,t)}),c=ds(e=>{r&&e!=null&&o.start(e,()=>{s(null,`timeout`)})});E.useEffect(()=>(i&&c(t),o.clear),[i,t,c,o]);let l=e=>{r?.(e,`clickaway`)},u=o.clear,d=E.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),f=e=>t=>{let n=e.onBlur;n?.(t),d()},p=e=>t=>{let n=e.onFocus;n?.(t),u()},m=e=>t=>{let n=e.onMouseEnter;n?.(t),u()},h=e=>t=>{let n=e.onMouseLeave;n?.(t),d()};return E.useEffect(()=>{if(!n&&i)return window.addEventListener(`focus`,d),window.addEventListener(`blur`,u),()=>{window.removeEventListener(`focus`,d),window.removeEventListener(`blur`,u)}},[n,i,d,u]),{getRootProps:(t={})=>{let n={...Zl(e),...Zl(t)};return{role:`presentation`,...t,...n,onBlur:f(n),onFocus:p(n),onMouseEnter:m(n),onMouseLeave:h(n)}},onClickAway:l}}function Iv(e){return zr(`MuiSnackbarContent`,e)}U(`MuiSnackbarContent`,[`root`,`message`,`action`]);var Lv=e=>{let{classes:t}=e;return W({root:[`root`],action:[`action`],message:[`message`]},Iv,t)},Rv=K(ru,{name:`MuiSnackbarContent`,slot:`Root`})(J(({theme:e})=>{let t=e.palette.mode===`light`?.8:.98;return{...e.focusVisible&&Ya(`0 0 0 4px ${(e.vars||e).palette.background.default}`),...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Si(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Si(e.palette.background.default,t),display:`flex`,alignItems:`center`,flexWrap:`wrap`,padding:`6px 16px`,flexGrow:1,[e.breakpoints.up(`sm`)]:{flexGrow:`initial`,minWidth:288}}})),zv=K(`div`,{name:`MuiSnackbarContent`,slot:`Message`})({padding:`8px 0`}),Bv=K(`div`,{name:`MuiSnackbarContent`,slot:`Action`})({display:`flex`,alignItems:`center`,marginLeft:`auto`,paddingLeft:16,marginRight:-8}),Vv=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiSnackbarContent`}),{action:r,className:i,message:a,role:o=`alert`,...s}=n,c=n,l=Lv(c);return(0,V.jsxs)(Rv,{role:o,elevation:6,className:H(l.root,i),ownerState:c,ref:t,...s,children:[(0,V.jsx)(zv,{className:l.message,ownerState:c,children:a}),r?(0,V.jsx)(Bv,{className:l.action,ownerState:c,children:r}):null]})});function Hv(e){return zr(`MuiSnackbar`,e)}U(`MuiSnackbar`,[`root`,`anchorOriginTopCenter`,`anchorOriginBottomCenter`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`]);var Uv=e=>{let{classes:t,anchorOrigin:n}=e;return W({root:[`root`,`anchorOrigin${Y(n.vertical)}${Y(n.horizontal)}`]},Hv,t)},Wv=K(`div`,{name:`MuiSnackbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${Y(n.anchorOrigin.vertical)}${Y(n.anchorOrigin.horizontal)}`]]}})(J(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:`fixed`,display:`flex`,left:8,right:8,justifyContent:`center`,alignItems:`center`,variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`,style:{top:8,[e.breakpoints.up(`sm`)]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!==`top`,style:{bottom:8,[e.breakpoints.up(`sm`)]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`left`,style:{justifyContent:`flex-start`,[e.breakpoints.up(`sm`)]:{left:24,right:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`right`,style:{justifyContent:`flex-end`,[e.breakpoints.up(`sm`)]:{right:24,left:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`center`,style:{[e.breakpoints.up(`sm`)]:{left:`50%`,right:`auto`,transform:`translateX(-50%)`}}}]}))),Gv=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiSnackbar`}),r=Yo(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:o,horizontal:s}={vertical:`bottom`,horizontal:`left`},autoHideDuration:c=null,children:l,className:u,disableWindowBlurListener:d=!1,message:f,onBlur:p,onClose:m,onFocus:h,onMouseEnter:g,onMouseLeave:_,open:v,resumeHideDuration:y,slots:b={},slotProps:x={},transitionDuration:S=i,...C}=n,w={...n,anchorOrigin:{vertical:o,horizontal:s},autoHideDuration:c,disableWindowBlurListener:d,transitionDuration:S},T=Uv(w),{getRootProps:D,onClickAway:O}=Fv(w),[k,A]=E.useState(!0),j={slots:b,slotProps:x},[M,N]=X(`root`,{ref:t,className:[T.root,u],elementType:Wv,getSlotProps:D,externalForwardedProps:{...j,...C},ownerState:w}),[P,{ownerState:F,...ee}]=X(`clickAwayListener`,{elementType:Tm,externalForwardedProps:j,getSlotProps:e=>({onClickAway:(...t)=>{let n=t[0];e.onClickAway?.(...t),!n?.defaultMuiPrevented&&O(...t)}}),ownerState:w}),[te,I]=X(`content`,{elementType:Vv,shouldForwardComponentProp:!0,externalForwardedProps:j,additionalProps:{message:f,action:a},ownerState:w}),[ne,re]=X(`transition`,{elementType:_g,externalForwardedProps:j,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),A(!1)},onExited:(...t)=>{e.onExited?.(...t),A(!0)}}),additionalProps:{appear:!0,in:v,timeout:S,direction:o===`top`?`down`:`up`},ownerState:w});return!v&&k?null:(0,V.jsx)(P,{...ee,...b.clickAwayListener&&{ownerState:F},children:(0,V.jsx)(M,{...N,children:(0,V.jsx)(ne,{...re,children:l||(0,V.jsx)(te,{...I})})})})});function Kv(e){return zr(`MuiTooltip`,e)}var qv=U(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function Jv(e){return Math.round(e*1e5)/1e5}var Yv=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return W({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${Y(a.split(`-`)[0])}`],arrow:[`arrow`]},Kv,t)},Xv=K(Ip,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(J(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`,variants:[{props:({ownerState:e,open:t})=>t&&!e.disableInteractive,style:{pointerEvents:`auto`}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${qv.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${qv.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${qv.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineStart:0,marginInlineStart:`-0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${qv.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineEnd:0,marginInlineEnd:`-0.71em`,"&::before":{transformOrigin:`0 0`}}}}]}))),Zv=K(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Y(n.placement.split(`-`)[0])}`]]}})(J(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${qv.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`,marginInlineEnd:`14px`},[`.${qv.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`,marginInlineStart:`14px`},[`.${qv.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${qv.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:`center top`,marginTop:`14px`},variants:[{props:({ownerState:e})=>e.arrow,style:{position:`relative`,marginBlock:0}},{props:({ownerState:e})=>e.touch,style:{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${Jv(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>e.touch,style:{[`.${qv.popper}[data-popper-placement*="left"] &`]:{marginInlineEnd:`24px`},[`.${qv.popper}[data-popper-placement*="right"] &`]:{marginInlineStart:`24px`},[`.${qv.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`},[`.${qv.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),Qv=K(`span`,{name:`MuiTooltip`,slot:`Arrow`})(J(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),$v=!1,ey=new pu,ty={x:0,y:0};function ny(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var ry=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,describeChild:o=!1,disableFocusListener:s=!1,disableHoverListener:c=!1,disableInteractive:l=!1,disableTouchListener:u=!1,enterDelay:d=100,enterNextDelay:f=0,enterTouchDelay:p=700,followCursor:m=!1,id:h,leaveDelay:g=0,leaveTouchDelay:_=1500,onClose:v,onOpen:y,open:b,placement:x=`bottom`,slotProps:S={},slots:C={},title:w,...T}=n,D=E.isValidElement(i)?i:(0,V.jsx)(`span`,{children:i}),O=Yo(),[k,A]=E.useState(),[j,M]=E.useState(null),N=E.useRef(!1),P=E.useRef(!1),F=l||m,ee=mu(),te=mu(),I=mu(),ne=mu(),[re,ie]=Tl({controlled:b,default:!1,name:`Tooltip`,state:`open`}),ae=re,{current:oe}=E.useRef(b!==void 0),se=Cl(h),ce=E.useRef(),le=El(()=>{ce.current!==void 0&&(document.body.style.WebkitUserSelect=ce.current,ce.current=void 0),ne.clear()});E.useEffect(()=>le,[le]);let ue=e=>{ey.clear(),$v=!0,ie(!0),y&&!ae&&y(e)},de=El(e=>{P.current=!1,ey.start(800+g,()=>{$v=!1}),ie(!1),v&&ae&&v(e),ee.start(O.transitions.duration.shortest,()=>{N.current=!1})}),L=e=>{N.current&&e.type!==`touchstart`||(k&&k.removeAttribute(`title`),te.clear(),I.clear(),d||$v&&f?te.start($v?f:d,()=>{ue(e)}):ue(e))},R=e=>{if(k?.disabled&&!oe){if(ae&&!P.current)return;P.current=!0}else P.current=!1;L(e)},fe=e=>{(!k?.disabled||oe||P.current)&&L(e)},pe=e=>{te.clear(),I.start(g,()=>{de(e)})},[,me]=E.useState(!1),he=e=>{let t=e?.target??k;if(!t||t.disabled||!iu(t)){me(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),pe(n)}},z=e=>{if(k||A(e.currentTarget),P.current=!1,iu(e.target)){let t=e=>{e.target.disabled&&he(e),e.target.removeEventListener(`blur`,t)};e.target.addEventListener(`blur`,t),me(!0),L(e)}},ge=e=>{N.current=!0;let t=D.props;t.onTouchStart&&t.onTouchStart(e)},_e=e=>{ge(e),I.clear(),ee.clear(),le(),ce.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,ne.start(p,()=>{document.body.style.WebkitUserSelect=ce.current,R(e)})},ve=e=>{D.props.onTouchEnd&&D.props.onTouchEnd(e),le(),I.start(_,()=>{de(e)})};E.useEffect(()=>{if(!ae)return;function e(e){e.key===`Escape`&&de(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[de,ae]);let ye=xs(wp(D),A,t);!w&&w!==0&&(ae=!1);let be=E.useRef(),xe=e=>{let t=D.props;t.onMouseMove&&t.onMouseMove(e),ty={x:e.clientX,y:e.clientY},be.current&&be.current.update()},Se={},Ce=typeof w==`string`;o?(Se.title=!ae&&Ce&&!c?w:null,Se[`aria-describedby`]=ae?se:null):(Se[`aria-label`]=Ce?w:null,Se[`aria-labelledby`]=ae&&!Ce?se:null);let we={...Se,...T,...D.props,className:H(T.className,D.props.className),onTouchStart:ge,ref:ye,...m?{onMouseMove:xe}:{}},Te={};u||(we.onTouchStart=_e,we.onTouchEnd=ve),c||(we.onMouseOver=ny(R,we.onMouseOver),we.onMouseLeave=ny(pe,we.onMouseLeave),F||(Te.onMouseOver=fe,Te.onMouseLeave=pe)),s||(we.onFocus=ny(z,we.onFocus),we.onBlur=ny(he,we.onBlur),F||(Te.onFocus=z,Te.onBlur=he));let Ee={...n,arrow:r,disableInteractive:F,placement:x,touch:N.current},De=typeof S.popper==`function`?S.popper(Ee):S.popper,Oe=E.useMemo(()=>{let e=[{name:`arrow`,enabled:!!j,options:{element:j,padding:4}}];return De?.popperOptions?.modifiers&&(e=e.concat(De.popperOptions.modifiers)),{...De?.popperOptions,modifiers:e}},[j,De?.popperOptions]),ke=Yv(Ee),Ae={slots:C,slotProps:{arrow:S.arrow,popper:De,tooltip:S.tooltip,transition:S.transition}},[je,Me]=X(`popper`,{elementType:Xv,externalForwardedProps:Ae,ownerState:Ee,className:ke.popper}),[Ne,Pe]=X(`transition`,{elementType:_g,externalForwardedProps:Ae,ownerState:Ee}),[Fe,Ie]=X(`tooltip`,{elementType:Zv,className:ke.tooltip,externalForwardedProps:Ae,ownerState:Ee}),[Le,Re]=X(`arrow`,{elementType:Qv,className:ke.arrow,externalForwardedProps:Ae,ownerState:Ee,ref:M});return(0,V.jsxs)(E.Fragment,{children:[E.cloneElement(D,we),(0,V.jsx)(je,{as:Ip,placement:x,anchorEl:m?{getBoundingClientRect:()=>({top:ty.y,left:ty.x,right:ty.x,bottom:ty.y,width:0,height:0})}:k,popperRef:be,open:k?ae:!1,id:se,transition:!0,...Te,...Me,popperOptions:Oe,children:({TransitionProps:e})=>(0,V.jsx)(Ne,{timeout:O.transitions.duration.shorter,...e,...Pe,children:(0,V.jsxs)(Fe,{...Ie,children:[w,r?(0,V.jsx)(Le,{...Re}):null]})})})]})}),iy=ba({createStyledComponent:K(`div`,{name:`MuiStack`,slot:`Root`}),useThemeProps:e=>q({props:e,name:`MuiStack`})});function ay(e){return zr(`MuiTab`,e)}var oy=U(`MuiTab`,[`root`,`labelIcon`,`textColorInherit`,`textColorPrimary`,`textColorSecondary`,`selected`,`disabled`,`fullWidth`,`wrapped`,`icon`]),sy=e=>{let{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:o,selected:s,disabled:c}=e;return W({root:[`root`,a&&o&&`labelIcon`,`textColor${Y(n)}`,r&&`fullWidth`,i&&`wrapped`,s&&`selected`,c&&`disabled`],icon:[`icon`]},ay,t)},cy=K(Pu,{name:`MuiTab`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Y(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${oy.icon}`]:t.icon}]}})(J(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:`relative`,minHeight:48,flexShrink:0,padding:`12px 16px`,overflow:`hidden`,whiteSpace:`normal`,textAlign:`center`,lineHeight:1.25,...e.focusVisible&&Xa(3),variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition===`top`||e.iconPosition===`bottom`),style:{flexDirection:`column`}},{props:({ownerState:e})=>e.label&&e.iconPosition!==`top`&&e.iconPosition!==`bottom`,style:{flexDirection:`row`}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`top`,style:{[`& > .${oy.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`bottom`,style:{[`& > .${oy.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`start`,style:{[`& > .${oy.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`end`,style:{[`& > .${oy.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:`inherit`},style:{color:`inherit`,opacity:.6,[`&.${oy.selected}`]:{opacity:1},...e.focusVisible&&{[`&.${ju.focusVisible}`]:{opacity:1}},[`&.${oy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:`primary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${oy.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${oy.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:`secondary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${oy.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${oy.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:`none`}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),ly=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiTab`}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:o,icon:s,iconPosition:c=`top`,indicator:l,label:u,onChange:d,onClick:f,onFocus:p,selected:m,selectionFollowsFocus:h,textColor:g=`inherit`,value:_,wrapped:v=!1,...y}=n,b=Wg(),x=Yg({id:_,ref:t,disabled:i,selected:m}),S=b.getItemMap().size===0&&m?0:x.tabIndex,C={...n,disabled:i,disableFocusRipple:a,selected:m,icon:!!s,iconPosition:c,label:!!u,fullWidth:o,textColor:g,wrapped:v},w=sy(C),T=s&&u&&E.isValidElement(s)?E.cloneElement(s,{className:H(w.icon,s.props.className)}):s;return(0,V.jsxs)(cy,{internalNativeButton:!0,focusRipple:!a,className:H(w.root,r),ref:x.ref,role:`tab`,"aria-selected":m,disabled:i,onClick:e=>{!m&&d&&d(e,_),f&&f(e)},onFocus:e=>{h&&!m&&d&&d(e,_),p&&p(e)},tabIndex:S,ownerState:C,...y,children:[c===`top`||c===`start`?(0,V.jsxs)(E.Fragment,{children:[T,u]}):(0,V.jsxs)(E.Fragment,{children:[u,T]}),l]})});function uy(e){return zr(`MuiToolbar`,e)}U(`MuiToolbar`,[`root`,`gutters`,`regular`,`dense`]);var dy=e=>{let{classes:t,disableGutters:n,variant:r}=e;return W({root:[`root`,!n&&`gutters`,r]},uy,t)},fy=K(`div`,{name:`MuiToolbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(J(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:`dense`},style:{minHeight:48}},{props:{variant:`regular`},style:e.mixins.toolbar}]}))),py=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiToolbar`}),{className:r,component:i=`div`,disableGutters:a=!1,variant:o=`regular`,...s}=n,c={...n,component:i,disableGutters:a,variant:o},l=dy(c);return(0,V.jsx)(fy,{as:i,className:H(l.root,r),ref:t,ownerState:c,...s})}),my=vl((0,V.jsx)(`path`,{d:`M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z`}),`KeyboardArrowLeft`),hy=vl((0,V.jsx)(`path`,{d:`M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z`}),`KeyboardArrowRight`);function gy(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function _y(e,t,n,r={},i=()=>{}){let{ease:a=gy,duration:o=300}=r,s=null,c=t[e],l=!1,u=()=>{l=!0},d=r=>{if(l){i(Error(`Animation cancelled`));return}s===null&&(s=r);let u=Math.min(1,(r-s)/o);t[e]=a(u)*(n-c)+c,requestAnimationFrame(u>=1?()=>{i(null)}:d)};return c===n?(i(Error(`Element already at target position`)),u):(requestAnimationFrame(d),u)}var vy={width:99,height:99,position:`absolute`,top:-9999,overflow:`scroll`,pointerEvents:`none`};function yy(e){let{onChange:t,...n}=e,r=E.useRef(),i=E.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return Ss(()=>{let e=yl(()=>{let e=r.current;a(),e!==r.current&&t(r.current)}),n=xl(i.current);return n.addEventListener(`resize`,e),()=>{e.clear(),n.removeEventListener(`resize`,e)}},[t]),E.useEffect(()=>{a(),t(r.current)},[t]),(0,V.jsx)(`div`,{style:vy,...n,ref:i})}function by(e){return zr(`MuiTabScrollButton`,e)}var xy=U(`MuiTabScrollButton`,[`root`,`vertical`,`horizontal`,`disabled`]),Sy=e=>{let{classes:t,orientation:n,disabled:r}=e;return W({root:[`root`,n,r&&`disabled`]},by,t)},Cy=K(Pu,{name:`MuiTabScrollButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${xy.disabled}`]:{opacity:0},variants:[{props:{orientation:`vertical`},style:{width:`100%`,height:40,"& svg":{transform:`var(--TabScrollButton-svgRotate)`}}}]}),wy=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiTabScrollButton`}),{className:r,slots:i={},slotProps:a={},direction:o,orientation:s,disabled:c,...l}=n,{nativeButton:u,...d}=l,f=ji(),p={isRtl:f,...n},m=Sy(p),h=i.StartScrollButtonIcon??my,g=i.EndScrollButtonIcon??hy,_=Cp({elementType:h,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p}),v=Cp({elementType:g,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p});return(0,V.jsx)(Cy,{component:`div`,className:H(m.root,r),ref:t,role:null,ownerState:p,tabIndex:null,...d,style:{...d.style,...s===`vertical`&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:o===`left`?(0,V.jsx)(h,{..._}):(0,V.jsx)(g,{...v})})});function Ty(e){return zr(`MuiTabs`,e)}var Ey=U(`MuiTabs`,[`root`,`vertical`,`list`,`centered`,`scroller`,`fixed`,`scrollableX`,`scrollableY`,`hideScrollbar`,`scrollButtons`,`scrollButtonsHideMobile`,`indicator`]),Dy=e=>{let{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:c}=e;return W({root:[`root`,t&&`vertical`],scroller:[`scroller`,n&&`fixed`,r&&`hideScrollbar`,i&&`scrollableX`,a&&`scrollableY`],list:[`list`,t&&`vertical`,o&&`centered`],indicator:[`indicator`],scrollButtons:[`scrollButtons`,s&&`scrollButtonsHideMobile`],scrollableX:[i&&`scrollableX`],hideScrollbar:[r&&`hideScrollbar`]},Ty,c)},Oy=K(`div`,{name:`MuiTabs`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Ey.scrollButtons}`]:t.scrollButtons},{[`& .${Ey.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(J(({theme:e})=>({overflow:`hidden`,minHeight:48,WebkitOverflowScrolling:`touch`,display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${Ey.scrollButtons}`]:{[e.breakpoints.down(`sm`)]:{display:`none`}}}}]}))),ky=K(`div`,{name:`MuiTabs`,slot:`Scroller`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:`relative`,display:`inline-block`,flex:`1 1 auto`,whiteSpace:`nowrap`,variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:`hidden`,width:`100%`}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:`auto`,overflowY:`hidden`}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:`auto`,overflowX:`hidden`}}]}),Ay=K(`div`,{name:`MuiTabs`,slot:`List`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.list,n.centered&&t.centered]}})({display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.centered,style:{justifyContent:`center`}}]}),jy=K(`span`,{name:`MuiTabs`,slot:`Indicator`})(J(({theme:e})=>({position:`absolute`,height:2,bottom:0,width:`100%`,...qs(e),variants:[{props:{indicatorColor:`primary`},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:`secondary`},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:`100%`,width:2,right:0}}]}))),My=K(yy)({overflowX:`auto`,overflowY:`hidden`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}),Ny={},Py=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiTabs`}),r=Yo(),i=ji(),a=Jl(r.motion.reducedMotion,!1),{"aria-label":o,"aria-labelledby":s,action:c,centered:l=!1,children:u,className:d,component:f=`div`,allowScrollButtonsMobile:p=!1,indicatorColor:m=`primary`,onChange:h,orientation:g=`horizontal`,scrollButtons:_=`auto`,selectionFollowsFocus:v,slots:y={},slotProps:b={},textColor:x=`primary`,value:S,variant:C=`standard`,visibleScrollbar:w=!1,...T}=n,D=C===`scrollable`,O=g===`vertical`,k=O?`scrollTop`:`scrollLeft`,A=O?`top`:`left`,j=O?`bottom`:`right`,M=O?`clientHeight`:`clientWidth`,N=O?`height`:`width`,P={...n,component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:g,vertical:O,scrollButtons:_,textColor:x,variant:C,visibleScrollbar:w,fixed:!D,hideScrollbar:D&&!w,scrollableX:D&&!O,scrollableY:D&&O,centered:l&&!D,scrollButtonsHideMobile:!p},F=Dy(P),ee=Cp({elementType:y.startScrollButtonIcon,externalSlotProps:b.startScrollButtonIcon,ownerState:P}),te=Cp({elementType:y.endScrollButtonIcon,externalSlotProps:b.endScrollButtonIcon,ownerState:P}),[I,ne]=E.useState(!1),[re,ie]=E.useState(Ny),[ae,oe]=E.useState(!1),[se,ce]=E.useState(!1),[le,ue]=E.useState(!1),de=S===!1?null:S,[L,R]=E.useState(!1),[fe,pe]=E.useState({overflow:`hidden`,scrollbarWidth:0}),me=new Map,he=E.useRef(null),z=E.useRef(null),ge={slots:y,slotProps:b},_e=()=>{let e=he.current,t;if(e){let n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}let n;if(e&&S!==!1){let e=z.current.children;if(e.length>0){let t=e[me.get(S)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ve=El(()=>{let{tabsMeta:e,tabMeta:t}=_e(),n=0,r;O?(r=`top`,t&&e&&(n=t.top-e.top+e.scrollTop)):(r=i?`right`:`left`,t&&e&&(n=(i?-1:1)*(t[r]-e[r]+e.scrollLeft)));let a={[r]:n,[N]:t?t[N]:0};if(typeof re[r]!=`number`||typeof re[N]!=`number`)ie(a);else{let e=Math.abs(re[r]-a[r]),t=Math.abs(re[N]-a[N]);(e>=1||t>=1)&&ie(a)}}),ye=(e,{animation:t=!0}={})=>{t&&!a.shouldReduceMotion?_y(k,he.current,e,{duration:r.transitions.duration.standard}):he.current[k]=e},be=e=>{let t=he.current[k];t+=O?e:e*(i?-1:1),ye(t)},xe=()=>{let e=he.current[M],t=0,n=Array.from(z.current.children);for(let r=0;r<n.length;r+=1){let i=n[r];if(t+i[M]>e){r===0&&(t=e);break}t+=i[M]}return t},Se=()=>{be(-1*xe())},Ce=()=>{be(xe())},[we,{onChange:Te,...Ee}]=X(`scrollbar`,{className:H(F.scrollableX,F.hideScrollbar),elementType:My,shouldForwardComponentProp:!0,externalForwardedProps:ge,ownerState:P}),De=E.useCallback(e=>{Te?.(e),pe({overflow:null,scrollbarWidth:e})},[Te]),[Oe,ke]=X(`scrollButtons`,{className:F.scrollButtons,elementType:wy,externalForwardedProps:ge,ownerState:P,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:y.startScrollButtonIcon,EndScrollButtonIcon:y.endScrollButtonIcon},slotProps:{startScrollButtonIcon:ee,endScrollButtonIcon:te}}}),Ae=()=>{let e={};e.scrollbarSizeListener=D?(0,V.jsx)(we,{...Ee,onChange:De}):null;let t=D&&(_===`auto`&&(ae||se)||_===!0);return e.scrollButtonStart=t?(0,V.jsx)(Oe,{direction:i?`right`:`left`,onClick:Se,disabled:!ae,...ke}):null,e.scrollButtonEnd=t?(0,V.jsx)(Oe,{direction:i?`left`:`right`,onClick:Ce,disabled:!se,...ke}):null,e},je=El(e=>{let{tabsMeta:t,tabMeta:n}=_e();if(n&&t){if(n[A]<t[A]){let r=t[k]+(n[A]-t[A]);ye(r,{animation:e})}else if(n[j]>t[j]){let r=t[k]+(n[j]-t[j]);ye(r,{animation:e})}}}),Me=El(()=>{D&&_!==!1&&ue(!le)});E.useEffect(()=>{let e=yl(()=>{he.current&&ve()}),t,n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),Me()},r=xl(he.current);r.addEventListener(`resize`,e);let i;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(e),Array.from(z.current.children).forEach(e=>{t.observe(e)})),typeof MutationObserver<`u`&&(i=new MutationObserver(n),i.observe(z.current,{childList:!0})),()=>{e.clear(),r.removeEventListener(`resize`,e),i?.disconnect(),t?.disconnect()}},[ve,Me]),E.useEffect(()=>{let e=Array.from(z.current.children),t=e.length;if(typeof IntersectionObserver<`u`&&t>0&&D&&_!==!1){let n=e[0],r=e[t-1],i={root:he.current,threshold:.99},a=new IntersectionObserver(e=>{oe(!e[0].isIntersecting)},i);a.observe(n);let o=new IntersectionObserver(e=>{ce(!e[0].isIntersecting)},i);return o.observe(r),()=>{a.disconnect(),o.disconnect()}}},[D,_,le,u?.length]),E.useEffect(()=>{ne(!0)},[]),E.useEffect(()=>{ve()}),E.useEffect(()=>{je(Ny!==re)},[je,re]),E.useImperativeHandle(c,()=>({updateIndicator:ve,updateScrollButtons:Me}),[ve,Me]);let[Ne,Pe]=X(`indicator`,{className:F.indicator,elementType:jy,externalForwardedProps:ge,ownerState:P,additionalProps:{style:re}}),Fe=(0,V.jsx)(Ne,{...Pe}),Ie=Jg({activeItemId:L?void 0:de,orientation:g,isRtl:i}),Le=Ie.getContainerProps(),Re=E.Children.toArray(u).filter(E.isValidElement).map((e,t)=>{let n=e.props.value===void 0?t:e.props.value;return me.set(n,t),{child:e,index:t,childValue:n}}).map(({child:e,childValue:t})=>{let n=t===S;return E.cloneElement(e,{fullWidth:C===`fullWidth`,indicator:n&&!I&&Fe,selected:n,selectionFollowsFocus:v,onChange:h,textColor:x,value:t})}),ze=Ae(),[Be,Ve]=X(`root`,{ref:t,className:H(F.root,d),elementType:Oy,externalForwardedProps:{...ge,...T,component:f},ownerState:P}),[He,Ue]=X(`scroller`,{ref:he,className:F.scroller,elementType:ky,externalForwardedProps:ge,ownerState:P,additionalProps:{style:{overflow:fe.overflow,[O?`margin${i?`Left`:`Right`}`:`marginBottom`]:w?void 0:-fe.scrollbarWidth}}}),We=xs(Le.ref,z),Ge=e=>{let t=z.current;Ts(Cs(t))?.getAttribute(`role`)===`tab`&&Le.onKeyDown(e)},[Ke,qe]=X(`list`,{ref:We,className:F.list,elementType:Ay,externalForwardedProps:ge,ownerState:P,getSlotProps:e=>({...e,onBlur:t=>{Fm(t.currentTarget,t.relatedTarget)||R(!1),e.onBlur?.(t)},onKeyDown:t=>{Ge(t),e.onKeyDown?.(t)},onFocus:t=>{R(!0),Le.onFocus(t),e.onFocus?.(t)}})});return(0,V.jsxs)(Be,{...Ve,children:[ze.scrollButtonStart,ze.scrollbarSizeListener,(0,V.jsxs)(He,{...Ue,children:[(0,V.jsx)(Ke,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g===`vertical`?`vertical`:null,role:`tablist`,...qe,children:(0,V.jsx)(Ug.Provider,{value:Ie,children:Re})}),I&&Fe]}),ze.scrollButtonEnd]})});function Fy(e){return zr(`MuiTextField`,e)}U(`MuiTextField`,[`root`]);var Iy={standard:Cg,filled:tg,outlined:cv},Ly=e=>{let{classes:t}=e;return W({root:[`root`]},Fy,t)},Ry=K(ag,{name:`MuiTextField`,slot:`Root`})({}),zy=E.forwardRef(function(e,t){let n=q({props:e,name:`MuiTextField`}),{autoComplete:r,autoFocus:i=!1,children:a,className:o,color:s=`primary`,defaultValue:c,disabled:l=!1,error:u=!1,fullWidth:d=!1,helperText:f,id:p,inputRef:m,label:h,maxRows:g,minRows:_,multiline:v=!1,name:y,onBlur:b,onChange:x,onFocus:S,placeholder:C,required:w=!1,rows:T,select:E=!1,slots:D={},slotProps:O={},type:k,value:A,variant:j=`outlined`,...M}=n,N={...n,autoFocus:i,color:s,disabled:l,error:u,fullWidth:d,multiline:v,required:w,select:E,variant:j},P=Ly(N),F=zi(p),ee=f&&F?`${F}-helper-text`:void 0,te=h&&F?`${F}-label`:void 0,I=Iy[j],ne={slots:D,slotProps:O},[re,ie]=X(`select`,{elementType:Pv,externalForwardedProps:ne,ownerState:N}),ae=E&&ie.native,oe={},se=ne.slotProps.inputLabel;j===`outlined`&&(se&&se.shrink!==void 0&&(oe.notched=se.shrink),oe.label=h),E&&(ae||(oe.id=void 0),oe[`aria-describedby`]=void 0);let[ce,le]=X(`root`,{elementType:Ry,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,...M},ownerState:N,className:H(P.root,o),ref:t,additionalProps:{disabled:l,error:u,fullWidth:d,required:w,color:s,variant:j}}),[ue,de]=X(`input`,{elementType:I,externalForwardedProps:ne,additionalProps:oe,ownerState:N}),[L,R]=X(`inputLabel`,{elementType:Dg,externalForwardedProps:ne,ownerState:N}),[fe,pe]=X(`htmlInput`,{elementType:`input`,externalForwardedProps:ne,ownerState:N}),[me,he]=X(`formHelperText`,{elementType:lg,externalForwardedProps:ne,ownerState:N}),z=(0,V.jsx)(ue,{"aria-describedby":ee,autoComplete:r,autoFocus:i,defaultValue:c,fullWidth:d,multiline:v,name:y,rows:T,maxRows:g,minRows:_,type:k,value:A,id:F,inputRef:m,onBlur:b,onChange:x,onFocus:S,placeholder:C,inputProps:pe,slots:{input:D.htmlInput?fe:void 0},...de});return(0,V.jsxs)(ce,{...le,children:[h!=null&&h!==``&&(0,V.jsx)(L,{htmlFor:E&&!ae?void 0:F,id:te,...E&&!ae&&{component:`div`},...R,children:h}),E?(0,V.jsx)(re,{"aria-describedby":ee,id:F,labelId:te,value:A,input:z,...ie,children:a}):z,f&&(0,V.jsx)(me,{id:ee,...he,children:f})]})}),By=ai({themeId:Jo}),Vy=[`conflict`,`denied`,`llm-failure`,`hook-throw`,`endpoint-timeout`,`tick-failure`],Hy=vl((0,V.jsx)(`path`,{d:`M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z`}),`BugReport`),Uy=vl((0,V.jsx)(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),Wy=vl((0,V.jsx)(`path`,{d:`M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z`}),`OpenInNew`),Gy=`min(70vh, 420px)`;function Ky(e){let{state:t,connected:n,transients:r}=e,[i,a]=(0,E.useState)(!1),[o,s]=(0,E.useState)(0),[c,l]=(0,E.useState)(ob),[u,d]=(0,E.useState)(null),f=(0,E.useCallback)(e=>{l(e);try{localStorage.setItem(ib,e)}catch{}},[]);return(0,E.useEffect)(()=>{let e=e=>{if(e.key!=="`"||e.metaKey||e.ctrlKey||e.altKey)return;let t=e.target;t&&/^(INPUT|TEXTAREA)$/.test(t.tagName)||(e.preventDefault(),a(e=>!e))};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(sb,{open:i,connected:n,corner:c,processing:r.processing.size>0,errors:r.errors.length,onToggle:()=>a(e=>!e)}),(0,V.jsx)(Wh,{anchor:`bottom`,open:i,onClose:()=>a(!1),slotProps:{paper:{sx:{height:Gy,maxHeight:`85vh`}}},children:(0,V.jsxs)(em,{"data-testid":`dev-drawer`,sx:{display:`contents`},children:[(0,V.jsxs)(iy,{direction:`row`,sx:{alignItems:`center`,pr:1},children:[(0,V.jsxs)(Py,{value:o,onChange:(e,t)=>s(t),variant:`scrollable`,scrollButtons:`auto`,allowScrollButtonsMobile:!0,sx:{flex:1,minWidth:0},children:[(0,V.jsx)(ly,{label:`Session`}),(0,V.jsx)(ly,{label:`Scenario`}),(0,V.jsx)(ly,{label:`Surfaces`}),(0,V.jsx)(ly,{label:`State`}),(0,V.jsx)(ly,{label:`Faults`}),r.errors.length>0&&(0,V.jsx)(ly,{label:`Errors (${r.errors.length})`})]}),(0,V.jsx)(id,{size:`small`,"aria-label":`Close dev tools`,"data-testid":`dev-drawer-close`,onClick:()=>a(!1),children:(0,V.jsx)(Uy,{fontSize:`small`})})]}),(0,V.jsx)(Dh,{}),u&&(0,V.jsx)(gd,{severity:`warning`,square:!0,"data-testid":`drawer-refusal`,onClose:()=>d(null),sx:{borderRadius:0},children:u}),(0,V.jsxs)(em,{sx:{p:2,overflow:`auto`,flex:1},children:[o===0&&(0,V.jsx)(cb,{...e,corner:c,onMove:f,onRefusal:d}),o===1&&(0,V.jsx)(lb,{...e}),o===2&&(0,V.jsx)(pb,{state:t,inSetup:e.inSetup,configurable:e.configurable}),o===3&&(0,V.jsx)(hb,{state:t}),o===4&&(0,V.jsx)(gb,{...e,onRefusal:d}),o===5&&(0,V.jsx)(_b,{errors:r.errors})]})]})})]})}var qy={size:`small`,sx:{minHeight:36,px:1.25}},Jy={...qy,variant:`contained`},Yy={...qy,variant:`outlined`},Xy={...qy,color:`warning`},Zy={...qy,color:`error`};function Qy({on:e,onClick:t,children:n,...r}){return(0,V.jsx)(fm,{...qy,...r,onClick:t,sx:{...qy.sx,color:e?`text.primary`:`text.secondary`},startIcon:(0,V.jsx)(em,{sx:{width:8,height:8,borderRadius:`50%`,bgcolor:e?`text.primary`:`transparent`,border:1,borderColor:e?`text.primary`:`divider`}}),children:n})}var $y=6e4;function eb({paused:e,scheduled:t,teamIndex:n,run:r}){let i=n===void 0?{}:{teamIndex:n};return(0,V.jsxs)(iy,{direction:`row`,spacing:.5,useFlexGap:!0,sx:{flexWrap:`wrap`},children:[(0,V.jsx)(Qy,{on:!e,"data-testid":n===void 0?`drawer-timer`:void 0,onClick:()=>r({type:e?`resumeTimer`:`pauseTimer`,...i}),children:e?`Timer paused`:`Timer running`}),(0,V.jsx)(fm,{...qy,disabled:e||!t,onClick:()=>r({type:`extendTick`,byMs:$y,...i}),children:`+1 min`})]})}function tb(e,t){return(0,E.useCallback)(n=>{t(null),e(n).then(e=>{`ok`in e&&!e.ok&&t(nb(e.outcome,n.type))})},[e,t])}function nb(e,t){return e.kind===`validation-rejected`?e.rejections[0]?.message??`"${t}" was rejected by a validator`:e.kind===`conflict`?e.message??`"${t}" conflicted with a concurrent tick`:e.message}var rb=[{value:`bottom-right`,label:`Bottom right`},{value:`bottom-left`,label:`Bottom left`},{value:`top-right`,label:`Top right`},{value:`top-left`,label:`Top left`}],ib=`seriousgaming.devDrawerCorner`;function ab(e){let[t,n]=e.split(`-`);return{[t]:12,[n]:12}}function ob(){try{let e=localStorage.getItem(ib);return rb.some(t=>t.value===e)?e:`bottom-right`}catch{return`bottom-right`}}function sb({open:e,connected:t,corner:n,processing:r,errors:i,onToggle:a}){let o=t?i>0?`warning.main`:r?`info.main`:`success.main`:`error.main`;return(0,V.jsx)(em,{sx:{position:`fixed`,...ab(n),zIndex:e=>e.zIndex.drawer+1,display:e?`none`:`block`},children:(0,V.jsx)(ry,{title:i>0?`Dev tools (\`) — ${i} error${i===1?``:`s`}`:"Dev tools (`)",placement:n.endsWith(`right`)?`left`:`right`,children:(0,V.jsxs)(Yh,{onClick:a,"data-testid":`dev-drawer-handle`,"aria-label":`Dev tools`,sx:e=>({bgcolor:e.palette.mode===`dark`?`grey.800`:`grey.200`,color:`text.primary`,"&:hover":{bgcolor:e.palette.mode===`dark`?`grey.700`:`grey.300`}}),children:[(0,V.jsx)(Hy,{}),(0,V.jsx)(em,{sx:{position:`absolute`,top:10,right:10,width:10,height:10,borderRadius:`50%`,bgcolor:o,border:2,borderColor:`background.paper`}})]})})})}function cb({state:e,send:t,mode:n,onModeChange:r,configurable:i,inSetup:a,corner:o,onMove:s,onRefusal:c}){let l=tb(t,c),u=e.teams.some(e=>e.canUndo),d=e.session.mode===`independent`,f=!e.session.complete&&e.teams.some(e=>!e.complete);return(0,V.jsxs)(iy,{spacing:2,children:[(0,V.jsxs)(iy,{direction:`row`,spacing:1,useFlexGap:!0,sx:{flexWrap:`wrap`},children:[(0,V.jsx)(fm,{...Jy,disabled:!f,onClick:()=>l({type:`tick`}),children:`Tick`}),(0,V.jsx)(fm,{...Xy,disabled:!u,onClick:()=>l({type:`undo`}),children:`Undo`}),(0,V.jsx)(fm,{...Zy,onClick:()=>l({type:`reset`}),children:`Reset`}),(0,V.jsx)(Qy,{on:e.session.waitingRoomOpen,onClick:()=>l({type:`setWaitingRoom`,open:!e.session.waitingRoomOpen}),children:`Waiting room`}),(0,V.jsx)(fm,{...Yy,onClick:()=>l({type:`addTeam`}),children:`Add team`}),i&&!a&&(0,V.jsx)(fm,{...Yy,"data-testid":`drawer-reconfigure`,onClick:()=>l({type:`reconfigure`}),children:`Reconfigure`})]}),(0,V.jsxs)(iy,{direction:`row`,spacing:1,useFlexGap:!0,sx:{flexWrap:`wrap`},children:[(0,V.jsx)(Wp,{size:`small`,variant:`outlined`,label:`tick ${e.session.completedTicks}`}),(0,V.jsx)(Wp,{size:`small`,variant:`outlined`,label:e.session.mode}),(0,V.jsx)(Wp,{size:`small`,variant:`outlined`,label:`scenario ${e.game.scenarioId??`none`}`})]}),e.timer?.enabled&&(0,V.jsx)(eb,{paused:e.timer.paused,scheduled:e.timer.nextTickAt!==null,run:l}),(0,V.jsxs)(iy,{direction:`row`,spacing:1,useFlexGap:!0,sx:{flexWrap:`wrap`},children:[(0,V.jsx)(fb,{state:e,send:t}),(0,V.jsxs)(Pv,{size:`small`,value:n,"aria-label":`Colour scheme`,onChange:e=>r(e.target.value),children:[(0,V.jsx)(q_,{value:`light`,children:`Light`}),(0,V.jsx)(q_,{value:`dark`,children:`Dark`}),(0,V.jsx)(q_,{value:`system`,children:`System`})]}),(0,V.jsx)(Pv,{size:`small`,value:o,"aria-label":`Handle position`,"data-testid":`dev-drawer-corner`,onChange:e=>s(e.target.value),children:rb.map(e=>(0,V.jsx)(q_,{value:e.value,children:e.label},e.value))})]}),(0,V.jsx)(Dh,{}),(0,V.jsx)(iy,{spacing:1,children:e.teams.map(t=>(0,V.jsxs)(em,{children:[(0,V.jsxs)(Z,{variant:`body2`,children:[t.name,` `,(0,V.jsxs)(Z,{component:`span`,color:`text.secondary`,variant:`caption`,children:[`tick `,t.completedTicks,t.complete?` · complete`:``,` · `,t.participants.length,` `,`participant`,t.participants.length===1?``:`s`]})]}),(0,V.jsxs)(iy,{direction:`row`,spacing:.5,useFlexGap:!0,sx:{flexWrap:`wrap`},children:[d&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(fm,{...Yy,disabled:t.complete,onClick:()=>l({type:`tick`,teamIndex:t.index}),children:`Tick`}),(0,V.jsx)(fm,{...Xy,onClick:()=>l({type:`undo`,teamIndex:t.index}),disabled:!t.canUndo,children:`Undo`}),(0,V.jsx)(fm,{...Zy,onClick:()=>l({type:`reset`,teamIndex:t.index}),children:`Reset`}),(0,V.jsx)(fm,{...Zy,onClick:()=>l({type:`removeTeam`,teamIndex:t.index}),children:`Delete team`})]}),(0,V.jsx)(fm,{...qy,onClick:()=>l({type:`addParticipant`,teamId:t.teamId}),children:`Add participant`}),e.timer===null&&t.timer?.enabled&&(0,V.jsx)(eb,{paused:t.timer.paused,scheduled:t.timer.nextTickAt!==null,teamIndex:t.index,run:l})]})]},t.teamId))})]})}function lb({state:e,send:t}){let[n,r]=(0,E.useState)([]),[i,a]=(0,E.useState)(null),[o,s]=(0,E.useState)(null),[c,l]=(0,E.useState)(null),[u,d]=(0,E.useState)(void 0),[f,p]=(0,E.useState)(!1),m=(0,E.useCallback)(async()=>{let e=await(await fetch(`/api/scenarios`)).json();r(e.scenarios)},[]);(0,E.useEffect)(()=>{m()},[m,e.game.scenarioId]);let h=(0,E.useCallback)(async e=>{a(null),s(null);let t=await fetch(`/api/scenarios/${encodeURIComponent(e)}`,{method:`DELETE`});if(t.ok)s(`Deleted "${e}"`),await m();else{let e=await t.json();a(e.error??`The scenario could not be deleted`)}},[m]),g=(0,E.useCallback)(e=>{window.open(Bc({kind:`scenario-editor`,scenario:e}),`_blank`,`noreferrer`)},[]),_=e.game.scenarioId;return(0,V.jsxs)(iy,{spacing:2,children:[(0,V.jsxs)(iy,{direction:`row`,spacing:1,sx:{alignItems:`center`},children:[(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,sx:{flex:1},children:`A scenario is a different set of starting conditions, so switching one restarts the session: every team returns to tick 0, and a game with a configuration step returns to it.`}),(0,V.jsx)(fm,{...Jy,"data-testid":`add-scenario`,onClick:()=>p(!0),children:`Add scenario`})]}),(0,V.jsxs)(iy,{spacing:1,children:[n.map(t=>(0,V.jsxs)(iy,{direction:`row`,spacing:1,useFlexGap:!0,sx:{alignItems:`center`,flexWrap:`wrap`},children:[(0,V.jsxs)(Qy,{on:_===t.id,onClick:()=>d(t.id),disabled:_===t.id,children:[db(t,e.session.locale),t.default?` (default)`:``]}),(0,V.jsxs)(Z,{variant:`caption`,color:`text.secondary`,sx:{flex:1},children:[t.id,_===t.id?` · active`:``]}),(0,V.jsx)(fm,{...Yy,onClick:()=>g(t.id),children:`Edit`}),(0,V.jsx)(fm,{...Zy,disabled:_===t.id,onClick:()=>l(t.id),children:`Delete`})]},t.id)),(0,V.jsxs)(iy,{direction:`row`,spacing:1,sx:{alignItems:`center`},children:[(0,V.jsx)(Qy,{on:_===null,disabled:_===null,onClick:()=>d(null),children:`None`}),(0,V.jsx)(Z,{variant:`caption`,color:`text.secondary`,children:`the package's own configuration, with no scenario over it`})]})]}),o&&(0,V.jsx)(Z,{variant:`body2`,children:o}),i&&(0,V.jsx)(Z,{variant:`body2`,color:`error`,children:i}),(0,V.jsx)(ub,{open:f,scenarios:n,locale:e.session.locale,onClose:()=>p(!1),onCreated:async e=>{p(!1),await m(),window.open(Bc({kind:`scenario-editor`,scenario:e}),`_blank`,`noreferrer`)},onFailure:a,send:t}),(0,V.jsxs)(ch,{open:u!==void 0,onClose:()=>d(void 0),children:[(0,V.jsx)(xh,{children:`Restart on this scenario?`}),(0,V.jsx)(vh,{children:(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`A scenario's overrides reach the game through Init, so switching restarts the session: every team returns to tick 0, and a game with a configuration step returns to it.`})}),(0,V.jsxs)(fh,{children:[(0,V.jsx)(fm,{onClick:()=>d(void 0),children:`Cancel`}),(0,V.jsx)(fm,{variant:`contained`,"data-testid":`confirm-scenario`,onClick:()=>{let e=u;d(void 0),e!==void 0&&t({type:`selectScenario`,scenarioId:e})},children:`Restart`})]})]}),(0,V.jsxs)(ch,{open:c!==null,onClose:()=>l(null),children:[(0,V.jsxs)(xh,{children:[`Delete "`,c??``,`"?`]}),(0,V.jsx)(vh,{children:(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`This removes the scenario directory, and its assets, from the package on disk. It cannot be undone from here.`})}),(0,V.jsxs)(fh,{children:[(0,V.jsx)(fm,{onClick:()=>l(null),children:`Cancel`}),(0,V.jsx)(fm,{variant:`contained`,color:`error`,"data-testid":`confirm-scenario`,onClick:()=>{let e=c;l(null),e&&h(e)},children:`Delete`})]})]})]})}function ub({open:e,scenarios:t,onClose:n,onCreated:r,onFailure:i,send:a,locale:o}){let[s,c]=(0,E.useState)(``),[l,u]=(0,E.useState)(``),[d,f]=(0,E.useState)(!1),p=By(`(max-width:600px)`),m=async()=>{f(!0);try{await a({type:`selectScenario`,scenarioId:l===``?null:l});let e=await fetch(`/api/scenarios`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({identifier:s,name:s})}),t=await e.json();if(!e.ok){i(t.error??`The scenario could not be created`),n();return}c(``),u(``),await r(t.identifier??s)}finally{f(!1)}};return(0,V.jsxs)(ch,{open:e,onClose:n,fullWidth:!0,maxWidth:`xs`,fullScreen:p,children:[(0,V.jsx)(xh,{children:`Add a scenario`}),(0,V.jsx)(vh,{children:(0,V.jsxs)(iy,{spacing:2,sx:{pt:1},children:[(0,V.jsx)(zy,{size:`small`,label:`Identifier`,placeholder:`hard-mode`,helperText:`A short lowercase name. It names the directory, and the scenario.`,value:s,onChange:e=>c(e.target.value)}),(0,V.jsxs)(zy,{select:!0,size:`small`,label:`Start from`,value:l,onChange:e=>u(e.target.value),children:[(0,V.jsx)(q_,{value:``,children:`Scratch: the package's own settings`}),t.map(e=>(0,V.jsxs)(q_,{value:e.id,children:[`A copy of `,db(e,o)]},e.id))]}),(0,V.jsx)(Z,{variant:`caption`,color:`text.secondary`,children:`The session restarts on the starting point, and the scenario editor opens in a new tab.`})]})}),(0,V.jsxs)(fh,{children:[(0,V.jsx)(fm,{onClick:n,children:`Cancel`}),(0,V.jsx)(fm,{variant:`contained`,"data-testid":`create-scenario`,disabled:d||s.trim().length===0,onClick:()=>void m(),children:`Create and edit`})]})]})}function db(e,t){return e.locales[t]?.name??Object.values(e.locales).find(e=>e.name)?.name??e.id}function fb({state:e,send:t}){let[n,r]=(0,E.useState)([]);return(0,E.useEffect)(()=>{fetch(`/api/locales`).then(e=>e.json()).then(e=>r(e.supported))},[]),(0,V.jsx)(Pv,{size:`small`,"data-testid":`locale`,value:n.includes(e.session.locale)?e.session.locale:``,onChange:e=>void t({type:`setLocale`,locale:e.target.value}),children:n.map(e=>(0,V.jsx)(q_,{value:e,children:e},e))})}function pb({state:e,inSetup:t,configurable:n}){return(0,V.jsxs)(iy,{spacing:2,children:[(0,V.jsxs)(iy,{direction:`row`,spacing:1,useFlexGap:!0,sx:{flexWrap:`wrap`},children:[(0,V.jsx)(mb,{href:`/`,children:`Session`}),n&&t&&(0,V.jsx)(mb,{href:`/setup`,children:`Setup`}),(0,V.jsx)(mb,{href:`/guide`,children:`Guide`}),(0,V.jsx)(mb,{href:`/print`,children:`Print sheets`}),(0,V.jsx)(mb,{href:`/presentation`,children:`Presentation`}),(0,V.jsx)(mb,{href:`/presentation?preview`,children:`Presentation (no session)`}),(0,V.jsx)(mb,{href:`/walkthrough`,children:`Walkthrough`})]}),t&&(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`Player surfaces open once the session starts.`}),!t&&e.teams.map(e=>(0,V.jsxs)(iy,{direction:`row`,spacing:1,useFlexGap:!0,sx:{alignItems:`center`,flexWrap:`wrap`},children:[(0,V.jsx)(Z,{sx:{minWidth:140},children:e.name}),e.participants.slice(0,4).map((t,n)=>(0,V.jsx)(mb,{href:Bc({kind:`player`,teamIndex:e.index,participant:n+1}),children:t.name},t.id)),(0,V.jsx)(mb,{href:Bc({kind:`observer`,teamIndex:e.index}),children:`Observe`}),(0,V.jsx)(mb,{href:Bc({kind:`waiting-room`,teamIndex:e.index}),children:`Waiting room`}),(0,V.jsx)(mb,{href:Bc({kind:`join`,teamIndex:e.index}),children:`Join link`})]},e.teamId))]})}function mb({href:e,children:t}){return(0,V.jsx)(fm,{...qy,href:e,target:`_blank`,rel:`noreferrer`,endIcon:(0,V.jsx)(Wy,{sx:{fontSize:14}}),children:t})}function hb({state:e}){return(0,V.jsx)(em,{component:`pre`,sx:{m:0,fontSize:12,whiteSpace:`pre-wrap`,wordBreak:`break-word`},children:JSON.stringify(e,null,2)})}function gb({state:e,send:t,onRefusal:n}){let r=tb(t,n),i=new Set(e.faults.map(e=>e.kind));return(0,V.jsxs)(iy,{spacing:2,children:[(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`Arm a failure the platform can produce and this runtime cannot. It fires once, on the next operation of that kind.`}),(0,V.jsx)(iy,{direction:`row`,spacing:1,useFlexGap:!0,sx:{flexWrap:`wrap`},children:Vy.map(e=>(0,V.jsx)(Qy,{on:i.has(e),onClick:()=>r(i.has(e)?{type:`disarmFault`,fault:e}:{type:`armFault`,fault:e}),children:e},e))})]})}function _b({errors:e}){return(0,V.jsx)(iy,{spacing:1,children:e.map((e,t)=>(0,V.jsx)(Z,{variant:`body2`,sx:{fontFamily:`monospace`},children:e},t))})}var vb=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,yb=Object.hasOwnProperty,bb=class{constructor(){this.occurrences,this.reset()}slug(e,t){let n=this,r=xb(e,t===!0),i=r;for(;yb.call(n.occurrences,r);)n.occurrences[i]++,r=i+`-`+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};function xb(e,t){return typeof e==`string`?(t||(e=e.toLowerCase()),e.replace(vb,``).replace(/ /g,`-`)):``}var Sb={};function Cb(e,t){let n=t||Sb;return wb(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function wb(e,t,n){if(Eb(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return Tb(e.children,t,n)}return Array.isArray(e)?Tb(e,t,n):``}function Tb(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=wb(e[i],t,n);return r.join(``)}function Eb(e){return!!(e&&typeof e==`object`)}function Db(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}var Ob=zb(/[A-Za-z]/),kb=zb(/[\dA-Za-z]/),Ab=zb(/[#-'*+\--9=?A-Z^-~]/);function jb(e){return e!==null&&(e<32||e===127)}var Mb=zb(/\d/),Nb=zb(/[\dA-Fa-f]/),Pb=zb(/[!-/:-@[-`{-~]/);function Q(e){return e!==null&&e<-2}function Fb(e){return e!==null&&(e<0||e===32)}function Ib(e){return e===-2||e===-1||e===32}var Lb=zb(/\p{P}|\p{S}/u),Rb=zb(/\s/);function zb(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Bb(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var Vb=(function(e){if(e==null)return Kb;if(typeof e==`function`)return Gb(e);if(typeof e==`object`)return Array.isArray(e)?Hb(e):Ub(e);if(typeof e==`string`)return Wb(e);throw Error(`Expected function, string, or object as test`)});function Hb(e){let t=[],n=-1;for(;++n<e.length;)t[n]=Vb(e[n]);return Gb(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function Ub(e){let t=e;return Gb(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function Wb(e){return Gb(t);function t(t){return t&&t.type===e}}function Gb(e){return t;function t(t,n,r){return!!(qb(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function Kb(){return!0}function qb(e){return typeof e==`object`&&!!e&&`type`in e}function Jb(e){return e}var Yb=[],Xb=`skip`;function Zb(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=Vb(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,"name",{value:`node (`+Jb(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=Yb,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=Qb(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function Qb(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?Yb:[e]}function $b(e,t,n){let r=Vb((n||{}).ignore||[]),i=ex(t),a=-1;for(;++a<i.length;)Zb(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1)r.lastIndex=n+1;else{if(s!==n&&f({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a))for(let e of a)f(e);else a&&f(a);s=n+d[0].length,l=!0}if(!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&f({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length;function f(e){let t=u[u.length-1];t&&t.type===`text`&&e.type===`text`?t.value+=e.value:u.push(e)}}}function ex(e){if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let t=[],n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([tx(e[0]),nx(e[1])])}return t}function tx(e){return typeof e==`string`?new RegExp(Bb(e),`g`):e}function nx(e){return typeof e==`function`?e:function(){return e}}var rx=`phrasing`,ix=[`autolink`,`link`,`image`,`label`];function ax(){return{transforms:[px],enter:{literalAutolink:sx,literalAutolinkEmail:cx,literalAutolinkHttp:cx,literalAutolinkWww:cx},exit:{literalAutolink:fx,literalAutolinkEmail:dx,literalAutolinkHttp:lx,literalAutolinkWww:ux}}}function ox(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:rx,notInConstruct:ix},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:rx,notInConstruct:ix},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:rx,notInConstruct:ix}]}}function sx(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function cx(e){this.config.enter.autolinkProtocol.call(this,e)}function lx(e){this.config.exit.autolinkProtocol.call(this,e)}function ux(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function dx(e){this.config.exit.autolinkEmail.call(this,e)}function fx(e){this.exit(e)}function px(e){$b(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,mx],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,hx]],{ignore:[`link`,`linkReference`]})}function mx(e,t,n,r,i){let a=``;if(!vx(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!gx(n)))return!1;let o=_x(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function hx(e,t,n,r){return!vx(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function gx(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function _x(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=Db(e,`(`),a=Db(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function vx(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Rb(n)||Lb(n))&&(!t||n!==47)}function yx(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}kx.peek=Ox;function bx(){this.buffer()}function xx(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Sx(){this.buffer()}function Cx(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function wx(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Tx(e){this.exit(e)}function Ex(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yx(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Dx(e){this.exit(e)}function Ox(){return`[`}function kx(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Ax(){return{enter:{gfmFootnoteCallString:bx,gfmFootnoteCall:xx,gfmFootnoteDefinitionLabelString:Sx,gfmFootnoteDefinition:Cx},exit:{gfmFootnoteCallString:wx,gfmFootnoteCall:Tx,gfmFootnoteDefinitionLabelString:Ex,gfmFootnoteDefinition:Dx}}}function jx(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:kx},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
|
|
172
|
+
`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Nx:Mx))),s(),o}}function Mx(e,t,n){return t===0?e:Nx(e,t,n)}function Nx(e,t,n){return(n?``:` `)+e}var Px=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];zx.attention=Bx,zx.peek=Vx;function Fx(){return{canContainEols:[`delete`],enter:{strikethrough:Lx},exit:{strikethrough:Rx}}}function Ix(){return{handlers:{delete:zx},unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Px}]}}function Lx(e){this.enter({type:`delete`,children:[],position:void 0},e)}function Rx(e){this.exit(e)}function zx(e,t,n,r){let i=n.createTracker(r),a=n.stack.includes(`strikethrough`)?`~`:`~~`,o=n.enter(`strikethrough`),s=i.move(a);return s+=n.containerPhrasing(e,{...i.current(),before:s,after:`~`}),s+=i.move(a),o(),s}function Bx(){return{construct:`strikethrough`,markers:[`~`],sizes:[2,1]}}function Vx(){return`~`}function Hx(e){return e.length}function Ux(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Hx,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=Wx(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=Gx(r[d]);else{let e=Gx(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&(n.alignDelimiters!==!1||i!==``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
|
|
173
|
+
`)}function Wx(e){return e==null?``:String(e)}function Gx(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}var Kx=Vb([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function qx(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Jx);return i(),o}function Jx(e,t,n){return`>`+(n?``:` `)+e}function Yx(e,t){return Xx(e,t.inConstruct,!0)&&!Xx(e,t.notInConstruct,!1)}function Xx(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Zx(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){let e=n.unsafe[i];if(e.character===`
|
|
174
|
+
`&&!e.before&&!e.after&&Yx(n.stack,e))return/[\t ]/.test(r.before)?``:` `}return`\\
|
|
175
|
+
`}function Qx(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function $x(e,t){return!(t.options.fences!==!1||!e.value||e.lang||!/[^\n\r ]/.test(e.value)||/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function eS(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function tS(e,t,n,r){let i=eS(n),a=e.value||``;if($x(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,nS);return e(),t}let o=n.createTracker(r),s=i.repeat(Math.max(Qx(a,i)+1,3)),c=n.enter(`codeFenced`),l=i==="`"?`GraveAccent`:`Tilde`,u=o.move(s);if(e.lang){let t=n.enter(`codeFencedLang${l}`);u+=o.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...o.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${l}`);u+=o.move(` `),u+=o.move(n.safe(e.meta,{before:u,after:`
|
|
176
|
+
`,encode:["`"],...o.current()})),t()}return u+=o.move(`
|
|
177
|
+
`),a&&(u+=o.move(a+`
|
|
178
|
+
`)),u+=o.move(s),c(),u}function nS(e,t,n){return(n?``:` `)+e}function rS(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function iS(e,t,n,r){let i=rS(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
|
|
179
|
+
`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function aS(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}oS.attention=sS,oS.peek=cS;function oS(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function sS(e,t){return{construct:`emphasis`,markers:aS(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[1]}}function cS(e,t,n){return n.options.emphasis||`*`}function lS(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function uS(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),Zb(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}function dS(e,t){let n=!1;return uS(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&Cb(e)&&(t.options.setext||n))}function fS(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(dS(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
|
|
180
|
+
`,after:`
|
|
181
|
+
`});return r(),t(),o+`
|
|
182
|
+
`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
|
|
183
|
+
`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
|
|
184
|
+
`,...a.current()}),u=l.charCodeAt(0);return(u===9||u===32)&&(l=lS(u)+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}pS.peek=mS;function pS(e){return e.value||``}function mS(){return`<`}hS.peek=gS;function hS(e,t,n,r){let i=rS(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function gS(){return`!`}_S.peek=vS;function _S(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function vS(){return`!`}yS.peek=bS;function yS(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e);if(!e.atBreak)continue;let i;for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function bS(){return"`"}function xS(e,t){let n=Cb(e);return!(t.options.resourceLink||!e.url||e.title||!e.children||e.children.length!==1||e.children[0].type!==`text`||n!==e.url&&`mailto:`+n!==e.url||!/^[a-z][+\-.a-z]+:/i.test(e.url)||/[\0- <>\u007F]/.test(e.url))}SS.peek=CS;function SS(e,t,n,r){let i=rS(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r);if(xS(e,n)){let t=n.stack;n.stack=t.filter(function(e){return e!==`phrasing`});let r=n.enter(`autolink`),i=o.move(`<`);return i+=o.move(n.containerPhrasing(e,{before:i,after:`>`,...o.current()})),i+=o.move(`>`),r(),n.stack=t,i}let s=n.enter(`link`),c=n.enter(`label`),l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function CS(e,t,n){return xS(e,n)?`<`:`[`}wS.peek=TS;function wS(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=u.filter(function(e){return e!==`phrasing`}),o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function TS(){return`[`}function ES(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function DS(e){let t=ES(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function OS(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function kS(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function AS(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?OS(n):ES(n),s=e.ordered?o===`.`?`)`:`.`:DS(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),kS(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function jS(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function MS(e,t,n,r){let i=jS(n),a=n.bulletCurrent||ES(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function NS(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}function PS(e,t,n,r){if(!e.children.some(function(e){return Kx(e)}))return n.containerFlow(e,r);let i=n.enter(`phrasing`),a=n.containerPhrasing(e,r);return i(),a}function FS(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}IS.attention=LS,IS.peek=RS;function IS(e,t,n,r){let i=n.enter(`phrasing`),a=n.containerPhrasing({type:`root`,children:[e]},r);return i(),a}function LS(e,t){return{construct:`strong`,markers:FS(t)===`*`?[`*`,`_`]:[`_`,`*`],sizes:[2]}}function RS(e,t,n){return n.options.strong||`*`}function zS(e,t,n,r){let i=t?t.children:[],a=i.indexOf(e);return n.safe(e.value,{...r,afterNode:i[a+1],beforeNode:i[a-1]})}function BS(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function VS(e,t,n){let r=(kS(n)+(n.options.ruleSpaces?` `:``)).repeat(BS(n));return n.options.ruleSpaces?r.slice(0,-1):r}var HS={blockquote:qx,break:Zx,code:tS,definition:iS,emphasis:oS,hardBreak:Zx,heading:fS,html:pS,image:hS,imageReference:_S,inlineCode:yS,link:SS,linkReference:wS,list:AS,listItem:MS,paragraph:NS,root:PS,strong:IS,text:zS,thematicBreak:VS},US=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),WS=[`pre`,`script`,`style`,`textarea`],GS=document.createElement(`i`);function KS(e){let t=`&`+e+`;`;GS.innerHTML=t;let n=GS.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function qS(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}var JS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function YS(e){return e.replace(JS,XS)}function XS(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return qS(n.slice(t?2:1),t?16:10)}return KS(n)||e}function ZS(e){if(e===null||Fb(e)||Rb(e))return 1;if(Lb(e))return 2}function QS(){return{enter:{table:$S,tableData:rC,tableHeader:rC,tableRow:tC},exit:{codeText:iC,table:eC,tableData:nC,tableHeader:nC,tableRow:nC}}}function $S(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function eC(e){this.exit(e),this.data.inTable=void 0}function tC(e){this.enter({type:`tableRow`,children:[]},e)}function nC(e){this.exit(e)}function rC(e){this.enter({type:`tableCell`,children:[]},e)}function iC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,aC));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function aC(e,t){return t===`|`?t:e}function oC(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
|
|
185
|
+
`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
|
|
186
|
+
`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Ux(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=HS.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function sC(){return{exit:{taskListCheckValueChecked:lC,taskListCheckValueUnchecked:lC,paragraph:uC}}}function cC(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:dC}}}function lC(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function uC(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function dC(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=HS.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function fC(){return[ax(),Ax(),Fx(),QS(),sC()]}function pC(e){return{extensions:[ox(),jx(e),Ix(),oC(e),cC()]}}function mC(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function hC(e,t){return e.length>0?(mC(e,e.length,0,t),e):t}var gC={}.hasOwnProperty;function _C(e){let t={},n=-1;for(;++n<e.length;)vC(t,e[n]);return t}function vC(e,t){let n;for(n in t){let r=(gC.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){gC.call(r,a)||(r[a]=[]);let e=i[a];yC(r[a],Array.isArray(e)?e:e?[e]:[])}}}function yC(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);mC(e,0,0,r)}var bC={tokenize:PC,partial:!0},xC={tokenize:FC,partial:!0},SC={tokenize:IC,partial:!0},CC={tokenize:LC,partial:!0},wC={tokenize:RC,partial:!0},TC={name:`wwwAutolink`,tokenize:MC,previous:zC},EC={name:`protocolAutolink`,tokenize:NC,previous:BC},DC={name:`emailAutolink`,tokenize:jC,previous:VC},OC={};function kC(){return{text:OC}}for(var AC=48;AC<123;)OC[AC]=DC,AC++,AC===58?AC=65:AC===91&&(AC=97);OC[43]=DC,OC[45]=DC,OC[46]=DC,OC[95]=DC,OC[72]=[DC,EC],OC[104]=[DC,EC],OC[87]=[DC,TC],OC[119]=[DC,TC];function jC(e,t,n){let r=this,i,a;return o;function o(t){return!HC(t)||!VC.call(r,r.previous)||UC(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return HC(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(wC,u,l)(t):t===45||t===95||kb(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&Ob(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function MC(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!zC.call(r,r.previous)||UC(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(bC,e.attempt(xC,e.attempt(SC,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function NC(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&BC.call(r,r.previous)&&!UC(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(Ob(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||jb(t)||Fb(t)||Rb(t)||Lb(t)?n(t):e.attempt(xC,e.attempt(SC,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function PC(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function FC(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(CC,c,s)(t):t===null||Fb(t)||Rb(t)||t!==45&&Lb(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function IC(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(CC,t,a)(o):o===null||Fb(o)||Rb(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function LC(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Fb(o)||Rb(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Fb(e)||Rb(e)?t(e):r(e)}function a(e){return Ob(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):Ob(t)?(e.consume(t),o):n(t)}}function RC(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return kb(e)?n(e):t(e)}}function zC(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Fb(e)}function BC(e){return!Ob(e)}function VC(e){return!(e===47||HC(e))}function HC(e){return e===43||e===45||e===46||e===95||kb(e)}function UC(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function WC(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&kb(e.charCodeAt(n+1))&&kb(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function GC(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var KC={name:`attention`,resolveAll:qC,tokenize:JC};function qC(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};YC(o,-a),YC(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=hC(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=hC(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=hC(r,GC(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=hC(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=hC(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),mC(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function JC(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ZS(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=ZS(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function YC(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var XC={name:`autolink`,tokenize:ZC};function ZC(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Ob(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||kb(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||kb(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||jb(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Ab(t)?(e.consume(t),l):n(t)}function u(e){return kb(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||kb(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}function QC(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Ib(r)?(e.enter(n),s(r)):t(r)}function s(r){return Ib(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function $C(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&Ib(t)?(e.enter(r),c(t)):l(t)}function c(t){return Ib(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var ew={partial:!0,tokenize:tw};function tw(e,t,n){return r;function r(t){return Ib(t)?QC(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||Q(e)?t(e):n(e)}}var nw={continuation:{tokenize:iw},exit:aw,name:`blockQuote`,tokenize:rw};function rw(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Ib(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function iw(e,t,n){let r=this;return i;function i(t){return Ib(t)?QC(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(nw,t,n)(r)}}function aw(e){e.exit(`blockQuote`)}var ow={name:`characterEscape`,tokenize:sw};function sw(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Pb(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var cw={name:`characterReference`,tokenize:lw};function lw(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=kb,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Nb,u):(e.enter(`characterReferenceValue`),a=7,o=Mb,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===kb&&!KS(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var uw={partial:!0,tokenize:dw};function dw(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var fw={concrete:!0,name:`codeFenced`,tokenize:pw};function pw(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Ib(t)?QC(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||Q(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(uw,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||Q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Ib(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),QC(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||Q(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||Q(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Ib(t)?QC(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||Q(t)?e.check(uw,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||Q(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Ib(t)?QC(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Ib(t)?QC(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||Q(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var mw={name:`codeIndented`,tokenize:gw},hw={partial:!0,tokenize:_w};function gw(e,t,n){return r;function r(t){return e.enter(`codeIndented`),$C(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):Q(t)?e.attempt(hw,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||Q(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function _w(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):Q(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):$C(e,t,a,`linePrefix`,4,4)(o)}function a(e){return Q(e)?i(e):n(e)}}var vw={name:`codeText`,previous:bw,resolve:yw,tokenize:xw};function yw(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function bw(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function xw(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):Q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||Q(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var Sw=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Cw(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Cw(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Cw(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);Cw(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Cw(this.left,t.reverse())}}}};function Cw(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ww(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Sw(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Tw(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return mC(e,0,1/0,u.slice(0)),!l}function Tw(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Ew={resolve:Ow,tokenize:kw},Dw={partial:!0,tokenize:Aw};function Ow(e){return ww(e),e}function kw(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):Q(t)?e.check(Dw,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Aw(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),QC(e,a,`linePrefix`)}function a(i){if(i===null||Q(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function jw(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||jb(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||Q(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Fb(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||jb(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Mw(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):Q(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||Q(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Ib(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Nw(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):Q(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),QC(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||Q(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Pw(e,t){let n;return r;function r(i){return Q(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Ib(i)?QC(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Fw={name:`definition`,tokenize:Lw},Iw={partial:!0,tokenize:Rw};function Lw(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Mw.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=yx(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Fb(t)?Pw(e,l)(t):l(t)}function l(t){return jw(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Iw,d,d)(t)}function d(t){return Ib(t)?QC(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||Q(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Rw(e,t,n){return r;function r(t){return Fb(t)?Pw(e,i)(t):n(t)}function i(t){return Nw(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Ib(t)?QC(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||Q(e)?t(e):n(e)}}var zw={name:`hardBreakEscape`,tokenize:Bw};function Bw(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return Q(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Vw={name:`headingAtx`,resolve:Hw,tokenize:Uw};function Hw(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};mC(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function Uw(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Fb(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||Q(n)?(e.exit(`atxHeading`),t(n)):Ib(n)?QC(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Fb(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Ww={concrete:!0,name:`htmlFlow`,resolveTo:Kw,tokenize:qw},Gw={partial:!0,tokenize:Jw};function Kw(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function qw(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ee):Ob(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Ob(a)?(e.consume(a),i=4,r.interrupt?t:ee):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ee):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return Ob(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Fb(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&WS.includes(l)?(i=1,r.interrupt?t(s):O(s)):US.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||kb(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return Ib(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||Ob(t)?(e.consume(t),b):Ib(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||kb(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Ib(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Ib(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||Q(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Fb(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Ib(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||Q(t)?O(t):Ib(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),te):t===63&&i===3?(e.consume(t),ee):t===93&&i===5?(e.consume(t),F):Q(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Gw,I,k)(t)):t===null||Q(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(uw,A,I)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||Q(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),ee):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return WS.includes(n)?(e.consume(t),te):O(t)}return Ob(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),ee):O(t)}function ee(t){return t===62?(e.consume(t),te):t===45&&i===2?(e.consume(t),ee):O(t)}function te(t){return t===null||Q(t)?(e.exit(`htmlFlowData`),I(t)):(e.consume(t),te)}function I(n){return e.exit(`htmlFlow`),t(n)}}function Jw(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(ew,t,n)}}var Yw={name:`htmlText`,tokenize:Xw};function Xw(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Ob(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Ob(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):Q(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):Q(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):Q(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):Q(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return Ob(t)?(e.consume(t),S):n(t)}function S(t){return t===45||kb(t)?(e.consume(t),S):C(t)}function C(t){return Q(t)?(o=C,N(t)):Ib(t)?(e.consume(t),C):M(t)}function w(t){return t===45||kb(t)?(e.consume(t),w):t===47||t===62||Fb(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||Ob(t)?(e.consume(t),E):Q(t)?(o=T,N(t)):Ib(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||kb(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):Q(t)?(o=D,N(t)):Ib(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):Q(t)?(o=O,N(t)):Ib(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):Q(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Fb(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||Fb(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return Ib(t)?QC(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var Zw={name:`labelEnd`,resolveAll:tT,resolveTo:nT,tokenize:rT},Qw={tokenize:iT},$w={tokenize:aT},eT={tokenize:oT};function tT(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&mC(e,0,e.length,n),e}function nT(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=hC(o,e.slice(i+1,i+r+3)),o=hC(o,[[`enter`,l,t]]),o=hC(o,GC(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=hC(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=hC(o,e.slice(a+1)),o=hC(o,[[`exit`,s,t]]),mC(e,i,e.length,o),e}function rT(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(yx(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Qw,u,o?u:d)(t):t===91?e.attempt($w,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(eT,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function iT(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Fb(t)?Pw(e,a)(t):a(t)}function a(t){return t===41?u(t):jw(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Fb(t)?Pw(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Nw(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Fb(t)?Pw(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function aT(e,t,n){let r=this;return i;function i(t){return Mw.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(yx(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function oT(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var sT={name:`labelStartImage`,resolveAll:Zw.resolveAll,tokenize:cT};function cT(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var lT={name:`labelStartLink`,resolveAll:Zw.resolveAll,tokenize:uT};function uT(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var dT={name:`lineEnding`,tokenize:fT};function fT(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),QC(e,t,`linePrefix`)}}var pT={name:`thematicBreak`,tokenize:mT};function mT(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||Q(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Ib(t)?QC(e,s,`whitespace`)(t):s(t))}}var hT={continuation:{tokenize:yT},exit:xT,name:`list`,tokenize:vT},gT={partial:!0,tokenize:ST},_T={partial:!0,tokenize:bT};function vT(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Mb(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(pT,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Mb(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(ew,r.interrupt?n:u,e.attempt(gT,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Ib(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function yT(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ew,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,QC(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Ib(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(_T,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,QC(e,e.attempt(hT,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function bT(e,t,n){let r=this;return QC(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function xT(e){e.exit(this.containerState.type)}function ST(e,t,n){let r=this;return QC(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Ib(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var CT=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){wT(this,e,t,n,!1)}addBefore(e,t,n){wT(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function wT(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var TT={name:`setextUnderline`,resolveTo:ET,tokenize:DT};function ET(e,t){let n=new CT,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function DT(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Ib(t)?QC(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||Q(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var OT={tokenize:IT,partial:!0};function kT(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:NT,continuation:{tokenize:PT},exit:FT}},text:{91:{name:`gfmFootnoteCall`,tokenize:MT},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:AT,resolveTo:jT}}}}function AT(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=yx(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function jT(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function MT(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Fb(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(yx(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Fb(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function NT(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Fb(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=yx(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Fb(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),QC(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function PT(e,t,n){return e.check(ew,t,e.attempt(OT,t,n))}function FT(e){e.exit(`gfmFootnoteDefinition`)}function IT(e,t,n){let r=this;return QC(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function LT(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&mC(o,o.length,0,GC(s,e.slice(r+1,n),t)),mC(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),mC(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=ZS(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=ZS(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var RT=class{constructor(){this.map=[],this.index=new Map}add(e,t,n){zT(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0,this.index.clear()}};function zT(e,t,n,r){if(n===0&&r.length===0)return;let i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}let a=[t,n,r];e.map.push(a),e.index.set(t,a)}function BT(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function VT(){return{flow:{null:{name:`table`,tokenize:HT,resolveAll:UT}}}}function HT(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let{type:e}=r.events[t][1];if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124||(o=!0,a+=1),u(e)}function u(t){return t===null?n(t):Q(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):Ib(t)?QC(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Fb(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,Ib(t)?QC(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return Ib(t)?QC(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||Q(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return Ib(t)?QC(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||Q(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||Q(n)?(e.exit(`tableRow`),t(n)):Ib(n)?QC(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Fb(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function UT(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new RT;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(GT(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=WT(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=WT(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=WT(f,t,o,i,n,d)):(o[0]=o[1],d=WT(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&>(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=BT(t.events,n))}return e}function WT(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},KT(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=KT(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=KT(t.events,n[2]),a=KT(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},KT(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function GT(e,t,n,r,i){let a=[],o=KT(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function KT(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var qT={name:`tasklistCheck`,tokenize:YT};function JT(){return{text:{91:qT}}}function YT(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Fb(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return Q(r)?t(r):Ib(r)?e.check({tokenize:XT},t,n)(r):n(r)}}function XT(e,t,n){return QC(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function ZT(e){return _C([kC(),kT(),LT(e),VT(),JT()])}var QT={};function $T(e){let t=this,n=e||QT,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(ZT(n)),a.push(fC()),o.push(pC(n))}var eE={tokenize:tE};function tE(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),QC(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return Q(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var nE={tokenize:iE},rE={tokenize:aE};function iE(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new CT;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(rE,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(rE,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return Q(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new CT;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function aE(e,t,n){return QC(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}var oE={tokenize:sE};function sE(e){let t=this,n=e.attempt(ew,r,e.attempt(this.parser.constructs.flowInitial,i,QC(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ew,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var cE={resolveAll:fE()},lE=dE(`string`),uE=dE(`text`);function dE(e){return{resolveAll:fE(e===`text`?pE:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function fE(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function pE(e,t){let n=new CT,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var mE=s({attentionMarkers:()=>SE,contentInitial:()=>gE,disable:()=>CE,document:()=>hE,flow:()=>vE,flowInitial:()=>_E,insideSpan:()=>xE,string:()=>yE,text:()=>bE}),hE={42:hT,43:hT,45:hT,48:hT,49:hT,50:hT,51:hT,52:hT,53:hT,54:hT,55:hT,56:hT,57:hT,62:nw},gE={91:Fw},_E={[-2]:mw,[-1]:mw,32:mw},vE={35:Vw,42:pT,45:[TT,pT],60:Ww,61:TT,95:pT,96:fw,126:fw},yE={38:cw,92:ow},bE={[-5]:dT,[-4]:dT,[-3]:dT,33:sT,38:cw,42:KC,60:[XC,Yw],91:lT,92:[zw,ow],93:Zw,95:KC,96:vw},xE={null:[KC,cE]},SE={null:[42,95]},CE={null:[]};function wE(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=hC(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=GC(a,l.events,l),l.events):[]}function f(e,t){return EE(p(e),t)}function p(e){return TE(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){Q(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&mC(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function TE(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function EE(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
187
|
+
`;break;case-3:o=`\r
|
|
188
|
+
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function DE(e){let t={constructs:_C([mE,...(e||{}).extensions||[]]),content:n(eE),defined:[],document:n(nE),flow:n(oE),lazy:{},string:n(lE),text:n(uE)};return t;function n(e){return n;function n(n){return wE(t,e,n)}}}function OE(e){for(;!ww(e););return e}var kE=/[\0\t\n\r]/g;function AE(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){kE.lastIndex=c;let n=kE.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}function jE(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?NE(e.position):`start`in e||`end`in e?NE(e):`line`in e||`column`in e?ME(e):``}function ME(e){return PE(e&&e.line)+`:`+PE(e&&e.column)}function NE(e){return ME(e&&e.start)+`-`+ME(e&&e.end)}function PE(e){return e&&typeof e==`number`?e:1}var FE={}.hasOwnProperty;function IE(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),LE(n)(OE(DE(n).document().write(AE()(e,t,!0))))}function LE(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(ge),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(pe),blockQuote:o(ue),characterEscape:E,characterReference:E,codeFenced:o(de),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(de,s),codeText:o(L,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(R),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(fe),hardBreakEscape:o(me),hardBreakTrailing:o(me),htmlFlow:o(he,s),htmlFlowData:E,htmlText:o(he,s),htmlTextData:E,image:o(z),label:s,link:o(ge),listItem:o(ve),listItemValue:p,listOrdered:o(_e,f),listUnordered:o(_e),paragraph:o(ye),reference:re,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(pe),strong:o(be),thematicBreak:o(Se)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:le,autolinkProtocol:ce,blockQuote:l(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:oe,characterReference:se,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:D,codeIndented:l(v),codeText:l(M),codeTextData:D,data:D,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(k),hardBreakTrailing:l(k),htmlFlow:l(A),htmlFlowData:D,htmlText:l(j),htmlTextData:D,image:l(P),label:ee,labelText:F,lineEnding:O,link:l(N),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ie,resourceDestinationString:te,resourceTitleString:I,resource:ne,setextHeading:l(T),setextHeadingLineSequence:w,setextHeadingText:C,strong:l(),thematicBreak:l()}};zE(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),FE.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||VE).call(o,void 0,e[0])}for(r.position={start:RE(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:RE(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:RE(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+jE({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||VE).call(this,e,r[0])),n.position.end=RE(e.end)}function d(){return Cb(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=yx(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function C(){this.data.setextHeadingSlurpLineEnding=!0}function w(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function T(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=xe(),n.position={start:RE(e.start),end:void 0},t.push(n)),this.stack.push(n)}function D(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=RE(e.end)}function O(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=RE(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),D.call(this,e))}function k(){this.data.atHardBreak=!0}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=YS(t),n.identifier=yx(t).toLowerCase()}function ee(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ne(){this.data.inReference=void 0}function re(){this.data.referenceType=`collapsed`}function ie(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=yx(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ae(e){this.data.characterReferenceType=e.type}function oe(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=qS(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=KS(t);let i=this.stack[this.stack.length-1];i.value+=r}function se(e){let t=this.stack.pop();t.position.end=RE(e.end)}function ce(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function le(e){D.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ue(){return{type:`blockquote`,children:[],position:void 0}}function de(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function L(){return{type:`inlineCode`,value:``,position:void 0}}function R(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function fe(){return{type:`emphasis`,children:[],position:void 0}}function pe(){return{type:`heading`,depth:0,children:[],position:void 0}}function me(){return{type:`break`,position:void 0}}function he(){return{type:`html`,value:``,position:void 0}}function z(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function ge(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function _e(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function ve(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function ye(){return{type:`paragraph`,children:[],position:void 0}}function be(){return{type:`strong`,children:[],position:void 0}}function xe(){return{type:`text`,value:``,position:void 0}}function Se(){return{type:`thematicBreak`,position:void 0}}}function RE(e){return{line:e.line,column:e.column,offset:e.offset}}function zE(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?zE(e,r):BE(e,r)}}function BE(e,t){let n;for(n in t)if(FE.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function VE(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+jE({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+jE({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+jE({start:t.start,end:t.end})+`) is still open`)}function HE(e){let t=this;t.parser=n;function n(n){return IE(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function UE(e){if(e)throw e}var WE=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function GE(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function KE(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a)r(a);else{for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?qE(s,i)(...o):r(null,...o)}}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function qE(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var JE=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=jE(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};JE.prototype.file=``,JE.prototype.name=``,JE.prototype.reason=``,JE.prototype.message=``,JE.prototype.stack=``,JE.prototype.column=void 0,JE.prototype.line=void 0,JE.prototype.ancestors=void 0,JE.prototype.cause=void 0,JE.prototype.fatal=void 0,JE.prototype.place=void 0,JE.prototype.ruleId=void 0,JE.prototype.source=void 0;var YE={basename:XE,dirname:ZE,extname:QE,join:$E,sep:`/`};function XE(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);nD(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function ZE(e){if(nD(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function QE(e){nD(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}}else n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function $E(...e){let t=-1,n;for(;++t<e.length;)nD(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:eD(n)}function eD(e){nD(e);let t=e.codePointAt(0)===47,n=tD(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function tD(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(i!==o-1&&a!==1){if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1}i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function nD(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var rD={cwd:iD};function iD(){return`/`}function aD(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function oD(e){if(typeof e==`string`)e=new URL(e);else if(!aD(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return sD(e)}function sD(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var cD=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],lD=class{constructor(e){let t;t=e?aD(e)?{path:e}:typeof e==`string`||pD(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:rD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<cD.length;){let e=cD[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)cD.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?YE.basename(this.path):void 0}set basename(e){dD(e,`basename`),uD(e,`basename`),this.path=YE.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?YE.dirname(this.path):void 0}set dirname(e){fD(this.basename,`dirname`),this.path=YE.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?YE.extname(this.path):void 0}set extname(e){if(uD(e,`extname`),fD(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=YE.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){aD(e)&&(e=oD(e)),dD(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?YE.basename(this.path,this.extname):void 0}set stem(e){dD(e,`stem`),uD(e,`stem`),this.path=YE.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new JE(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function uD(e,t){if(e&&e.includes(YE.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+YE.sep+"`")}function dD(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function fD(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function pD(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var mD=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),hD=l(WE(),1),gD={}.hasOwnProperty,_D=new class e extends mD{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=KE()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,hD.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(bD(`data`,this.frozen),this.namespace[e]=t,this):gD.call(this.namespace,e)&&this.namespace[e]||void 0:e?(bD(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=CD(e),n=this.parser||this.Parser;return vD(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),vD(`process`,this.parser||this.Parser),yD(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=CD(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);TD(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),vD(`processSync`,this.parser||this.Parser),yD(`processSync`,this.compiler||this.Compiler),this.process(e,r),SD(`processSync`,`process`,t),n;function r(e,r){t=!0,UE(e),n=r}}run(e,t,n){xD(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=CD(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),SD(`runSync`,`run`,n),r;function i(e,t){UE(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=CD(t),r=this.compiler||this.Compiler;return yD(`stringify`,r),xD(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(bD(`use`,this.frozen),e!=null){if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,hD.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null){if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];GE(o)&&GE(r)&&(r=(0,hD.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function vD(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function yD(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function bD(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xD(e){if(!GE(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function SD(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function CD(e){return wD(e)?e:new lD(e)}function wD(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function TD(e){return typeof e==`string`||ED(e)}function ED(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var DD=/\s*\{-\}\s*$/;function OD(e){return e.replace(/\.md$/,``)}function kD(e,t){let n=new bb,r=OD(t),i=[];return uS(e,`heading`,e=>{let t=Cb(e),a=DD.test(t),o=t.replace(DD,``);i.push({node:e,id:`${r}--${n.slug(o)}`,text:o,omitted:a})}),i}function AD(e){let t=e.children[e.children.length-1];t?.type===`text`&&DD.test(t.value)&&(t.value=t.value.replace(DD,``))}function jD(e){return t=>{for(let n of kD(t,e.chapterFile))AD(n.node),n.node.data={...n.node.data,hProperties:{...n.node.data?.hProperties,id:n.id}}}}function MD(e,t,n){let r=n?.minDepth??2,i=n?.maxDepth??3;return kD(_D().use(HE).use($T).parse(t),e).filter(e=>!e.omitted).filter(e=>e.node.depth===1||e.node.depth>=r&&e.node.depth<=i).map(e=>({id:e.id,text:e.text,depth:e.node.depth}))}var ND=[`note`,`warning`,`tip`,`say`,`do`,`timing`];function PD(e){return ND.includes(e)}function FD(){return e=>{uS(e,(e,t,n)=>{if(e.type!==`containerDirective`&&e.type!==`leafDirective`&&e.type!==`textDirective`)return;let r=e;if(r.type===`containerDirective`)r.data={...r.data,hName:`div`,hProperties:PD(r.name)?{dataAdmonition:r.name}:{dataAdmonitionUnknown:r.name}};else if(n&&typeof t==`number`){let e={type:`text`,value:`:${r.name}`},i=r.type===`leafDirective`?{type:`paragraph`,children:[e]}:e;return n.children.splice(t,1,i),[Xb,t]}})}}function ID(){return e=>{uS(e,`html`,(e,t,n)=>{if(n&&typeof t==`number`){let r={type:`text`,value:e.value},i=n.type===`root`?{type:`paragraph`,children:[r]}:r;return n.children.splice(t,1,i),[Xb,t]}})}}var LD={youtube:{idPattern:/^[A-Za-z0-9_-]{11}$/,embedUrl:e=>`https://www.youtube-nocookie.com/embed/${e}`,embedHosts:[`www.youtube-nocookie.com`]}},RD=new Set([`provider`,`id`]);function zD(e){let t={};for(let n of e.split(`
|
|
189
|
+
`)){let e=n.trim();if(e.length===0)continue;let r=e.match(/^([A-Za-z][A-Za-z0-9_-]*):\s*(.*)$/);if(!r)return{ok:!1,error:`Malformed line in video block: "${e}"`};let i=r[1],a=r[2].trim();if(!RD.has(i))return{ok:!1,error:`Unknown key "${i}" in video block`};if(i in t)return{ok:!1,error:`Duplicate key "${i}" in video block`};t[i]=a}let n=t.provider;if(!n)return{ok:!1,error:`Video block is missing "provider"`};let r=LD[n];if(!r)return{ok:!1,error:`Unknown video provider "${n}". Supported providers: ${Object.keys(LD).join(`, `)}`};let i=t.id;return i?r.idPattern.test(i)?{ok:!0,provider:n,id:i,embedUrl:r.embedUrl(i)}:{ok:!1,error:`Video id "${i}" is not a valid ${n} id`}:{ok:!1,error:`Video block is missing "id"`}}var BD=vl((0,V.jsx)(`path`,{d:`M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8`}),`InfoOutlined`),VD=vl((0,V.jsx)(`path`,{d:`M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7m2.85 11.1-.85.6V16h-4v-2.3l-.85-.6C7.8 12.16 7 10.63 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1`}),`LightbulbOutlined`),HD=vl([(0,V.jsx)(`circle`,{cx:`9`,cy:`9`,r:`4`},`0`),(0,V.jsx)(`path`,{d:`M9 15c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4m7.76-9.64-1.68 1.69c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27M20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14`},`1`)],`RecordVoiceOver`),UD=vl((0,V.jsx)(`path`,{d:`M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10zm-2.21 5.04c.13.57.21 1.17.21 1.78 0 4.42-3.58 8-8 8s-8-3.58-8-8 3.58-8 8-8c1.58 0 3.04.46 4.28 1.25l1.44-1.44C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-1.19-.22-2.33-.6-3.39z`}),`TaskAlt`),WD=vl((0,V.jsx)(`path`,{d:`M15 1H9v2h6zm-4 13h2V8h-2zm8.03-6.61 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7`}),`TimerOutlined`),GD=vl([(0,V.jsx)(`path`,{d:`M12 5.99 19.53 19H4.47zM12 2 1 21h22z`},`0`),(0,V.jsx)(`path`,{d:`M13 16h-2v2h2zm0-6h-2v5h2z`},`1`)],`WarningAmber`);function KD(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var qD=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,JD=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,YD={};function XD(e,t){return((t||YD).jsx?JD:qD).test(e)}var ZD=/[ \t\n\f\r]/g;function QD(e){return typeof e==`object`?e.type===`text`&&$D(e.value):$D(e)}function $D(e){return e.replace(ZD,``)===``}var eO=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};eO.prototype.normal={},eO.prototype.property={},eO.prototype.space=void 0;function tO(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new eO(n,r,t)}function nO(e){return e.toLowerCase()}var rO=class{constructor(e,t){this.attribute=t,this.property=e}};rO.prototype.attribute=``,rO.prototype.booleanish=!1,rO.prototype.boolean=!1,rO.prototype.commaOrSpaceSeparated=!1,rO.prototype.commaSeparated=!1,rO.prototype.defined=!1,rO.prototype.mustUseProperty=!1,rO.prototype.number=!1,rO.prototype.overloadedBoolean=!1,rO.prototype.property=``,rO.prototype.spaceSeparated=!1,rO.prototype.space=void 0;var iO=s({boolean:()=>oO,booleanish:()=>sO,commaOrSpaceSeparated:()=>dO,commaSeparated:()=>uO,number:()=>$,overloadedBoolean:()=>cO,spaceSeparated:()=>lO}),aO=0,oO=fO(),sO=fO(),cO=fO(),$=fO(),lO=fO(),uO=fO(),dO=fO();function fO(){return 2**++aO}var pO=Object.keys(iO),mO=class extends rO{constructor(e,t,n,r){let i=-1;if(super(e,t),hO(this,`space`,r),typeof n==`number`)for(;++i<pO.length;){let e=pO[i];hO(this,pO[i],(n&iO[e])===iO[e])}}};mO.prototype.defined=!0;function hO(e,t,n){n&&(e[t]=n)}function gO(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new mO(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[nO(r)]=r,n[nO(a.attribute)]=r}return new eO(t,n,e.space)}var _O=gO({properties:{ariaActiveDescendant:null,ariaAtomic:sO,ariaAutoComplete:null,ariaBusy:sO,ariaChecked:sO,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:lO,ariaCurrent:null,ariaDescribedBy:lO,ariaDetails:null,ariaDisabled:sO,ariaDropEffect:lO,ariaErrorMessage:null,ariaExpanded:sO,ariaFlowTo:lO,ariaGrabbed:sO,ariaHasPopup:null,ariaHidden:sO,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lO,ariaLevel:$,ariaLive:null,ariaModal:sO,ariaMultiLine:sO,ariaMultiSelectable:sO,ariaOrientation:null,ariaOwns:lO,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:sO,ariaReadOnly:sO,ariaRelevant:null,ariaRequired:sO,ariaRoleDescription:lO,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:sO,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function vO(e,t){return t in e?e[t]:t}function yO(e,t){return vO(e,t.toLowerCase())}var bO=gO({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:uO,acceptCharset:lO,accessKey:lO,action:null,allow:null,allowFullScreen:oO,allowPaymentRequest:oO,allowUserMedia:oO,alpha:oO,alt:null,as:null,async:oO,autoCapitalize:null,autoComplete:lO,autoFocus:oO,autoPlay:oO,blocking:lO,capture:null,charSet:null,checked:oO,cite:null,className:lO,closedBy:null,colorSpace:null,cols:$,colSpan:$,command:null,commandFor:null,content:null,contentEditable:sO,controls:oO,controlsList:lO,coords:$|uO,crossOrigin:null,data:null,dateTime:null,decoding:null,default:oO,defer:oO,dir:null,dirName:null,disabled:oO,download:cO,draggable:sO,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:oO,formTarget:null,headers:lO,height:$,hidden:cO,high:$,href:null,hrefLang:null,htmlFor:lO,httpEquiv:lO,id:null,imageSizes:null,imageSrcSet:null,inert:oO,inputMode:null,integrity:null,is:null,isMap:oO,itemId:null,itemProp:lO,itemRef:lO,itemScope:oO,itemType:lO,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:oO,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:oO,muted:oO,name:null,nonce:null,noModule:oO,noValidate:oO,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:oO,optimum:$,pattern:null,ping:lO,placeholder:null,playsInline:oO,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:oO,referrerPolicy:null,rel:lO,required:oO,reversed:oO,rows:$,rowSpan:$,sandbox:lO,scope:null,scoped:oO,seamless:oO,selected:oO,shadowRootClonable:oO,shadowRootCustomElementRegistry:oO,shadowRootDelegatesFocus:oO,shadowRootMode:null,shadowRootSerializable:oO,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:sO,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:oO,useMap:null,value:sO,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lO,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:oO,declare:oO,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:oO,noHref:oO,noShade:oO,noWrap:oO,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:sO,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:oO,disablePictureInPicture:oO,disableRemotePlayback:oO,exportParts:uO,part:lO,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:yO}),xO=gO({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:dO,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:lO,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:oO,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:uO,g2:uO,glyphName:uO,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:dO,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lO,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:dO,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:dO,rev:dO,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:dO,requiredFeatures:dO,requiredFonts:dO,requiredFormats:dO,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:dO,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:dO,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:dO,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:vO}),SO=gO({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),CO=gO({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:yO}),wO=gO({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),TO={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},EO=/[A-Z]/g,DO=/-[a-z]/g,OO=/^data[-\w.:]+$/i;function kO(e,t){let n=nO(t),r=t,i=rO;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&OO.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(DO,jO);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!DO.test(e)){let n=e.replace(EO,AO);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=mO}return new i(r,t)}function AO(e){return`-`+e.toLowerCase()}function jO(e){return e.charAt(1).toUpperCase()}var MO=tO([_O,bO,SO,CO,wO],`html`),NO=tO([_O,xO,SO,CO,wO],`svg`);function PO(e){return e.join(` `).trim()}var FO=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
190
|
+
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),IO=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(FO());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),LO=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),RO=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(IO()),r=LO();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),zO=VO(`end`),BO=VO(`start`);function VO(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function HO(e){let t=BO(e),n=zO(e);if(t&&n)return{start:t,end:n}}var UO=l(RO(),1),WO={}.hasOwnProperty,GO=new Map,KO=/[A-Z]/g,qO=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),JO=new Set([`td`,`th`]),YO=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function XO(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=sk(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=ok(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?NO:MO,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=ZO(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function ZO(e,t,n){if(t.type===`element`)return QO(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return $O(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return tk(e,t,n);if(t.type===`mdxjsEsm`)return ek(e,t);if(t.type===`root`)return nk(e,t,n);if(t.type===`text`)return rk(e,t)}function QO(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=NO,e.schema=i),e.ancestors.push(t);let a=pk(e,t.tagName,!1),o=ck(e,t),s=uk(e,t);return qO.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!QD(e)})),ik(e,o,a,t),ak(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function $O(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}mk(e,t.position)}function ek(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);mk(e,t.position)}function tk(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=NO,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:pk(e,t.name,!0),o=lk(e,t),s=uk(e,t);return ik(e,o,a,t),ak(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function nk(e,t,n){let r={};return ak(r,uk(e,t)),e.create(t,e.Fragment,r,n)}function rk(e,t){return t.value}function ik(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ak(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ok(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function sk(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=BO(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function ck(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&WO.call(t.properties,i)){let a=dk(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&JO.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function lk(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else mk(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else mk(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function uk(e,t){let n=[],r=-1,i=e.passKeys?new Map:GO;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=ZO(e,a,o);s!==void 0&&n.push(s)}return n}function dk(e,t,n){let r=kO(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?KD(n):PO(n)),r.property===`style`){let t=typeof n==`object`?n:fk(e,String(n));return e.stylePropertyNameCase===`css`&&(t=hk(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?TO[r.property]||r.property:r.attribute,n]}}function fk(e,t){try{return(0,UO.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new JE("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=YO+`#cannot-parse-style-attribute`,r}}function pk(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=XD(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=XD(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return WO.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);mk(e)}function mk(e,t){let n=new JE("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=YO+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function hk(e){let t={},n;for(n in e)WO.call(e,n)&&(t[gk(n)]=e[n]);return t}function gk(e){let t=e.replace(KO,_k);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function _k(e){return`-`+e.toLowerCase()}var vk={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]};function yk(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function bk(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
|
191
|
+
`}]}function xk(e,t){let n=t.value?t.value+`
|
|
192
|
+
`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Sk(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ck(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wk(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=WC(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Tk(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ek(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Dk(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Ok(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Dk(e,t);let i={src:WC(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function kk(e,t){let n={src:WC(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ak(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function jk(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Dk(e,t);let i={href:WC(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Mk(e,t){let n={href:WC(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Nk(e,t,n){let r=e.all(t),i=n?Pk(n):Fk(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
193
|
+
`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
|
|
194
|
+
`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Pk(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Fk(n[r])}return t}function Fk(e){return e.spread??e.children.length>1}function Ik(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Lk(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rk(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function zk(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bk(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=BO(t.children[1]),o=zO(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Vk(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function Hk(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Uk=9,Wk=32;function Gk(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Kk(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Kk(t.slice(i),i>0,!1)),a.join(``)}function Kk(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Uk||t===Wk;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Uk||t===Wk;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function qk(e,t){let n={type:`text`,value:Gk(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Jk(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var Yk={blockquote:yk,break:bk,code:xk,delete:Sk,emphasis:Ck,footnoteReference:wk,heading:Tk,html:Ek,imageReference:Ok,image:kk,inlineCode:Ak,linkReference:jk,link:Mk,listItem:Nk,list:Ik,paragraph:Lk,root:Rk,strong:zk,table:Bk,tableCell:Hk,tableRow:Vk,text:qk,thematicBreak:Jk,toml:Xk,yaml:Xk,definition:Xk,footnoteDefinition:Xk};function Xk(){}var{defineProperty:Zk}=Object,Qk=typeof self==`object`?self:globalThis,$k=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new Qk[e](t)},eA=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?Zk(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof Qk[e]==`function`?$k(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n($k(a,o),i)};return r},tA=e=>eA(new Map,e)(0),nA=``,{toString:rA}={},{keys:iA,is:aA}=Object,oA=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=rA.call(e).slice(8,-1);switch(n){case`Array`:return[1,nA];case`Object`:return[2,nA];case`Date`:return[3,nA];case`RegExp`:return[4,nA];case`Map`:return[5,nA];case`Set`:return[6,nA];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},sA=([e,t])=>e===0&&(t===`function`||t===`symbol`),cA=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=oA(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&aA(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of iA(o))(e||!sA(oA(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?nA:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);for(let[n,r]of o)(e||!(sA(oA(n))||sA(oA(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!sA(oA(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},lA=(e,{json:t,lossy:n}={})=>{let r=[];return cA(!(t||n),!!t,new Map,r)(e),r},uA=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?tA(lA(e,t)):structuredClone(e):(e,t)=>tA(lA(e,t));function dA(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function fA(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function pA(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||dA,r=e.options.footnoteBackLabel||fA,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=WC(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...uA(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
|
|
195
|
+
`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
|
|
196
|
+
`}]}}var mA={}.hasOwnProperty,hA={};function gA(e,t){let n=t||hA,r=new Map,i=new Map,a={all:s,applyData:vA,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...Yk,...n.handlers},one:o,options:n,patch:_A,wrap:bA};return uS(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(mA.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=uA(n);return r.children=a.all(e),r}return uA(e)}return(a.options.unknownHandler||yA)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=xA(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=xA(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function _A(e,t){e.position&&(t.position=HO(e))}function vA(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,uA(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function yA(e,t){let n=t.data||{},r=`value`in t&&!(mA.call(n,`hProperties`)||mA.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function bA(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
|
|
197
|
+
`});++r<e.length;)r&&n.push({type:`text`,value:`
|
|
198
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
|
|
199
|
+
`}),n}function xA(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function SA(e,t){let n=gA(e,t),r=n.one(e,void 0),i=pA(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
|
|
200
|
+
`},i)),a}function CA(e,t){return e&&`run`in e?async function(n,r){let i=SA(n,{file:r,...t});await e.run(i,r)}:function(n,r){return SA(n,{file:r,...e||t})}}var wA=[],TA={allowDangerousHtml:!0},EA=/^(https?|ircs?|mailto|xmpp)$/i,DA=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function OA(e){let t=kA(e),n=AA(e);return jA(t.runSync(t.parse(n),n),e)}function kA(e){let t=e.rehypePlugins||wA,n=e.remarkPlugins||wA,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...TA}:TA;return _D().use(HE).use(n).use(CA,r).use(t)}function AA(e){let t=e.children||``,n=new lD;return typeof t==`string`?n.value=t:``+t,n}function jA(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||MA;for(let e of DA)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return uS(e,l),XO(e,{Fragment:V.Fragment,components:i,ignoreInvalidStyle:!0,jsx:V.jsx,jsxs:V.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in vk)if(Object.hasOwn(vk,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=vk[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function MA(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||EA.test(e.slice(0,t))?e:``}var NA=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),PA={0:`�`,128:`€`,130:`‚`,131:`ƒ`,132:`„`,133:`…`,134:`†`,135:`‡`,136:`ˆ`,137:`‰`,138:`Š`,139:`‹`,140:`Œ`,142:`Ž`,145:`‘`,146:`’`,147:`“`,148:`”`,149:`•`,150:`–`,151:`—`,152:`˜`,153:`™`,154:`š`,155:`›`,156:`œ`,158:`ž`,159:`Ÿ`};function FA(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=48&&t<=57}function IA(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function LA(e){let t=typeof e==`string`?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function RA(e){return LA(e)||FA(e)}var zA=[``,`Named character references must be terminated by a semicolon`,`Numeric character references must be terminated by a semicolon`,`Named character references cannot be empty`,`Numeric character references cannot be empty`,`Named character references must be known`,`Numeric character references cannot be disallowed`,`Numeric character references cannot be outside the permissible Unicode range`];function BA(e,t){let n=t||{},r=typeof n.additional==`string`?n.additional.charCodeAt(0):n.additional,i=[],a=0,o=-1,s=``,c,l;n.position&&(`start`in n.position||`indent`in n.position?(l=n.position.indent,c=n.position.start):c=n.position);let u=(c?c.line:0)||1,d=(c?c.column:0)||1,f=m(),p;for(a--;++a<=e.length;)if(p===10&&(d=(l?l[o]:0)||1),p=e.charCodeAt(a),p===38){let t=e.charCodeAt(a+1);if(t===9||t===10||t===12||t===32||t===38||t===60||Number.isNaN(t)||r&&t===r){s+=String.fromCharCode(p),d++;continue}let o=a+1,c=o,l=o,u;if(t===35){l=++c;let t=e.charCodeAt(l);t===88||t===120?(u=`hexadecimal`,l=++c):u=`decimal`}else u=`named`;let _=``,v=``,y=``,b=u===`named`?RA:u===`decimal`?FA:IA;for(l--;++l<=e.length;){let t=e.charCodeAt(l);if(!b(t))break;y+=String.fromCharCode(t),u===`named`&&NA.includes(y)&&(_=y,v=KS(y))}let x=e.charCodeAt(l)===59;if(x){l++;let e=u===`named`&&KS(y);e&&(_=y,v=e)}let S=1+l-o,C=``;if(x||n.nonTerminated!==!1){if(!y)u!==`named`&&h(4,S);else if(u===`named`){if(x&&!v)h(5,1);else if(_!==y&&(l=c+_.length,S=1+l-c,x=!1),!x){let t=_?1:3;if(n.attribute){let n=e.charCodeAt(l);n===61?(h(t,S),v=``):RA(n)?v=``:h(t,S)}else h(t,S)}C=v}else{x||h(2,S);let e=Number.parseInt(y,u===`hexadecimal`?16:10);if(VA(e))h(7,S),C=`�`;else if(e in PA)h(6,S),C=PA[e];else{let t=``;HA(e)&&h(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|e&1023),C=t+String.fromCharCode(e)}}}if(C){g(),f=m(),a=l-1,d+=l-o+1,i.push(C);let t=m();t.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,C,{start:f,end:t},e.slice(o-1,l)),f=t}else y=e.slice(o-1,l),s+=y,d+=y.length,a=l-1}else p===10&&(u++,o++,d=0),Number.isNaN(p)?g():(s+=String.fromCharCode(p),d++);return i.join(``);function m(){return{line:u,column:d,offset:a+((c?c.offset:0)||0)}}function h(e,t){let r;n.warning&&(r=m(),r.column+=t,r.offset+=t,n.warning.call(n.warningContext||void 0,zA[e],r,e))}function g(){s&&=(i.push(s),n.text&&n.text.call(n.textContext||void 0,s,{start:f,end:m()}),``)}}function VA(e){return e>=55296&&e<=57343||e>1114111}function HA(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)==65535||(e&65535)==65534}var UA=/["&'<>`]/g,WA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,GA=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,KA=/[|\\{}()[\]^$+*?.]/g,qA=new WeakMap;function JA(e,t){return e=e.replace(t.subset?YA(t.subset):UA,r),t.subset||t.escapeOnly?e:e.replace(WA,n).replace(GA,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function YA(e){let t=qA.get(e);return t||(t=XA(e),qA.set(e,t)),t}function XA(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(KA,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}function ZA(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function QA(e,t){return JA(e,Object.assign({format:ZA},t))}var $A={}.hasOwnProperty,ej={},tj=/^[^\t\n\r "#'.<=>`}]+$/,nj=/^[^\t\n\r "'<=>`}]+$/;function rj(){return{canContainEols:[`textDirective`],enter:{directiveContainer:aj,directiveContainerAttributes:fj,directiveContainerLabel:uj,directiveLeaf:oj,directiveLeafAttributes:fj,directiveText:sj,directiveTextAttributes:fj},exit:{directiveContainer:vj,directiveContainerAttributeClassValue:mj,directiveContainerAttributeIdValue:pj,directiveContainerAttributeName:gj,directiveContainerAttributeValue:hj,directiveContainerAttributes:_j,directiveContainerLabel:dj,directiveContainerName:lj,directiveLeaf:vj,directiveLeafAttributeClassValue:mj,directiveLeafAttributeIdValue:pj,directiveLeafAttributeName:gj,directiveLeafAttributeValue:hj,directiveLeafAttributes:_j,directiveLeafName:lj,directiveText:vj,directiveTextAttributeClassValue:mj,directiveTextAttributeIdValue:pj,directiveTextAttributeName:gj,directiveTextAttributeValue:hj,directiveTextAttributes:_j,directiveTextName:lj}}}function ij(e){let t=e||ej;if(t.quote!==`"`&&t.quote!==`'`&&t.quote!==null&&t.quote!==void 0)throw Error("Invalid quote `"+t.quote+"`, expected `'` or `\"`");return n.peek=yj,{handlers:{containerDirective:n,leafDirective:n,textDirective:n},unsafe:[{character:`\r`,inConstruct:[`leafDirectiveLabel`,`containerDirectiveLabel`]},{character:`
|
|
201
|
+
`,inConstruct:[`leafDirectiveLabel`,`containerDirectiveLabel`]},{after:`[^\\s\\p{P}\\p{S}]`,before:`[^:]`,character:`:`,inConstruct:[`phrasing`],unicode:!0},{afterNode:`textDirective`,character:`:`,inConstruct:[`phrasing`]},{atBreak:!0,before:`:+`,character:`:`}]};function n(e,t,n,i){let a=n.createTracker(i),o=xj(e),s=n.enter(e.type),c=a.move(o+(e.name||``)),l=r(e,n),u=i.after.charCodeAt(0),d;if(e.type===`containerDirective`){let t=(e.children||[])[0];d=bj(t)?t:void 0}else d=e;if(d&&d.children&&d.children.length>0){let t=n.enter(`label`),r=`${e.type}Label`,i=n.enter(r);c+=a.move(`[`),c+=a.move(n.containerPhrasing(d,{...a.current(),before:c,after:`]`})),c+=a.move(`]`),i(),t()}else!l&&(u===45||u===95||!(Lb(u)||Rb(u)))&&(c+=a.move(`[]`));if(c+=a.move(l||(u===123?`{}`:``)),e.type===`containerDirective`){let t=(e.children||[])[0],r=e;bj(t)&&(r=Object.assign({},e,{children:e.children.slice(1)})),r&&r.children&&r.children.length>0&&(c+=a.move(`
|
|
202
|
+
`),c+=a.move(n.containerFlow(r,a.current()))),c+=a.move(`
|
|
203
|
+
`+o)}return s(),c}function r(e,n){let r=e.attributes||{},a=[],o,s,c,l;for(l in r)if($A.call(r,l)&&r[l]!==void 0&&r[l]!==null){let u=String(r[l]);if(l===`id`)c=t.preferShortcut!==!1&&tj.test(u)?`#`+u:i(`id`,u,e,n);else if(l===`class`){let r=u.split(/[\t\n\r ]+/),a=[],c=[],l=-1;for(;++l<r.length;)(t.preferShortcut!==!1&&tj.test(r[l])?c:a).push(r[l]);o=a.length>0?i(`class`,a.join(` `),e,n):``,s=c.length>0?`.`+c.join(`.`):``}else a.push(i(l,u,e,n))}return o&&a.unshift(o),s&&a.unshift(s),c&&a.unshift(c),a.length>0?`{`+a.join(` `)+`}`:``}function i(e,n,r,i){if(t.collapseEmptyAttributes!==!1&&!n)return e;if(t.preferUnquoted&&nj.test(n))return e+`=`+n;let a=t.quote||i.options.quote||`"`,o=a===`"`?`'`:`"`,s=t.quoteSmart&&Db(n,a)>Db(n,o)?o:a,c=r.type===`textDirective`?[s]:[s,`
|
|
204
|
+
`,`\r`];return e+`=`+s+QA(n,{subset:c})+s}}function aj(e){cj.call(this,`containerDirective`,e)}function oj(e){cj.call(this,`leafDirective`,e)}function sj(e){cj.call(this,`textDirective`,e)}function cj(e,t){this.enter({type:e,name:``,attributes:{},children:[]},t)}function lj(e){let t=this.stack[this.stack.length-1];t.type===`containerDirective`||t.type===`leafDirective`||t.type,t.name=this.sliceSerialize(e)}function uj(e){this.enter({type:`paragraph`,data:{directiveLabel:!0},children:[]},e)}function dj(e){this.exit(e)}function fj(){this.data.directiveAttributes=[],this.buffer()}function pj(e){this.data.directiveAttributes.push([`id`,BA(this.sliceSerialize(e),{attribute:!0})])}function mj(e){this.data.directiveAttributes.push([`class`,BA(this.sliceSerialize(e),{attribute:!0})])}function hj(e){let t=this.data.directiveAttributes;t[t.length-1][1]=BA(this.sliceSerialize(e),{attribute:!0})}function gj(e){this.data.directiveAttributes.push([this.sliceSerialize(e),``])}function _j(){let e=this.data.directiveAttributes,t={},n=-1;for(;++n<e.length;){let r=e[n];r[0]===`class`&&t.class?t.class+=` `+r[1]:t[r[0]]=r[1]}this.data.directiveAttributes=void 0,this.resume();let r=this.stack[this.stack.length-1];r.type===`containerDirective`||r.type===`leafDirective`||r.type,r.attributes=t}function vj(e){this.exit(e)}function yj(){return`:`}function bj(e){return!!(e&&e.type===`paragraph`&&e.data&&e.data.directiveLabel)}function xj(e){let t=0;return e.type===`containerDirective`?(Zb(e,function(e,n){if(e.type===`containerDirective`){let e=n.length,r=0;for(;e--;)n[e].type===`containerDirective`&&r++;r>t&&(t=r)}}),t+=3):t=e.type===`leafDirective`?2:1,`:`.repeat(t)}function Sj(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){let h,g;return _;function _(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),v}function v(t){return t===35?(h=o,y(t)):t===46?(h=s,y(t)):m&&Ib(t)?QC(e,v,`whitespace`)(t):!m&&Fb(t)?Pw(e,v)(t):t===null||Q(t)||Rb(t)||Lb(t)&&t!==45&&t!==95?A(t):(e.enter(a),e.enter(c),e.consume(t),S)}function y(t){let n=h+`Marker`;return e.enter(a),e.enter(h),e.enter(n),e.consume(t),e.exit(n),b}function b(t){if(t===null||t===34||t===35||t===39||t===46||t===60||t===61||t===62||t===96||t===125||Fb(t))return n(t);let r=h+`Value`;return e.enter(r),e.consume(t),x}function x(t){if(t===null||t===34||t===39||t===60||t===61||t===62||t===96)return n(t);if(t===35||t===46||t===125||Fb(t)){let n=h+`Value`;return e.exit(n),e.exit(h),e.exit(a),v(t)}return e.consume(t),x}function S(t){return t===null||Q(t)||Rb(t)||Lb(t)&&t!==45&&t!==46&&t!==58&&t!==95?(e.exit(c),m&&Ib(t)?QC(e,C,`whitespace`)(t):!m&&Fb(t)?Pw(e,C)(t):C(t)):(e.consume(t),S)}function C(t){return t===61?(e.enter(l),e.consume(t),e.exit(l),w):(e.exit(a),v(t))}function w(t){return t===null||t===60||t===61||t===62||t===96||t===125||m&&Q(t)?n(t):t===34||t===39?(e.enter(u),e.enter(f),e.consume(t),e.exit(f),g=t,E):m&&Ib(t)?QC(e,w,`whitespace`)(t):!m&&Fb(t)?Pw(e,w)(t):(e.enter(d),e.enter(p),e.consume(t),g=void 0,T)}function T(t){return t===null||t===34||t===39||t===60||t===61||t===62||t===96?n(t):t===125||Fb(t)?(e.exit(p),e.exit(d),e.exit(a),v(t)):(e.consume(t),T)}function E(t){return t===g?(e.enter(f),e.consume(t),e.exit(f),e.exit(u),e.exit(a),k):(e.enter(d),D(t))}function D(t){return t===g?(e.exit(d),E(t)):t===null?n(t):Q(t)?m?n(t):Pw(e,D)(t):(e.enter(p),e.consume(t),O)}function O(t){return t===g||t===null||Q(t)?(e.exit(p),D(t)):(e.consume(t),O)}function k(e){return e===125||Fb(e)?v(e):A(e)}function A(a){return a===125?(e.enter(i),e.consume(a),e.exit(i),e.exit(r),t):n(a)}}function Cj(e,t,n,r,i,a,o){let s=0,c=0,l;return u;function u(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),d}function d(n){return n===93?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),f(n))}function f(t){if(t===93&&!c)return h(t);let n=e.enter(`chunkText`,{_contentTypeTextTrailing:!0,contentType:`text`,previous:l});return l&&(l.next=n),l=n,p(t)}function p(t){return t===null||s>999||t===91&&++c>32?n(t):t===93&&!c--?(e.exit(`chunkText`),h(t)):Q(t)?o?n(t):(e.consume(t),e.exit(`chunkText`),f):(e.consume(t),t===92?m:p)}function m(t){return t===91||t===92||t===93?(e.consume(t),s++,p):p(t)}function h(n){return e.exit(a),e.enter(i),e.consume(n),e.exit(i),e.exit(r),t}}function wj(e,t,n,r){let i=this;return a;function a(t){return t===null||Q(t)||Lb(t)||Rb(t)?n(t):(e.enter(r),e.consume(t),o)}function o(a){return a===null||Q(a)||Rb(a)||Lb(a)&&a!==45&&a!==95?(e.exit(r),i.previous===45||i.previous===95?n(a):t(a)):(e.consume(a),o)}}var Tj={tokenize:kj,concrete:!0},Ej={tokenize:Aj,partial:!0},Dj={tokenize:jj,partial:!0},Oj={tokenize:Mj,partial:!0};function kj(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0,s;return c;function c(t){return e.enter(`directiveContainer`),e.enter(`directiveContainerFence`),e.enter(`directiveContainerSequence`),l(t)}function l(t){return t===58?(e.consume(t),o++,l):o<3?n(t):(e.exit(`directiveContainerSequence`),wj.call(r,e,u,n,`directiveContainerName`)(t))}function u(t){return t===91?e.attempt(Ej,d,d)(t):d(t)}function d(t){return t===123?e.attempt(Dj,f,f)(t):f(t)}function f(t){return QC(e,p,`whitespace`)(t)}function p(i){return e.exit(`directiveContainerFence`),i===null?C(i):Q(i)?r.interrupt?t(i):e.attempt(Oj,m,C)(i):n(i)}function m(t){return t===null?C(t):Q(t)?e.check(Oj,y,C)(t):(e.enter(`directiveContainerContent`),h(t))}function h(t){return e.attempt({tokenize:w,partial:!0},S,a?QC(e,g,`linePrefix`,a+1):g)(t)}function g(t){return t===null?S(t):Q(t)?e.check(Oj,v,S)(t):v(t)}function _(t){if(t===null){let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,S(t)}return Q(t)?e.check(Oj,b,x)(t):(e.consume(t),_)}function v(t){let n=e.enter(`chunkDocument`,{contentType:`document`,previous:s});return s&&(s.next=n),s=n,_(t)}function y(t){return e.enter(`directiveContainerContent`),h(t)}function b(t){e.consume(t);let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,h}function x(t){let n=e.exit(`chunkDocument`);return r.parser.lazy[n.start.line]=!1,S(t)}function S(t){return e.exit(`directiveContainerContent`),C(t)}function C(n){return e.exit(`directiveContainer`),t(n)}function w(e,t,n){let i=0;return QC(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4);function a(t){return e.enter(`directiveContainerFence`),e.enter(`directiveContainerSequence`),s(t)}function s(t){return t===58?(e.consume(t),i++,s):i<o?n(t):(e.exit(`directiveContainerSequence`),QC(e,c,`whitespace`)(t))}function c(r){return r===null||Q(r)?(e.exit(`directiveContainerFence`),t(r)):n(r)}}}function Aj(e,t,n){return Cj(e,t,n,`directiveContainerLabel`,`directiveContainerLabelMarker`,`directiveContainerLabelString`,!0)}function jj(e,t,n){return Sj(e,t,n,`directiveContainerAttributes`,`directiveContainerAttributesMarker`,`directiveContainerAttribute`,`directiveContainerAttributeId`,`directiveContainerAttributeClass`,`directiveContainerAttributeName`,`directiveContainerAttributeInitializerMarker`,`directiveContainerAttributeValueLiteral`,`directiveContainerAttributeValue`,`directiveContainerAttributeValueMarker`,`directiveContainerAttributeValueData`,!0)}function Mj(e,t,n){let r=this;return i;function i(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var Nj={tokenize:Ij},Pj={tokenize:Lj,partial:!0},Fj={tokenize:Rj,partial:!0};function Ij(e,t,n){let r=this;return i;function i(t){return e.enter(`directiveLeaf`),e.enter(`directiveLeafSequence`),e.consume(t),a}function a(t){return t===58?(e.consume(t),e.exit(`directiveLeafSequence`),wj.call(r,e,o,n,`directiveLeafName`)):n(t)}function o(t){return t===91?e.attempt(Pj,s,s)(t):s(t)}function s(t){return t===123?e.attempt(Fj,c,c)(t):c(t)}function c(t){return QC(e,l,`whitespace`)(t)}function l(r){return r===null||Q(r)?(e.exit(`directiveLeaf`),t(r)):n(r)}}function Lj(e,t,n){return Cj(e,t,n,`directiveLeafLabel`,`directiveLeafLabelMarker`,`directiveLeafLabelString`,!0)}function Rj(e,t,n){return Sj(e,t,n,`directiveLeafAttributes`,`directiveLeafAttributesMarker`,`directiveLeafAttribute`,`directiveLeafAttributeId`,`directiveLeafAttributeClass`,`directiveLeafAttributeName`,`directiveLeafAttributeInitializerMarker`,`directiveLeafAttributeValueLiteral`,`directiveLeafAttributeValue`,`directiveLeafAttributeValueMarker`,`directiveLeafAttributeValueData`,!0)}var zj={tokenize:Uj,previous:Hj},Bj={tokenize:Wj,partial:!0},Vj={tokenize:Gj,partial:!0};function Hj(e){return e!==58||this.events[this.events.length-1][1].type===`characterEscape`}function Uj(e,t,n){let r=this;return i;function i(t){return e.enter(`directiveText`),e.enter(`directiveTextMarker`),e.consume(t),e.exit(`directiveTextMarker`),wj.call(r,e,a,n,`directiveTextName`)}function a(t){return t===58?n(t):t===91?e.attempt(Bj,o,o)(t):o(t)}function o(t){return t===123?e.attempt(Vj,s,s)(t):s(t)}function s(n){return e.exit(`directiveText`),t(n)}}function Wj(e,t,n){return Cj(e,t,n,`directiveTextLabel`,`directiveTextLabelMarker`,`directiveTextLabelString`)}function Gj(e,t,n){return Sj(e,t,n,`directiveTextAttributes`,`directiveTextAttributesMarker`,`directiveTextAttribute`,`directiveTextAttributeId`,`directiveTextAttributeClass`,`directiveTextAttributeName`,`directiveTextAttributeInitializerMarker`,`directiveTextAttributeValueLiteral`,`directiveTextAttributeValue`,`directiveTextAttributeValueMarker`,`directiveTextAttributeValueData`)}function Kj(){return{text:{58:zj},flow:{58:[Tj,Nj]}}}function qj(){let e=this.data(),t=e.micromarkExtensions||=[],n=e.fromMarkdownExtensions||=[],r=e.toMarkdownExtensions||=[];t.push(Kj()),n.push(rj()),r.push(ij())}var Jj={note:{label:`Note`,palette:`info`,icon:(0,V.jsx)(BD,{fontSize:`small`})},warning:{label:`Warning`,palette:`warning`,icon:(0,V.jsx)(GD,{fontSize:`small`})},tip:{label:`Tip`,palette:`success`,icon:(0,V.jsx)(VD,{fontSize:`small`})},say:{label:`Say`,palette:`primary`,icon:(0,V.jsx)(HD,{fontSize:`small`})},do:{label:`Do`,palette:`secondary`,icon:(0,V.jsx)(UD,{fontSize:`small`})},timing:{label:`Timing`,palette:`info`,icon:(0,V.jsx)(WD,{fontSize:`small`})}};function Yj({type:e,children:t}){let n=Jj[e];return(0,V.jsxs)(em,{sx:e=>({my:2,px:2,py:1.5,borderLeft:3,borderColor:`${n.palette}.main`,borderRadius:1,bgcolor:gi(e.palette[n.palette].main,.08),"& p:first-of-type":{mt:0},"& p:last-of-type":{mb:0}}),"data-testid":`guide-admonition-${e}`,children:[(0,V.jsxs)(Z,{variant:`overline`,component:`p`,sx:{display:`flex`,alignItems:`center`,gap:.75,fontWeight:600,lineHeight:1.5,mb:.5,color:`${n.palette}.main`},children:[n.icon,n.label]}),t]})}function Xj({body:e}){let t=zD(e);return t.ok?(0,V.jsx)(em,{sx:{my:2,position:`relative`,aspectRatio:`16 / 9`,maxWidth:720},"data-testid":`guide-video-embed`,children:(0,V.jsx)(em,{component:`iframe`,src:t.embedUrl,title:`${t.provider} video`,sandbox:`allow-scripts allow-same-origin allow-presentation`,allow:`encrypted-media; fullscreen; picture-in-picture`,referrerPolicy:`strict-origin-when-cross-origin`,sx:{position:`absolute`,inset:0,width:`100%`,height:`100%`,border:0}})}):(0,V.jsxs)(gd,{severity:`error`,sx:{my:2},"data-testid":`guide-video-error`,children:[`Video block error: `,t.error]})}function Zj(e){return e.children.map(e=>e.type===`text`?e.value:e.type===`element`?Zj(e):``).join(``)}function Qj({markdown:e,chapterFile:t,locale:n}){return(0,V.jsx)(OA,{remarkPlugins:[$T,qj,FD,ID,[jD,{chapterFile:t}]],urlTransform:e=>{let r=MA(e);if(!r)return;if(/^[a-z][a-z0-9+.-]*:/i.test(r)||r.startsWith(`//`)||r.startsWith(`#`)||r.startsWith(`/`))return r;let i=new URL(`/api/guide/content/${n}/${t}`,window.location.origin),a=new URL(r,i);if(a.origin===window.location.origin&&a.pathname.startsWith(`/api/guide/`))return a.pathname+a.search},components:{pre({node:e,children:t,...n}){let r=e?.children[0];return r&&r.type===`element`&&r.tagName===`code`&&Array.isArray(r.properties?.className)&&r.properties.className.includes(`language-video`)?(0,V.jsx)(Xj,{body:Zj(r)}):(0,V.jsx)(`pre`,{...n,children:t})},div(e){let{node:t,children:n,...r}=e,i=r,a=i[`data-admonition`];if(typeof a==`string`&&PD(a))return(0,V.jsx)(Yj,{type:a,children:n});let o=i[`data-admonition-unknown`];return typeof o==`string`?(0,V.jsxs)(gd,{severity:`error`,sx:{my:2},"data-testid":`guide-admonition-unknown`,children:[`Unknown admonition type ":::`,o,`"`]}):(0,V.jsx)(`div`,{...e})},a({node:e,children:t,href:n,...r}){let i=typeof n==`string`&&/^https?:\/\//.test(n);return(0,V.jsx)(`a`,{href:n,...r,...i?{target:`_blank`,rel:`noreferrer noopener`}:{},children:t})}},children:e})}function $j(e){let t=e.replace(/\.md$/,``).replace(/^\d+[-_. ]*/,``).replace(/[-_]+/g,` `).trim();return t.charAt(0).toUpperCase()+t.slice(1)}function eM({locale:e}){let[t,n]=(0,E.useState)(void 0),[r,i]=(0,E.useState)(e),[a,o]=(0,E.useState)(null),[s,c]=(0,E.useState)(``);(0,E.useEffect)(()=>{fetch(`/api/guide`).then(e=>e.json()).then(e=>n(e.guide))},[]);let l=(0,E.useMemo)(()=>Object.keys(t?.locales??{}),[t]),u=t?.chapters[r]??[];(0,E.useEffect)(()=>{if(u.length===0)return o(null);a&&u.includes(a)||o(u[0])},[u,a]),(0,E.useEffect)(()=>{if(!a)return c(``);fetch(`/api/guide/content/${encodeURIComponent(r)}/${encodeURIComponent(a)}`).then(e=>e.ok?e.text():`This chapter could not be read.`).then(c)},[r,a]);let d=(0,E.useMemo)(()=>a&&s?MD(a,s):[],[a,s]);return t===void 0?(0,V.jsx)(iy,{sx:{alignItems:`center`,justifyContent:`center`,height:`100%`},children:(0,V.jsx)(Qu,{size:28})}):t===null?(0,V.jsx)(iy,{sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4},children:(0,V.jsx)(Z,{color:`text.secondary`,children:`This package declares no facilitator guide.`})}):(0,V.jsxs)(iy,{direction:`row`,sx:{height:`100%`},children:[(0,V.jsxs)(em,{sx:{width:280,borderRight:1,borderColor:`divider`,overflow:`auto`,"@media print":{display:`none`}},children:[l.length>1&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(em,{sx:{p:2},children:(0,V.jsx)(Pv,{size:`small`,fullWidth:!0,value:l.includes(r)?r:l[0]??``,onChange:e=>i(e.target.value),children:l.map(e=>(0,V.jsx)(q_,{value:e,children:t.locales[e]?.name??e},e))})}),(0,V.jsx)(Dh,{})]}),(0,V.jsxs)(Mg,{dense:!0,children:[u.map(e=>(0,V.jsx)(Ig,{selected:e===a,onClick:()=>o(e),children:(0,V.jsx)(Hg,{primary:$j(e)})},e)),u.length===0&&(0,V.jsx)(em,{sx:{px:2,py:1},children:(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`No chapters in this locale yet.`})})]}),d.some(e=>e.depth>1)&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Dh,{}),(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,sx:{display:`block`,px:2,pt:1.5},children:`On this page`}),(0,V.jsx)(Mg,{dense:!0,disablePadding:!0,sx:{pb:2},children:d.filter(e=>e.depth>1).map(e=>(0,V.jsx)(Ig,{dense:!0,sx:{pl:2+(e.depth-2)*1.5,py:.25},onClick:()=>document.getElementById(e.id)?.scrollIntoView({block:`start`}),children:(0,V.jsx)(Hg,{primary:e.text,slotProps:{primary:{variant:`body2`,color:`text.secondary`}}})},e.id))})]})]}),(0,V.jsx)(em,{sx:{flex:1,minWidth:0,overflow:`auto`},children:(0,V.jsx)(em,{"data-testid":`guide-content`,sx:{maxWidth:780,mx:`auto`,px:4,py:3,"& img":{maxWidth:`100%`},"& pre":{p:2,borderRadius:1,overflow:`auto`,bgcolor:`action.hover`},"& table":{borderCollapse:`collapse`,width:`100%`},"& th, & td":{border:1,borderColor:`divider`,px:1,py:.5},"& h1, & h2, & h3":{scrollMarginTop:16},"@media print":{maxWidth:`none`,px:0,py:0}},children:a&&(0,V.jsx)(Qj,{markdown:s,chapterFile:a,locale:r})})})]})}function tM({team:e,bare:t}){return e?e.participants.length===0?(0,V.jsxs)(nM,{children:[(0,V.jsxs)(iy,{spacing:1,sx:{alignItems:`center`,maxWidth:420},children:[(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,children:e.name}),(0,V.jsx)(Z,{variant:`h5`,children:`Nobody is on this team yet`}),(0,V.jsxs)(Z,{color:`text.secondary`,sx:{textAlign:`center`},children:[`Add a participant from the dev drawer, or with`,` `,(0,V.jsxs)(`code`,{children:[`sdk participant add --team `,e.index+1]}),`, and they will be listed here.`]})]}),(0,V.jsx)(fm,{size:`small`,href:Bc({kind:`observer`,teamIndex:e.index,bare:t}),children:`Watch without joining`})]}):(0,V.jsxs)(nM,{children:[(0,V.jsxs)(iy,{spacing:1,sx:{alignItems:`center`},children:[(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,children:e.name}),(0,V.jsx)(Z,{variant:`h5`,children:`Who are you?`})]}),(0,V.jsx)(iy,{spacing:1.5,sx:{width:`100%`,maxWidth:420},children:e.participants.map((n,r)=>(0,V.jsx)(gm,{variant:`outlined`,"data-testid":`join-participant`,children:(0,V.jsxs)(Sm,{href:Bc({kind:`player`,teamIndex:e.index,participant:r+1,bare:t}),sx:{p:2},children:[(0,V.jsx)(Z,{variant:`subtitle1`,children:n.name}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,children:[`Participant `,r+1]})]})},n.id))}),(0,V.jsx)(fm,{size:`small`,href:Bc({kind:`observer`,teamIndex:e.index,bare:t}),children:`Watch without joining`})]}):(0,V.jsxs)(nM,{children:[(0,V.jsx)(Z,{color:`text.secondary`,children:`This session has no such team. It may have been removed.`}),(0,V.jsx)(fm,{href:`/`,children:`Back to the session`})]})}function nM({children:e}){return(0,V.jsx)(iy,{spacing:3,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4,bgcolor:`background.default`},children:(0,V.jsx)(em,{sx:{display:`contents`},children:e})})}function rM({state:e}){let t=new URLSearchParams(window.location.search).get(`team`),n=t?e.teams.filter(e=>e.teamId===t):e.teams;return(0,E.useEffect)(()=>{let t=document.title;return document.title=`${e.game.name} — team sheets`,()=>{document.title=t}},[e.game.name]),(0,V.jsxs)(em,{"data-testid":`print-sheets`,sx:{height:`100%`,overflow:`auto`,bgcolor:`background.default`,"@media print":{height:`auto`,overflow:`visible`}},children:[(0,V.jsxs)(iy,{direction:`row`,spacing:2,sx:{alignItems:`center`,p:2,"@media print":{display:`none`}},children:[(0,V.jsx)(Z,{variant:`h6`,sx:{flex:1},children:`Team sheets`}),(0,V.jsx)(fm,{variant:`contained`,onClick:()=>window.print(),children:`Print`})]}),n.map(t=>(0,V.jsxs)(em,{sx:{m:2,p:4,bgcolor:`background.paper`,border:1,borderColor:`divider`,borderRadius:1,"@media print":{breakAfter:`page`,breakInside:`avoid`,border:0,m:0}},children:[(0,V.jsx)(Z,{variant:`overline`,color:`text.secondary`,children:e.game.name}),(0,V.jsx)(Z,{variant:`h3`,gutterBottom:!0,children:t.name}),(0,V.jsx)(Dh,{sx:{my:2}}),(0,V.jsx)(Z,{variant:`subtitle2`,gutterBottom:!0,children:`Open your screen at`}),(0,V.jsx)(Z,{sx:{fontFamily:`monospace`,fontSize:18,mb:3,wordBreak:`break-all`},children:`${window.location.origin}${Bc({kind:`player`,teamIndex:t.index,participant:1})}`}),(0,V.jsx)(Z,{variant:`subtitle2`,gutterBottom:!0,children:`On this team`}),(0,V.jsxs)(iy,{spacing:.5,children:[t.participants.map((e,n)=>(0,V.jsxs)(Z,{children:[n+1,`. `,e.name,(0,V.jsx)(Z,{component:`span`,variant:`caption`,color:`text.secondary`,sx:{ml:1,fontFamily:`monospace`},children:Bc({kind:`player`,teamIndex:t.index,participant:n+1})})]},e.id)),t.participants.length===0&&(0,V.jsx)(Z,{color:`text.secondary`,children:`Nobody yet.`})]})]},t.teamId))]})}var iM={game:new Set([`updateData`,`requestTick`,`renameOwnTeam`]),"waiting-room":new Set([`updateData`,`requestTick`,`renameOwnTeam`]),session:new Set([`updateSessionData`,`updateSharedData`,`requestTick`,`undoTick`,`resetGame`,`resetWalkthrough`,`setWaitingRoom`,`createTeam`,`renameTeam`,`renameParticipant`,`moveParticipant`,`deleteTeam`,`pauseTimer`,`resumeTimer`,`extendTick`]),setup:new Set([`updateSettings`,`requestPlay`]),"scenario-editor":new Set([`updateSettings`]),presentation:new Set},aM={setWaitingRoom:`The waiting room is session-wide, so setWaitingRoom takes no teamId`,renameOwnTeam:`renameOwnTeam renames the caller's own team, which the host resolves; it takes no teamId`,resetWalkthrough:`A walkthrough holds one team, so resetWalkthrough takes no teamId`},oM={game:new Set([`callEndpoint`,`getPastState`,`getAllTeamsParticipants`]),"waiting-room":new Set([`callEndpoint`,`getPastState`,`getAllTeamsParticipants`]),session:new Set([`callEndpoint`,`getPastState`]),setup:new Set([`callEndpoint`]),"scenario-editor":new Set([`callEndpoint`]),presentation:new Set([`getPastState`])};function sM(e){return e.teamIndex===void 0?{}:{teamIndex:e.teamIndex}}function cM(e){return e.participantId===void 0?{}:{participantId:e.participantId,teamId:`team-${(e.teamIndex??0)+1}`}}function lM(e){return e.role===void 0?{}:{viewerRole:e.role}}function uM(e){return{...sM(e),...cM(e),...lM(e)}}function dM(e){let t=typeof e==`string`?/^team-([1-9]\d*)$/.exec(e):null;return t?Number(t[1])-1:-1}function fM(e,t){return e.teamId===void 0?t:{teamIndex:dM(e.teamId)}}function pM(e){return typeof e==`object`&&!!e&&`refused`in e}function mM(e,t,n){if(!iM[t.kind].has(e.type))return null;if(e.teamId!==void 0&&e.type in aM)return{refused:aM[e.type]};let r=sM(n),i=cM(n),a=lM(n);switch(e.type){case`updateData`:return{type:`updateContext`,uiIdentifier:t.identifier,payload:e.payload,...e.deletes?{deletes:e.deletes}:{},...r,...i,...a};case`updateSessionData`:return{type:`updateContext`,payload:e.payload,teamIndex:dM(e.teamId),sessionUiIdentifier:t.identifier,...e.deletes?{deletes:e.deletes}:{}};case`updateSharedData`:return{type:`updateSharedContext`,uiIdentifier:t.identifier,payload:e.payload,...e.deletes?{deletes:e.deletes}:{}};case`updateSettings`:return t.kind===`scenario-editor`?{type:`updateScenarioDraft`,scenarioId:n.scenario??null,payload:e.payload,uiIdentifier:t.identifier}:{type:`updateSettings`,payload:e.payload,uiIdentifier:t.identifier};case`requestTick`:return{type:`tick`,...fM(e,r),...t.kind===`session`?{}:{...i,...a}};case`undoTick`:return{type:`undo`,...fM(e,r)};case`resetGame`:return{type:`reset`,...fM(e,{})};case`setWaitingRoom`:return{type:`setWaitingRoom`,open:e.open===!0};case`resetWalkthrough`:return{type:`resetWalkthrough`};case`createTeam`:return{type:`addTeam`,...typeof e.name==`string`?{name:e.name}:{}};case`renameTeam`:return{type:`renameTeam`,teamId:String(e.teamId),name:String(e.name)};case`renameOwnTeam`:return{type:`renameOwnTeam`,name:String(e.name),...i};case`renameParticipant`:return{type:`renameParticipant`,participantId:String(e.participantId),name:String(e.name)};case`moveParticipant`:return{type:`moveParticipant`,participantId:String(e.participantId),teamId:String(e.teamId)};case`deleteTeam`:return{type:`removeTeam`,teamIndex:dM(e.teamId)};case`requestPlay`:return{type:`play`};case`pauseTimer`:return{type:`pauseTimer`,...fM(e,r)};case`resumeTimer`:return{type:`resumeTimer`,...fM(e,r)};case`extendTick`:return{type:`extendTick`,byMs:Number(e.byMs??0),...fM(e,r)};default:return null}}function hM(e,t,n){if(!oM[t.kind].has(e.type))return null;switch(e.type){case`callEndpoint`:return{type:`callEndpoint`,endpointIdentifier:String(e.endpointIdentifier),request:e.request,uiIdentifier:t.identifier,...uM(n),...t.kind===`scenario-editor`?{scenarioId:n.scenario??null}:{}};case`getPastState`:return{type:`getPastState`,query:e.query,uiIdentifier:t.identifier,...n.teamIndex===void 0?{}:{teamId:`team-${n.teamIndex+1}`}};case`getAllTeamsParticipants`:return{type:`getAllTeamsParticipants`,uiIdentifier:t.identifier};default:return null}}var gM={game:{required:[`stateChanged`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`,`setParticipant`],alsoSent:[`setTimer`,`setViewerRole`,`setOwnTeam`,`setOwnTeamJoinLink`,`setParticipantList`,`setTeamList`,`setRunKind`,`setRoundProcessing`,`setCrossTeamData`,`themePreferenceChanged`],isPlayerSurface:!0},"waiting-room":{required:[`stateChanged`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`,`setParticipant`],alsoSent:[`setTimer`,`setViewerRole`,`setOwnTeam`,`setOwnTeamJoinLink`,`setParticipantList`,`setTeamList`,`setRunKind`,`setCrossTeamData`,`themePreferenceChanged`],isPlayerSurface:!0},session:{required:[`setSessionMeta`,`setSessionData`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`,`setTeamConfiguration`],alsoSent:[`setTeamList`,`setParticipantList`,`setTeamLinks`,`setAvailableOverlays`,`setRunKind`,`setWalkthroughLink`,`themePreferenceChanged`],isPlayerSurface:!1},presentation:{required:[`setPresentation`,`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`],alsoSent:[`themePreferenceChanged`],isPlayerSurface:!1},setup:{required:[`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`],alsoSent:[`themePreferenceChanged`],isPlayerSurface:!1},"scenario-editor":{required:[`setSettings`,`setTheme`,`setLocale`,`setAssetUrls`],alsoSent:[`themePreferenceChanged`],isPlayerSurface:!1}};function _M(e,t={}){let{required:n,isPlayerSurface:r}=gM[e];return!t.observer||!r?n:n.filter(e=>e!==`setParticipant`)}var vM=new Set([`callEndpoint`,`uploadBlob`,`getPastState`,`getAllTeamsParticipants`]),yM=class{options;host;logger;port=null;readyListener=null;loadListener=null;handshakeTimer=null;disposed=!1;lastSent=new Map;sticky=new Map;outbound=[];pending=new Map;requestCounter=0;constructor(e){this.options=e,this.host=e.window??globalThis.window,this.logger=e.logger??console,this.listenForReady()}get connected(){return this.port!==null}send(e){this.disposed||(this.lastSent.set(e.type,bM(e)),this.port?this.port.postMessage(e):this.outbound.push(e))}sendState(e){this.disposed||(this.sticky.set(e.type,e),this.lastSent.set(e.type,bM(e)),this.port?.postMessage(e))}sendIfChanged(e){return this.disposed||this.lastSent.get(e.type)===bM(e)?!1:(this.sendState(e),!0)}sendInitialBatch(e){let t=_M(this.options.surface,{observer:this.options.observer}),n=new Set(e.map(e=>e.type)),r=t.filter(e=>!n.has(e));if(r.length>0)throw Error(`Initial batch for a "${this.options.surface}" surface is missing ${r.join(`, `)}. The guest blocks its first paint on ${t.join(`, `)}.`);for(let t of e)this.sendState(t)}request(e,t=3e4){let n=`host-${++this.requestCounter}`;return new Promise((r,i)=>{let a=setTimeout(()=>{this.pending.delete(n),i(Error(`Guest did not answer "${e.type}" in ${t}ms`))},t);this.pending.set(n,{resolve:()=>{clearTimeout(a),r()},reject:e=>{clearTimeout(a),i(e)}}),this.send({...e,requestId:n})})}dispose(){this.disposed||(this.disposed=!0,this.clearHandshakeTimer(),this.readyListener&&=(this.host.removeEventListener(`message`,this.readyListener),null),this.loadListener&&=(this.options.iframe.removeEventListener?.(`load`,this.loadListener),null),this.closePort(),this.rejectPending(`Channel disposed`),this.options.onTeardown?.(`disposed`))}listenForReady(){let e=e=>{if(this.disposed)return;let t=e.data;if(!t||t.type!==`ready`||e.source!==this.options.iframe.contentWindow)return;if(e.origin!==this.options.iframeOrigin){this.logger.warn(`[${this.options.uiIdentifier}] ignoring a handshake from ${e.origin}; this frame is pinned to ${this.options.iframeOrigin}`);return}let n=t.protocolVersion;typeof n==`number`&&n!==4&&this.logger.warn(`[${this.options.uiIdentifier}] host↔iframe protocol version mismatch: iframe ${n}, host 4`),this.connect()};this.readyListener=e,this.host.addEventListener(`message`,e),this.armHandshakeTimer(),this.listenForLoads()}listenForLoads(){let{iframe:e}=this.options;if(!e.addEventListener)return;let t=()=>{this.disposed||(this.armHandshakeTimer(),this.port?.postMessage({type:`ping`}))};this.loadListener=t,e.addEventListener(`load`,t)}armHandshakeTimer(){this.clearHandshakeTimer();let e=this.options.handshakeTimeoutMs??1e4;this.handshakeTimer=setTimeout(()=>{this.handshakeTimer=null,!this.disposed&&(this.closePort(),this.options.onTeardown?.(`handshake-timeout`))},e)}connect(){this.closePort(),this.rejectPending(`Connection reset`),this.lastSent.clear();let e=[...this.sticky.values()],t=new MessageChannel;this.port=t.port1,this.port.onmessage=e=>this.receive(e.data),this.port.start(),this.clearHandshakeTimer(),this.options.iframe.contentWindow?.postMessage({type:`init`,protocolVersion:4,sessionKey:this.options.sessionKey},this.options.iframeOrigin,[t.port2]);for(let t of e)this.sendState(t);let n=this.outbound;this.outbound=[];for(let e of n)this.port.postMessage(e);this.options.onConnect?.()}closePort(){this.port&&=(this.port.onmessage=null,this.port.close(),null)}clearHandshakeTimer(){this.handshakeTimer!==null&&(clearTimeout(this.handshakeTimer),this.handshakeTimer=null)}rejectPending(e){for(let{reject:t}of this.pending.values())t(Error(e));this.pending.clear()}receive(e){if(e&&typeof e.type==`string`){switch(e.type){case`pong`:this.clearHandshakeTimer();return;case`refreshAssetAuth:response`:{let{requestId:t,ok:n,error:r}=e;if(typeof t!=`string`)return;let i=this.pending.get(t);this.pending.delete(t),n?i?.resolve():i?.reject(Error(r??`Asset auth refresh failed`));return}}vM.has(e.type)?this.answer(e):this.options.onMessage?.(e)}}async answer(e){let t=e.requestId;if(typeof t!=`string`){this.logger.warn(`[${this.options.uiIdentifier}] dropped a "${e.type}" with no requestId`);return}let n=`${e.type}:response`;try{let r=await this.dispatch(e);this.send({type:n,requestId:t,ok:!0,...r})}catch(r){this.send(e.type===`callEndpoint`?{type:n,requestId:t,ok:!1,...xM(r)}:{type:n,requestId:t,ok:!1,error:r instanceof Error?r.message:String(r)})}}async dispatch(e){let t=this.options.adapter,n={uiIdentifier:this.options.uiIdentifier,...this.options.origin};switch(e.type){case`callEndpoint`:if(!t?.callEndpoint)throw Error(`This host serves no endpoints`);return{response:await t.callEndpoint({endpointIdentifier:String(e.endpointIdentifier),request:e.request},n)};case`uploadBlob`:if(!t?.uploadBlob)throw Error(`This host stores no blobs`);return{reference:await t.uploadBlob({data:e.data,name:String(e.name),mimeType:String(e.mimeType)},n)};case`getPastState`:if(!t?.getPastState)throw Error(`This host serves no past state`);return{entries:await t.getPastState(e.query,n)};case`getAllTeamsParticipants`:return{participants:await t?.getAllTeamsParticipants?.(n)??[]};default:throw Error(`Unroutable request "${e.type}"`)}}};function bM(e){return typeof e!=`object`||!e?JSON.stringify(e)??`undefined`:Array.isArray(e)?`[${e.map(bM).join(`,`)}]`:`{${Object.entries(e).filter(([,e])=>e!==void 0).sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>`${JSON.stringify(e)}:${bM(t)}`).join(`,`)}}`}function xM(e){let t=typeof e==`object`&&e?e.failure:void 0;return typeof t==`object`&&t&&typeof t.outcome?.kind==`string`&&Array.isArray(t.applied)?t:{outcome:{kind:`error`,message:e instanceof Error?e.message:String(e)},applied:[]}}var SM=[`primary`,`secondary`,`success`,`error`,`warning`,`info`];function CM(e){let t=e.trim().toLowerCase(),n=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.exec(t);if(n){let e=n[1];e.length<=4&&(e=[...e].map(e=>e+e).join(``));let t=t=>parseInt(e.slice(t,t+2),16);return{r:t(0),g:t(2),b:t(4),a:e.length===8?t(6)/255:1}}let r=/^rgba?\(([^)]*)\)$/.exec(t);if(r){let e=r[1].split(/[\s,/]+/).filter(Boolean);if(e.length!==3&&e.length!==4)return null;let[t,n,i]=e.slice(0,3).map(e=>e.endsWith(`%`)?parseFloat(e)/100*255:parseFloat(e)),a=e[3],o=a===void 0?1:a.endsWith(`%`)?parseFloat(a)/100:parseFloat(a);return[t,n,i,o].some(e=>!Number.isFinite(e))?null:{r:wM(t,255),g:wM(n,255),b:wM(i,255),a:wM(o,1)}}return null}function wM(e,t){return Math.min(t,Math.max(0,e))}function TM(e,t){let n=(t,n)=>t*e.a+n*(1-e.a);return{r:n(e.r,t.r),g:n(e.g,t.g),b:n(e.b,t.b),a:1}}function EM({r:e,g:t,b:n}){let r=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*r(e)+.7152*r(t)+.0722*r(n)}function DM(e,t){let[n,r]=[EM(e),EM(t)].sort((e,t)=>t-e);return(n+.05)/(r+.05)}function OM({r:e,g:t,b:n}){let r=e=>Math.round(e).toString(16).padStart(2,`0`);return`#${r(e)}${r(t)}${r(n)}`}var kM={r:0,g:0,b:0,a:1},AM={r:255,g:255,b:255,a:1};function jM(e,t){let n=CM(e);if(!n)return OM(kM);let r=n.a<1?TM(n,AM):n,i=t===void 0?null:CM(t);if(i){let e=TM(i,r);if(DM(e,r)>=4.5)return OM(e)}return DM(kM,r)>=DM(AM,r)?OM(kM):OM(AM)}function MM(e){let t=Object.fromEntries(SM.map(t=>[t,jM(e[t],e.contrastText?.[t])]));return{...Object.fromEntries(SM.map(t=>[t,e[t]])),contrastText:t}}function NM(e){return{mode:e.mode,light:MM(e.light),dark:MM(e.dark)}}var PM={primary:{main:`#21244F`,contrastText:`#ffffff`},secondary:{main:`#17D1C7`,contrastText:`rgba(0,0,0,0.87)`},error:{main:`#DB324D`,contrastText:`#ffffff`},success:{main:`#00c894`,contrastText:`rgba(0,0,0,0.87)`},warning:{main:`#ffb65c`,contrastText:`rgba(0,0,0,0.87)`},info:{main:`#336BEB`,contrastText:`#ffffff`}},FM={primary:{main:`#8c8fe0`,contrastText:`rgba(0,0,0,0.87)`},secondary:{main:`#17D1C7`,contrastText:`rgba(0,0,0,0.87)`},error:{main:`#ef7a8e`,contrastText:`rgba(0,0,0,0.87)`},success:{main:`#00c894`,contrastText:`rgba(0,0,0,0.87)`},warning:{main:`#ffb65c`,contrastText:`rgba(0,0,0,0.87)`},info:{main:`#7d9bf2`,contrastText:`rgba(0,0,0,0.87)`}};function IM(e){return{primary:e.primary.main,secondary:e.secondary.main,success:e.success.main,error:e.error.main,warning:e.warning.main,info:e.info.main,contrastText:{primary:e.primary.contrastText,secondary:e.secondary.contrastText,success:e.success.contrastText,error:e.error.contrastText,warning:e.warning.contrastText,info:e.info.contrastText}}}function LM(e){return NM({mode:e,light:IM(PM),dark:IM(FM)})}function RM(e){return Ko({palette:e===`dark`?{mode:`dark`,...FM}:{mode:`light`,...PM},components:{MuiButton:{styleOverrides:{root:{textTransform:`none`}}}}})}function zM(e){return e===`system`?window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:e}function BM(e,t){return{"Content-Type":e.mimeType,"X-Blob-Name":encodeURIComponent(e.name),"X-Blob-Mime":e.mimeType,"X-Blob-Retention":t===`setup`||t===`scenario-editor`?`settings`:`game`}}var VM=[`allow-scripts`,`allow-same-origin`,`allow-forms`,`allow-downloads`,`allow-modals`,`allow-presentation`,`allow-popups`,`allow-popups-to-escape-sandbox`].join(` `),HM=[`clipboard-write`,`autoplay`,`screen-wake-lock`,`fullscreen`,`microphone`,`camera`,`geolocation`,`picture-in-picture`,`web-share`,`gamepad`,`window-management`,`speaker-selection`].join(`; `);function UM(e){return Object.assign(Error(e.outcome.message??e.outcome.kind),{failure:e})}function WM(e,t,n){return async r=>{let i=hM(r,e,t)??mM(r,e,t);return pM(i)?{ok:!1,outcome:{kind:`denied`,message:i.refused}}:i?n(i):null}}function GM(e,t,n){return JSON.stringify([e.kind,e.identifier,t.observer??null,t.teamIndex??null,t.participantId??null,t.role??null,n])}function KM({surface:e,viewer:t,feed:n,mode:r,resolved:i,onModeChange:a,rejection:o,hookFailure:s,onTeardown:c}){let l=n.kind===`view`?n.dispatch:WM(e,t,n.send),u=e.origin??window.location.origin,d=(0,E.useRef)(null),f=(0,E.useRef)(null),p=XM(n),m=(0,E.useRef)({dispatch:l,onModeChange:a,overlays:p});m.current={dispatch:l,onModeChange:a,overlays:p};let[h,g]=(0,E.useState)(!1),[_,v]=(0,E.useState)(!1),y=n.kind===`view`?n.sessionKey:Kc(n.state,e,{sessionless:n.sessionless===!0});return(0,E.useEffect)(()=>{let n=d.current;if(!n)return;let r;return r=new yM({iframe:n,surface:e.kind,uiIdentifier:e.identifier,iframeOrigin:u,sessionKey:y,adapter:{callEndpoint:async({endpointIdentifier:e,request:t})=>{let n=await m.current.dispatch({type:`callEndpoint`,endpointIdentifier:e,request:t});if(n&&`type`in n){if(n.type===`endpoint`)return n.response;if(n.type===`endpointFailure`)throw UM(n.failure)}throw UM({outcome:n&&`ok`in n&&!n.ok?n.outcome:{kind:`error`,message:`The endpoint did not answer`},applied:[]})},uploadBlob:async t=>{let n=await(await fetch(`/api/blobs`,{method:`POST`,headers:BM(t,e.kind),body:t.data})).json();if(!n.reference)throw Error(`The blob was not stored`);return n.reference},getPastState:async e=>{let t=await m.current.dispatch({type:`getPastState`,query:e});return t&&`type`in t&&t.type===`pastState`?t.entries:[]},getAllTeamsParticipants:async()=>{let e=await m.current.dispatch({type:`getAllTeamsParticipants`});return e&&`type`in e&&e.type===`participants`?e.participants:[]}},observer:t.observer===!0,onConnect:()=>{g(!0),v(!1)},onTeardown:e=>{e===`handshake-timeout`&&(g(!1),v(!0),c?.())},onMessage:e=>{e.type===`setThemePreference`?m.current.onModeChange?.(e.preference):JM(r,e,m.current.dispatch,m.current.overlays)}}),f.current=r,()=>{r.dispose(),f.current=null,g(!1)}},[e.identifier,e.kind,t.observer,t.teamIndex,t.participantId,t.role,y]),(0,E.useEffect)(()=>{let a=f.current;if(!a)return;let o={mode:i,preference:r,palette:LM(i)},s=n.kind===`view`?[...n.messages,...qc(o)]:Qc({surface:e,state:n.state,viewer:t,theme:o,origin:window.location.origin,assetOrigin:u,gameName:n.state.game.name,...n.hasGuide===void 0?{}:{hasGuide:n.hasGuide},...n.roundProcessing===void 0?{}:{roundProcessing:n.roundProcessing},...n.sessionless===void 0?{}:{sessionless:n.sessionless},...n.scenarioName===void 0?{}:{scenarioName:n.scenarioName}});if(a.connected)for(let e of s)a.sendIfChanged(e);else a.sendInitialBatch(s)},[e,n,t,r,i,u]),(0,E.useEffect)(()=>{let e=f.current;e&&o&&(o.teamIndex===void 0||o.teamIndex===t.teamIndex)&&e.send({type:`validationRejected`,rejections:o.rejections})},[o?.nonce,o,t.teamIndex]),(0,E.useEffect)(()=>{let t=f.current;t&&s&&e.kind===`session`&&t.send({type:`hookFailed`,payload:s.payload})},[s?.nonce,s,e.kind]),(0,V.jsxs)(em,{sx:{position:`relative`,width:`100%`,height:`100%`},children:[(0,V.jsx)(em,{component:`iframe`,ref:d,title:e.identifier,src:`${u}${e.src}?expectedParentOrigin=${encodeURIComponent(window.location.origin)}`,sandbox:VM,allow:HM,sx:{width:`100%`,height:`100%`,border:0,display:`block`}},GM(e,t,y)),!h&&(0,V.jsx)(iy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,position:`absolute`,inset:0,bgcolor:`background.default`},children:_?(0,V.jsx)(Z,{color:`text.secondary`,children:`This surface did not connect. Check its console for an error.`}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Qu,{size:28}),(0,V.jsxs)(Z,{color:`text.secondary`,variant:`body2`,children:[`Loading `,e.identifier]})]})})]})}function qM(e,t,n){return e!==`facilitator-guide`&&e!==`print-sheets`?`"${String(e)}" is not a host overlay`:n.available.includes(e)?e===`print-sheets`&&t!==void 0&&n.teamIds!==void 0&&!n.teamIds.includes(String(t))?`There is no team "${String(t)}" to print`:null:`This host does not offer the "${e}" overlay for this game`}async function JM(e,t,n,r={available:[`facilitator-guide`,`print-sheets`]}){if(t.type===`setThemePreference`)return;if(t.type===`openHostOverlay`){let n=qM(t.overlay,t.target,r);n||YM(t.overlay,t.target),ZM(e,t,n?{ok:!1,outcome:{kind:`denied`,message:n}}:{ok:!0});return}let i;try{i=await n(t)}catch(e){i={ok:!1,outcome:{kind:`error`,message:e instanceof Error?e.message:`The command failed`}}}if(!i){ZM(e,t,{ok:!1,outcome:{kind:`denied`,message:`This host does not handle "${String(t.type)}"`}});return}let a=typeof t.requestId==`string`?t.requestId:null;a&&(`ok`in i?e.send(i.ok?{type:`mutation:response`,requestId:a,ok:!0,...i.committedAtTick===void 0?{}:{committedAtTick:i.committedAtTick}}:{type:`mutation:response`,requestId:a,ok:!1,outcome:i.outcome}):e.send({type:`mutation:response`,requestId:a,ok:!0}))}function YM(e,t){if(e===`facilitator-guide`)return window.open(`/guide`,`_blank`,`noreferrer`),!0;if(e===`print-sheets`){let e=typeof t==`string`?`?team=${encodeURIComponent(t)}`:``;return window.open(`/print${e}`,`_blank`,`noreferrer`),!0}return!1}function XM(e){if(e.kind===`operator`)return{available:al(e.hasGuide),teamIds:e.state.teams.map(e=>e.teamId)};let t=e.messages.find(e=>e.type===`setAvailableOverlays`),n=e.messages.find(e=>e.type===`setTeamList`);return{available:Array.isArray(t?.overlays)?t.overlays:[],...Array.isArray(n?.payload)?{teamIds:n.payload.map(e=>e.teamId)}:{}}}function ZM(e,t,n){typeof t.requestId==`string`&&e.send({type:`mutation:response`,requestId:t.requestId,...n})}function QM({scenario:e,surface:t,state:n,mode:r,resolved:i,send:a,onModeChange:o,rejection:s}){let[c,l]=(0,E.useState)(!1),[u,d]=(0,E.useState)(!1),[f,p]=(0,E.useState)(null),m=e===``?null:e,h=n.scenarioDrafts?.some(e=>e.scenarioId===m)===!0,[g,_]=(0,E.useState)(null);(0,E.useEffect)(()=>{h||a({type:`editScenario`,scenarioId:m}).then(e=>{`ok`in e&&!e.ok&&_(e.outcome.message??`The scenario could not be opened`)})},[h,m,a]);let v=async()=>{l(!0),p(null);try{let t=await fetch(`/api/scenarios`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({identifier:e,overwrite:!0,draft:!0})});if(!t.ok){let e=await t.json();p(e.error??`The scenario could not be saved`);return}d(!0)}finally{l(!1)}};return(0,V.jsxs)(em,{sx:{display:`flex`,flexDirection:`column`,height:`100vh`},children:[(0,V.jsx)(Ed,{position:`static`,color:`default`,elevation:1,children:(0,V.jsxs)(py,{variant:`dense`,sx:{gap:2},children:[(0,V.jsxs)(iy,{sx:{flex:1},children:[(0,V.jsx)(Z,{variant:`subtitle2`,children:`Editing scenario`}),(0,V.jsx)(Z,{variant:`caption`,color:`text.secondary`,children:e})]}),u&&!f&&(0,V.jsx)(Z,{variant:`body2`,color:`success.main`,children:`Saved`}),(0,V.jsx)(fm,{variant:`contained`,"data-testid":`save-scenario`,disabled:c,onClick:()=>void v(),children:`Save`}),(0,V.jsx)(fm,{href:`/`,children:`Done`})]})}),(f??g)&&(0,V.jsx)(gd,{severity:`error`,sx:{borderRadius:0},children:f??g}),(0,V.jsx)(em,{sx:{flex:1,minHeight:0,position:`relative`},children:h?t?(0,V.jsx)(KM,{surface:t,viewer:m===null?{}:{scenario:m},feed:{kind:`operator`,state:n,send:e=>(e.type===`updateScenarioDraft`&&d(!1),a(e))},mode:r,resolved:i,onModeChange:o,rejection:s}):(0,V.jsxs)(iy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4},children:[(0,V.jsxs)(gd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`This game has no `,(0,V.jsx)(`strong`,{children:`scenario_editor`}),` slot.`]}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,children:[`A scenario editor is optional (§6.5). Without one there is nothing to author a scenario in here; the values can still be set with`,` `,(0,V.jsx)(`code`,{children:`sdk configure`}),` and captured from the Scenario tab, and an agent can edit a game's settings directly from their schemas.`]})]}),(0,V.jsx)(fm,{href:`/`,children:`Back to the session`})]}):(0,V.jsxs)(iy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`},children:[(0,V.jsx)(Qu,{size:28}),(0,V.jsxs)(Z,{color:`text.secondary`,variant:`body2`,children:[`Opening `,e||`the package settings`]})]})})]})}var $M={processing:new Set,errors:[],rejection:null,hookFailure:null,reloads:0,restarted:null},eN=new Set([`bundles-reloaded`,`reinitialised-on-change`,`logic-reloaded`]);function tN(e=`session`){let[t,n]=(0,E.useState)(null),[r,i]=(0,E.useState)(!1),[a,o]=(0,E.useState)(0),[s,c]=(0,E.useState)($M),l=(0,E.useRef)(null),u=(0,E.useRef)(null),d=(0,E.useRef)(new Map),f=(0,E.useRef)(0);(0,E.useEffect)(()=>{let t=!1,r,a=()=>{let s=e===`walkthrough`?`?run=walkthrough`:``,f=new WebSocket(`${location.protocol===`https:`?`wss`:`ws`}://${location.host}/ws${s}`);l.current=f,f.onopen=()=>{i(!0),o(0),u.current!==null&&f.send(JSON.stringify({presence:u.current}))},f.onclose=()=>{i(!1),o(e=>e+1),t||(r=setTimeout(a,1e3))},f.onmessage=e=>{let t=JSON.parse(e.data);t.type===`result`?(d.current.get(t.requestId)?.(t.result),d.current.delete(t.requestId)):nN(t,n,c)}};return a(),()=>{t=!0,clearTimeout(r),l.current?.close()}},[e]);let p=(0,E.useCallback)(e=>{let t=l.current;if(!t||t.readyState!==WebSocket.OPEN)return Promise.resolve({ok:!1,outcome:{kind:`error`,message:`Not connected to the session`}});let n=`console-${++f.current}`;return new Promise(r=>{d.current.set(n,r),t.send(JSON.stringify({requestId:n,command:e}))})},[]),m=(0,E.useCallback)(e=>{if(u.current===e)return;u.current=e;let t=l.current;t&&t.readyState===WebSocket.OPEN&&t.send(JSON.stringify({presence:e}))},[]);return(0,E.useMemo)(()=>({state:t,connected:r,attempts:a,transients:s,send:p,announce:m}),[t,r,a,s,p,m])}function nN(e,t,n){switch(e.type){case`state`:t(e.state),eN.has(e.cause)&&n(t=>({...t,reloads:t.reloads+1,restarted:e.cause===`reinitialised-on-change`?{nonce:(t.restarted?.nonce??0)+1}:t.restarted}));return;case`round-processing`:n(t=>{let n=new Set(t.processing),r=e.teamIndex??-1;return e.processing?n.add(r):n.delete(r),{...t,processing:n}});return;case`error`:n(t=>({...t,errors:[...t.errors,`${e.source}: ${e.message}`],hookFailure:e.source.startsWith(`hook:`)?{payload:{signal:e.source.slice(5),teamId:e.teamId??``,message:e.message},nonce:(t.hookFailure?.nonce??0)+1}:t.hookFailure}));return;case`validation-rejected`:n(t=>({...t,rejection:{...e.teamIndex===void 0?{}:{teamIndex:e.teamIndex},rejections:e.rejections,nonce:(t.rejection?.nonce??0)+1}}));return}}function rN(){let[e,t]=(0,E.useState)(null),[n,r]=(0,E.useState)(!1),[i,a]=(0,E.useState)(0),[o,s]=(0,E.useState)(null),[c,l]=(0,E.useState)(null),u=(0,E.useRef)(null),d=(0,E.useRef)(new Map),f=(0,E.useRef)(0);(0,E.useEffect)(()=>{let e=!1,n,i=()=>{let o=encodeURIComponent(location.pathname+location.search),c=new WebSocket(`${location.protocol===`https:`?`wss`:`ws`}://${location.host}/ws/view?page=${o}`);u.current=c,c.onopen=()=>{r(!0),a(0)},c.onclose=()=>{r(!1),a(e=>e+1),e||(n=setTimeout(i,1e3))},c.onmessage=e=>{let n=JSON.parse(e.data);switch(n.type){case`view`:t({page:n.page,messages:n.messages});return;case`result`:d.current.get(n.requestId)?.(n.result),d.current.delete(n.requestId);return;case`validation-rejected`:s(e=>({rejections:n.rejections,nonce:(e?.nonce??0)+1}));return;case`hookFailed`:l(e=>({payload:n.payload,nonce:(e?.nonce??0)+1}));return}}};return i(),()=>{e=!0,clearTimeout(n),u.current?.close()}},[]);let p=(0,E.useCallback)(e=>{let t=u.current;if(!t||t.readyState!==WebSocket.OPEN)return Promise.resolve({ok:!1,outcome:{kind:`error`,message:`Not connected to the session`}});let n=`view-${++f.current}`;return new Promise(r=>{d.current.set(n,r),t.send(JSON.stringify({requestId:n,message:e}))})},[]);return(0,E.useMemo)(()=>({view:e,connected:n,attempts:i,rejection:o,hookFailure:c,dispatch:p}),[e,n,i,o,c,p])}function iN(e){let t=(0,E.useMemo)(()=>zc(location.pathname,location.search),[]);return fl(t)?(0,V.jsx)(aN,{...e}):(0,V.jsx)(sN,{...e,route:t})}function aN({mode:e,resolved:t,onModeChange:n}){let{view:r,connected:i,attempts:a,rejection:o,hookFailure:s,dispatch:c}=rN();if(!r)return(0,V.jsx)(pN,{connected:i,attempts:a});let{page:l,messages:u}=r;switch(l.status){case`redirect`:return location.replace(l.href),(0,V.jsx)(pN,{connected:i,attempts:a});case`configuring`:return(0,V.jsx)(oN,{children:`The facilitator is setting the session up. This page opens when it starts.`});case`closed`:return(0,V.jsx)(oN,{children:`This session has already started, so its configuration is closed.`});case`join`:return(0,V.jsx)(tM,{team:l.team??void 0,bare:!0});case`no-such-team`:return(0,V.jsx)(mN,{resolution:{kind:`no-such-team`,teamIndex:l.teamIndex},bare:!0});case`no-such-participant`:return(0,V.jsx)(mN,{resolution:{kind:`no-such-participant`,teamIndex:l.teamIndex,slot:l.slot,held:l.held},bare:!0});case`missing-surface`:return(0,V.jsx)(hN,{kind:l.kind});case`surface`:return(0,V.jsxs)(em,{sx:{display:`flex`,flexDirection:`column`,height:`100vh`},children:[!i&&(0,V.jsx)(dN,{attempts:a}),l.inSetup&&l.surface.kind===`setup`&&(0,V.jsx)(Ed,{position:`static`,color:`default`,elevation:1,children:(0,V.jsxs)(py,{variant:`dense`,sx:{gap:2},children:[(0,V.jsx)(Z,{variant:`subtitle2`,sx:{flex:1},children:`Configure the session, then start it`}),(0,V.jsx)(fm,{variant:`contained`,"data-testid":`play`,onClick:()=>void c({type:`requestPlay`}),children:`Play`})]})}),(0,V.jsx)(em,{sx:{flex:1,minHeight:0,position:`relative`},children:(0,V.jsx)(KM,{surface:l.surface,viewer:l.viewer,feed:{kind:`view`,messages:u,dispatch:c,sessionKey:l.sessionKey},mode:e,resolved:t,onModeChange:n,rejection:o,hookFailure:s})})]})}}function oN({children:e}){return(0,V.jsx)(iy,{sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:(0,V.jsx)(gd,{severity:`info`,sx:{maxWidth:560},"data-testid":`view-notice`,children:(0,V.jsx)(Z,{children:e})})})}function sN({mode:e,resolved:t,onModeChange:n,route:r}){let{state:i,connected:a,attempts:o,transients:s,send:c,announce:l}=tN(r.run),[u,d]=(0,E.useState)(null),[f,p]=(0,E.useState)(!1);(0,E.useEffect)(()=>{fetch(`/api/surfaces`).then(e=>e.json()).then(d)},[s.reloads]);let[m,h]=(0,E.useState)([]);(0,E.useEffect)(()=>{fetch(`/api/session`).then(e=>e.json()).then(e=>h((e.warnings??[]).filter(e=>e.build)))},[s.reloads]);let[g,_]=(0,E.useState)(!1);(0,E.useEffect)(()=>{s.restarted&&_(!0)},[s.restarted]);let[v,y]=(0,E.useState)(null),b=i?.game.scenarioId??null,x=i?.session.locale??`en`;(0,E.useEffect)(()=>{r.kind!==`presentation`||b===null?y(null):fetch(`/api/scenarios`).then(e=>e.json()).then(e=>{let t=e.scenarios.find(e=>e.id===b)?.locales??{};y(t[x]?.name??Object.values(t)[0]?.name??b)})},[r.kind,b,x]),(0,E.useEffect)(()=>{fetch(`/api/guide`).then(e=>e.json()).then(e=>p(e.guide!==null))},[]);let S=i&&r.kind===`player`?(()=>{let e=ll(i,r);return e.kind===`viewer`?e.viewer.participantId??null:null})():null;if((0,E.useEffect)(()=>l(S),[l,S]),!i||!u)return(0,V.jsx)(pN,{connected:a,attempts:o});let C=u.some(e=>e.kind===`setup`),w=i.session.inSetup,T=r.kind===`guide`||r.kind===`print`||r.kind===`scenario-editor`||r.kind===`presentation`,D=w&&!T?{...r,kind:`setup`}:r;if(!w&&D.kind===`setup`)return(0,V.jsx)(uN,{configurable:C,onReconfigure:()=>void c({type:`reconfigure`})});if(D.kind===`scenario-editor`)return D.scenario===void 0?(0,V.jsx)(fN,{}):(0,V.jsx)(QM,{scenario:D.scenario,surface:u.find(e=>e.kind===`scenario-editor`),state:i,mode:e,resolved:t,send:c,onModeChange:n,rejection:s.rejection});if(D.kind===`join`){let e=i.teams.find(e=>e.index===D.teamIndex);return e?.participants.length===1?(location.replace(Bc({kind:`player`,teamIndex:e.index,participant:1,bare:D.bare})),(0,V.jsx)(pN,{connected:a,attempts:o})):(0,V.jsx)(tM,{team:e,bare:D.bare})}let O=ll(i,D);if(O.kind!==`viewer`)return(0,V.jsx)(mN,{resolution:O,bare:D.bare,onAddParticipant:()=>void c({type:`addParticipant`,teamId:`team-${O.teamIndex+1}`})});let k=i.session.waitingRoomOpen&&(D.kind===`player`||D.kind===`waiting-room`)?`waiting-room`:ul[D.kind],A=k?u.find(e=>e.kind===k):void 0;return(0,V.jsxs)(em,{sx:{display:`flex`,flexDirection:`column`,height:`100vh`},children:[!a&&(0,V.jsx)(dN,{attempts:o}),Nc(i.session.pending)&&!D.bare&&(0,V.jsx)(cN,{pending:i.session.pending,onReinitialise:()=>void c({type:`reset`})}),m.length>0&&!D.bare&&(0,V.jsx)(lN,{errors:m}),w&&(0,V.jsx)(Ed,{position:`static`,color:`default`,elevation:1,children:(0,V.jsxs)(py,{variant:`dense`,sx:{gap:2},children:[(0,V.jsx)(Z,{variant:`subtitle2`,sx:{flex:1},children:`Configure the session, then start it`}),(0,V.jsx)(fm,{variant:`contained`,"data-testid":`play`,onClick:()=>void c({type:`play`}),children:`Play`})]})}),(0,V.jsx)(em,{sx:{flex:1,minHeight:0,position:`relative`},children:D.kind===`guide`?(0,V.jsx)(eM,{locale:i.session.locale}):D.kind===`print`?(0,V.jsx)(rM,{state:i}):A?(0,V.jsx)(KM,{surface:A,viewer:O.viewer,feed:{kind:`operator`,state:i,hasGuide:f,...D.kind===`presentation`?{sessionless:D.preview===!0,scenarioName:v}:{},roundProcessing:s.processing.has(-1)||O.viewer.teamIndex!==void 0&&s.processing.has(O.viewer.teamIndex),send:c},mode:e,resolved:t,onModeChange:n,rejection:s.rejection,hookFailure:s.hookFailure}):(0,V.jsx)(hN,{kind:k??`session`})}),!D.bare&&(0,V.jsx)(Ky,{state:i,route:D,inSetup:w,configurable:C,connected:a,transients:s,mode:e,onModeChange:n,send:c}),(0,V.jsx)(Gv,{open:g,autoHideDuration:4e3,onClose:()=>_(!1),anchorOrigin:{vertical:`top`,horizontal:`center`},children:(0,V.jsx)(gd,{severity:`info`,"data-testid":`restarted-notice`,children:`Settings changed, game restarted`})})]})}function cN({pending:e,onReinitialise:t}){return(0,V.jsxs)(gd,{severity:`warning`,square:!0,"data-testid":`pending-changes`,sx:{borderRadius:0,py:.25},action:(0,V.jsx)(fm,{size:`small`,color:`inherit`,"data-testid":`reinitialise`,onClick:t,children:`Re-initialise`}),children:[(0,V.jsx)(`strong`,{children:Pc(e)}),`. `,Fc(e),`. Re-initialising returns play to tick 0.`]})}function lN({errors:e}){return(0,V.jsxs)(gd,{severity:`error`,square:!0,"data-testid":`build-errors`,sx:{borderRadius:0,py:.25},children:[(0,V.jsxs)(`strong`,{children:["`sdk build` would refuse this package (",e.length===1?`one error`:`${e.length} errors`,`)`]}),`. It runs here anyway, so it can be fixed while you watch.`,e.map((e,t)=>(0,V.jsx)(Z,{variant:`body2`,sx:{fontFamily:`monospace`},children:e.message},t))]})}function uN({configurable:e,onReconfigure:t}){return(0,V.jsxs)(iy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:[(0,V.jsxs)(gd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsx)(Z,{gutterBottom:!0,children:`This session has already started.`}),(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:e?`Settings are resolved when a session initialises, so changing them now would change nothing until the session starts again. Reconfiguring puts the session back to its setup step and returns every team to tick 0.`:`This game has no setup step.`})]}),(0,V.jsxs)(iy,{direction:`row`,spacing:1,children:[e&&(0,V.jsx)(fm,{variant:`contained`,"data-testid":`reconfigure`,onClick:t,children:`Reconfigure`}),(0,V.jsx)(fm,{href:`/`,children:`Back to the session`})]})]})}function dN({attempts:e}){return(0,V.jsxs)(gd,{severity:`warning`,square:!0,"data-testid":`disconnected`,sx:{borderRadius:0,py:.25},action:(0,V.jsx)(fm,{size:`small`,color:`inherit`,onClick:()=>location.reload(),children:`Reload`}),children:[`Disconnected from the session — nothing on this page is live.`,e>1?` Retrying (${e}).`:` Retrying…`]})}function fN(){return(0,V.jsxs)(iy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:[(0,V.jsxs)(gd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsx)(Z,{gutterBottom:!0,children:`The scenario editor opens on a scenario.`}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,children:[`Open the dev drawer (press `,(0,V.jsx)(`kbd`,{children:"`"}),`) and use the Scenario tab:`,` `,(0,V.jsx)(`strong`,{children:`Add scenario`}),` to start a new one, or `,(0,V.jsx)(`strong`,{children:`Edit`}),` on an existing one. An editor with no scenario behind it has nowhere to save what you do in it.`]})]}),(0,V.jsx)(fm,{href:`/`,children:`Back to the session`})]})}function pN({connected:e,attempts:t}){let n=!e&&t>=2;return(0,V.jsxs)(iy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},children:[(0,V.jsx)(Z,{variant:`h6`,children:`Serious Gaming`}),!n&&(0,V.jsx)(Z,{color:`text.secondary`,children:e?`Loading the session…`:`Connecting to the session…`}),n&&(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(gd,{severity:`warning`,sx:{maxWidth:620},children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`Nothing is answering at`,` `,(0,V.jsxs)(`code`,{children:[location.host,`/ws`]}),`.`]}),(0,V.jsxs)(Z,{variant:`body2`,color:`text.secondary`,component:`div`,children:[`This page loaded, so something is serving it — most likely an older dev server still holding this port. Check two things:`,(0,V.jsxs)(`ul`,{style:{marginBottom:0},children:[(0,V.jsxs)(`li`,{children:[`The address your server actually printed. A port already in use makes it move to the next one, so it may be on`,` `,(0,V.jsx)(`code`,{children:Number(location.port||80)+1})]}),(0,V.jsxs)(`li`,{children:[`Whether an old one is still running:`,` `,(0,V.jsx)(`code`,{children:`pnpm run sdk dev status`}),`, and`,` `,(0,V.jsx)(`code`,{children:`pnpm run sdk dev stop`}),` to end it`]})]})]})]}),(0,V.jsx)(fm,{variant:`outlined`,onClick:()=>location.reload(),children:`Try again`})]})]})}function mN({resolution:e,bare:t,onAddParticipant:n}){let r=e.teamIndex+1;return(0,V.jsxs)(iy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100vh`,p:4},"data-testid":`no-such-participant`,children:[(0,V.jsx)(gd,{severity:`warning`,sx:{maxWidth:560},children:e.kind===`no-such-team`?(0,V.jsxs)(Z,{gutterBottom:!0,children:[`This session has no team `,r,`. It may have been removed.`]}):(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`Team `,r,` has`,` `,e.held===0?`no participants`:e.held===1?`one participant`:`${e.held} participants`,`, and this URL asks for participant `,e.slot,`.`]}),(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`A second tab is not a second participant. Add one, then open their surface: a participant is who a write is attributed to, and a surface with nobody behind it cannot submit one.`})]})}),e.kind===`no-such-participant`&&n&&(0,V.jsx)(fm,{variant:`contained`,onClick:n,"data-testid":`add-participant`,children:`Add participant`}),(0,V.jsxs)(fm,{size:`small`,href:Bc({kind:`observer`,teamIndex:e.teamIndex,bare:t}),children:[`Watch team `,r,` without joining`]})]})}function hN({kind:e}){return(0,V.jsxs)(iy,{spacing:2,sx:{alignItems:`center`,justifyContent:`center`,height:`100%`,p:4},children:[(0,V.jsxs)(gd,{severity:`info`,sx:{maxWidth:560},children:[(0,V.jsxs)(Z,{gutterBottom:!0,children:[`This package wires no `,(0,V.jsx)(`strong`,{children:e}),` surface.`]}),(0,V.jsx)(Z,{variant:`body2`,color:`text.secondary`,children:`A game supplies its own facilitator and player surfaces; the dev server renders them rather than substituting a console of its own, so there is nothing to show until the package fills that slot.`})]}),(0,V.jsx)(fm,{href:`/`,size:`small`,children:`Back to the session`})]})}function gN(){let[e,t]=(0,E.useState)(()=>localStorage.getItem(`theme`)??`light`),n=zM(e),r=(0,E.useMemo)(()=>RM(n),[n]);return(0,V.jsxs)(Ec,{theme:r,children:[(0,V.jsx)(ss,{}),(0,V.jsx)(iN,{mode:e,resolved:n,onModeChange:e=>{localStorage.setItem(`theme`,e),t(e)}})]})}(0,Mc.createRoot)(document.getElementById(`root`)).render((0,V.jsx)(E.StrictMode,{children:(0,V.jsx)(gN,{})}));
|