claude-mpm 5.0.9__py3-none-any.whl → 5.4.41__py3-none-any.whl
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.
Potentially problematic release.
This version of claude-mpm might be problematic. Click here for more details.
- claude_mpm/VERSION +1 -1
- claude_mpm/__init__.py +4 -0
- claude_mpm/agents/BASE_AGENT.md +164 -0
- claude_mpm/agents/{PM_INSTRUCTIONS_TEACH.md → CLAUDE_MPM_TEACHER_OUTPUT_STYLE.md} +721 -41
- claude_mpm/agents/MEMORY.md +1 -1
- claude_mpm/agents/PM_INSTRUCTIONS.md +468 -468
- claude_mpm/agents/WORKFLOW.md +5 -254
- claude_mpm/agents/agent_loader.py +13 -44
- claude_mpm/agents/base_agent.json +1 -1
- claude_mpm/agents/frontmatter_validator.py +70 -2
- claude_mpm/agents/templates/circuit-breakers.md +431 -45
- claude_mpm/cli/__init__.py +0 -1
- claude_mpm/cli/__main__.py +4 -0
- claude_mpm/cli/chrome_devtools_installer.py +175 -0
- claude_mpm/cli/commands/agent_state_manager.py +18 -27
- claude_mpm/cli/commands/agents.py +175 -37
- claude_mpm/cli/commands/auto_configure.py +723 -236
- claude_mpm/cli/commands/config.py +88 -2
- claude_mpm/cli/commands/configure.py +1262 -157
- claude_mpm/cli/commands/configure_agent_display.py +25 -6
- claude_mpm/cli/commands/mpm_init/core.py +225 -46
- claude_mpm/cli/commands/mpm_init/knowledge_extractor.py +481 -0
- claude_mpm/cli/commands/mpm_init/prompts.py +280 -0
- claude_mpm/cli/commands/postmortem.py +1 -1
- claude_mpm/cli/commands/profile.py +277 -0
- claude_mpm/cli/commands/skills.py +214 -189
- claude_mpm/cli/commands/summarize.py +413 -0
- claude_mpm/cli/executor.py +21 -3
- claude_mpm/cli/interactive/agent_wizard.py +85 -10
- claude_mpm/cli/parsers/agents_parser.py +54 -9
- claude_mpm/cli/parsers/auto_configure_parser.py +13 -138
- claude_mpm/cli/parsers/base_parser.py +12 -0
- claude_mpm/cli/parsers/config_parser.py +153 -83
- claude_mpm/cli/parsers/profile_parser.py +148 -0
- claude_mpm/cli/parsers/skills_parser.py +3 -2
- claude_mpm/cli/startup.py +879 -149
- claude_mpm/commands/mpm-config.md +28 -0
- claude_mpm/commands/mpm-doctor.md +9 -22
- claude_mpm/commands/mpm-help.md +5 -287
- claude_mpm/commands/mpm-init.md +81 -507
- claude_mpm/commands/mpm-monitor.md +15 -402
- claude_mpm/commands/mpm-organize.md +120 -0
- claude_mpm/commands/mpm-postmortem.md +6 -108
- claude_mpm/commands/mpm-session-resume.md +12 -363
- claude_mpm/commands/mpm-status.md +5 -69
- claude_mpm/commands/mpm-ticket-view.md +52 -495
- claude_mpm/commands/mpm-version.md +5 -107
- claude_mpm/config/agent_sources.py +27 -0
- claude_mpm/core/config.py +2 -4
- claude_mpm/core/framework/formatters/content_formatter.py +3 -13
- claude_mpm/core/framework/loaders/agent_loader.py +8 -5
- claude_mpm/core/framework/loaders/instruction_loader.py +52 -11
- claude_mpm/core/framework_loader.py +4 -2
- claude_mpm/core/logger.py +13 -0
- claude_mpm/core/optimized_startup.py +59 -0
- claude_mpm/core/output_style_manager.py +173 -43
- claude_mpm/core/shared/config_loader.py +1 -1
- claude_mpm/core/socketio_pool.py +3 -3
- claude_mpm/core/unified_agent_registry.py +134 -16
- claude_mpm/core/unified_config.py +22 -0
- claude_mpm/dashboard/static/svelte-build/_app/env.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/0.B_FtCwCQ.css +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/assets/2.Cl_eSA4x.css +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/BgChzWQ1.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CIXEwuWe.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/CWc5urbQ.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DMkZpdF2.js +2 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/DjhvlsAc.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/N4qtv3Hx.js +2 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/chunks/uj46x2Wr.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/app.DTL5mJO-.js +2 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/entry/start.DzuEhzqh.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/0.CAGBuiOw.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/1.DFLC8jdE.js +1 -0
- claude_mpm/dashboard/static/svelte-build/_app/immutable/nodes/2.DPvEihJJ.js +10 -0
- claude_mpm/dashboard/static/svelte-build/_app/version.json +1 -0
- claude_mpm/dashboard/static/svelte-build/favicon.svg +7 -0
- claude_mpm/dashboard/static/svelte-build/index.html +36 -0
- claude_mpm/hooks/claude_hooks/__pycache__/__init__.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/correlation_manager.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/event_handlers.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/hook_handler.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/installer.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/memory_integration.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/response_tracking.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/tool_analysis.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/correlation_manager.py +60 -0
- claude_mpm/hooks/claude_hooks/event_handlers.py +211 -78
- claude_mpm/hooks/claude_hooks/hook_handler.py +155 -1
- claude_mpm/hooks/claude_hooks/installer.py +33 -10
- claude_mpm/hooks/claude_hooks/memory_integration.py +28 -0
- claude_mpm/hooks/claude_hooks/response_tracking.py +2 -3
- claude_mpm/hooks/claude_hooks/services/__pycache__/__init__.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager_http.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/duplicate_detector.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/state_manager.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/subagent_processor.cpython-311.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/connection_manager.py +30 -6
- claude_mpm/hooks/memory_integration_hook.py +46 -1
- claude_mpm/init.py +63 -19
- claude_mpm/models/agent_definition.py +7 -0
- claude_mpm/models/git_repository.py +3 -3
- claude_mpm/scripts/claude-hook-handler.sh +58 -18
- claude_mpm/scripts/launch_monitor.py +93 -13
- claude_mpm/scripts/start_activity_logging.py +0 -0
- claude_mpm/services/agents/agent_builder.py +3 -3
- claude_mpm/services/agents/agent_recommendation_service.py +278 -0
- claude_mpm/services/agents/agent_review_service.py +280 -0
- claude_mpm/services/agents/cache_git_manager.py +6 -6
- claude_mpm/services/agents/deployment/agent_deployment.py +29 -7
- claude_mpm/services/agents/deployment/agent_discovery_service.py +4 -5
- claude_mpm/services/agents/deployment/agent_template_builder.py +5 -3
- claude_mpm/services/agents/deployment/agents_directory_resolver.py +2 -2
- claude_mpm/services/agents/deployment/multi_source_deployment_service.py +320 -29
- claude_mpm/services/agents/deployment/remote_agent_discovery_service.py +546 -68
- claude_mpm/services/agents/git_source_manager.py +36 -2
- claude_mpm/services/agents/loading/base_agent_manager.py +1 -13
- claude_mpm/services/agents/recommender.py +5 -3
- claude_mpm/services/agents/single_tier_deployment_service.py +2 -2
- claude_mpm/services/agents/sources/git_source_sync_service.py +13 -6
- claude_mpm/services/agents/startup_sync.py +22 -2
- claude_mpm/services/agents/toolchain_detector.py +10 -6
- claude_mpm/services/analysis/__init__.py +11 -1
- claude_mpm/services/analysis/clone_detector.py +1030 -0
- claude_mpm/services/command_deployment_service.py +81 -10
- claude_mpm/services/diagnostics/checks/agent_check.py +2 -2
- claude_mpm/services/diagnostics/checks/agent_sources_check.py +1 -1
- claude_mpm/services/event_bus/config.py +3 -1
- claude_mpm/services/git/git_operations_service.py +101 -16
- claude_mpm/services/monitor/daemon.py +9 -2
- claude_mpm/services/monitor/daemon_manager.py +39 -3
- claude_mpm/services/monitor/management/lifecycle.py +8 -1
- claude_mpm/services/monitor/server.py +698 -22
- claude_mpm/services/pm_skills_deployer.py +676 -0
- claude_mpm/services/profile_manager.py +331 -0
- claude_mpm/services/project/project_organizer.py +4 -0
- claude_mpm/services/self_upgrade_service.py +120 -12
- claude_mpm/services/skills/__init__.py +3 -0
- claude_mpm/services/skills/git_skill_source_manager.py +130 -2
- claude_mpm/services/skills/selective_skill_deployer.py +704 -0
- claude_mpm/services/skills/skill_to_agent_mapper.py +406 -0
- claude_mpm/services/skills_deployer.py +126 -9
- claude_mpm/services/socketio/dashboard_server.py +1 -0
- claude_mpm/services/socketio/event_normalizer.py +51 -6
- claude_mpm/services/socketio/server/core.py +386 -108
- claude_mpm/services/version_control/git_operations.py +103 -0
- claude_mpm/skills/skill_manager.py +92 -3
- claude_mpm/utils/agent_dependency_loader.py +14 -2
- claude_mpm/utils/agent_filters.py +17 -44
- claude_mpm/utils/gitignore.py +3 -0
- claude_mpm/utils/migration.py +4 -4
- claude_mpm/utils/robust_installer.py +47 -3
- {claude_mpm-5.0.9.dist-info → claude_mpm-5.4.41.dist-info}/METADATA +57 -87
- {claude_mpm-5.0.9.dist-info → claude_mpm-5.4.41.dist-info}/RECORD +160 -211
- claude_mpm-5.4.41.dist-info/entry_points.txt +5 -0
- claude_mpm-5.4.41.dist-info/licenses/LICENSE +94 -0
- claude_mpm-5.4.41.dist-info/licenses/LICENSE-FAQ.md +153 -0
- claude_mpm/agents/BASE_AGENT_TEMPLATE.md +0 -292
- claude_mpm/agents/BASE_DOCUMENTATION.md +0 -53
- claude_mpm/agents/BASE_OPS.md +0 -219
- claude_mpm/agents/BASE_PM.md +0 -480
- claude_mpm/agents/BASE_PROMPT_ENGINEER.md +0 -787
- claude_mpm/agents/BASE_QA.md +0 -167
- claude_mpm/agents/BASE_RESEARCH.md +0 -53
- claude_mpm/agents/base_agent_loader.py +0 -601
- claude_mpm/cli/commands/agents_detect.py +0 -380
- claude_mpm/cli/commands/agents_recommend.py +0 -309
- claude_mpm/cli/ticket_cli.py +0 -35
- claude_mpm/commands/mpm-agents-auto-configure.md +0 -278
- claude_mpm/commands/mpm-agents-detect.md +0 -177
- claude_mpm/commands/mpm-agents-list.md +0 -131
- claude_mpm/commands/mpm-agents-recommend.md +0 -223
- claude_mpm/commands/mpm-config-view.md +0 -150
- claude_mpm/commands/mpm-ticket-organize.md +0 -304
- claude_mpm/dashboard/analysis_runner.py +0 -455
- claude_mpm/dashboard/index.html +0 -13
- claude_mpm/dashboard/open_dashboard.py +0 -66
- claude_mpm/dashboard/static/css/activity.css +0 -1958
- claude_mpm/dashboard/static/css/connection-status.css +0 -370
- claude_mpm/dashboard/static/css/dashboard.css +0 -4701
- claude_mpm/dashboard/static/js/components/activity-tree.js +0 -1871
- claude_mpm/dashboard/static/js/components/agent-hierarchy.js +0 -777
- claude_mpm/dashboard/static/js/components/agent-inference.js +0 -956
- claude_mpm/dashboard/static/js/components/build-tracker.js +0 -333
- claude_mpm/dashboard/static/js/components/code-simple.js +0 -857
- claude_mpm/dashboard/static/js/components/connection-debug.js +0 -654
- claude_mpm/dashboard/static/js/components/diff-viewer.js +0 -891
- claude_mpm/dashboard/static/js/components/event-processor.js +0 -542
- claude_mpm/dashboard/static/js/components/event-viewer.js +0 -1155
- claude_mpm/dashboard/static/js/components/export-manager.js +0 -368
- claude_mpm/dashboard/static/js/components/file-change-tracker.js +0 -443
- claude_mpm/dashboard/static/js/components/file-change-viewer.js +0 -690
- claude_mpm/dashboard/static/js/components/file-tool-tracker.js +0 -724
- claude_mpm/dashboard/static/js/components/file-viewer.js +0 -580
- claude_mpm/dashboard/static/js/components/hud-library-loader.js +0 -211
- claude_mpm/dashboard/static/js/components/hud-manager.js +0 -671
- claude_mpm/dashboard/static/js/components/hud-visualizer.js +0 -1718
- claude_mpm/dashboard/static/js/components/module-viewer.js +0 -2764
- claude_mpm/dashboard/static/js/components/session-manager.js +0 -579
- claude_mpm/dashboard/static/js/components/socket-manager.js +0 -368
- claude_mpm/dashboard/static/js/components/ui-state-manager.js +0 -749
- claude_mpm/dashboard/static/js/components/unified-data-viewer.js +0 -1824
- claude_mpm/dashboard/static/js/components/working-directory.js +0 -920
- claude_mpm/dashboard/static/js/connection-manager.js +0 -536
- claude_mpm/dashboard/static/js/dashboard.js +0 -1914
- claude_mpm/dashboard/static/js/extension-error-handler.js +0 -164
- claude_mpm/dashboard/static/js/socket-client.js +0 -1474
- claude_mpm/dashboard/static/js/tab-isolation-fix.js +0 -185
- claude_mpm/dashboard/static/socket.io.min.js +0 -7
- claude_mpm/dashboard/static/socket.io.v4.8.1.backup.js +0 -7
- claude_mpm/dashboard/templates/code_simple.html +0 -153
- claude_mpm/dashboard/templates/index.html +0 -606
- claude_mpm/dashboard/test_dashboard.html +0 -372
- claude_mpm/hooks/claude_hooks/__pycache__/__init__.cpython-313.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/event_handlers.cpython-313.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/hook_handler.cpython-313.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/memory_integration.cpython-313.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/response_tracking.cpython-313.pyc +0 -0
- claude_mpm/hooks/claude_hooks/__pycache__/tool_analysis.cpython-313.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/__init__.cpython-313.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/connection_manager_http.cpython-313.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/duplicate_detector.cpython-313.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/state_manager.cpython-313.pyc +0 -0
- claude_mpm/hooks/claude_hooks/services/__pycache__/subagent_processor.cpython-313.pyc +0 -0
- claude_mpm/scripts/mcp_server.py +0 -75
- claude_mpm/scripts/mcp_wrapper.py +0 -39
- claude_mpm/services/mcp_gateway/__init__.py +0 -159
- claude_mpm/services/mcp_gateway/auto_configure.py +0 -369
- claude_mpm/services/mcp_gateway/config/__init__.py +0 -17
- claude_mpm/services/mcp_gateway/config/config_loader.py +0 -296
- claude_mpm/services/mcp_gateway/config/config_schema.py +0 -243
- claude_mpm/services/mcp_gateway/config/configuration.py +0 -429
- claude_mpm/services/mcp_gateway/core/__init__.py +0 -43
- claude_mpm/services/mcp_gateway/core/base.py +0 -312
- claude_mpm/services/mcp_gateway/core/exceptions.py +0 -253
- claude_mpm/services/mcp_gateway/core/interfaces.py +0 -443
- claude_mpm/services/mcp_gateway/core/process_pool.py +0 -977
- claude_mpm/services/mcp_gateway/core/singleton_manager.py +0 -315
- claude_mpm/services/mcp_gateway/core/startup_verification.py +0 -316
- claude_mpm/services/mcp_gateway/main.py +0 -589
- claude_mpm/services/mcp_gateway/registry/__init__.py +0 -12
- claude_mpm/services/mcp_gateway/registry/service_registry.py +0 -412
- claude_mpm/services/mcp_gateway/registry/tool_registry.py +0 -489
- claude_mpm/services/mcp_gateway/server/__init__.py +0 -15
- claude_mpm/services/mcp_gateway/server/mcp_gateway.py +0 -414
- claude_mpm/services/mcp_gateway/server/stdio_handler.py +0 -372
- claude_mpm/services/mcp_gateway/server/stdio_server.py +0 -712
- claude_mpm/services/mcp_gateway/tools/__init__.py +0 -36
- claude_mpm/services/mcp_gateway/tools/base_adapter.py +0 -485
- claude_mpm/services/mcp_gateway/tools/document_summarizer.py +0 -789
- claude_mpm/services/mcp_gateway/tools/external_mcp_services.py +0 -654
- claude_mpm/services/mcp_gateway/tools/health_check_tool.py +0 -456
- claude_mpm/services/mcp_gateway/tools/hello_world.py +0 -551
- claude_mpm/services/mcp_gateway/tools/kuzu_memory_service.py +0 -555
- claude_mpm/services/mcp_gateway/utils/__init__.py +0 -14
- claude_mpm/services/mcp_gateway/utils/package_version_checker.py +0 -160
- claude_mpm/services/mcp_gateway/utils/update_preferences.py +0 -170
- claude_mpm-5.0.9.dist-info/entry_points.txt +0 -10
- claude_mpm-5.0.9.dist-info/licenses/LICENSE +0 -21
- /claude_mpm/agents/{OUTPUT_STYLE.md → CLAUDE_MPM_OUTPUT_STYLE.md} +0 -0
- {claude_mpm-5.0.9.dist-info → claude_mpm-5.4.41.dist-info}/WHEEL +0 -0
- {claude_mpm-5.0.9.dist-info → claude_mpm-5.4.41.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
option.active-stream.svelte-1elxaub{font-weight:600;background-color:#22c55e1a}@keyframes svelte-1elxaub-pulse-green{0%,to{opacity:1}50%{opacity:.5}}select.svelte-1elxaub option:where(.svelte-1elxaub):first-child{animation:svelte-1elxaub-pulse-green 2s cubic-bezier(.4,0,.6,1) infinite}.langtag.svelte-167dipq{position:relative}.langtag.svelte-167dipq:after{content:attr(data-language);position:absolute;top:var(--langtag-top, 0);right:var(--langtag-right, 0);display:flex;align-items:center;justify-content:center;background:var(--langtag-background, inherit);color:var(--langtag-color, inherit);border-radius:var(--langtag-border-radius, 0);padding:var(--langtag-padding, 1em)}.file-viewer.svelte-1y85kzg{display:flex;flex-direction:column;height:100%;background:var(--color-bg-primary);border:1px solid var(--color-border);border-radius:.5rem;overflow:hidden}.file-viewer.empty.svelte-1y85kzg{display:flex;align-items:center;justify-content:center}.empty-message.svelte-1y85kzg{text-align:center;color:var(--color-text-tertiary);font-size:1rem}.viewer-header.svelte-1y85kzg{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--color-border);background:var(--color-bg-secondary)}.file-info.svelte-1y85kzg{flex:1;min-width:0}.view-toggle.svelte-1y85kzg{display:flex;gap:0;background:var(--color-bg-primary);border:1px solid var(--color-border);border-radius:.375rem;overflow:hidden}.toggle-btn.svelte-1y85kzg{padding:.375rem .75rem;font-size:.8125rem;font-weight:500;color:var(--color-text-secondary);background:transparent;border:none;cursor:pointer;transition:all .15s ease}.toggle-btn.svelte-1y85kzg:hover:not(.disabled){background:var(--color-bg-secondary);color:var(--color-text-primary)}.toggle-btn.active.svelte-1y85kzg{background:var(--color-primary);color:#fff}.toggle-btn.disabled.svelte-1y85kzg{opacity:.4;cursor:not-allowed}.toggle-btn.svelte-1y85kzg:not(:last-child){border-right:1px solid var(--color-border)}.file-path.svelte-1y85kzg{margin:0 0 .25rem;font-size:1rem;font-weight:600;font-family:SF Mono,Monaco,Inconsolata,Fira Code,monospace;color:var(--color-text-primary);word-break:break-all}.file-meta.svelte-1y85kzg{margin:0;font-size:.8125rem;color:var(--color-text-secondary)}.viewer-content.svelte-1y85kzg{flex:1;overflow:auto;padding:1rem}.code-container.svelte-1y85kzg{font-size:.875rem;line-height:1.5}.code-container.svelte-1y85kzg pre{margin:0;padding:0!important;border-radius:.375rem;overflow-x:auto}.code-container.svelte-1y85kzg pre code.hljs{display:block;padding:1rem;border-radius:.375rem}.code-container[data-theme=light].svelte-1y85kzg pre code.hljs{background:#fafafa!important;color:#383a42!important}.code-container[data-theme=light].svelte-1y85kzg .hljs-comment,.code-container[data-theme=light].svelte-1y85kzg .hljs-quote{color:#a0a1a7!important}.code-container[data-theme=light].svelte-1y85kzg .hljs-keyword,.code-container[data-theme=light].svelte-1y85kzg .hljs-selector-tag,.code-container[data-theme=light].svelte-1y85kzg .hljs-addition{color:#a626a4!important}.code-container[data-theme=light].svelte-1y85kzg .hljs-number,.code-container[data-theme=light].svelte-1y85kzg .hljs-string,.code-container[data-theme=light].svelte-1y85kzg .hljs-meta .hljs-string,.code-container[data-theme=light].svelte-1y85kzg .hljs-literal,.code-container[data-theme=light].svelte-1y85kzg .hljs-doctag,.code-container[data-theme=light].svelte-1y85kzg .hljs-regexp{color:#50a14f!important}.code-container[data-theme=light].svelte-1y85kzg .hljs-title,.code-container[data-theme=light].svelte-1y85kzg .hljs-section,.code-container[data-theme=light].svelte-1y85kzg .hljs-name,.code-container[data-theme=light].svelte-1y85kzg .hljs-selector-id,.code-container[data-theme=light].svelte-1y85kzg .hljs-selector-class{color:#c18401!important}.code-container[data-theme=light].svelte-1y85kzg .hljs-attribute,.code-container[data-theme=light].svelte-1y85kzg .hljs-attr,.code-container[data-theme=light].svelte-1y85kzg .hljs-variable,.code-container[data-theme=light].svelte-1y85kzg .hljs-template-variable,.code-container[data-theme=light].svelte-1y85kzg .hljs-class .hljs-title,.code-container[data-theme=light].svelte-1y85kzg .hljs-type{color:#986801!important}.code-container[data-theme=light].svelte-1y85kzg .hljs-symbol,.code-container[data-theme=light].svelte-1y85kzg .hljs-bullet,.code-container[data-theme=light].svelte-1y85kzg .hljs-subst,.code-container[data-theme=light].svelte-1y85kzg .hljs-meta,.code-container[data-theme=light].svelte-1y85kzg .hljs-meta .hljs-keyword,.code-container[data-theme=light].svelte-1y85kzg .hljs-selector-attr,.code-container[data-theme=light].svelte-1y85kzg .hljs-selector-pseudo,.code-container[data-theme=light].svelte-1y85kzg .hljs-link{color:#4078f2!important}.code-container[data-theme=light].svelte-1y85kzg .hljs-built_in,.code-container[data-theme=light].svelte-1y85kzg .hljs-deletion{color:#e45649!important}.code-container[data-theme=dark].svelte-1y85kzg pre code.hljs{background:#282c34!important;color:#abb2bf!important}.code-container[data-theme=dark].svelte-1y85kzg .hljs-comment,.code-container[data-theme=dark].svelte-1y85kzg .hljs-quote{color:#5c6370!important}.code-container[data-theme=dark].svelte-1y85kzg .hljs-keyword,.code-container[data-theme=dark].svelte-1y85kzg .hljs-selector-tag,.code-container[data-theme=dark].svelte-1y85kzg .hljs-addition{color:#c678dd!important}.code-container[data-theme=dark].svelte-1y85kzg .hljs-number,.code-container[data-theme=dark].svelte-1y85kzg .hljs-string,.code-container[data-theme=dark].svelte-1y85kzg .hljs-meta .hljs-string,.code-container[data-theme=dark].svelte-1y85kzg .hljs-literal,.code-container[data-theme=dark].svelte-1y85kzg .hljs-doctag,.code-container[data-theme=dark].svelte-1y85kzg .hljs-regexp{color:#98c379!important}.code-container[data-theme=dark].svelte-1y85kzg .hljs-title,.code-container[data-theme=dark].svelte-1y85kzg .hljs-section,.code-container[data-theme=dark].svelte-1y85kzg .hljs-name,.code-container[data-theme=dark].svelte-1y85kzg .hljs-selector-id,.code-container[data-theme=dark].svelte-1y85kzg .hljs-selector-class{color:#e5c07b!important}.code-container[data-theme=dark].svelte-1y85kzg .hljs-attribute,.code-container[data-theme=dark].svelte-1y85kzg .hljs-attr,.code-container[data-theme=dark].svelte-1y85kzg .hljs-variable,.code-container[data-theme=dark].svelte-1y85kzg .hljs-template-variable,.code-container[data-theme=dark].svelte-1y85kzg .hljs-class .hljs-title,.code-container[data-theme=dark].svelte-1y85kzg .hljs-type{color:#d19a66!important}.code-container[data-theme=dark].svelte-1y85kzg .hljs-symbol,.code-container[data-theme=dark].svelte-1y85kzg .hljs-bullet,.code-container[data-theme=dark].svelte-1y85kzg .hljs-subst,.code-container[data-theme=dark].svelte-1y85kzg .hljs-meta,.code-container[data-theme=dark].svelte-1y85kzg .hljs-meta .hljs-keyword,.code-container[data-theme=dark].svelte-1y85kzg .hljs-selector-attr,.code-container[data-theme=dark].svelte-1y85kzg .hljs-selector-pseudo,.code-container[data-theme=dark].svelte-1y85kzg .hljs-link{color:#61afef!important}.code-container[data-theme=dark].svelte-1y85kzg .hljs-built_in,.code-container[data-theme=dark].svelte-1y85kzg .hljs-deletion{color:#e06c75!important}.code-container.svelte-1y85kzg .plaintext:where(.svelte-1y85kzg){margin:0;padding:1rem;border-radius:.375rem;overflow-x:auto;background:var(--color-bg-secondary);color:var(--color-text-primary);font-family:SF Mono,Monaco,Inconsolata,Fira Code,monospace;font-size:.875rem;line-height:1.5}.image-container.svelte-1y85kzg{display:flex;align-items:center;justify-content:center;padding:2rem;background:var(--color-bg-secondary);min-height:300px}.image-preview.svelte-1y85kzg{max-width:100%;max-height:80vh;-o-object-fit:contain;object-fit:contain;border-radius:.5rem;box-shadow:0 4px 6px #0000001a}.no-content.svelte-1y85kzg{display:flex;align-items:center;justify-content:center;height:100%;color:var(--color-text-tertiary);font-style:italic}.loading-state.svelte-1y85kzg{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;gap:1rem;color:var(--color-text-secondary)}.spinner.svelte-1y85kzg{width:2rem;height:2rem;border:3px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;animation:svelte-1y85kzg-spin .8s linear infinite}@keyframes svelte-1y85kzg-spin{to{transform:rotate(360deg)}}.diff-container.svelte-1y85kzg{font-size:.875rem;line-height:1.5;height:100%;overflow:auto}.commit-selector.svelte-1y85kzg{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:var(--color-bg-secondary);border-bottom:1px solid var(--color-border);position:sticky;top:0;z-index:10}.commit-selector.svelte-1y85kzg label:where(.svelte-1y85kzg){font-size:.8125rem;font-weight:500;color:var(--color-text-secondary);white-space:nowrap}.commit-selector.svelte-1y85kzg select:where(.svelte-1y85kzg){flex:1;padding:.375rem .75rem;font-size:.8125rem;font-family:SF Mono,Monaco,Inconsolata,Fira Code,monospace;color:var(--color-text-primary);background:var(--color-bg-primary);border:1px solid var(--color-border);border-radius:.375rem;cursor:pointer;transition:all .15s ease}.commit-selector.svelte-1y85kzg select:where(.svelte-1y85kzg):hover{border-color:var(--color-primary)}.commit-selector.svelte-1y85kzg select:where(.svelte-1y85kzg):focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #6366f11a}.diff-content.svelte-1y85kzg{margin:0;padding:1rem;background:var(--color-bg-secondary);color:var(--color-text-primary);font-family:SF Mono,Monaco,Inconsolata,Fira Code,monospace;font-size:.875rem;line-height:1.6;overflow-x:auto;white-space:pre;-moz-tab-size:4;-o-tab-size:4;tab-size:4}.diff-content.svelte-1y85kzg .diff-header{color:#a78bfa;font-weight:600}.diff-content.svelte-1y85kzg .diff-file{color:#8b5cf6;font-weight:600}.diff-content.svelte-1y85kzg .diff-hunk{color:#0891b2;background-color:#0891b21a;font-weight:600}.diff-content.svelte-1y85kzg .diff-add{background-color:#22c55e26;color:#22c55e}.diff-content.svelte-1y85kzg .diff-remove{background-color:#ef444426;color:#ef4444}.diff-content.svelte-1y85kzg .diff-context{color:var(--color-text-secondary)}.diff-content.svelte-1y85kzg .diff-index{color:var(--color-text-tertiary);font-size:.8125rem}.dark .diff-content.svelte-1y85kzg .diff-add{background-color:#22c55e33;color:#4ade80}.dark .diff-content.svelte-1y85kzg .diff-remove{background-color:#ef444433;color:#f87171}.dark .diff-content.svelte-1y85kzg .diff-hunk{background-color:#0891b226}.tab.svelte-1uha8ag{padding:.5rem 1.5rem;font-size:.875rem;font-weight:600;background-color:#475569;color:#94a3b8;border-top-left-radius:.375rem;border-top-right-radius:.375rem;transition:all .2s;cursor:pointer;border:none;outline:none}.dark .tab.svelte-1uha8ag{background-color:#475569}.tab.svelte-1uha8ag:hover:not(.active){background-color:#64748b;color:#cbd5e1}.tab.active.svelte-1uha8ag{background-color:#0891b2;color:#fff}.divider.svelte-1uha8ag{width:6px;background:#cbd5e1;cursor:col-resize;transition:background .2s;flex-shrink:0}.dark .divider.svelte-1uha8ag{background:#334155}.divider.svelte-1uha8ag:hover,.divider.dragging.svelte-1uha8ag{background:#0891b2}body.dragging{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:col-resize!important}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var te=Object.defineProperty;var F=s=>{throw TypeError(s)};var ie=(s,e,r)=>e in s?te(s,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):s[e]=r;var C=(s,e,r)=>ie(s,typeof e!="symbol"?e+"":e,r),K=(s,e,r)=>e.has(s)||F("Cannot "+r);var a=(s,e,r)=>(K(s,e,"read from private field"),r?r.call(s):e.get(s)),_=(s,e,r)=>e.has(s)?F("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,r),$=(s,e,r,t)=>(K(s,e,"write to private field"),t?t.call(s,r):e.set(s,r),r);import{D as j,F as ne,G as T,H as ae,A as q,I as z,x as D,y as fe,J as ue,K as ce,L as le,z as oe,M as de,N as he,O as pe,P as _e,C as ve,Q as G,R as be,S as Se,b as V,U as Pe,V as N,W as H,X as ge,Y as we,Z as W,_ as ye,g as y,$ as Oe,a0 as Ae,a1 as m,a2 as Ee,a3 as X,f as Re,a4 as xe,a5 as Ie,a6 as Te,w as L,a7 as De,a8 as me,a9 as Me,aa as Ne,ab as Le,ac as Be,ad as k,ae as Ue,af as Z,ag as J,ah as w}from"./DjhvlsAc.js";var d,h,o,v,O,A,x;class Ye{constructor(e,r=!0){C(this,"anchor");_(this,d,new Map);_(this,h,new Map);_(this,o,new Map);_(this,v,new Set);_(this,O,!0);_(this,A,()=>{var e=j;if(a(this,d).has(e)){var r=a(this,d).get(e),t=a(this,h).get(r);if(t)ne(t),a(this,v).delete(r);else{var i=a(this,o).get(r);i&&(a(this,h).set(r,i.effect),a(this,o).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),t=i.effect)}for(const[n,u]of a(this,d)){if(a(this,d).delete(n),n===e)break;const f=a(this,o).get(u);f&&(T(f.effect),a(this,o).delete(u))}for(const[n,u]of a(this,h)){if(n===r||a(this,v).has(n))continue;const f=()=>{if(Array.from(a(this,d).values()).includes(n)){var p=document.createDocumentFragment();ue(u,p),p.append(q()),a(this,o).set(n,{effect:u,fragment:p})}else T(u);a(this,v).delete(n),a(this,h).delete(n)};a(this,O)||!t?(a(this,v).add(n),ae(u,f,!1)):f()}}});_(this,x,e=>{a(this,d).delete(e);const r=Array.from(a(this,d).values());for(const[t,i]of a(this,o))r.includes(t)||(T(i.effect),a(this,o).delete(t))});this.anchor=e,$(this,O,r)}ensure(e,r){var t=j,i=ce();if(r&&!a(this,h).has(e)&&!a(this,o).has(e))if(i){var n=document.createDocumentFragment(),u=q();n.append(u),a(this,o).set(e,{effect:z(()=>r(u)),fragment:n})}else a(this,h).set(e,z(()=>r(this.anchor)));if(a(this,d).set(t,e),i){for(const[f,c]of a(this,h))f===e?t.skipped_effects.delete(c):t.skipped_effects.add(c);for(const[f,c]of a(this,o))f===e?t.skipped_effects.delete(c.effect):t.skipped_effects.add(c.effect);t.oncommit(a(this,A)),t.ondiscard(a(this,x))}else D&&(this.anchor=fe),a(this,A).call(this)}}d=new WeakMap,h=new WeakMap,o=new WeakMap,v=new WeakMap,O=new WeakMap,A=new WeakMap,x=new WeakMap;function ze(s,e,r=!1){D&&oe();var t=new Ye(s),i=r?de:0;function n(u,f){if(D){const p=he(s)===pe;if(u===p){var c=_e();ve(c),t.anchor=c,G(!1),t.ensure(u,f),G(!0);return}}t.ensure(u,f)}le(()=>{var u=!1;e((f,c=!0)=>{u=!0,n(c,f)}),u||n(!1,null)},i)}function Q(s,e){return s===e||(s==null?void 0:s[N])===e}function Ge(s={},e,r,t){return be(()=>{var i,n;return Se(()=>{i=n,n=[],V(()=>{s!==r(...n)&&(e(s,...n),i&&Q(r(...i),s)&&e(null,...i))})}),()=>{Pe(()=>{n&&Q(r(...n),s)&&e(null,...n)})}}),s}let R=!1,M=Symbol();function He(s,e,r){const t=r[e]??(r[e]={store:null,source:ge(void 0),unsubscribe:H});if(t.store!==s&&!(M in r))if(t.unsubscribe(),t.store=s??null,s==null)t.source.v=void 0,t.unsubscribe=H;else{var i=!0;t.unsubscribe=we(s,n=>{i?t.source.v=n:W(t.source,n)}),i=!1}return s&&M in r?ye(s):y(t.source)}function Ze(s,e){return s.set(e),e}function Je(){const s={};function e(){Oe(()=>{for(var r in s)s[r].unsubscribe();Ae(s,M,{enumerable:!1,value:!0})})}return[s,e]}function Fe(s){var e=R;try{return R=!1,[s(),R]}finally{R=e}}const Ce={get(s,e){if(!s.exclude.includes(e))return y(s.version),e in s.special?s.special[e]():s.props[e]},set(s,e,r){if(!(e in s.special)){var t=L;try{J(s.parent_effect),s.special[e]=$e({get[e](){return s.props[e]}},e,X)}finally{J(t)}}return s.special[e](r),Z(s.version),!0},getOwnPropertyDescriptor(s,e){if(!s.exclude.includes(e)&&e in s.props)return{enumerable:!0,configurable:!0,value:s.props[e]}},deleteProperty(s,e){return s.exclude.includes(e)||(s.exclude.push(e),Z(s.version)),!0},has(s,e){return s.exclude.includes(e)?!1:e in s.props},ownKeys(s){return Reflect.ownKeys(s.props).filter(e=>!s.exclude.includes(e))}};function Qe(s,e){return new Proxy({props:s,exclude:e,special:{},version:Ue(0),parent_effect:L},Ce)}const Ke={get(s,e){let r=s.props.length;for(;r--;){let t=s.props[r];if(w(t)&&(t=t()),typeof t=="object"&&t!==null&&e in t)return t[e]}},set(s,e,r){let t=s.props.length;for(;t--;){let i=s.props[t];w(i)&&(i=i());const n=m(i,e);if(n&&n.set)return n.set(r),!0}return!1},getOwnPropertyDescriptor(s,e){let r=s.props.length;for(;r--;){let t=s.props[r];if(w(t)&&(t=t()),typeof t=="object"&&t!==null&&e in t){const i=m(t,e);return i&&!i.configurable&&(i.configurable=!0),i}}},has(s,e){if(e===N||e===k)return!1;for(let r of s.props)if(w(r)&&(r=r()),r!=null&&e in r)return!0;return!1},ownKeys(s){const e=[];for(let r of s.props)if(w(r)&&(r=r()),!!r){for(const t in r)e.includes(t)||e.push(t);for(const t of Object.getOwnPropertySymbols(r))e.includes(t)||e.push(t)}return e}};function Ve(...s){return new Proxy({props:s},Ke)}function $e(s,e,r,t){var U;var i=!Me||(r&Ne)!==0,n=(r&me)!==0,u=(r&Be)!==0,f=t,c=!0,p=()=>(c&&(c=!1,f=u?V(t):t),f),S;if(n){var ee=N in s||k in s;S=((U=m(s,e))==null?void 0:U.set)??(ee&&e in s?l=>s[e]=l:void 0)}var P,B=!1;n?[P,B]=Fe(()=>s[e]):P=s[e],P===void 0&&t!==void 0&&(P=p(),S&&(i&&Ee(),S(P)));var b;if(i?b=()=>{var l=s[e];return l===void 0?p():(c=!0,l)}:b=()=>{var l=s[e];return l!==void 0&&(f=void 0),l===void 0?f:l},i&&(r&X)===0)return b;if(S){var se=s.$$legacy;return(function(l,E){return arguments.length>0?((!i||!E||se||B)&&S(E?b():l),l):b()})}var I=!1,g=((r&Le)!==0?Re:xe)(()=>(I=!1,b()));n&&y(g);var re=L;return(function(l,E){if(arguments.length>0){const Y=E?y(g):i&&n?Ie(l):l;return W(g,Y),I=!0,f!==void 0&&(f=Y),l}return Te&&I||(re.f&De)!==0?g.v:y(g)})}export{Ye as B,Je as a,Ge as b,Ze as c,Ve as d,ze as i,Qe as l,$e as p,He as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var Xt=t=>{throw TypeError(t)};var Pe=(t,e,n)=>e.has(t)||Xt("Cannot "+n);var w=(t,e,n)=>(Pe(t,e,"read from private field"),n?n.call(t):e.get(t)),U=(t,e,n)=>e.has(t)?Xt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n);import{aL as Ct,o as Zt,aJ as T,g as I,Z as O,aK as ht,bh as Qt,bi as $e}from"./DjhvlsAc.js";class jt{constructor(e,n){this.status=e,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}}class Nt{constructor(e,n){this.status=e,this.location=n}}class Dt extends Error{constructor(e,n,r){super(r),this.status=e,this.text=n}}new URL("sveltekit-internal://");function Ce(t,e){return t==="/"||e==="ignore"?t:e==="never"?t.endsWith("/")?t.slice(0,-1):t:e==="always"&&!t.endsWith("/")?t+"/":t}function je(t){return t.split("%25").map(decodeURI).join("%25")}function Ne(t){for(const e in t)t[e]=decodeURIComponent(t[e]);return t}function xt({href:t}){return t.split("#")[0]}function De(...t){let e=5381;for(const n of t)if(typeof n=="string"){let r=n.length;for(;r;)e=e*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)e=e*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(e>>>0).toString(36)}new TextEncoder;new TextDecoder;function Ve(t){const e=atob(t),n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}const qe=window.fetch;window.fetch=(t,e)=>((t instanceof Request?t.method:(e==null?void 0:e.method)||"GET")!=="GET"&&W.delete(Vt(t)),qe(t,e));const W=new Map;function Ke(t,e){const n=Vt(t,e),r=document.querySelector(n);if(r!=null&&r.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const o=r.getAttribute("data-ttl");return o&&W.set(n,{body:a,init:s,ttl:1e3*Number(o)}),r.getAttribute("data-b64")!==null&&(a=Ve(a)),Promise.resolve(new Response(a,s))}return window.fetch(t,e)}function ze(t,e,n){if(W.size>0){const r=Vt(t,n),a=W.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n==null?void 0:n.cache))return new Response(a.body,a.init);W.delete(r)}}return window.fetch(e,n)}function Vt(t,e){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(t instanceof Request?t.url:t)}]`;if(e!=null&&e.headers||e!=null&&e.body){const a=[];e.headers&&a.push([...new Headers(e.headers)].join(",")),e.body&&(typeof e.body=="string"||ArrayBuffer.isView(e.body))&&a.push(e.body),r+=`[data-hash="${De(...a)}"]`}return r}const Be=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Me(t){const e=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${Ge(t).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return e.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return e.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const o=r.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return Lt(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Lt(String.fromCharCode(...c.slice(2).split("-").map(_=>parseInt(_,16))));const d=Be.exec(c),[,u,y,f,h]=d;return e.push({name:f,matcher:h,optional:!!u,rest:!!y,chained:y?l===1&&o[0]==="":!1}),y?"([^]*?)":u?"([^/]*)?":"([^/]+?)"}return Lt(c)}).join("")}).join("")}/?$`),params:e}}function Fe(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function Ge(t){return t.slice(1).split("/").filter(Fe)}function We(t,e,n){const r={},a=t.slice(1),s=a.filter(i=>i!==void 0);let o=0;for(let i=0;i<e.length;i+=1){const c=e[i];let l=a[i-o];if(c.chained&&c.rest&&o&&(l=a.slice(i-o,i+1).filter(d=>d).join("/"),o=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=e[i+1],u=a[i+1];d&&!d.rest&&d.optional&&u&&c.chained&&(o=0),!d&&!u&&Object.keys(r).length===s.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return r}function Lt(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Ye({nodes:t,server_loads:e,dictionary:n,matchers:r}){const a=new Set(e);return Object.entries(n).map(([i,[c,l,d]])=>{const{pattern:u,params:y}=Me(i),f={id:i,exec:h=>{const _=u.exec(h);if(_)return We(_,y,r)},errors:[1,...d||[]].map(h=>t[h]),layouts:[0,...l||[]].map(o),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(i){const c=i<0;return c&&(i=~i),[c,t[i]]}function o(i){return i===void 0?i:[a.has(i),t[i]]}}function de(t,e=JSON.parse){try{return e(sessionStorage[t])}catch{}}function te(t,e,n=JSON.stringify){const r=n(e);try{sessionStorage[t]=r}catch{}}var ie;const A=((ie=globalThis.__sveltekit_16ujgvz)==null?void 0:ie.base)??"";var ce;const Je=((ce=globalThis.__sveltekit_16ujgvz)==null?void 0:ce.assets)??A??"",He="1766527382432",he="sveltekit:snapshot",pe="sveltekit:scroll",ge="sveltekit:states",Xe="sveltekit:pageurl",M="sveltekit:history",J="sveltekit:navigation",D={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},qt=location.origin;function me(t){if(t instanceof URL)return t;let e=document.baseURI;if(!e){const n=document.getElementsByTagName("base");e=n.length?n[0].href:document.URL}return new URL(t,e)}function kt(){return{x:pageXOffset,y:pageYOffset}}function B(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const ee={...D,"":D.hover};function _e(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function we(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=_e(t)}}function Tt(t,e,n){let r;try{if(r=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const i=location.hash.split("#")[1]||"/";r.hash=`#${i}${r.hash}`}}catch{}const a=t instanceof SVGAElement?t.target.baseVal:t.target,s=!r||!!a||St(r,e,n)||(t.getAttribute("rel")||"").split(/\s+/).includes("external"),o=(r==null?void 0:r.origin)===qt&&t.hasAttribute("download");return{url:r,external:s,target:a,download:o}}function pt(t){let e=null,n=null,r=null,a=null,s=null,o=null,i=t;for(;i&&i!==document.documentElement;)r===null&&(r=B(i,"preload-code")),a===null&&(a=B(i,"preload-data")),e===null&&(e=B(i,"keepfocus")),n===null&&(n=B(i,"noscroll")),s===null&&(s=B(i,"reload")),o===null&&(o=B(i,"replacestate")),i=_e(i);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:ee[r??"off"],preload_data:ee[a??"off"],keepfocus:c(e),noscroll:c(n),reload:c(s),replace_state:c(o)}}function ne(t){const e=Ct(t);let n=!0;function r(){n=!0,e.update(o=>o)}function a(o){n=!1,e.set(o)}function s(o){let i;return e.subscribe(c=>{(i===void 0||n&&c!==i)&&o(i=c)})}return{notify:r,set:a,subscribe:s}}const ve={v:()=>{}};function Ze(){const{set:t,subscribe:e}=Ct(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${Je}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const o=(await a.json()).version!==He;return o&&(t(!0),ve.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:e,check:r}}function St(t,e,n){return t.origin!==qt||!t.pathname.startsWith(e)?!0:n?t.pathname!==location.pathname:!1}function xn(t){}const ye=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ye];const Qe=new Set([...ye]);[...Qe];function tn(t){return t.filter(e=>e!=null)}function Kt(t){return t instanceof jt||t instanceof Dt?t.status:500}function en(t){return t instanceof Dt?t.text:"Internal Error"}let R,H,At;const nn=Zt.toString().includes("$$")||/function \w+\(\) \{\}/.test(Zt.toString());var et,nt,at,rt,ot,st,it,ct,le,lt,fe,ft,ue;nn?(R={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},H={current:null},At={current:!1}):(R=new(le=class{constructor(){U(this,et,T({}));U(this,nt,T(null));U(this,at,T(null));U(this,rt,T({}));U(this,ot,T({id:null}));U(this,st,T({}));U(this,it,T(-1));U(this,ct,T(new URL("https://example.com")))}get data(){return I(w(this,et))}set data(e){O(w(this,et),e)}get form(){return I(w(this,nt))}set form(e){O(w(this,nt),e)}get error(){return I(w(this,at))}set error(e){O(w(this,at),e)}get params(){return I(w(this,rt))}set params(e){O(w(this,rt),e)}get route(){return I(w(this,ot))}set route(e){O(w(this,ot),e)}get state(){return I(w(this,st))}set state(e){O(w(this,st),e)}get status(){return I(w(this,it))}set status(e){O(w(this,it),e)}get url(){return I(w(this,ct))}set url(e){O(w(this,ct),e)}},et=new WeakMap,nt=new WeakMap,at=new WeakMap,rt=new WeakMap,ot=new WeakMap,st=new WeakMap,it=new WeakMap,ct=new WeakMap,le),H=new(fe=class{constructor(){U(this,lt,T(null))}get current(){return I(w(this,lt))}set current(e){O(w(this,lt),e)}},lt=new WeakMap,fe),At=new(ue=class{constructor(){U(this,ft,T(!1))}get current(){return I(w(this,ft))}set current(e){O(w(this,ft),e)}},ft=new WeakMap,ue),ve.v=()=>At.current=!0);function be(t){Object.assign(R,t)}const an=new Set(["icon","shortcut icon","apple-touch-icon"]),q=de(pe)??{},X=de(he)??{},N={url:ne({}),page:ne({}),navigating:Ct(null),updated:Ze()};function zt(t){q[t]=kt()}function rn(t,e){let n=t+1;for(;q[n];)delete q[n],n+=1;for(n=e+1;X[n];)delete X[n],n+=1}function Z(t,e=!1){return e?location.replace(t.href):location.href=t.href,new Promise(()=>{})}async function ke(){if("serviceWorker"in navigator){const t=await navigator.serviceWorker.getRegistration(A||"/");t&&await t.update()}}function ae(){}let Bt,It,gt,$,Ot,b;const mt=[],_t=[];let v=null;function Pt(){var t;(t=v==null?void 0:v.fork)==null||t.then(e=>e==null?void 0:e.discard()),v=null}const dt=new Map,Se=new Set,on=new Set,Y=new Set;let m={branch:[],error:null,url:null},Ee=!1,wt=!1,re=!0,Q=!1,G=!1,Re=!1,Mt=!1,Ft,S,L,V;const vt=new Set,oe=new Map;async function Tn(t,e,n){var s,o,i,c,l;(s=globalThis.__sveltekit_16ujgvz)!=null&&s.data&&globalThis.__sveltekit_16ujgvz.data,document.URL!==location.href&&(location.href=location.href),b=t,await((i=(o=t.hooks).init)==null?void 0:i.call(o)),Bt=Ye(t),$=document.documentElement,Ot=e,It=t.nodes[0],gt=t.nodes[1],It(),gt(),S=(c=history.state)==null?void 0:c[M],L=(l=history.state)==null?void 0:l[J],S||(S=L=Date.now(),history.replaceState({...history.state,[M]:S,[J]:L},""));const r=q[S];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await yn(Ot,n)):(await F({type:"enter",url:me(b.hash?Sn(new URL(location.href)):location.href),replace_state:!0}),a()),vn()}function sn(){mt.length=0,Mt=!1}function xe(t){_t.some(e=>e==null?void 0:e.snapshot)&&(X[t]=_t.map(e=>{var n;return(n=e==null?void 0:e.snapshot)==null?void 0:n.capture()}))}function Le(t){var e;(e=X[t])==null||e.forEach((n,r)=>{var a,s;(s=(a=_t[r])==null?void 0:a.snapshot)==null||s.restore(n)})}function se(){zt(S),te(pe,q),xe(L),te(he,X)}async function cn(t,e,n,r){let a;e.invalidateAll&&Pt(),await F({type:"goto",url:me(t),keepfocus:e.keepFocus,noscroll:e.noScroll,replace_state:e.replaceState,state:e.state,redirect_count:n,nav_token:r,accept:()=>{e.invalidateAll&&(Mt=!0,a=[...oe.keys()]),e.invalidate&&e.invalidate.forEach(wn)}}),e.invalidateAll&&ht().then(ht).then(()=>{oe.forEach(({resource:s},o)=>{var i;a!=null&&a.includes(o)&&((i=s.refresh)==null||i.call(s))})})}async function ln(t){if(t.id!==(v==null?void 0:v.id)){Pt();const e={};if(vt.add(e),v={id:t.id,token:e,promise:Ue({...t,preload:e}).then(n=>(vt.delete(e),n.type==="loaded"&&n.state.error&&Pt(),n)),fork:null},Qt){const n=v;n.fork=n.promise.then(r=>{if(n===v&&r.type==="loaded")try{return Qt(()=>{Ft.$set(r.props),be(r.props.page)})}catch{}return null})}}return v.promise}async function Ut(t){var n;const e=(n=await Et(t,!1))==null?void 0:n.route;e&&await Promise.all([...e.layouts,e.leaf].map(r=>r==null?void 0:r[1]()))}async function Ae(t,e,n){var a;m=t.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(R,t.props.page),Ft=new b.root({target:e,props:{...t.props,stores:N,components:_t},hydrate:n,sync:!1}),await Promise.resolve(),Le(L),n){const s={from:null,to:{params:m.params,route:{id:((a=m.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};Y.forEach(o=>o(s))}wt=!0}function yt({url:t,params:e,branch:n,status:r,error:a,route:s,form:o}){let i="never";if(A&&(t.pathname===A||t.pathname===A+"/"))i="always";else for(const f of n)(f==null?void 0:f.slash)!==void 0&&(i=f.slash);t.pathname=Ce(t.pathname,i),t.search=t.search;const c={type:"loaded",state:{url:t,params:e,branch:n,error:a,route:s},props:{constructors:tn(n).map(f=>f.node.component),page:Ht(R)}};o!==void 0&&(c.props.form=o);let l={},d=!R,u=0;for(let f=0;f<Math.max(n.length,m.branch.length);f+=1){const h=n[f],_=m.branch[f];(h==null?void 0:h.data)!==(_==null?void 0:_.data)&&(d=!0),h&&(l={...l,...h.data},d&&(c.props[`data_${u}`]=l),u+=1)}return(!m.url||t.href!==m.url.href||m.error!==a||o!==void 0&&o!==R.form||d)&&(c.props.page={error:a,params:e,route:{id:(s==null?void 0:s.id)??null},state:{},status:r,url:new URL(t),form:o??null,data:d?l:R.data}),c}async function Gt({loader:t,parent:e,url:n,params:r,route:a,server_data_node:s}){var l,d;let o=null;const i={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await t();return{node:c,loader:t,server:s,universal:(l=c.universal)!=null&&l.load?{type:"data",data:o,uses:i}:null,data:o??(s==null?void 0:s.data)??null,slash:((d=c.universal)==null?void 0:d.trailingSlash)??(s==null?void 0:s.slash)}}function fn(t,e,n){let r=t instanceof Request?t.url:t;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=wt?ze(r,a.href,e):Ke(r,e);return{resolved:a,promise:s}}function un(t,e,n,r,a,s){if(Mt)return!0;if(!a)return!1;if(a.parent&&t||a.route&&e||a.url&&n)return!0;for(const o of a.search_params)if(r.has(o))return!0;for(const o of a.params)if(s[o]!==m.params[o])return!0;for(const o of a.dependencies)if(mt.some(i=>i(new URL(o))))return!0;return!1}function Wt(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}function dn(t,e){if(!t)return new Set(e.searchParams.keys());const n=new Set([...t.searchParams.keys(),...e.searchParams.keys()]);for(const r of n){const a=t.searchParams.getAll(r),s=e.searchParams.getAll(r);a.every(o=>s.includes(o))&&s.every(o=>a.includes(o))&&n.delete(r)}return n}function hn({error:t,url:e,route:n,params:r}){return{type:"loaded",state:{error:t,url:e,route:n,params:r,branch:[]},props:{page:Ht(R),constructors:[]}}}async function Ue({id:t,invalidating:e,url:n,params:r,route:a,preload:s}){if((v==null?void 0:v.id)===t)return vt.delete(v.token),v.promise;const{errors:o,layouts:i,leaf:c}=a,l=[...i,c];o.forEach(g=>g==null?void 0:g().catch(()=>{})),l.forEach(g=>g==null?void 0:g[1]().catch(()=>{}));const d=m.url?t!==bt(m.url):!1,u=m.route?a.id!==m.route.id:!1,y=dn(m.url,n);let f=!1;const h=l.map(async(g,p)=>{var C;if(!g)return;const k=m.branch[p];return g[1]===(k==null?void 0:k.loader)&&!un(f,u,d,y,(C=k.universal)==null?void 0:C.uses,r)?k:(f=!0,Gt({loader:g[1],url:n,params:r,route:a,parent:async()=>{var ut;const P={};for(let K=0;K<p;K+=1)Object.assign(P,(ut=await h[K])==null?void 0:ut.data);return P},server_data_node:Wt(g[0]?{type:"skip"}:null,g[0]?k==null?void 0:k.server:void 0)}))});for(const g of h)g.catch(()=>{});const _=[];for(let g=0;g<l.length;g+=1)if(l[g])try{_.push(await h[g])}catch(p){if(p instanceof Nt)return{type:"redirect",location:p.location};if(vt.has(s))return hn({error:await tt(p,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let k=Kt(p),x;if(p instanceof jt)x=p.body;else{if(await N.updated.check())return await ke(),await Z(n);x=await tt(p,{params:r,url:n,route:{id:a.id}})}const C=await pn(g,_,o);return C?yt({url:n,params:r,branch:_.slice(0,C.idx).concat(C.node),status:k,error:x,route:a}):await Ie(n,{id:a.id},x,k)}else _.push(void 0);return yt({url:n,params:r,branch:_,status:200,error:null,route:a,form:e?void 0:null})}async function pn(t,e,n){for(;t--;)if(n[t]){let r=t;for(;!e[r];)r-=1;try{return{idx:r+1,node:{node:await n[t](),loader:n[t],data:{},server:null,universal:null}}}catch{continue}}}async function Yt({status:t,error:e,url:n,route:r}){const a={};let s=null;try{const o=await Gt({loader:It,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:Wt(s)}),i={node:await gt(),loader:gt,universal:null,server:null,data:null};return yt({url:n,params:a,branch:[o,i],status:t,error:e,route:null})}catch(o){if(o instanceof Nt)return cn(new URL(o.location,location.href),{},0);throw o}}async function gn(t){const e=t.href;if(dt.has(e))return dt.get(e);let n;try{const r=(async()=>{let a=await b.hooks.reroute({url:new URL(t),fetch:async(s,o)=>fn(s,o,t).promise})??t;if(typeof a=="string"){const s=new URL(t);b.hash?s.hash=a:s.pathname=a,a=s}return a})();dt.set(e,r),n=await r}catch{dt.delete(e);return}return n}async function Et(t,e){if(t&&!St(t,A,b.hash)){const n=await gn(t);if(!n)return;const r=mn(n);for(const a of Bt){const s=a.exec(r);if(s)return{id:bt(t),invalidating:e,route:a,params:Ne(s),url:t}}}}function mn(t){return je(b.hash?t.hash.replace(/^#/,"").replace(/[?#].+/,""):t.pathname.slice(A.length))||"/"}function bt(t){return(b.hash?t.hash.replace(/^#/,""):t.pathname)+t.search}function Te({url:t,type:e,intent:n,delta:r,event:a}){let s=!1;const o=Jt(m,n,t,e);r!==void 0&&(o.navigation.delta=r),a!==void 0&&(o.navigation.event=a);const i={...o.navigation,cancel:()=>{s=!0,o.reject(new Error("navigation cancelled"))}};return Q||Se.forEach(c=>c(i)),s?null:o}async function F({type:t,url:e,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o={},redirect_count:i=0,nav_token:c={},accept:l=ae,block:d=ae,event:u}){var K;const y=V;V=c;const f=await Et(e,!1),h=t==="enter"?Jt(m,f,e,t):Te({url:e,type:t,delta:n==null?void 0:n.delta,intent:f,event:u});if(!h){d(),V===c&&(V=y);return}const _=S,g=L;l(),Q=!0,wt&&h.navigation.type!=="enter"&&N.navigating.set(H.current=h.navigation);let p=f&&await Ue(f);if(!p){if(St(e,A,b.hash))return await Z(e,s);p=await Ie(e,{id:null},await tt(new Dt(404,"Not Found",`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404,s)}if(e=(f==null?void 0:f.url)||e,V!==c)return h.reject(new Error("navigation aborted")),!1;if(p.type==="redirect"){if(i<20){await F({type:t,url:new URL(p.location,e),popped:n,keepfocus:r,noscroll:a,replace_state:s,state:o,redirect_count:i+1,nav_token:c}),h.fulfil(void 0);return}p=await Yt({status:500,error:await tt(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}})}else p.props.page.status>=400&&await N.updated.check()&&(await ke(),await Z(e,s));if(sn(),zt(_),xe(g),p.props.page.url.pathname!==e.pathname&&(e.pathname=p.props.page.url.pathname),o=n?n.state:o,!n){const E=s?0:1,z={[M]:S+=E,[J]:L+=E,[ge]:o};(s?history.replaceState:history.pushState).call(history,z,"",e),s||rn(S,L)}const k=f&&(v==null?void 0:v.id)===f.id?v.fork:null;v=null,p.props.page.state=o;let x;if(wt){const E=(await Promise.all(Array.from(on,j=>j(h.navigation)))).filter(j=>typeof j=="function");if(E.length>0){let j=function(){E.forEach(Rt=>{Y.delete(Rt)})};E.push(j),E.forEach(Rt=>{Y.add(Rt)})}m=p.state,p.props.page&&(p.props.page.url=e);const z=k&&await k;z?x=z.commit():(Ft.$set(p.props),be(p.props.page),x=(K=$e)==null?void 0:K()),Re=!0}else await Ae(p,Ot,!1);const{activeElement:C}=document;await x,await ht(),await ht();let P=n?n.scroll:a?kt():null;if(re){const E=e.hash&&document.getElementById(Oe(e));if(P)scrollTo(P.x,P.y);else if(E){E.scrollIntoView();const{top:z,left:j}=E.getBoundingClientRect();P={x:pageXOffset+j,y:pageYOffset+z}}else scrollTo(0,0)}const ut=document.activeElement!==C&&document.activeElement!==document.body;!r&&!ut&&kn(e,P),re=!0,p.props.page&&Object.assign(R,p.props.page),Q=!1,t==="popstate"&&Le(L),h.fulfil(void 0),Y.forEach(E=>E(h.navigation)),N.navigating.set(H.current=null)}async function Ie(t,e,n,r,a){return t.origin===qt&&t.pathname===location.pathname&&!Ee?await Yt({status:r,error:n,url:t,route:e}):await Z(t,a)}function _n(){let t,e,n;$.addEventListener("mousemove",i=>{const c=i.target;clearTimeout(t),t=setTimeout(()=>{s(c,D.hover)},20)});function r(i){i.defaultPrevented||s(i.composedPath()[0],D.tap)}$.addEventListener("mousedown",r),$.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(i=>{for(const c of i)c.isIntersecting&&(Ut(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(i,c){const l=we(i,$),d=l===e&&c>=n;if(!l||d)return;const{url:u,external:y,download:f}=Tt(l,A,b.hash);if(y||f)return;const h=pt(l),_=u&&bt(m.url)===bt(u);if(!(h.reload||_))if(c<=h.preload_data){e=l,n=D.tap;const g=await Et(u,!1);if(!g)return;ln(g)}else c<=h.preload_code&&(e=l,n=c,Ut(u))}function o(){a.disconnect();for(const i of $.querySelectorAll("a")){const{url:c,external:l,download:d}=Tt(i,A,b.hash);if(l||d)continue;const u=pt(i);u.reload||(u.preload_code===D.viewport&&a.observe(i),u.preload_code===D.eager&&Ut(c))}}Y.add(o),o()}function tt(t,e){if(t instanceof jt)return t.body;const n=Kt(t),r=en(t);return b.hooks.handleError({error:t,event:e,status:n,message:r})??{message:r}}function wn(t){if(typeof t=="function")mt.push(t);else{const{href:e}=new URL(t,location.href);mt.push(n=>n.href===e)}}function vn(){var e;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(se(),!Q){const a=Jt(m,void 0,null,"leave"),s={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};Se.forEach(o=>o(s))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&se()}),(e=navigator.connection)!=null&&e.saveData||_n(),$.addEventListener("click",async n=>{if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=we(n.composedPath()[0],$);if(!r)return;const{url:a,external:s,target:o,download:i}=Tt(r,A,b.hash);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const c=pt(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||i)return;const[d,u]=(b.hash?a.hash.replace(/^#/,""):a.href).split("#"),y=d===xt(location);if(s||c.reload&&(!y||!u)){Te({url:a,type:"link",event:n})?Q=!0:n.preventDefault();return}if(u!==void 0&&y){const[,f]=m.url.href.split("#");if(f===u){if(n.preventDefault(),u===""||u==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=r.ownerDocument.getElementById(decodeURIComponent(u));h&&(h.scrollIntoView(),h.focus())}return}if(G=!0,zt(S),t(a),!c.replace_state)return;G=!1}n.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await F({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href,event:n})}),$.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formTarget)||r.target)==="_blank"||((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(St(i,A,!1))return;const c=n.target,l=pt(c);if(l.reload)return;n.preventDefault(),n.stopPropagation();const d=new FormData(c,a);i.search=new URLSearchParams(d).toString(),F({type:"form",url:i,keepfocus:l.keepfocus,noscroll:l.noscroll,replace_state:l.replace_state??i.href===location.href,event:n})}),addEventListener("popstate",async n=>{var r;if(!$t){if((r=n.state)!=null&&r[M]){const a=n.state[M];if(V={},a===S)return;const s=q[a],o=n.state[ge]??{},i=new URL(n.state[Xe]??location.href),c=n.state[J],l=m.url?xt(location)===xt(m.url):!1;if(c===L&&(Re||l)){o!==R.state&&(R.state=o),t(i),q[S]=kt(),s&&scrollTo(s.x,s.y),S=a;return}const u=a-S;await F({type:"popstate",url:i,popped:{state:o,scroll:s,delta:u},accept:()=>{S=a,L=c},block:()=>{history.go(-u)},nav_token:V,event:n})}else if(!G){const a=new URL(location.href);t(a),b.hash&&location.reload()}}}),addEventListener("hashchange",()=>{G&&(G=!1,history.replaceState({...history.state,[M]:++S,[J]:L},"",location.href))});for(const n of document.querySelectorAll("link"))an.has(n.rel)&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&N.navigating.set(H.current=null)});function t(n){m.url=R.url=n,N.page.set(Ht(R)),N.page.notify()}}async function yn(t,{status:e=200,error:n,node_ids:r,params:a,route:s,server_route:o,data:i,form:c}){Ee=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await Et(l,!1)||{}),d=Bt.find(({id:f})=>f===s.id);let u,y=!0;try{const f=r.map(async(_,g)=>{const p=i[g];return p!=null&&p.uses&&(p.uses=bn(p.uses)),Gt({loader:b.nodes[_],url:l,params:a,route:s,parent:async()=>{const k={};for(let x=0;x<g;x+=1)Object.assign(k,(await f[x]).data);return k},server_data_node:Wt(p)})}),h=await Promise.all(f);if(d){const _=d.layouts;for(let g=0;g<_.length;g++)_[g]||h.splice(g,0,void 0)}u=yt({url:l,params:a,branch:h,status:e,error:n,form:c,route:d??null})}catch(f){if(f instanceof Nt){await Z(new URL(f.location,location.href));return}u=await Yt({status:Kt(f),error:await tt(f,{url:l,params:a,route:s}),url:l,route:s}),t.textContent="",y=!1}u.props.page&&(u.props.page.state={}),await Ae(u,t,y)}function bn(t){return{dependencies:new Set((t==null?void 0:t.dependencies)??[]),params:new Set((t==null?void 0:t.params)??[]),parent:!!(t!=null&&t.parent),route:!!(t!=null&&t.route),url:!!(t!=null&&t.url),search_params:new Set((t==null?void 0:t.search_params)??[])}}let $t=!1;function kn(t,e=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const r=Oe(t);if(r&&document.getElementById(r)){const{x:s,y:o}=e??kt();setTimeout(()=>{const i=history.state;$t=!0,location.replace(`#${r}`),b.hash&&location.replace(t.hash),history.replaceState(i,"",t.hash),scrollTo(s,o),$t=!1})}else{const s=document.body,o=s.getAttribute("tabindex");s.tabIndex=-1,s.focus({preventScroll:!0,focusVisible:!1}),o!==null?s.setAttribute("tabindex",o):s.removeAttribute("tabindex")}const a=getSelection();if(a&&a.type!=="None"){const s=[];for(let o=0;o<a.rangeCount;o+=1)s.push(a.getRangeAt(o));setTimeout(()=>{if(a.rangeCount===s.length){for(let o=0;o<a.rangeCount;o+=1){const i=s[o],c=a.getRangeAt(o);if(i.commonAncestorContainer!==c.commonAncestorContainer||i.startContainer!==c.startContainer||i.endContainer!==c.endContainer||i.startOffset!==c.startOffset||i.endOffset!==c.endOffset)return}a.removeAllRanges()}})}}}function Jt(t,e,n,r){var c,l;let a,s;const o=new Promise((d,u)=>{a=d,s=u});return o.catch(()=>{}),{navigation:{from:{params:t.params,route:{id:((c=t.route)==null?void 0:c.id)??null},url:t.url},to:n&&{params:(e==null?void 0:e.params)??null,route:{id:((l=e==null?void 0:e.route)==null?void 0:l.id)??null},url:n},willUnload:!e,type:r,complete:o},fulfil:a,reject:s}}function Ht(t){return{data:t.data,error:t.error,form:t.form,params:t.params,route:t.route,state:t.state,status:t.status,url:t.url}}function Sn(t){const e=new URL(t);return e.hash=decodeURIComponent(t.hash),e}function Oe(t){let e;if(b.hash){const[,,n]=t.hash.split("#",3);e=n??""}else e=t.hash.slice(1);return decodeURIComponent(e)}export{Tn as a,xn as l,R as p,N as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as d,q as E,T as h,v as T,w as m,x as f,y as o,E as g,z as N,A as v,B as w,C as y}from"./DjhvlsAc.js";function p(r){var n=document.createElement("template");return n.innerHTML=r.replaceAll("<!>","<!---->"),n.content}function a(r,n){var e=m;e.nodes===null&&(e.nodes={start:r,end:n,a:null,t:null})}function M(r,n){var e=(n&h)!==0,l=(n&T)!==0,t,i=!r.startsWith("<!>");return()=>{if(f)return a(o,null),o;t===void 0&&(t=p(i?r:"<!>"+r),e||(t=d(t)));var s=l||E?document.importNode(t,!0):t.cloneNode(!0);if(e){var _=d(s),u=s.lastChild;a(_,u)}else a(s,s);return s}}function x(r,n,e="svg"){var l=!r.startsWith("<!>"),t=`<${e}>${l?r:"<!>"+r}</${e}>`,i;return()=>{if(f)return a(o,null),o;if(!i){var s=p(t),_=d(s);i=d(_)}var u=i.cloneNode(!0);return a(u,u),u}}function F(r,n){return x(r,n,"svg")}function L(r=""){if(!f){var n=v(r+"");return a(n,n),n}var e=o;return e.nodeType!==w&&(e.before(e=v()),y(e)),a(e,e),e}function O(){if(f)return a(o,null),o;var r=document.createDocumentFragment(),n=document.createComment(""),e=v();return r.append(n,e),a(n,e),r}function P(r,n){if(f){var e=m;((e.f&g)===0||e.nodes.end===null)&&(e.nodes.end=o),N();return}r!==null&&r.before(n)}const A="5";var c;typeof window<"u"&&((c=window.__svelte??(window.__svelte={})).v??(c.v=new Set)).add(A);export{P as a,a as b,O as c,p as d,F as e,M as f,L as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var kt=Object.defineProperty;var ht=e=>{throw TypeError(e)};var St=(e,t,i)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var ct=(e,t,i)=>St(e,typeof t!="symbol"?t+"":t,i),K=(e,t,i)=>t.has(e)||ht("Cannot "+i);var s=(e,t,i)=>(K(e,t,"read from private field"),i?i.call(e):t.get(e)),u=(e,t,i)=>t.has(e)?ht("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),n=(e,t,i,a)=>(K(e,t,"write to private field"),a?a.call(e,i):t.set(e,i),i),_=(e,t,i)=>(K(e,t,"access private method"),i);import{ai as At,g as gt,ae as vt,S as Rt,b as Nt,aj as ft,U as ot,y as L,x as O,w as x,L as Dt,z as Lt,ak as lt,O as Ot,I as D,al as j,H as X,A as yt,ag as U,am as V,an as dt,ao as Ct,ap as tt,c as bt,J as Ft,aq as It,G as Z,C as $,ar as Mt,P as Pt,as as _t,at as Vt,M as Bt,au as Ht,av as xt,aw as Wt,$ as Yt,ax as jt,a0 as qt,ay as et,n as zt,az as Gt,aA as Ut,aB as st,Q as q,aC as $t,aD as Jt,aE as Qt,aF as Kt,p as Xt,aG as Zt,aH as te,i as ee}from"./DjhvlsAc.js";import{b as se}from"./CWc5urbQ.js";function ie(e){let t=0,i=vt(0),a;return()=>{At()&&(gt(i),Rt(()=>(t===0&&(a=Nt(()=>e(()=>ft(i)))),t+=1,()=>{ot(()=>{t-=1,t===0&&(a==null||a(),a=void 0,ft(i))})})))}}var re=Bt|Ht|xt;function ne(e,t,i){new ae(e,t,i)}var g,p,W,E,C,m,v,d,w,S,A,F,R,I,N,J,l,Et,mt,it,z,G,rt;class ae{constructor(t,i,a){u(this,l);ct(this,"parent");u(this,g,!1);u(this,p);u(this,W,O?L:null);u(this,E);u(this,C);u(this,m);u(this,v,null);u(this,d,null);u(this,w,null);u(this,S,null);u(this,A,null);u(this,F,0);u(this,R,0);u(this,I,!1);u(this,N,null);u(this,J,ie(()=>(n(this,N,vt(s(this,F))),()=>{n(this,N,null)})));n(this,p,t),n(this,E,i),n(this,C,a),this.parent=x.b,n(this,g,!!s(this,E).pending),n(this,m,Dt(()=>{if(x.b=this,O){const r=s(this,W);Lt(),r.nodeType===lt&&r.data===Ot?_(this,l,mt).call(this):_(this,l,Et).call(this)}else{var o=_(this,l,it).call(this);try{n(this,v,D(()=>a(o)))}catch(r){this.error(r)}s(this,R)>0?_(this,l,G).call(this):n(this,g,!1)}return()=>{var r;(r=s(this,A))==null||r.remove()}},re)),O&&n(this,p,L)}is_pending(){return s(this,g)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!s(this,E).pending}update_pending_count(t){_(this,l,rt).call(this,t),n(this,F,s(this,F)+t),s(this,N)&&It(s(this,N),s(this,F))}get_effect_pending(){return s(this,J).call(this),gt(s(this,N))}error(t){var i=s(this,E).onerror;let a=s(this,E).failed;if(s(this,I)||!i&&!a)throw t;s(this,v)&&(Z(s(this,v)),n(this,v,null)),s(this,d)&&(Z(s(this,d)),n(this,d,null)),s(this,w)&&(Z(s(this,w)),n(this,w,null)),O&&($(s(this,W)),Mt(),$(Pt()));var o=!1,r=!1;const h=()=>{if(o){Wt();return}o=!0,r&&Vt(),j.ensure(),n(this,F,0),s(this,w)!==null&&X(s(this,w),()=>{n(this,w,null)}),n(this,g,this.has_pending_snippet()),n(this,v,_(this,l,z).call(this,()=>(n(this,I,!1),D(()=>s(this,C).call(this,s(this,p)))))),s(this,R)>0?_(this,l,G).call(this):n(this,g,!1)};var b=tt;try{V(null),r=!0,i==null||i(t,h),r=!1}catch(y){_t(y,s(this,m)&&s(this,m).parent)}finally{V(b)}a&&ot(()=>{n(this,w,_(this,l,z).call(this,()=>{j.ensure(),n(this,I,!0);try{return D(()=>{a(s(this,p),()=>t,()=>h)})}catch(y){return _t(y,s(this,m).parent),null}finally{n(this,I,!1)}}))})}}g=new WeakMap,p=new WeakMap,W=new WeakMap,E=new WeakMap,C=new WeakMap,m=new WeakMap,v=new WeakMap,d=new WeakMap,w=new WeakMap,S=new WeakMap,A=new WeakMap,F=new WeakMap,R=new WeakMap,I=new WeakMap,N=new WeakMap,J=new WeakMap,l=new WeakSet,Et=function(){try{n(this,v,D(()=>s(this,C).call(this,s(this,p))))}catch(t){this.error(t)}n(this,g,!1)},mt=function(){const t=s(this,E).pending;t&&(n(this,d,D(()=>t(s(this,p)))),j.enqueue(()=>{var i=_(this,l,it).call(this);n(this,v,_(this,l,z).call(this,()=>(j.ensure(),D(()=>s(this,C).call(this,i))))),s(this,R)>0?_(this,l,G).call(this):(X(s(this,d),()=>{n(this,d,null)}),n(this,g,!1))}))},it=function(){var t=s(this,p);return s(this,g)&&(n(this,A,yt()),s(this,p).before(s(this,A)),t=s(this,A)),t},z=function(t){var i=x,a=tt,o=bt;U(s(this,m)),V(s(this,m)),dt(s(this,m).ctx);try{return t()}catch(r){return Ct(r),null}finally{U(i),V(a),dt(o)}},G=function(){const t=s(this,E).pending;s(this,v)!==null&&(n(this,S,document.createDocumentFragment()),s(this,S).append(s(this,A)),Ft(s(this,v),s(this,S))),s(this,d)===null&&n(this,d,D(()=>t(s(this,p))))},rt=function(t){var i;if(!this.has_pending_snippet()){this.parent&&_(i=this.parent,l,rt).call(i,t);return}n(this,R,s(this,R)+t),s(this,R)===0&&(n(this,g,!1),s(this,d)&&X(s(this,d),()=>{n(this,d,null)}),s(this,S)&&(s(this,p).before(s(this,S)),n(this,S,null)))};function ge(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const oe=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ve(e){return oe.includes(e)}const le={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function ye(e){return e=e.toLowerCase(),le[e]??e}const ue=["touchstart","touchmove"];function he(e){return ue.includes(e)}const wt=new Set,nt=new Set;function ce(e,t,i,a={}){function o(r){if(a.capture||H.call(t,r),!r.cancelBubble)return jt(()=>i==null?void 0:i.call(this,r))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?ot(()=>{t.addEventListener(e,o,a)}):t.addEventListener(e,o,a),o}function be(e,t,i,a,o){var r={capture:a,passive:o},h=ce(e,t,i,r);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Yt(()=>{t.removeEventListener(e,h,r)})}function Ee(e){for(var t=0;t<e.length;t++)wt.add(e[t]);for(var i of nt)i(e)}let pt=null;function H(e){var ut;var t=this,i=t.ownerDocument,a=e.type,o=((ut=e.composedPath)==null?void 0:ut.call(e))||[],r=o[0]||e.target;pt=e;var h=0,b=pt===e&&e.__root;if(b){var y=o.indexOf(b);if(y!==-1&&(t===document||t===window)){e.__root=t;return}var M=o.indexOf(t);if(M===-1)return;y<=M&&(h=y)}if(r=o[h]||e.target,r!==t){qt(e,"currentTarget",{configurable:!0,get(){return r||i}});var Q=tt,T=x;V(null),U(null);try{for(var c,f=[];r!==null;){var k=r.assignedSlot||r.parentNode||r.host||null;try{var B=r["__"+a];B!=null&&(!r.disabled||e.target===r)&&B.call(r,e)}catch(Y){c?f.push(Y):c=Y}if(e.cancelBubble||k===t||k===null)break;r=k}if(c){for(let Y of f)queueMicrotask(()=>{throw Y});throw c}}finally{e.__root=t,delete e.currentTarget,V(Q),U(T)}}}function me(e,t){var i=t==null?"":typeof t=="object"?t+"":t;i!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=i,e.nodeValue=i+"")}function fe(e,t){return Tt(e,t)}function we(e,t){et(),t.intro=t.intro??!1;const i=t.target,a=O,o=L;try{for(var r=zt(i);r&&(r.nodeType!==lt||r.data!==Gt);)r=Ut(r);if(!r)throw st;q(!0),$(r);const h=Tt(e,{...t,anchor:r});return q(!1),h}catch(h){if(h instanceof Error&&h.message.split(`
|
|
2
|
+
`).some(b=>b.startsWith("https://svelte.dev/e/")))throw h;return h!==st&&console.warn("Failed to hydrate: ",h),t.recover===!1&&$t(),et(),Jt(i),q(!1),fe(e,t)}finally{q(a),$(o)}}const P=new Map;function Tt(e,{target:t,anchor:i,props:a={},events:o,context:r,intro:h=!0}){et();var b=new Set,y=T=>{for(var c=0;c<T.length;c++){var f=T[c];if(!b.has(f)){b.add(f);var k=he(f);t.addEventListener(f,H,{passive:k});var B=P.get(f);B===void 0?(document.addEventListener(f,H,{passive:k}),P.set(f,1)):P.set(f,B+1)}}};y(Qt(wt)),nt.add(y);var M=void 0,Q=Kt(()=>{var T=i??t.appendChild(yt());return ne(T,{pending:()=>{}},c=>{if(r){Xt({});var f=bt;f.c=r}if(o&&(a.$$events=o),O&&se(c,null),M=e(c,a)||{},O&&(x.nodes.end=L,L===null||L.nodeType!==lt||L.data!==Zt))throw te(),st;r&&ee()}),()=>{var k;for(var c of b){t.removeEventListener(c,H);var f=P.get(c);--f===0?(document.removeEventListener(c,H),P.delete(c)):P.set(c,f)}nt.delete(y),T!==i&&((k=T.parentNode)==null||k.removeChild(T))}});return at.set(M,Q),M}let at=new WeakMap;function Te(e,t){const i=at.get(e);return i?(at.delete(e),i(t)):Promise.resolve()}export{ve as a,ce as c,Ee as d,be as e,we as h,ge as i,fe as m,ye as n,me as s,Te as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var En=Object.defineProperty;var bt=e=>{throw TypeError(e)};var mn=(e,t,n)=>t in e?En(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var V=(e,t,n)=>mn(e,typeof t!="symbol"?t+"":t,n),Ze=(e,t,n)=>t.has(e)||bt("Cannot "+n);var w=(e,t,n)=>(Ze(e,t,"read from private field"),n?n.call(e):t.get(e)),H=(e,t,n)=>t.has(e)?bt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),_e=(e,t,n,r)=>(Ze(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),I=(e,t,n)=>(Ze(e,t,"access private method"),n);var Dt=Array.isArray,gn=Array.prototype.indexOf,vr=Array.from,dr=Object.defineProperty,ke=Object.getOwnPropertyDescriptor,bn=Object.getOwnPropertyDescriptors,Tn=Object.prototype,An=Array.prototype,Nt=Object.getPrototypeOf,Tt=Object.isExtensible;function pr(e){return typeof e=="function"}const he=()=>{};function hr(e){return e()}function Pt(e){for(var t=0;t<e.length;t++)e[t]()}function Ct(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function yr(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const b=2,ot=4,Ve=8,It=1<<24,U=16,B=32,ce=64,ut=128,M=512,A=1024,O=2048,j=4096,Y=8192,z=16384,ct=32768,Fe=65536,Qe=1<<17,Ft=1<<18,Pe=1<<19,Mt=1<<20,wr=1<<25,ie=32768,et=1<<21,_t=1<<22,X=1<<23,re=Symbol("$state"),Er=Symbol("legacy props"),mr=Symbol(""),de=new class extends Error{constructor(){super(...arguments);V(this,"name","StaleReactionError");V(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},vt=3,jt=8;function Sn(e){throw new Error("https://svelte.dev/e/experimental_async_required")}function Ge(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Rn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function kn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function On(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nn(){throw new Error("https://svelte.dev/e/fork_discarded")}function Pn(){throw new Error("https://svelte.dev/e/fork_timing")}function br(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cn(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Tr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function In(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Mn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ar(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Sr=1,Rr=2,xr=4,kr=8,Or=16,Dr=1,Nr=2,Pr=4,Cr=8,Ir=16,Fr=1,Mr=2,jn="[",Ln="[!",qn="]",dt={},R=Symbol(),jr="http://www.w3.org/1999/xhtml",Lr="@attach";function pt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function qr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Yr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let ae=!1;function Hr(e){ae=e}let T;function ge(e){if(e===null)throw pt(),dt;return T=e}function Ur(){return ge(J(T))}function Br(e){if(ae){if(J(T)!==null)throw pt(),dt;T=e}}function $r(e=1){if(ae){for(var t=e,n=T;t--;)n=J(n);T=n}}function Vr(e=!0){for(var t=0,n=T;;){if(n.nodeType===jt){var r=n.data;if(r===qn){if(t===0)return n;t-=1}else(r===jn||r===Ln)&&(t+=1)}var s=J(n);e&&n.remove(),n=s}}function Gr(e){if(!e||e.nodeType!==jt)throw pt(),dt;return e.data}function Lt(e){return e===this.v}function qt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Yt(e){return!qt(e,this.v)}let Ce=!1;function Kr(){Ce=!0}let h=null;function Me(e){h=e}function zr(e,t=!1,n){h={p:h,i:!1,c:null,e:null,s:e,x:null,l:Ce&&!t?{s:null,u:null,$:[]}:null}}function Xr(e){var t=h,n=t.e;if(n!==null){t.e=null;for(var r of n)nn(r)}return t.i=!0,h=t.p,{}}function Ie(){return!Ce||h!==null&&h.l===null}let Q=[];function Ht(){var e=Q;Q=[],Pt(e)}function Ut(e){if(Q.length===0&&!Oe){var t=Q;queueMicrotask(()=>{t===Q&&Ht()})}Q.push(e)}function Yn(){for(;Q.length>0;)Ht()}function Hn(e){var t=y;if(t===null)return d.f|=X,e;if((t.f&ct)===0){if((t.f&ut)===0)throw e;t.b.error(e)}else je(e,t)}function je(e,t){for(;t!==null;){if((t.f&ut)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const ee=new Set;let p=null,We=null,m=null,C=[],Ke=null,tt=!1,Oe=!1;var ye,we,te,ne,Ne,Ee,me,S,nt,Re,rt,Bt,$t;const $e=class $e{constructor(){H(this,S);V(this,"committed",!1);V(this,"current",new Map);V(this,"previous",new Map);H(this,ye,new Set);H(this,we,new Set);H(this,te,0);H(this,ne,0);H(this,Ne,null);H(this,Ee,new Set);H(this,me,new Set);V(this,"skipped_effects",new Set);V(this,"is_fork",!1)}is_deferred(){return this.is_fork||w(this,ne)>0}process(t){var r;C=[],We=null,this.apply();var n={parent:null,effect:null,effects:[],render_effects:[]};for(const s of t)I(this,S,nt).call(this,s,n);this.is_fork||I(this,S,Bt).call(this),this.is_deferred()?(I(this,S,Re).call(this,n.effects),I(this,S,Re).call(this,n.render_effects)):(We=this,p=null,At(n.render_effects),At(n.effects),We=null,(r=w(this,Ne))==null||r.resolve()),m=null}capture(t,n){this.previous.has(t)||this.previous.set(t,n),(t.f&X)===0&&(this.current.set(t,t.v),m==null||m.set(t,t.v))}activate(){p=this,this.apply()}deactivate(){p===this&&(p=null,m=null)}flush(){if(this.activate(),C.length>0){if(ft(),p!==null&&p!==this)return}else w(this,te)===0&&this.process([]);this.deactivate()}discard(){for(const t of w(this,we))t(this);w(this,we).clear()}increment(t){_e(this,te,w(this,te)+1),t&&_e(this,ne,w(this,ne)+1)}decrement(t){_e(this,te,w(this,te)-1),t&&_e(this,ne,w(this,ne)-1),this.revive()}revive(){for(const t of w(this,Ee))w(this,me).delete(t),g(t,O),oe(t);for(const t of w(this,me))g(t,j),oe(t);this.flush()}oncommit(t){w(this,ye).add(t)}ondiscard(t){w(this,we).add(t)}settled(){return(w(this,Ne)??_e(this,Ne,Ct())).promise}static ensure(){if(p===null){const t=p=new $e;ee.add(p),Oe||$e.enqueue(()=>{p===t&&t.flush()})}return p}static enqueue(t){Ut(t)}apply(){}};ye=new WeakMap,we=new WeakMap,te=new WeakMap,ne=new WeakMap,Ne=new WeakMap,Ee=new WeakMap,me=new WeakMap,S=new WeakSet,nt=function(t,n){var u;t.f^=A;for(var r=t.first;r!==null;){var s=r.f,f=(s&(B|ce))!==0,o=f&&(s&A)!==0,l=o||(s&Y)!==0||this.skipped_effects.has(r);if((r.f&ut)!==0&&((u=r.b)!=null&&u.is_pending())&&(n={parent:n,effect:r,effects:[],render_effects:[]}),!l&&r.fn!==null){f?r.f^=A:(s&ot)!==0?n.effects.push(r):Se(r)&&((r.f&U)!==0&&w(this,Ee).add(r),Te(r));var a=r.first;if(a!==null){r=a;continue}}var i=r.parent;for(r=r.next;r===null&&i!==null;)i===n.effect&&(I(this,S,Re).call(this,n.effects),I(this,S,Re).call(this,n.render_effects),n=n.parent),r=i.next,i=i.parent}},Re=function(t){for(const n of t)(n.f&O)!==0?w(this,Ee).add(n):(n.f&j)!==0&&w(this,me).add(n),I(this,S,rt).call(this,n.deps),g(n,A)},rt=function(t){if(t!==null)for(const n of t)(n.f&b)===0||(n.f&ie)===0||(n.f^=ie,I(this,S,rt).call(this,n.deps))},Bt=function(){if(w(this,ne)===0){for(const t of w(this,ye))t();w(this,ye).clear()}w(this,te)===0&&I(this,S,$t).call(this)},$t=function(){var f;if(ee.size>1){this.previous.clear();var t=m,n=!0,r={parent:null,effect:null,effects:[],render_effects:[]};for(const o of ee){if(o===this){n=!1;continue}const l=[];for(const[i,u]of this.current){if(o.current.has(i))if(n&&u!==o.current.get(i))o.current.set(i,u);else continue;l.push(i)}if(l.length===0)continue;const a=[...o.current.keys()].filter(i=>!this.current.has(i));if(a.length>0){var s=C;C=[];const i=new Set,u=new Map;for(const c of l)Vt(c,a,i,u);if(C.length>0){p=o,o.apply();for(const c of C)I(f=o,S,nt).call(f,c,r);o.deactivate()}C=s}}p=null,m=t}this.committed=!0,ee.delete(this)};let le=$e;function st(e){var t=Oe;Oe=!0;try{var n;for(e&&(p!==null&&ft(),n=e());;){if(Yn(),C.length===0&&(p==null||p.flush(),C.length===0))return Ke=null,n;ft()}}finally{Oe=t}}function ft(){var e=se;tt=!0;var t=null;try{var n=0;for(Ue(!0);C.length>0;){var r=le.ensure();if(n++>1e3){var s,f;Un()}r.process(C),Z.clear()}}finally{tt=!1,Ue(e),Ke=null}}function Un(){try{Dn()}catch(e){je(e,Ke)}}let F=null;function At(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(z|Y))===0&&Se(r)&&(F=new Set,Te(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?an(r):r.fn=null),(F==null?void 0:F.size)>0)){Z.clear();for(const s of F){if((s.f&(z|Y))!==0)continue;const f=[s];let o=s.parent;for(;o!==null;)F.has(o)&&(F.delete(o),f.push(o)),o=o.parent;for(let l=f.length-1;l>=0;l--){const a=f[l];(a.f&(z|Y))===0&&Te(a)}}F.clear()}}F=null}}function Vt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const f=s.f;(f&b)!==0?Vt(s,t,n,r):(f&(_t|U))!==0&&(f&O)===0&&Kt(s,t,r)&&(g(s,O),oe(s))}}function Gt(e,t){if(e.reactions!==null)for(const n of e.reactions){const r=n.f;(r&b)!==0?Gt(n,t):(r&Qe)!==0&&(g(n,O),t.add(n))}}function Kt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&b)!==0&&Kt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function oe(e){for(var t=Ke=e;t.parent!==null;){t=t.parent;var n=t.f;if(tt&&t===y&&(n&U)!==0&&(n&Ft)===0)return;if((n&(ce|B))!==0){if((n&A)===0)return;t.f^=A}}C.push(t)}function Zr(e){Sn(),p!==null&&Pn();var t=le.ensure();t.is_fork=!0,m=new Map;var n=!1,r=t.settled();st(e),m=null;for(var[s,f]of t.previous)s.v=f;return{commit:async()=>{if(n){await r;return}ee.has(t)||Nn(),n=!0,t.is_fork=!1;for(var[o,l]of t.current)o.v=l;st(()=>{var a=new Set;for(var i of t.current.keys())Gt(i,a);zn(a),Wt()}),t.revive(),await r},discard:()=>{!n&&ee.has(t)&&(ee.delete(t),t.discard())}}}function Bn(e,t,n,r){const s=Ie()?ht:Gn;if(n.length===0&&e.length===0){r(t.map(s));return}var f=p,o=y,l=$n();function a(){Promise.all(n.map(i=>Vn(i))).then(i=>{l();try{r([...t.map(s),...i])}catch(u){(o.f&z)===0&&je(u,o)}f==null||f.deactivate(),Le()}).catch(i=>{je(i,o)})}e.length>0?Promise.all(e).then(()=>{l();try{return a()}finally{f==null||f.deactivate(),Le()}}):a()}function $n(){var e=y,t=d,n=h,r=p;return function(f=!0){be(e),W(t),Me(n),f&&(r==null||r.activate())}}function Le(){be(null),W(null),Me(null)}function ht(e){var t=b|O,n=d!==null&&(d.f&b)!==0?d:null;return y!==null&&(y.f|=Pe),{ctx:h,deps:null,effects:null,equals:Lt,f:t,fn:e,reactions:null,rv:0,v:R,wv:0,parent:n??y,ac:null}}function Vn(e,t){let n=y;n===null&&Rn();var r=n.b,s=void 0,f=wt(R),o=!d,l=new Map;return tr(()=>{var _;var a=Ct();s=a.promise;try{Promise.resolve(e()).then(a.resolve,a.reject).then(()=>{i===p&&i.committed&&i.deactivate(),Le()})}catch(v){a.reject(v),Le()}var i=p;if(o){var u=!r.is_pending();r.update_pending_count(1),i.increment(u),(_=l.get(i))==null||_.reject(de),l.delete(i),l.set(i,a)}const c=(v,E=void 0)=>{if(i.activate(),E)E!==de&&(f.f|=X,it(f,E));else{(f.f&X)!==0&&(f.f^=X),it(f,v);for(const[N,$]of l){if(l.delete(N),N===i)break;$.reject(de)}}o&&(r.update_pending_count(-1),i.decrement(u))};a.promise.then(c,v=>c(null,v||"unknown"))}),Qn(()=>{for(const a of l.values())a.reject(de)}),new Promise(a=>{function i(u){function c(){u===s?a(f):i(s)}u.then(c,c)}i(s)})}function Wr(e){const t=ht(e);return un(t),t}function Gn(e){const t=ht(e);return t.equals=Yt,t}function zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)ue(t[n])}}function Kn(e){for(var t=e.parent;t!==null;){if((t.f&b)===0)return(t.f&z)===0?t:null;t=t.parent}return null}function yt(e){var t,n=y;be(Kn(e));try{e.f&=~ie,zt(e),t=dn(e)}finally{be(n)}return t}function Xt(e){var t=yt(e);if(e.equals(t)||(p!=null&&p.is_fork||(e.v=t),e.wv=_n()),!Ae)if(m!==null)(He()||p!=null&&p.is_fork)&&m.set(e,t);else{var n=(e.f&M)===0?j:A;g(e,n)}}let qe=new Set;const Z=new Map;function zn(e){qe=e}let Zt=!1;function wt(e,t){var n={f:0,v:e,reactions:null,equals:Lt,rv:0,wv:0};return n}function G(e,t){const n=wt(e);return un(n),n}function Jr(e,t=!1,n=!0){var s;const r=wt(e);return t||(r.equals=Yt),Ce&&n&&h!==null&&h.l!==null&&((s=h.l).s??(s.s=[])).push(r),r}function K(e,t,n=!1){d!==null&&(!q||(d.f&Qe)!==0)&&Ie()&&(d.f&(b|U|_t|Qe))!==0&&!(k!=null&&k.includes(e))&&Mn();let r=n?xe(t):t;return it(e,r)}function it(e,t){if(!e.equals(t)){var n=e.v;Ae?Z.set(e,t):Z.set(e,n),e.v=t;var r=le.ensure();r.capture(e,n),(e.f&b)!==0&&((e.f&O)!==0&&yt(e),g(e,(e.f&M)!==0?A:j)),e.wv=_n(),Jt(e,O),Ie()&&y!==null&&(y.f&A)!==0&&(y.f&(B|ce))===0&&(P===null?fr([e]):P.push(e)),!r.is_fork&&qe.size>0&&!Zt&&Wt()}return t}function Wt(){Zt=!1;var e=se;Ue(!0);const t=Array.from(qe);try{for(const n of t)(n.f&A)!==0&&g(n,j),Se(n)&&Te(n)}finally{Ue(e)}qe.clear()}function Qr(e,t=1){var n=pe(e),r=t===1?n++:n--;return K(e,n),r}function Je(e){K(e,e.v+1)}function Jt(e,t){var n=e.reactions;if(n!==null)for(var r=Ie(),s=n.length,f=0;f<s;f++){var o=n[f],l=o.f;if(!(!r&&o===y)){var a=(l&O)===0;if(a&&g(o,t),(l&b)!==0){var i=o;m==null||m.delete(i),(l&ie)===0&&(l&M&&(o.f|=ie),Jt(i,j))}else a&&((l&U)!==0&&F!==null&&F.add(o),oe(o))}}}function xe(e){if(typeof e!="object"||e===null||re in e)return e;const t=Nt(e);if(t!==Tn&&t!==An)return e;var n=new Map,r=Dt(e),s=G(0),f=fe,o=l=>{if(fe===f)return l();var a=d,i=fe;W(null),Ot(f);var u=l();return W(a),Ot(i),u};return r&&n.set("length",G(e.length)),new Proxy(e,{defineProperty(l,a,i){(!("value"in i)||i.configurable===!1||i.enumerable===!1||i.writable===!1)&&In();var u=n.get(a);return u===void 0?u=o(()=>{var c=G(i.value);return n.set(a,c),c}):K(u,i.value,!0),!0},deleteProperty(l,a){var i=n.get(a);if(i===void 0){if(a in l){const u=o(()=>G(R));n.set(a,u),Je(s)}}else K(i,R),Je(s);return!0},get(l,a,i){var v;if(a===re)return e;var u=n.get(a),c=a in l;if(u===void 0&&(!c||(v=ke(l,a))!=null&&v.writable)&&(u=o(()=>{var E=xe(c?l[a]:R),N=G(E);return N}),n.set(a,u)),u!==void 0){var _=pe(u);return _===R?void 0:_}return Reflect.get(l,a,i)},getOwnPropertyDescriptor(l,a){var i=Reflect.getOwnPropertyDescriptor(l,a);if(i&&"value"in i){var u=n.get(a);u&&(i.value=pe(u))}else if(i===void 0){var c=n.get(a),_=c==null?void 0:c.v;if(c!==void 0&&_!==R)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return i},has(l,a){var _;if(a===re)return!0;var i=n.get(a),u=i!==void 0&&i.v!==R||Reflect.has(l,a);if(i!==void 0||y!==null&&(!u||(_=ke(l,a))!=null&&_.writable)){i===void 0&&(i=o(()=>{var v=u?xe(l[a]):R,E=G(v);return E}),n.set(a,i));var c=pe(i);if(c===R)return!1}return u},set(l,a,i,u){var gt;var c=n.get(a),_=a in l;if(r&&a==="length")for(var v=i;v<c.v;v+=1){var E=n.get(v+"");E!==void 0?K(E,R):v in l&&(E=o(()=>G(R)),n.set(v+"",E))}if(c===void 0)(!_||(gt=ke(l,a))!=null&>.writable)&&(c=o(()=>G(void 0)),K(c,xe(i)),n.set(a,c));else{_=c.v!==R;var N=o(()=>xe(i));K(c,N)}var $=Reflect.getOwnPropertyDescriptor(l,a);if($!=null&&$.set&&$.set.call(u,i),!_){if(r&&typeof a=="string"){var mt=n.get("length"),Xe=Number(a);Number.isInteger(Xe)&&Xe>=mt.v&&K(mt,Xe+1)}Je(s)}return!0},ownKeys(l){pe(s);var a=Reflect.ownKeys(l).filter(c=>{var _=n.get(c);return _===void 0||_.v!==R});for(var[i,u]of n)u.v!==R&&!(i in l)&&a.push(i);return a},setPrototypeOf(){Fn()}})}function St(e){try{if(e!==null&&typeof e=="object"&&re in e)return e[re]}catch{}return e}function es(e,t){return Object.is(St(e),St(t))}var Rt,Xn,Zn,Qt,en;function ts(){if(Rt===void 0){Rt=window,Xn=document,Zn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Qt=ke(t,"firstChild").get,en=ke(t,"nextSibling").get,Tt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Tt(n)&&(n.__t=void 0)}}function Ye(e=""){return document.createTextNode(e)}function at(e){return Qt.call(e)}function J(e){return en.call(e)}function ns(e,t){if(!ae)return at(e);var n=at(T);if(n===null)n=T.appendChild(Ye());else if(t&&n.nodeType!==vt){var r=Ye();return n==null||n.before(r),ge(r),r}return ge(n),n}function rs(e,t=!1){if(!ae){var n=at(e);return n instanceof Comment&&n.data===""?J(n):n}if(t&&(T==null?void 0:T.nodeType)!==vt){var r=Ye();return T==null||T.before(r),ge(r),r}return T}function ss(e,t=1,n=!1){let r=ae?T:e;for(var s;t--;)s=r,r=J(r);if(!ae)return r;if(n&&(r==null?void 0:r.nodeType)!==vt){var f=Ye();return r===null?s==null||s.after(f):r.before(f),ge(f),f}return ge(r),r}function fs(e){e.textContent=""}function is(){return!1}function as(e,t){if(t){const n=document.body;e.autofocus=!0,Ut(()=>{document.activeElement===n&&e.focus()})}}let xt=!1;function Wn(){xt||(xt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function Et(e){var t=d,n=y;W(null),be(null);try{return e()}finally{W(t),be(n)}}function ls(e,t,n,r=n){e.addEventListener(t,()=>Et(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),Wn()}function tn(e){y===null&&(d===null&&On(),kn()),Ae&&xn()}function Jn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function L(e,t,n){var r=y;r!==null&&(r.f&Y)!==0&&(e|=Y);var s={ctx:h,deps:null,nodes:null,f:e|O|M,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Te(s),s.f|=ct}catch(l){throw ue(s),l}else t!==null&&oe(s);var f=s;if(n&&f.deps===null&&f.teardown===null&&f.nodes===null&&f.first===f.last&&(f.f&Pe)===0&&(f=f.first,(e&U)!==0&&(e&Fe)!==0&&f!==null&&(f.f|=Fe)),f!==null&&(f.parent=r,r!==null&&Jn(f,r),d!==null&&(d.f&b)!==0&&(e&ce)===0)){var o=d;(o.effects??(o.effects=[])).push(f)}return s}function He(){return d!==null&&!q}function Qn(e){const t=L(Ve,null,!1);return g(t,A),t.teardown=e,t}function er(e){tn();var t=y.f,n=!d&&(t&B)!==0&&(t&ct)===0;if(n){var r=h;(r.e??(r.e=[])).push(e)}else return nn(e)}function nn(e){return L(ot|Mt,e,!1)}function os(e){return tn(),L(Ve|Mt,e,!0)}function us(e){le.ensure();const t=L(ce|Pe,e,!0);return(n={})=>new Promise(r=>{n.outro?sr(t,()=>{ue(t),r(void 0)}):(ue(t),r(void 0))})}function cs(e){return L(ot,e,!1)}function _s(e,t){var n=h,r={effect:null,ran:!1,deps:e};n.l.$.push(r),r.effect=rn(()=>{e(),!r.ran&&(r.ran=!0,ze(t))})}function vs(){var e=h;rn(()=>{for(var t of e.l.$){t.deps();var n=t.effect;(n.f&A)!==0&&g(n,j),Se(n)&&Te(n),t.ran=!1}})}function tr(e){return L(_t|Pe,e,!0)}function rn(e,t=0){return L(Ve|t,e,!0)}function ds(e,t=[],n=[],r=[]){Bn(r,t,n,s=>{L(Ve,()=>e(...s.map(pe)),!0)})}function ps(e,t=0){var n=L(U|t,e,!0);return n}function hs(e,t=0){var n=L(It|t,e,!0);return n}function ys(e){return L(B|Pe,e,!0)}function sn(e){var t=e.teardown;if(t!==null){const n=Ae,r=d;kt(!0),W(null);try{t.call(null)}finally{kt(n),W(r)}}}function fn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Et(()=>{s.abort(de)});var r=n.next;(n.f&ce)!==0?n.parent=null:ue(n,t),n=r}}function nr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&B)===0&&ue(t),t=n}}function ue(e,t=!0){var n=!1;(t||(e.f&Ft)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(rr(e.nodes.start,e.nodes.end),n=!0),fn(e,t&&!n),Be(e,0),g(e,z);var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)f.stop();sn(e);var s=e.parent;s!==null&&s.first!==null&&an(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function rr(e,t){for(;e!==null;){var n=e===t?null:J(e);e.remove(),e=n}}function an(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function sr(e,t,n=!0){var r=[];ln(e,r,!0);var s=()=>{n&&ue(e),t&&t()},f=r.length;if(f>0){var o=()=>--f||s();for(var l of r)l.out(o)}else s()}function ln(e,t,n){if((e.f&Y)===0){e.f^=Y;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var f=s.next,o=(s.f&Fe)!==0||(s.f&B)!==0&&(e.f&U)!==0;ln(s,t,o?n:!1),s=f}}}function ws(e){on(e,!0)}function on(e,t){if((e.f&Y)!==0){e.f^=Y,(e.f&A)===0&&(g(e,O),oe(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Fe)!==0||(n.f&B)!==0;on(n,s?t:!1),n=r}var f=e.nodes&&e.nodes.t;if(f!==null)for(const o of f)(o.is_global||t)&&o.in()}}function Es(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:J(n);t.append(n),n=s}}let se=!1;function Ue(e){se=e}let Ae=!1;function kt(e){Ae=e}let d=null,q=!1;function W(e){d=e}let y=null;function be(e){y=e}let k=null;function un(e){d!==null&&(k===null?k=[e]:k.push(e))}let x=null,D=0,P=null;function fr(e){P=e}let cn=1,De=0,fe=De;function Ot(e){fe=e}function _n(){return++cn}function Se(e){var t=e.f;if((t&O)!==0)return!0;if(t&b&&(e.f&=~ie),(t&j)!==0){var n=e.deps;if(n!==null)for(var r=n.length,s=0;s<r;s++){var f=n[s];if(Se(f)&&Xt(f),f.wv>e.wv)return!0}(t&M)!==0&&m===null&&g(e,A)}return!1}function vn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(k!=null&&k.includes(e)))for(var s=0;s<r.length;s++){var f=r[s];(f.f&b)!==0?vn(f,t,!1):t===f&&(n?g(f,O):(f.f&A)!==0&&g(f,j),oe(f))}}function dn(e){var E;var t=x,n=D,r=P,s=d,f=k,o=h,l=q,a=fe,i=e.f;x=null,D=0,P=null,d=(i&(B|ce))===0?e:null,k=null,Me(e.ctx),q=!1,fe=++De,e.ac!==null&&(Et(()=>{e.ac.abort(de)}),e.ac=null);try{e.f|=et;var u=e.fn,c=u(),_=e.deps;if(x!==null){var v;if(Be(e,D),_!==null&&D>0)for(_.length=D+x.length,v=0;v<x.length;v++)_[D+v]=x[v];else e.deps=_=x;if(He()&&(e.f&M)!==0)for(v=D;v<_.length;v++)((E=_[v]).reactions??(E.reactions=[])).push(e)}else _!==null&&D<_.length&&(Be(e,D),_.length=D);if(Ie()&&P!==null&&!q&&_!==null&&(e.f&(b|j|O))===0)for(v=0;v<P.length;v++)vn(P[v],e);return s!==null&&s!==e&&(De++,P!==null&&(r===null?r=P:r.push(...P))),(e.f&X)!==0&&(e.f^=X),c}catch(N){return Hn(N)}finally{e.f^=et,x=t,D=n,P=r,d=s,k=f,Me(o),q=l,fe=a}}function ir(e,t){let n=t.reactions;if(n!==null){var r=gn.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}n===null&&(t.f&b)!==0&&(x===null||!x.includes(t))&&(g(t,j),(t.f&M)!==0&&(t.f^=M,t.f&=~ie),zt(t),Be(t,0))}function Be(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ir(e,n[r])}function Te(e){var t=e.f;if((t&z)===0){g(e,A);var n=y,r=se;y=e,se=!0;try{(t&(U|It))!==0?nr(e):fn(e),sn(e);var s=dn(e);e.teardown=typeof s=="function"?s:null,e.wv=cn;var f}finally{se=r,y=n}}}async function ms(){await Promise.resolve(),st()}function gs(){return le.ensure().settled()}function pe(e){var t=e.f,n=(t&b)!==0;if(d!==null&&!q){var r=y!==null&&(y.f&z)!==0;if(!r&&!(k!=null&&k.includes(e))){var s=d.deps;if((d.f&et)!==0)e.rv<De&&(e.rv=De,x===null&&s!==null&&s[D]===e?D++:x===null?x=[e]:x.includes(e)||x.push(e));else{(d.deps??(d.deps=[])).push(e);var f=e.reactions;f===null?e.reactions=[d]:f.includes(d)||f.push(d)}}}if(Ae){if(Z.has(e))return Z.get(e);if(n){var o=e,l=o.v;return((o.f&A)===0&&o.reactions!==null||hn(o))&&(l=yt(o)),Z.set(o,l),l}}else n&&(!(m!=null&&m.has(e))||p!=null&&p.is_fork&&!He())&&(o=e,Se(o)&&Xt(o),se&&He()&&(o.f&M)===0&&pn(o));if(m!=null&&m.has(e))return m.get(e);if((e.f&X)!==0)throw e.v;return e.v}function pn(e){if(e.deps!==null){e.f^=M;for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&b)!==0&&(t.f&M)===0&&pn(t)}}function hn(e){if(e.v===R)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Z.has(t)||(t.f&b)!==0&&hn(t))return!0;return!1}function ze(e){var t=q;try{return q=!0,e()}finally{q=t}}const ar=-7169;function g(e,t){e.f=e.f&ar|t}function bs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(re in e)lt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&re in n&<(n)}}}function lt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{lt(e[r],t)}catch{}const n=Nt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=bn(n);for(let s in r){const f=r[s].get;if(f)try{f.call(e)}catch{}}}}}function yn(e,t,n){if(e==null)return t(void 0),n&&n(void 0),he;const r=ze(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const ve=[];function lr(e,t){return{subscribe:or(e,t).subscribe}}function or(e,t=he){let n=null;const r=new Set;function s(l){if(qt(e,l)&&(e=l,n)){const a=!ve.length;for(const i of r)i[1](),ve.push(i,e);if(a){for(let i=0;i<ve.length;i+=2)ve[i][0](ve[i+1]);ve.length=0}}}function f(l){s(l(e))}function o(l,a=he){const i=[l,a];return r.add(i),r.size===1&&(n=t(s,f)||he),l(e),()=>{r.delete(i),r.size===0&&n&&(n(),n=null)}}return{set:s,update:f,subscribe:o}}function Ts(e,t,n){const r=!Array.isArray(e),s=r?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const f=t.length<2;return lr(n,(o,l)=>{let a=!1;const i=[];let u=0,c=he;const _=()=>{if(u)return;c();const E=t(r?i[0]:i,o,l);f?o(E):c=typeof E=="function"?E:he},v=s.map((E,N)=>yn(E,$=>{i[N]=$,u&=~(1<<N),a&&_()},()=>{u|=1<<N}));return a=!0,_(),function(){Pt(v),c(),a=!1}})}function As(e){let t;return yn(e,n=>t=n)(),t}function ur(e){h===null&&Ge(),Ce&&h.l!==null?wn(h).m.push(e):er(()=>{const t=ze(e);if(typeof t=="function")return t})}function Ss(e){h===null&&Ge(),ur(()=>()=>ze(e))}function cr(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function Rs(){const e=h;return e===null&&Ge(),(t,n,r)=>{var f;const s=(f=e.s.$$events)==null?void 0:f[t];if(s){const o=Dt(s)?s.slice():[s],l=cr(t,n,r);for(const a of o)a.call(e.x,l);return!l.defaultPrevented}return!0}}function xs(e){h===null&&Ge(),h.l===null&&Cn(),wn(h).a.push(e)}function wn(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}export{Qn as $,Ye as A,vt as B,ge as C,p as D,ct as E,ws as F,ue as G,sr as H,ys as I,Es as J,is as K,ps as L,Fe as M,Gr as N,Ln as O,Vr as P,Hr as Q,cs as R,rn as S,Fr as T,Ut as U,re as V,he as W,Jr as X,yn as Y,K as Z,As as _,er as a,jr as a$,dr as a0,ke as a1,Tr as a2,Pr as a3,Gn as a4,xe as a5,Ae as a6,z as a7,Cr as a8,Ce as a9,J as aA,dt as aB,br as aC,fs as aD,vr as aE,us as aF,qn as aG,pt as aH,st as aI,G as aJ,ms as aK,or as aL,Dt as aM,Rr as aN,Sr as aO,Or as aP,wr as aQ,xr as aR,Y as aS,kr as aT,rr as aU,Ft as aV,hs as aW,ls as aX,qr as aY,es as aZ,We as a_,Nr as aa,Dr as ab,Ir as ac,Er as ad,wt as ae,Qr as af,be as ag,pr as ah,He as ai,Je as aj,jt as ak,le as al,W as am,Me as an,Hn as ao,d as ap,it as aq,$r as ar,je as as,Ar as at,Pe as au,ut as av,Yr as aw,Et as ax,ts as ay,jn as az,ze as b,Nt as b0,bn as b1,mr as b2,Wn as b3,Bn as b4,Lr as b5,as as b6,R as b7,Ts as b8,Ss as b9,yr as ba,Rs as bb,xs as bc,_s as bd,vs as be,Xn as bf,Rt as bg,Zr as bh,gs as bi,h as c,Pt as d,bs as e,ht as f,pe as g,Kr as h,Xr as i,ns as j,Br as k,Wr as l,rs as m,at as n,ur as o,zr as p,Zn as q,hr as r,ss as s,ds as t,os as u,Mr as v,y as w,ae as x,T as y,Ur as z};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var We=Object.defineProperty;var we=s=>{throw TypeError(s)};var Ke=(s,e,t)=>e in s?We(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var $=(s,e,t)=>Ke(s,typeof e!="symbol"?e+"":e,t),Ye=(s,e,t)=>e.has(s)||we("Cannot "+t);var ee=(s,e,t)=>(Ye(s,e,"read from private field"),t?t.call(s):e.get(s)),be=(s,e,t)=>e.has(s)?we("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,t);import{x as oe,z as Je,aL as A,_ as I,aJ as Xe,g as je,Z as Qe}from"./DjhvlsAc.js";function ts(s,e,t,n,r){var c;oe&&Je();var i=(c=e.$$slots)==null?void 0:c[t],o=!1;i===!0&&(i=e.children,o=!0),i===void 0?r!==null&&r(s):i(s,o?()=>n:n)}function Re(s){var e,t,n="";if(typeof s=="string"||typeof s=="number")n+=s;else if(typeof s=="object")if(Array.isArray(s)){var r=s.length;for(e=0;e<r;e++)s[e]&&(t=Re(s[e]))&&(n&&(n+=" "),n+=t)}else for(t in s)s[t]&&(n&&(n+=" "),n+=t);return n}function Ge(){for(var s,e,t=0,n="",r=arguments.length;t<r;t++)(s=arguments[t])&&(e=Re(s))&&(n&&(n+=" "),n+=e);return n}function ss(s){return typeof s=="object"?Ge(s):s??""}const ve=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function Ze(s,e,t){var n=s==null?"":""+s;if(e&&(n=n?n+" "+e:e),t){for(var r in t)if(t[r])n=n?n+" "+r:r;else if(n.length)for(var i=r.length,o=0;(o=n.indexOf(r,o))>=0;){var c=o+i;(o===0||ve.includes(n[o-1]))&&(c===n.length||ve.includes(n[c]))?n=(o===0?"":n.substring(0,o))+n.substring(c+1):o=c}}return n===""?null:n}function Ee(s,e=!1){var t=e?" !important;":";",n="";for(var r in s){var i=s[r];i!=null&&i!==""&&(n+=" "+r+": "+i+t)}return n}function te(s){return s[0]!=="-"||s[1]!=="-"?s.toLowerCase():s}function ns(s,e){if(e){var t="",n,r;if(Array.isArray(e)?(n=e[0],r=e[1]):n=e,s){s=String(s).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,o=0,c=!1,a=[];n&&a.push(...Object.keys(n).map(te)),r&&a.push(...Object.keys(r).map(te));var m=0,g=-1;const V=s.length;for(var d=0;d<V;d++){var _=s[d];if(c?_==="/"&&s[d-1]==="*"&&(c=!1):i?i===_&&(i=!1):_==="/"&&s[d+1]==="*"?c=!0:_==='"'||_==="'"?i=_:_==="("?o++:_===")"&&o--,!c&&i===!1&&o===0){if(_===":"&&g===-1)g=d;else if(_===";"||d===V-1){if(g!==-1){var M=te(s.substring(m,g).trim());if(!a.includes(M)){_!==";"&&d++;var G=s.substring(m,d).trim();t+=" "+G+";"}}m=d+1,g=-1}}}}return n&&(t+=Ee(n)),r&&(t+=Ee(r,!0)),t=t.trim(),t===""?null:t}return s==null?null:String(s)}function rs(s,e,t,n,r,i){var o=s.__className;if(oe||o!==t||o===void 0){var c=Ze(t,n,i);(!oe||c!==s.getAttribute("class"))&&(c==null?s.removeAttribute("class"):e?s.className=c:s.setAttribute("class",c)),s.__className=t}else if(i&&r!==i)for(var a in i){var m=!!i[a];(r==null||m!==!!r[a])&&s.classList.toggle(a,m)}return i}const C=Object.create(null);C.open="0";C.close="1";C.ping="2";C.pong="3";C.message="4";C.upgrade="5";C.noop="6";const W=Object.create(null);Object.keys(C).forEach(s=>{W[C[s]]=s});const ce={type:"error",data:"parser error"},Oe=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Be=typeof ArrayBuffer=="function",Ne=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s&&s.buffer instanceof ArrayBuffer,de=({type:s,data:e},t,n)=>Oe&&e instanceof Blob?t?n(e):ke(e,n):Be&&(e instanceof ArrayBuffer||Ne(e))?t?n(e):ke(new Blob([e]),n):n(C[s]+(e||"")),ke=(s,e)=>{const t=new FileReader;return t.onload=function(){const n=t.result.split(",")[1];e("b"+(n||""))},t.readAsDataURL(s)};function Se(s){return s instanceof Uint8Array?s:s instanceof ArrayBuffer?new Uint8Array(s):new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}let se;function et(s,e){if(Oe&&s.data instanceof Blob)return s.data.arrayBuffer().then(Se).then(e);if(Be&&(s.data instanceof ArrayBuffer||Ne(s.data)))return e(Se(s.data));de(s,!1,t=>{se||(se=new TextEncoder),e(se.encode(t))})}const Ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let s=0;s<Ae.length;s++)F[Ae.charCodeAt(s)]=s;const tt=s=>{let e=s.length*.75,t=s.length,n,r=0,i,o,c,a;s[s.length-1]==="="&&(e--,s[s.length-2]==="="&&e--);const m=new ArrayBuffer(e),g=new Uint8Array(m);for(n=0;n<t;n+=4)i=F[s.charCodeAt(n)],o=F[s.charCodeAt(n+1)],c=F[s.charCodeAt(n+2)],a=F[s.charCodeAt(n+3)],g[r++]=i<<2|o>>4,g[r++]=(o&15)<<4|c>>2,g[r++]=(c&3)<<6|a&63;return m},st=typeof ArrayBuffer=="function",pe=(s,e)=>{if(typeof s!="string")return{type:"message",data:xe(s,e)};const t=s.charAt(0);return t==="b"?{type:"message",data:nt(s.substring(1),e)}:W[t]?s.length>1?{type:W[t],data:s.substring(1)}:{type:W[t]}:ce},nt=(s,e)=>{if(st){const t=tt(s);return xe(t,e)}else return{base64:!0,data:s}},xe=(s,e)=>{switch(e){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}},Le="",rt=(s,e)=>{const t=s.length,n=new Array(t);let r=0;s.forEach((i,o)=>{de(i,!1,c=>{n[o]=c,++r===t&&e(n.join(Le))})})},it=(s,e)=>{const t=s.split(Le),n=[];for(let r=0;r<t.length;r++){const i=pe(t[r],e);if(n.push(i),i.type==="error")break}return n};function ot(){return new TransformStream({transform(s,e){et(s,t=>{const n=t.length;let r;if(n<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,n);else if(n<65536){r=new Uint8Array(3);const i=new DataView(r.buffer);i.setUint8(0,126),i.setUint16(1,n)}else{r=new Uint8Array(9);const i=new DataView(r.buffer);i.setUint8(0,127),i.setBigUint64(1,BigInt(n))}s.data&&typeof s.data!="string"&&(r[0]|=128),e.enqueue(r),e.enqueue(t)})}})}let ne;function H(s){return s.reduce((e,t)=>e+t.length,0)}function z(s,e){if(s[0].length===e)return s.shift();const t=new Uint8Array(e);let n=0;for(let r=0;r<e;r++)t[r]=s[0][n++],n===s[0].length&&(s.shift(),n=0);return s.length&&n<s[0].length&&(s[0]=s[0].slice(n)),t}function ct(s,e){ne||(ne=new TextDecoder);const t=[];let n=0,r=-1,i=!1;return new TransformStream({transform(o,c){for(t.push(o);;){if(n===0){if(H(t)<1)break;const a=z(t,1);i=(a[0]&128)===128,r=a[0]&127,r<126?n=3:r===126?n=1:n=2}else if(n===1){if(H(t)<2)break;const a=z(t,2);r=new DataView(a.buffer,a.byteOffset,a.length).getUint16(0),n=3}else if(n===2){if(H(t)<8)break;const a=z(t,8),m=new DataView(a.buffer,a.byteOffset,a.length),g=m.getUint32(0);if(g>Math.pow(2,21)-1){c.enqueue(ce);break}r=g*Math.pow(2,32)+m.getUint32(4),n=3}else{if(H(t)<r)break;const a=z(t,r);c.enqueue(pe(i?a:ne.decode(a),e)),n=0}if(r===0||r>s){c.enqueue(ce);break}}}})}const Pe=4;function y(s){if(s)return at(s)}function at(s){for(var e in y.prototype)s[e]=y.prototype[e];return s}y.prototype.on=y.prototype.addEventListener=function(s,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+s]=this._callbacks["$"+s]||[]).push(e),this};y.prototype.once=function(s,e){function t(){this.off(s,t),e.apply(this,arguments)}return t.fn=e,this.on(s,t),this};y.prototype.off=y.prototype.removeListener=y.prototype.removeAllListeners=y.prototype.removeEventListener=function(s,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+s];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+s],this;for(var n,r=0;r<t.length;r++)if(n=t[r],n===e||n.fn===e){t.splice(r,1);break}return t.length===0&&delete this._callbacks["$"+s],this};y.prototype.emit=function(s){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+s],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(t){t=t.slice(0);for(var n=0,r=t.length;n<r;++n)t[n].apply(this,e)}return this};y.prototype.emitReserved=y.prototype.emit;y.prototype.listeners=function(s){return this._callbacks=this._callbacks||{},this._callbacks["$"+s]||[]};y.prototype.hasListeners=function(s){return!!this.listeners(s).length};const j=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),v=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),ht="arraybuffer";function qe(s,...e){return e.reduce((t,n)=>(s.hasOwnProperty(n)&&(t[n]=s[n]),t),{})}const ft=v.setTimeout,ut=v.clearTimeout;function Q(s,e){e.useNativeTimers?(s.setTimeoutFn=ft.bind(v),s.clearTimeoutFn=ut.bind(v)):(s.setTimeoutFn=v.setTimeout.bind(v),s.clearTimeoutFn=v.clearTimeout.bind(v))}const lt=1.33;function dt(s){return typeof s=="string"?pt(s):Math.ceil((s.byteLength||s.size)*lt)}function pt(s){let e=0,t=0;for(let n=0,r=s.length;n<r;n++)e=s.charCodeAt(n),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(n++,t+=4);return t}function Ie(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function gt(s){let e="";for(let t in s)s.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(s[t]));return e}function yt(s){let e={},t=s.split("&");for(let n=0,r=t.length;n<r;n++){let i=t[n].split("=");e[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return e}class mt extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class ge extends y{constructor(e){super(),this.writable=!1,Q(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved("error",new mt(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=pe(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=gt(e);return t.length?"?"+t:""}}class _t extends ge{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let n=0;this._polling&&(n++,this.once("pollComplete",function(){--n||t()})),this.writable||(n++,this.once("drain",function(){--n||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};it(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,rt(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Ie()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let De=!1;try{De=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const wt=De;function bt(){}class vt extends _t{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let n=location.port;n||(n=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,n)=>{this.onError("xhr poll error",t,n)}),this.pollXhr=e}}class T extends y{constructor(e,t,n){super(),this.createRequest=e,Q(this,n),this._opts=n,this._method=n.method||"GET",this._uri=t,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var e;const t=qe(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const n=this._xhr=this.createRequest(t);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var r;n.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=T.requestsCount++,T.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=bt,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete T.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}T.requestsCount=0;T.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Te);else if(typeof addEventListener=="function"){const s="onpagehide"in v?"pagehide":"unload";addEventListener(s,Te,!1)}}function Te(){for(let s in T.requests)T.requests.hasOwnProperty(s)&&T.requests[s].abort()}const Et=(function(){const s=Fe({xdomain:!1});return s&&s.responseType!==null})();class kt extends vt{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Et&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new T(Fe,this.uri(),e)}}function Fe(s){const e=s.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||wt))return new XMLHttpRequest}catch{}if(!e)try{return new v[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Ue=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class St extends ge{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,n=Ue?{}:qe(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;de(n,this.supportsBinary,i=>{try{this.doWrite(n,i)}catch{}r&&j(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Ie()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const re=v.WebSocket||v.MozWebSocket;class At extends St{createSocket(e,t,n){return Ue?new re(e,t,n):t?new re(e,t):new re(e)}doWrite(e,t){this.ws.send(t)}}class Tt extends ge{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=ct(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=ot();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const i=()=>{n.read().then(({done:c,value:a})=>{c||(this.onPacket(a),i())}).catch(c=>{})};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this._writer.write(o).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&j(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const Ct={websocket:At,webtransport:Tt,polling:kt},Rt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Ot=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function ae(s){if(s.length>8e3)throw"URI too long";const e=s,t=s.indexOf("["),n=s.indexOf("]");t!=-1&&n!=-1&&(s=s.substring(0,t)+s.substring(t,n).replace(/:/g,";")+s.substring(n,s.length));let r=Rt.exec(s||""),i={},o=14;for(;o--;)i[Ot[o]]=r[o]||"";return t!=-1&&n!=-1&&(i.source=e,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Bt(i,i.path),i.queryKey=Nt(i,i.query),i}function Bt(s,e){const t=/\/{2,9}/g,n=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function Nt(s,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,r,i){r&&(t[r]=i)}),t}const he=typeof addEventListener=="function"&&typeof removeEventListener=="function",K=[];he&&addEventListener("offline",()=>{K.forEach(s=>s())},!1);class O extends y{constructor(e,t){if(super(),this.binaryType=ht,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const n=ae(e);t.hostname=n.host,t.secure=n.protocol==="https"||n.protocol==="wss",t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=ae(t.host).host);Q(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(n=>{const r=n.prototype.name;this.transports.push(r),this._transportsByName[r]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=yt(this.opts.query)),he&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},K.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=Pe,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&O.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",O.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let n=0;n<this.writeBuffer.length;n++){const r=this.writeBuffer[n].data;if(r&&(t+=dt(r)),n>0&&t>this._maxPayload)return this.writeBuffer.slice(0,n);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,j(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket("message",e,t,n),this}send(e,t,n){return this._sendPacket("message",e,t,n),this}_sendPacket(e,t,n,r){if(typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const i={type:e,data:t,options:n};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(e){if(O.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),he&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const n=K.indexOf(this._offlineEventListener);n!==-1&&K.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}O.protocol=Pe;class xt extends O{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;O.priorWebsocketSuccess=!1;const r=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;O.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(g(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const _=new Error("probe error");_.transport=t.name,this.emitReserved("upgradeError",_)}}))};function i(){n||(n=!0,g(),t.close(),t=null)}const o=d=>{const _=new Error("probe error: "+d);_.transport=t.name,i(),this.emitReserved("upgradeError",_)};function c(){o("transport closed")}function a(){o("socket closed")}function m(d){t&&d.name!==t.name&&i()}const g=()=>{t.removeListener("open",r),t.removeListener("error",o),t.removeListener("close",c),this.off("close",a),this.off("upgrading",m)};t.once("open",r),t.once("error",o),t.once("close",c),this.once("close",a),this.once("upgrading",m),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}}let Lt=class extends xt{constructor(e,t={}){const n=typeof e=="object"?e:t;(!n.transports||n.transports&&typeof n.transports[0]=="string")&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(r=>Ct[r]).filter(r=>!!r)),super(e,n)}};function Pt(s,e="",t){let n=s;t=t||typeof location<"u"&&location,s==null&&(s=t.protocol+"//"+t.host),typeof s=="string"&&(s.charAt(0)==="/"&&(s.charAt(1)==="/"?s=t.protocol+s:s=t.host+s),/^(https?|wss?):\/\//.test(s)||(typeof t<"u"?s=t.protocol+"//"+s:s="https://"+s),n=ae(s)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+e,n.href=n.protocol+"://"+i+(t&&t.port===n.port?"":":"+n.port),n}const qt=typeof ArrayBuffer=="function",It=s=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(s):s.buffer instanceof ArrayBuffer,Me=Object.prototype.toString,Dt=typeof Blob=="function"||typeof Blob<"u"&&Me.call(Blob)==="[object BlobConstructor]",Ft=typeof File=="function"||typeof File<"u"&&Me.call(File)==="[object FileConstructor]";function ye(s){return qt&&(s instanceof ArrayBuffer||It(s))||Dt&&s instanceof Blob||Ft&&s instanceof File}function Y(s,e){if(!s||typeof s!="object")return!1;if(Array.isArray(s)){for(let t=0,n=s.length;t<n;t++)if(Y(s[t]))return!0;return!1}if(ye(s))return!0;if(s.toJSON&&typeof s.toJSON=="function"&&arguments.length===1)return Y(s.toJSON(),!0);for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t)&&Y(s[t]))return!0;return!1}function Ut(s){const e=[],t=s.data,n=s;return n.data=fe(t,e),n.attachments=e.length,{packet:n,buffers:e}}function fe(s,e){if(!s)return s;if(ye(s)){const t={_placeholder:!0,num:e.length};return e.push(s),t}else if(Array.isArray(s)){const t=new Array(s.length);for(let n=0;n<s.length;n++)t[n]=fe(s[n],e);return t}else if(typeof s=="object"&&!(s instanceof Date)){const t={};for(const n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=fe(s[n],e));return t}return s}function Mt(s,e){return s.data=ue(s.data,e),delete s.attachments,s}function ue(s,e){if(!s)return s;if(s&&s._placeholder===!0){if(typeof s.num=="number"&&s.num>=0&&s.num<e.length)return e[s.num];throw new Error("illegal attachments")}else if(Array.isArray(s))for(let t=0;t<s.length;t++)s[t]=ue(s[t],e);else if(typeof s=="object")for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&(s[t]=ue(s[t],e));return s}const Vt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],$t=5;var u;(function(s){s[s.CONNECT=0]="CONNECT",s[s.DISCONNECT=1]="DISCONNECT",s[s.EVENT=2]="EVENT",s[s.ACK=3]="ACK",s[s.CONNECT_ERROR=4]="CONNECT_ERROR",s[s.BINARY_EVENT=5]="BINARY_EVENT",s[s.BINARY_ACK=6]="BINARY_ACK"})(u||(u={}));class Ht{constructor(e){this.replacer=e}encode(e){return(e.type===u.EVENT||e.type===u.ACK)&&Y(e)?this.encodeAsBinary({type:e.type===u.EVENT?u.BINARY_EVENT:u.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===u.BINARY_EVENT||e.type===u.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=Ut(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}}function Ce(s){return Object.prototype.toString.call(s)==="[object Object]"}class me extends y{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===u.BINARY_EVENT;n||t.type===u.BINARY_ACK?(t.type=n?u.EVENT:u.ACK,this.reconstructor=new zt(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(ye(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(u[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===u.BINARY_EVENT||n.type===u.BINARY_ACK){const i=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const o=e.substring(i,t);if(o!=Number(o)||e.charAt(t)!=="-")throw new Error("Illegal attachments");n.attachments=Number(o)}if(e.charAt(t+1)==="/"){const i=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););n.nsp=e.substring(i,t)}else n.nsp="/";const r=e.charAt(t+1);if(r!==""&&Number(r)==r){const i=t+1;for(;++t;){const o=e.charAt(t);if(o==null||Number(o)!=o){--t;break}if(t===e.length)break}n.id=Number(e.substring(i,t+1))}if(e.charAt(++t)){const i=this.tryParse(e.substr(t));if(me.isPayloadValid(n.type,i))n.data=i;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case u.CONNECT:return Ce(t);case u.DISCONNECT:return t===void 0;case u.CONNECT_ERROR:return typeof t=="string"||Ce(t);case u.EVENT:case u.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&Vt.indexOf(t[0])===-1);case u.ACK:case u.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class zt{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=Mt(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Wt=Object.freeze(Object.defineProperty({__proto__:null,Decoder:me,Encoder:Ht,get PacketType(){return u},protocol:$t},Symbol.toStringTag,{value:"Module"}));function E(s,e,t){return s.on(e,t),function(){s.off(e,t)}}const Kt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ve extends y{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[E(e,"open",this.onopen.bind(this)),E(e,"packet",this.onpacket.bind(this)),E(e,"error",this.onerror.bind(this)),E(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var n,r,i;if(Kt.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const o={type:u.EVENT,data:t};if(o.options={},o.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const g=this.ids++,d=t.pop();this._registerAckCallback(g,d),o.id=g}const c=(r=(n=this.io.engine)===null||n===void 0?void 0:n.transport)===null||r===void 0?void 0:r.writable,a=this.connected&&!(!((i=this.io.engine)===null||i===void 0)&&i._hasPingExpired());return this.flags.volatile&&!c||(a?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(e,t){var n;const r=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(r===void 0){this.acks[e]=t;return}const i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let c=0;c<this.sendBuffer.length;c++)this.sendBuffer[c].id===e&&this.sendBuffer.splice(c,1);t.call(this,new Error("operation has timed out"))},r),o=(...c)=>{this.io.clearTimeoutFn(i),t.apply(this,c)};o.withError=!0,this.acks[e]=o}emitWithAck(e,...t){return new Promise((n,r)=>{const i=(o,c)=>o?r(o):n(c);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((r,...i)=>n!==this._queue[0]?void 0:(r!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(r)):(this._queue.shift(),t&&t(null,...i)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:u.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(n=>String(n.id)===e)){const n=this.acks[e];delete this.acks[e],n.withError&&n.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case u.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case u.EVENT:case u.BINARY_EVENT:this.onevent(e);break;case u.ACK:case u.BINARY_ACK:this.onack(e);break;case u.DISCONNECT:this.ondisconnect();break;case u.CONNECT_ERROR:this.destroy();const n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...r){n||(n=!0,t.packet({type:u.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:u.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function x(s){s=s||{},this.ms=s.min||100,this.max=s.max||1e4,this.factor=s.factor||2,this.jitter=s.jitter>0&&s.jitter<=1?s.jitter:0,this.attempts=0}x.prototype.duration=function(){var s=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*s);s=(Math.floor(e*10)&1)==0?s-t:s+t}return Math.min(s,this.max)|0};x.prototype.reset=function(){this.attempts=0};x.prototype.setMin=function(s){this.ms=s};x.prototype.setMax=function(s){this.max=s};x.prototype.setJitter=function(s){this.jitter=s};class le extends y{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Q(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((n=t.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new x({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||Wt;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Lt(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const r=E(t,"open",function(){n.onopen(),e&&e()}),i=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),e?e(c):this.maybeReconnectOnOpen()},o=E(t,"error",i);if(this._timeout!==!1){const c=this._timeout,a=this.setTimeoutFn(()=>{r(),i(new Error("timeout")),t.close()},c);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(r),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(E(e,"ping",this.onping.bind(this)),E(e,"data",this.ondata.bind(this)),E(e,"error",this.onerror.bind(this)),E(e,"close",this.onclose.bind(this)),E(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){j(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Ve(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t)if(this.nsps[n].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)===null||n===void 0||n.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const D={};function J(s,e){typeof s=="object"&&(e=s,s=void 0),e=e||{};const t=Pt(s,e.path||"/socket.io"),n=t.source,r=t.id,i=t.path,o=D[r]&&i in D[r].nsps,c=e.forceNew||e["force new connection"]||e.multiplex===!1||o;let a;return c?a=new le(n,e):(D[r]||(D[r]=new le(n,e)),a=D[r]),t.query&&!e.query&&(e.query=t.queryKey),a.socket(t.path,e)}Object.assign(J,{Manager:le,Socket:Ve,io:J,connect:J});let Yt=0;const X="claude-mpm-events-",Jt=50;function _e(){if(typeof window>"u")return!1;try{const s="__localStorage_test__";return localStorage.setItem(s,s),localStorage.removeItem(s),!0}catch{return!1}}function Xt(s){if(!_e())return[];try{const e=`${X}${s}`,t=localStorage.getItem(e);if(t){const n=JSON.parse(t);return console.log(`[Cache] Loaded ${n.length} cached events for stream ${s}`),n}}catch(e){console.warn(`[Cache] Failed to load cached events for stream ${s}:`,e)}return[]}function jt(s,e){if(_e())try{const t=`${X}${s}`,n=e.slice(-Jt);localStorage.setItem(t,JSON.stringify(n)),console.log(`[Cache] Saved ${n.length} events for stream ${s}`)}catch(t){console.warn(`[Cache] Failed to save cached events for stream ${s}:`,t)}}function ie(s){var e,t;return s.session_id||s.sessionId||((e=s.data)==null?void 0:e.session_id)||((t=s.data)==null?void 0:t.sessionId)||s.source||null}function Qt(){const s=A(null),e=A(!1),t=A([]),n=A(new Set),r=A(new Map),i=A(new Map),o=A(null),c=A(""),a=A(""),m=A("current");typeof window<"u"&&setTimeout(()=>{const h=g();if(h.length>0){console.log(`[Cache] Found ${h.length} cached streams`);const p=[],f=new Set;if(h.forEach(b=>{const l=Xt(b);p.push(...l),l.length>0&&f.add(b)}),p.length>0){t.set(p),n.set(f),console.log(`[Cache] Restored ${p.length} total cached events from ${f.size} streams`);const b=new Map;p.forEach(l=>{var L,P,q,k;const w=ie(l);if(w&&!b.has(w)){const B=l.cwd||l.working_directory||((L=l.data)==null?void 0:L.working_directory)||((P=l.data)==null?void 0:P.cwd)||((q=l.metadata)==null?void 0:q.working_directory)||((k=l.metadata)==null?void 0:k.cwd);if(B&&typeof B=="string"){const Z=B.split("/").filter(Boolean).pop()||B;b.set(w,{projectPath:B,projectName:Z})}}}),b.size>0&&(r.set(b),console.log(`[Cache] Extracted metadata for ${b.size} streams`))}}},0);function g(){if(!_e())return[];const h=[];try{for(let p=0;p<localStorage.length;p++){const f=localStorage.key(p);f!=null&&f.startsWith(X)&&h.push(f.substring(X.length))}}catch(p){console.warn("[Cache] Failed to enumerate cached streams:",p)}return h}async function d(h="http://localhost:8765"){try{const f=await(await fetch(`${h}/api/working-directory`)).json();f.success&&f.working_directory&&(a.set(f.working_directory),console.log("[WorkingDirectory] Set to:",f.working_directory))}catch(p){console.warn("[WorkingDirectory] Failed to fetch:",p)}}function _(h="http://localhost:8765"){const p=I(s);if(p!=null&&p.connected)return;console.log("Connecting to Socket.IO server:",h),d(h);const f=J(h,{transports:["polling","websocket"],upgrade:!0,reconnection:!0,reconnectionDelay:1e3,reconnectionAttempts:10,timeout:2e4});f.on("connect",()=>{e.set(!0),o.set(null),console.log("Socket.IO connected, socket id:",f.id)}),f.on("disconnect",l=>{e.set(!1),console.log("Socket.IO disconnected, reason:",l)}),f.on("connect_error",l=>{o.set(l.message),console.error("Socket.IO connection error:",l)}),["claude_event","hook_event","cli_event","system_event","agent_event","build_event"].forEach(l=>{f.on(l,w=>{console.log(`Received ${l}:`,w),M({...w,event:l})})}),f.on("history",l=>{console.log("Received event history:",l.count,"events"),l.events&&Array.isArray(l.events)&&l.events.forEach(w=>M(w))}),f.on("heartbeat",l=>{}),f.on("reload",l=>{console.log("Hot reload triggered by server:",l),window.location.reload()}),f.onAny((l,...w)=>{l!=="heartbeat"&&console.log("Socket event:",l,w)}),s.set(f)}function M(h){var b,l,w,L,P,q;console.log("Socket store: handleEvent called with:",h);const p={...h,id:h.id||`evt_${Date.now()}_${++Yt}`,timestamp:h.timestamp||new Date().toISOString()};t.update(k=>[...k,p]),console.log("Socket store: Added event, total events:",I(t).length);const f=ie(p);if(console.log("Socket store: Extracted stream ID:",f),console.log("Socket store: Checked fields:",{session_id:h.session_id,sessionId:h.sessionId,data_session_id:(b=h.data)==null?void 0:b.session_id,data_sessionId:(l=h.data)==null?void 0:l.sessionId,source:h.source}),f){i.update(S=>{const R=new Map(S);return R.set(f,Date.now()),R}),n.update(S=>{const R=S.size;console.log("Socket store: Adding stream:",f,"Previous streams:",Array.from(S));const N=new Set([...S,f]);console.log("Socket store: Updated streams:",Array.from(N),"Size changed:",R,"->",N.size);const ze=I(c);return(R===0||ze==="")&&(console.log("Socket store: Auto-selecting stream:",f,"Reason:",R===0?"first stream":"no stream selected"),c.set(f)),N});const k=h.cwd||h.working_directory||((w=h.data)==null?void 0:w.working_directory)||((L=h.data)==null?void 0:L.cwd)||((P=h.metadata)==null?void 0:P.working_directory)||((q=h.metadata)==null?void 0:q.cwd);if(k){const S=k.split("/").filter(Boolean).pop()||k;r.update(R=>{const N=new Map(R);return N.set(f,{projectPath:k,projectName:S}),console.log("Socket store: Updated metadata for stream:",f,{projectPath:k,projectName:S}),N})}const Z=I(t).filter(S=>ie(S)===f);jt(f,Z)}else console.log("Socket store: No stream ID found in event:",JSON.stringify(h,null,2))}function G(){const h=I(s);h&&(h.disconnect(),s.set(null),e.set(!1))}function V(){t.set([])}function $e(h){c.set(h)}function He(h){m.set(h)}return{socket:s,isConnected:e,events:t,streams:n,streamMetadata:r,streamActivity:i,error:o,selectedStream:c,currentWorkingDirectory:a,projectFilter:m,connect:_,disconnect:G,clearEvents:V,setSelectedStream:$e,setProjectFilter:He}}const os=Qt();var U;class Gt{constructor(){be(this,U,Xe("dark"));$(this,"initialized",!1);$(this,"toggle",()=>{this.current=this.current==="dark"?"light":"dark",typeof window<"u"&&(localStorage.setItem("theme",this.current),this.applyTheme(this.current))});$(this,"set",e=>{this.current=e,typeof window<"u"&&(localStorage.setItem("theme",this.current),this.applyTheme(e))});if(typeof window<"u"&&!this.initialized){const e=localStorage.getItem("theme");e&&(this.current=e),this.applyTheme(this.current),this.initialized=!0}}get current(){return je(ee(this,U))}set current(e){Qe(ee(this,U),e,!0)}applyTheme(e){typeof document<"u"&&(e==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))}}U=new WeakMap;const cs=new Gt;export{os as a,rs as b,ns as c,ss as d,ts as s,cs as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as d,u as g,a as l,b,r as m,d as i,g as p,e as h,f as v,h as k}from"./DjhvlsAc.js";function x(n=!1){const s=d,e=s.l.u;if(!e)return;let o=()=>h(s.s);if(n){let a=0,t={};const _=v(()=>{let c=!1;const r=s.s;for(const f in r)r[f]!==t[f]&&(t[f]=r[f],c=!0);return c&&a++,a});o=()=>p(_)}e.b.length&&g(()=>{u(s,o),i(e.b)}),l(()=>{const a=b(()=>e.m.map(m));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&l(()=>{u(s,o),i(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}k();export{x as i};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CAGBuiOw.js","../chunks/CWc5urbQ.js","../chunks/DjhvlsAc.js","../chunks/N4qtv3Hx.js","../assets/0.B_FtCwCQ.css","../nodes/1.DFLC8jdE.js","../chunks/uj46x2Wr.js","../chunks/DMkZpdF2.js","../chunks/CIXEwuWe.js","../nodes/2.DPvEihJJ.js","../chunks/BgChzWQ1.js","../assets/2.Cl_eSA4x.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
var z=t=>{throw TypeError(t)};var G=(t,e,r)=>e.has(t)||z("Cannot "+r);var u=(t,e,r)=>(G(t,e,"read from private field"),r?r.call(t):e.get(t)),L=(t,e,r)=>e.has(t)?z("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),A=(t,e,r,n)=>(G(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{x as Y,z as Z,L as H,M as Q,Z as j,ad as $,g,aI as ee,a0 as te,X as re,p as se,u as ae,a as ne,o as oe,aJ as C,aK as ce,m as S,s as ie,i as le,j as ue,k as fe,l as T,t as de}from"../chunks/DjhvlsAc.js";import{h as me,m as he,u as _e,s as ve}from"../chunks/DMkZpdF2.js";import{f as K,a as w,c as B,t as ge}from"../chunks/CWc5urbQ.js";import{B as ye,p as I,i as D,b as V}from"../chunks/BgChzWQ1.js";function p(t,e,r){Y&&Z();var n=new ye(t);H(()=>{var c=e()??null;n.ensure(c,c&&(m=>r(m,c)))},Q)}function be(t){return class extends Ee{constructor(e){super({component:t,...e})}}}var y,d;class Ee{constructor(e){L(this,y);L(this,d);var m;var r=new Map,n=(a,s)=>{var i=re(s,!1,!1);return r.set(a,i),i};const c=new Proxy({...e.props||{},$$events:{}},{get(a,s){return g(r.get(s)??n(s,Reflect.get(a,s)))},has(a,s){return s===$?!0:(g(r.get(s)??n(s,Reflect.get(a,s))),Reflect.has(a,s))},set(a,s,i){return j(r.get(s)??n(s,i),i),Reflect.set(a,s,i)}});A(this,d,(e.hydrate?me:he)(e.component,{target:e.target,anchor:e.anchor,props:c,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((m=e==null?void 0:e.props)!=null&&m.$$host)||e.sync===!1)&&ee(),A(this,y,c.$$events);for(const a of Object.keys(u(this,d)))a==="$set"||a==="$destroy"||a==="$on"||te(this,a,{get(){return u(this,d)[a]},set(s){u(this,d)[a]=s},enumerable:!0});u(this,d).$set=a=>{Object.assign(c,a)},u(this,d).$destroy=()=>{_e(u(this,d))}}$set(e){u(this,d).$set(e)}$on(e,r){u(this,y)[e]=u(this,y)[e]||[];const n=(...c)=>r.call(this,...c);return u(this,y)[e].push(n),()=>{u(this,y)[e]=u(this,y)[e].filter(c=>c!==n)}}$destroy(){u(this,d).$destroy()}}y=new WeakMap,d=new WeakMap;const Pe="modulepreload",Re=function(t,e){return new URL(t,e).href},J={},q=function(e,r,n){let c=Promise.resolve();if(r&&r.length>0){let a=function(l){return Promise.all(l.map(v=>Promise.resolve(v).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};const s=document.getElementsByTagName("link"),i=document.querySelector("meta[property=csp-nonce]"),k=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));c=a(r.map(l=>{if(l=Re(l,n),l in J)return;J[l]=!0;const v=l.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(!!n)for(let o=s.length-1;o>=0;o--){const f=s[o];if(f.href===l&&(!v||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${b}`))return;const _=document.createElement("link");if(_.rel=v?"stylesheet":Pe,v||(_.as="script"),_.crossOrigin="",_.href=l,k&&_.setAttribute("nonce",k),document.head.appendChild(_),v)return new Promise((o,f)=>{_.addEventListener("load",o),_.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${l}`)))})}))}function m(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return c.then(a=>{for(const s of a||[])s.status==="rejected"&&m(s.reason);return e().catch(m)})},Be={};var we=K('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),ke=K("<!> <!>",1);function xe(t,e){se(e,!0);let r=I(e,"components",23,()=>[]),n=I(e,"data_0",3,null),c=I(e,"data_1",3,null);ae(()=>e.stores.page.set(e.page)),ne(()=>{e.stores,e.page,e.constructors,r(),e.form,n(),c(),e.stores.page.notify()});let m=C(!1),a=C(!1),s=C(null);oe(()=>{const o=e.stores.page.subscribe(()=>{g(m)&&(j(a,!0),ce().then(()=>{j(s,document.title||"untitled page",!0)}))});return j(m,!0),o});const i=T(()=>e.constructors[1]);var k=ke(),l=S(k);{var v=o=>{const f=T(()=>e.constructors[0]);var E=B(),x=S(E);p(x,()=>g(f),(P,R)=>{V(R(P,{get data(){return n()},get form(){return e.form},get params(){return e.page.params},children:(h,Se)=>{var U=B(),N=S(U);p(N,()=>g(i),(W,X)=>{V(X(W,{get data(){return c()},get form(){return e.form},get params(){return e.page.params}}),O=>r()[1]=O,()=>{var O;return(O=r())==null?void 0:O[1]})}),w(h,U)},$$slots:{default:!0}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),w(o,E)},b=o=>{const f=T(()=>e.constructors[0]);var E=B(),x=S(E);p(x,()=>g(f),(P,R)=>{V(R(P,{get data(){return n()},get form(){return e.form},get params(){return e.page.params}}),h=>r()[0]=h,()=>{var h;return(h=r())==null?void 0:h[0]})}),w(o,E)};D(l,o=>{e.constructors[1]?o(v):o(b,!1)})}var F=ie(l,2);{var _=o=>{var f=we(),E=ue(f);{var x=P=>{var R=ge();de(()=>ve(R,g(s))),w(P,R)};D(E,P=>{g(a)&&P(x)})}fe(f),w(o,f)};D(F,o=>{g(m)&&o(_)})}w(t,k),le()}const Ie=be(xe),De=[()=>q(()=>import("../nodes/0.CAGBuiOw.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>q(()=>import("../nodes/1.DFLC8jdE.js"),__vite__mapDeps([5,1,2,6,7,8]),import.meta.url),()=>q(()=>import("../nodes/2.DPvEihJJ.js"),__vite__mapDeps([9,1,2,7,10,3,6,11]),import.meta.url)],Ve=[],pe={"/":[2]},M={handleError:(({error:t})=>{console.error(t)}),reroute:(()=>{}),transport:{}},Oe=Object.fromEntries(Object.entries(M.transport).map(([t,e])=>[t,e.decode])),qe=Object.fromEntries(Object.entries(M.transport).map(([t,e])=>[t,e.encode])),Fe=!1,Ue=(t,e)=>Oe[t](e);export{Ue as decode,Oe as decoders,pe as dictionary,qe as encoders,Fe as hash,M as hooks,Be as matchers,De as nodes,Ie as root,Ve as server_loads};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as o,a as r}from"../chunks/CIXEwuWe.js";export{o as load_css,r as start};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as c,a as d}from"../chunks/CWc5urbQ.js";import{p as m,o as f,t as u,i as p,j as s,k as o,g as v,l as _}from"../chunks/DjhvlsAc.js";import{s as h,a as r,b,t as g}from"../chunks/N4qtv3Hx.js";const k=!0,x=!1,O=Object.freeze(Object.defineProperty({__proto__:null,prerender:k,ssr:x},Symbol.toStringTag,{value:"Module"}));var y=c('<div><main class="flex-1 overflow-hidden"><!></main></div>');function w(n,t){m(t,!0),f(()=>(r.connect(),()=>{r.disconnect()}));let l=_(()=>g.current==="dark"?"dark":"");var e=y(),a=s(e),i=s(a);h(i,t,"default",{},null),o(a),o(e),u(()=>b(e,1,`${v(l)??""} min-h-screen bg-slate-50 dark:bg-slate-900 flex flex-col transition-colors`)),d(n,e),p()}export{w as component,O as universal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as h,a as g}from"../chunks/CWc5urbQ.js";import{i as l}from"../chunks/uj46x2Wr.js";import{p as v,m as d,t as _,i as x,j as e,k as o,s as k}from"../chunks/DjhvlsAc.js";import{s as p}from"../chunks/DMkZpdF2.js";import{s as $,p as m}from"../chunks/CIXEwuWe.js";const b={get error(){return m.error},get status(){return m.status}};$.updated.check;const i=b;var j=h("<h1> </h1> <p> </p>",1);function A(f,n){v(n,!1),l();var t=j(),r=d(t),c=e(r,!0);o(r);var s=k(r,2),u=e(s,!0);o(s),_(()=>{var a;p(c,i.status),p(u,(a=i.error)==null?void 0:a.message)}),g(f,t),x()}export{A as component};
|