agentstudio 0.1.18 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -505
- package/bin/agentstudio.js +305 -0
- package/bin/agentstudio.js.map +1 -0
- package/bin/serviceManager.d.ts +16 -0
- package/bin/serviceManager.d.ts.map +1 -0
- package/bin/serviceManager.js +434 -0
- package/bin/serviceManager.js.map +1 -0
- package/config/index.d.ts +74 -0
- package/config/index.d.ts.map +1 -0
- package/config/index.js +166 -0
- package/config/index.js.map +1 -0
- package/config/paths.d.ts +81 -0
- package/config/paths.d.ts.map +1 -0
- package/config/paths.js +98 -0
- package/config/paths.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +369 -0
- package/index.js.map +1 -0
- package/jobs/taskTimeoutMonitor.d.ts +25 -0
- package/jobs/taskTimeoutMonitor.d.ts.map +1 -0
- package/jobs/taskTimeoutMonitor.js +94 -0
- package/jobs/taskTimeoutMonitor.js.map +1 -0
- package/middleware/a2aAuth.d.ts +38 -0
- package/middleware/a2aAuth.d.ts.map +1 -0
- package/middleware/a2aAuth.js +134 -0
- package/middleware/a2aAuth.js.map +1 -0
- package/{backend/dist/middleware → middleware}/auth.d.ts +3 -1
- package/middleware/auth.d.ts.map +1 -0
- package/middleware/auth.js +35 -0
- package/middleware/auth.js.map +1 -0
- package/middleware/httpsOnly.d.ts +38 -0
- package/middleware/httpsOnly.d.ts.map +1 -0
- package/middleware/httpsOnly.js +105 -0
- package/middleware/httpsOnly.js.map +1 -0
- package/middleware/rateLimiting.d.ts +37 -0
- package/middleware/rateLimiting.d.ts.map +1 -0
- package/middleware/rateLimiting.js +118 -0
- package/middleware/rateLimiting.js.map +1 -0
- package/package.json +43 -38
- package/public/assets/AgentsPage-Nvg2xu6K.js +10 -0
- package/public/assets/Button-Co56C389.js +1 -0
- package/public/assets/ChatPage-D6sol0ad.js +442 -0
- package/public/assets/CommandForm-Bk7F_HU8.js +7 -0
- package/public/assets/CommandsPage-DZHyOdKd.js +1 -0
- package/public/assets/DashboardPage-29qC7Ev1.js +15 -0
- package/public/assets/FileBrowser-BYweUPH4.js +6 -0
- package/public/assets/FileExplorer-DNYj6Tsx.js +1 -0
- package/public/assets/GeneralSettingsPage-D9Xa7Nd8.js +1 -0
- package/public/assets/LandingPage-CjnT-cvO.js +1 -0
- package/public/assets/LoginPage-DcaGNCXH.js +16 -0
- package/public/assets/McpAdminSettingsPage-DgR3E2Bd.js +7 -0
- package/public/assets/McpPage-CtWf1CoL.js +40 -0
- package/public/assets/MemorySettingsPage-JTry4Ccp.js +1 -0
- package/public/assets/PluginsPage-D-BHjQ3P.js +1 -0
- package/public/assets/ProjectSelector-DSXOjMQC.js +1 -0
- package/public/assets/ProjectsPage-lLUk4-Xa.js +21 -0
- package/public/assets/ScheduledTasksPage-5hPbd9Vs.js +1 -0
- package/public/assets/SettingsLayout-DGJspXLp.js +1 -0
- package/public/assets/SkillsPage-DBw0m7D2.js +18 -0
- package/{backend/dist/frontend/assets/SubagentForm-DXtTTIKg.js → public/assets/SubagentForm-BdUK1U4y.js} +2 -2
- package/public/assets/SubagentsPage-Dnq70IFd.js +1 -0
- package/{backend/dist/frontend/assets/ToastTestPage-DT4wuN5C.js → public/assets/ToastTestPage-BfJQRFIm.js} +1 -1
- package/public/assets/ToolsList-Dl5F2fWk.js +1 -0
- package/public/assets/UnifiedToolSelector-CNbPsiuq.js +1 -0
- package/public/assets/VersionSettingsPage-BfoCcham.js +5 -0
- package/public/assets/_basePickBy-7C_e0Xv1.js +1 -0
- package/public/assets/_baseUniq-eGJNLBzx.js +1 -0
- package/public/assets/agents-ChrA1R0y.js +1 -0
- package/public/assets/arc-CuA752eE.js +1 -0
- package/public/assets/architectureDiagram-VXUJARFQ-BnPYh1OW.js +36 -0
- package/public/assets/blockDiagram-VD42YOAC-72nsMt_i.js +122 -0
- package/public/assets/c4Diagram-YG6GDRKO-BNJSAXcg.js +10 -0
- package/public/assets/channel-CIunGC5m.js +1 -0
- package/public/assets/chunk-4BX2VUAB-RPxkCWhH.js +1 -0
- package/public/assets/chunk-55IACEB6-3ePDt0kp.js +1 -0
- package/public/assets/chunk-B4BG7PRW-CBg_BBfl.js +165 -0
- package/public/assets/chunk-DI55MBZ5-DIh69TUJ.js +220 -0
- package/public/assets/chunk-FMBD7UC4-BbjwhyTe.js +15 -0
- package/public/assets/chunk-QN33PNHL-BpH-o_YR.js +1 -0
- package/public/assets/chunk-QZHKN3VN-DYB7rh5Q.js +1 -0
- package/public/assets/chunk-TZMSLE5B-DPCYEVb3.js +1 -0
- package/public/assets/classDiagram-2ON5EDUG-aUQHFsTA.js +1 -0
- package/public/assets/classDiagram-v2-WZHVMYZB-aUQHFsTA.js +1 -0
- package/public/assets/clone-Ckf7tA1V.js +1 -0
- package/public/assets/cose-bilkent-S5V4N54A-CnpfmL-Y.js +1 -0
- package/public/assets/cytoscape.esm-DtBltrT8.js +331 -0
- package/public/assets/dagre-6UL2VRFP-DR9x77Xf.js +4 -0
- package/{backend/dist/frontend/assets/data-structures-DLJedtzx.js → public/assets/data-structures-C0h9Oap1.js} +1 -1
- package/public/assets/defaultLocale-C4B-KCzX.js +1 -0
- package/public/assets/diagram-PSM6KHXK-SONPsQNx.js +24 -0
- package/public/assets/diagram-QEK2KX5R-BKYFSfC1.js +43 -0
- package/public/assets/diagram-S2PKOQOG-CkM0APZj.js +24 -0
- package/public/assets/erDiagram-Q2GNP2WA-BX1DpOGx.js +60 -0
- package/public/assets/flowDiagram-NV44I4VS-HAAlzNbq.js +162 -0
- package/public/assets/ganttDiagram-LVOFAZNH-BqzWexqa.js +267 -0
- package/public/assets/gitGraphDiagram-NY62KEGX-CIPmSp43.js +65 -0
- package/public/assets/graph-m515btDj.js +1 -0
- package/public/assets/index-Bn3v3S9-.js +293 -0
- package/public/assets/index-DWieeYj4.css +1 -0
- package/public/assets/infoDiagram-F6ZHWCRC-Pn4yNWrF.js +2 -0
- package/public/assets/init-Gi6I4Gst.js +1 -0
- package/public/assets/journeyDiagram-XKPGCS4Q-BfzTomS0.js +139 -0
- package/public/assets/kanban-definition-3W4ZIXB7-Cgju7b-L.js +89 -0
- package/public/assets/katex-qrhCpa0F.js +261 -0
- package/public/assets/layout-BKQfQSxJ.js +1 -0
- package/public/assets/linear-DigtLz3B.js +1 -0
- package/public/assets/mindmap-definition-VGOIOE7T-qopraVFy.js +68 -0
- package/public/assets/monaco-editor-DHKm5-VF.js +19 -0
- package/public/assets/ordinal-Cboi1Yqb.js +1 -0
- package/public/assets/pieDiagram-ADFJNKIX-BcoaAI-L.js +30 -0
- package/public/assets/quadrantDiagram-AYHSOK5B-D-DwcoSd.js +7 -0
- package/public/assets/requirementDiagram-UZGBJVZJ-DbQCpx77.js +64 -0
- package/public/assets/sankeyDiagram-TZEHDZUN-BVk8387S.js +10 -0
- package/public/assets/sequenceDiagram-WL72ISMW-BdzICjxO.js +145 -0
- package/public/assets/stateDiagram-FKZM4ZOC-CYY-uUvJ.js +1 -0
- package/public/assets/stateDiagram-v2-4FDKWEC3-Dh2Kvomq.js +1 -0
- package/{backend/dist/frontend/assets/syntax-highlighting-YWvMU4Hm.js → public/assets/syntax-highlighting-CnREyncB.js} +5 -5
- package/public/assets/tabManager-B2LQO_Ll.js +30 -0
- package/{backend/dist/frontend/assets/table-D6q1rytw.js → public/assets/table-D0L2RL5i.js} +1 -1
- package/public/assets/timeline-definition-IT6M3QCI-BAvjPYvX.js +61 -0
- package/public/assets/tools-IcPNZlPj.js +1 -0
- package/public/assets/treemap-KMMF4GRG-DtkpVA56.js +128 -0
- package/{backend/dist/frontend/assets/ui-components-Cw21Epuw.js → public/assets/ui-components-D1St49qC.js} +231 -96
- package/public/assets/useAgents-BnDTkOG8.js +2 -0
- package/public/assets/useClaudeVersions-CD59tFWM.js +1 -0
- package/public/assets/useCommands-mvMu3mMD.js +1 -0
- package/public/assets/useProjects-YXOjaOwL.js +1 -0
- package/public/assets/xychartDiagram-PRI3JC2R-ByBTDWE2.js +7 -0
- package/{backend/dist/frontend → public}/index.html +8 -8
- package/routes/__tests__/a2a.integration.test.d.ts +11 -0
- package/routes/__tests__/a2a.integration.test.d.ts.map +1 -0
- package/routes/__tests__/a2a.integration.test.js +314 -0
- package/routes/__tests__/a2a.integration.test.js.map +1 -0
- package/routes/__tests__/a2a.test.d.ts +6 -0
- package/routes/__tests__/a2a.test.d.ts.map +1 -0
- package/routes/__tests__/a2a.test.js +622 -0
- package/routes/__tests__/a2a.test.js.map +1 -0
- package/routes/__tests__/agents.test.d.ts +6 -0
- package/routes/__tests__/agents.test.d.ts.map +1 -0
- package/routes/__tests__/agents.test.js +315 -0
- package/routes/__tests__/agents.test.js.map +1 -0
- package/routes/__tests__/sessions.test.d.ts +7 -0
- package/routes/__tests__/sessions.test.d.ts.map +1 -0
- package/routes/__tests__/sessions.test.js +330 -0
- package/routes/__tests__/sessions.test.js.map +1 -0
- package/routes/a2a.d.ts +18 -0
- package/routes/a2a.d.ts.map +1 -0
- package/routes/a2a.js +649 -0
- package/routes/a2a.js.map +1 -0
- package/routes/a2a.streaming.test.d.ts +2 -0
- package/routes/a2a.streaming.test.d.ts.map +1 -0
- package/routes/a2a.streaming.test.js +167 -0
- package/routes/a2a.streaming.test.js.map +1 -0
- package/routes/a2aManagement.d.ts +21 -0
- package/routes/a2aManagement.d.ts.map +1 -0
- package/routes/a2aManagement.js +466 -0
- package/routes/a2aManagement.js.map +1 -0
- package/{backend/dist/routes → routes}/agents.d.ts.map +1 -1
- package/routes/agents.js +997 -0
- package/routes/agents.js.map +1 -0
- package/{backend/dist/routes → routes}/auth.d.ts.map +1 -1
- package/routes/auth.js +135 -0
- package/routes/auth.js.map +1 -0
- package/{backend/dist/routes → routes}/commands.d.ts.map +1 -1
- package/{backend/dist/routes → routes}/commands.js +115 -31
- package/routes/commands.js.map +1 -0
- package/routes/config.d.ts +4 -0
- package/routes/config.d.ts.map +1 -0
- package/routes/config.js +211 -0
- package/routes/config.js.map +1 -0
- package/{backend/dist/routes → routes}/files.d.ts.map +1 -1
- package/{backend/dist/routes → routes}/files.js +103 -43
- package/routes/files.js.map +1 -0
- package/routes/mcp.d.ts +27 -0
- package/routes/mcp.d.ts.map +1 -0
- package/{backend/dist/routes → routes}/mcp.js +195 -105
- package/routes/mcp.js.map +1 -0
- package/routes/mcpAdmin.d.ts +16 -0
- package/routes/mcpAdmin.d.ts.map +1 -0
- package/routes/mcpAdmin.js +308 -0
- package/routes/mcpAdmin.js.map +1 -0
- package/routes/mcpAdminManagement.d.ts +17 -0
- package/routes/mcpAdminManagement.d.ts.map +1 -0
- package/routes/mcpAdminManagement.js +345 -0
- package/routes/mcpAdminManagement.js.map +1 -0
- package/routes/media.d.ts.map +1 -0
- package/{backend/dist/routes → routes}/media.js +52 -42
- package/routes/media.js.map +1 -0
- package/routes/mediaAuth.d.ts +8 -0
- package/routes/mediaAuth.d.ts.map +1 -0
- package/routes/mediaAuth.js +136 -0
- package/routes/mediaAuth.js.map +1 -0
- package/routes/plugins.d.ts +4 -0
- package/routes/plugins.d.ts.map +1 -0
- package/routes/plugins.js +339 -0
- package/routes/plugins.js.map +1 -0
- package/{backend/dist/routes → routes}/projects.d.ts.map +1 -1
- package/routes/projects.js +884 -0
- package/routes/projects.js.map +1 -0
- package/routes/scheduledTasks.d.ts +9 -0
- package/routes/scheduledTasks.d.ts.map +1 -0
- package/routes/scheduledTasks.js +320 -0
- package/routes/scheduledTasks.js.map +1 -0
- package/{backend/dist/routes → routes}/sessions.d.ts.map +1 -1
- package/{backend/dist/routes → routes}/sessions.js +258 -39
- package/routes/sessions.js.map +1 -0
- package/{backend/dist/routes → routes}/settings.d.ts.map +1 -1
- package/{backend/dist/routes → routes}/settings.js +82 -241
- package/routes/settings.js.map +1 -0
- package/{backend/dist/routes/mcp.d.ts → routes/skills.d.ts} +1 -1
- package/routes/skills.d.ts.map +1 -0
- package/routes/skills.js +272 -0
- package/routes/skills.js.map +1 -0
- package/routes/slack.d.ts +10 -0
- package/routes/slack.d.ts.map +1 -0
- package/routes/slack.js +189 -0
- package/routes/slack.js.map +1 -0
- package/{backend/dist/routes → routes}/slides.d.ts.map +1 -1
- package/{backend/dist/routes → routes}/slides.js +29 -27
- package/routes/slides.js.map +1 -0
- package/{backend/dist/routes → routes}/subagents.js +27 -22
- package/routes/subagents.js.map +1 -0
- package/schemas/a2a.d.ts +858 -0
- package/schemas/a2a.d.ts.map +1 -0
- package/schemas/a2a.js +300 -0
- package/schemas/a2a.js.map +1 -0
- package/scripts/postinstall.js +10 -0
- package/services/__tests__/pluginInstaller.test.d.ts +5 -0
- package/services/__tests__/pluginInstaller.test.d.ts.map +1 -0
- package/services/__tests__/pluginInstaller.test.js +290 -0
- package/services/__tests__/pluginInstaller.test.js.map +1 -0
- package/services/__tests__/pluginParser.test.d.ts +5 -0
- package/services/__tests__/pluginParser.test.d.ts.map +1 -0
- package/services/__tests__/pluginParser.test.js +272 -0
- package/services/__tests__/pluginParser.test.js.map +1 -0
- package/services/__tests__/pluginPaths.test.d.ts +5 -0
- package/services/__tests__/pluginPaths.test.d.ts.map +1 -0
- package/services/__tests__/pluginPaths.test.js +221 -0
- package/services/__tests__/pluginPaths.test.js.map +1 -0
- package/services/__tests__/pluginScanner.test.d.ts +5 -0
- package/services/__tests__/pluginScanner.test.d.ts.map +1 -0
- package/services/__tests__/pluginScanner.test.js +272 -0
- package/services/__tests__/pluginScanner.test.js.map +1 -0
- package/services/__tests__/pluginSymlink.test.d.ts +5 -0
- package/services/__tests__/pluginSymlink.test.d.ts.map +1 -0
- package/services/__tests__/pluginSymlink.test.js +318 -0
- package/services/__tests__/pluginSymlink.test.js.map +1 -0
- package/services/__tests__/slackAIService.test.d.ts +5 -0
- package/services/__tests__/slackAIService.test.d.ts.map +1 -0
- package/services/__tests__/slackAIService.test.js +477 -0
- package/services/__tests__/slackAIService.test.js.map +1 -0
- package/services/__tests__/slackThreadMapper.test.d.ts +5 -0
- package/services/__tests__/slackThreadMapper.test.d.ts.map +1 -0
- package/services/__tests__/slackThreadMapper.test.js +194 -0
- package/services/__tests__/slackThreadMapper.test.js.map +1 -0
- package/services/a2a/__tests__/a2aClientTool.integration.test.d.ts +6 -0
- package/services/a2a/__tests__/a2aClientTool.integration.test.d.ts.map +1 -0
- package/services/a2a/__tests__/a2aClientTool.integration.test.js +264 -0
- package/services/a2a/__tests__/a2aClientTool.integration.test.js.map +1 -0
- package/services/a2a/__tests__/a2aClientTool.test.d.ts +6 -0
- package/services/a2a/__tests__/a2aClientTool.test.d.ts.map +1 -0
- package/services/a2a/__tests__/a2aClientTool.test.js +418 -0
- package/services/a2a/__tests__/a2aClientTool.test.js.map +1 -0
- package/services/a2a/__tests__/a2aConfigService.test.d.ts +6 -0
- package/services/a2a/__tests__/a2aConfigService.test.d.ts.map +1 -0
- package/services/a2a/__tests__/a2aConfigService.test.js +431 -0
- package/services/a2a/__tests__/a2aConfigService.test.js.map +1 -0
- package/services/a2a/__tests__/a2aConfigServicePath.test.d.ts +2 -0
- package/services/a2a/__tests__/a2aConfigServicePath.test.d.ts.map +1 -0
- package/services/a2a/__tests__/a2aConfigServicePath.test.js +49 -0
- package/services/a2a/__tests__/a2aConfigServicePath.test.js.map +1 -0
- package/services/a2a/__tests__/a2aSdkMcp.test.d.ts +10 -0
- package/services/a2a/__tests__/a2aSdkMcp.test.d.ts.map +1 -0
- package/services/a2a/__tests__/a2aSdkMcp.test.js +239 -0
- package/services/a2a/__tests__/a2aSdkMcp.test.js.map +1 -0
- package/services/a2a/__tests__/agentCardService.test.d.ts +6 -0
- package/services/a2a/__tests__/agentCardService.test.d.ts.map +1 -0
- package/services/a2a/__tests__/agentCardService.test.js +292 -0
- package/services/a2a/__tests__/agentCardService.test.js.map +1 -0
- package/services/a2a/__tests__/apiKeyService.test.d.ts +6 -0
- package/services/a2a/__tests__/apiKeyService.test.d.ts.map +1 -0
- package/services/a2a/__tests__/apiKeyService.test.js +284 -0
- package/services/a2a/__tests__/apiKeyService.test.js.map +1 -0
- package/services/a2a/__tests__/buildQueryOptionsIntegration.test.d.ts +2 -0
- package/services/a2a/__tests__/buildQueryOptionsIntegration.test.d.ts.map +1 -0
- package/services/a2a/__tests__/buildQueryOptionsIntegration.test.js +70 -0
- package/services/a2a/__tests__/buildQueryOptionsIntegration.test.js.map +1 -0
- package/services/a2a/__tests__/dynamic_config_verification.test.d.ts +2 -0
- package/services/a2a/__tests__/dynamic_config_verification.test.d.ts.map +1 -0
- package/services/a2a/__tests__/dynamic_config_verification.test.js +67 -0
- package/services/a2a/__tests__/dynamic_config_verification.test.js.map +1 -0
- package/services/a2a/__tests__/integrateA2AMcpServer.test.d.ts +2 -0
- package/services/a2a/__tests__/integrateA2AMcpServer.test.d.ts.map +1 -0
- package/services/a2a/__tests__/integrateA2AMcpServer.test.js +112 -0
- package/services/a2a/__tests__/integrateA2AMcpServer.test.js.map +1 -0
- package/services/a2a/__tests__/taskManager.integration.test.d.ts +7 -0
- package/services/a2a/__tests__/taskManager.integration.test.d.ts.map +1 -0
- package/services/a2a/__tests__/taskManager.integration.test.js +346 -0
- package/services/a2a/__tests__/taskManager.integration.test.js.map +1 -0
- package/services/a2a/__tests__/taskManager.test.d.ts +7 -0
- package/services/a2a/__tests__/taskManager.test.d.ts.map +1 -0
- package/services/a2a/__tests__/taskManager.test.js +423 -0
- package/services/a2a/__tests__/taskManager.test.js.map +1 -0
- package/services/a2a/a2aClientTool.d.ts +73 -0
- package/services/a2a/a2aClientTool.d.ts.map +1 -0
- package/services/a2a/a2aClientTool.js +572 -0
- package/services/a2a/a2aClientTool.js.map +1 -0
- package/services/a2a/a2aConfigService.d.ts +50 -0
- package/services/a2a/a2aConfigService.d.ts.map +1 -0
- package/services/a2a/a2aConfigService.js +186 -0
- package/services/a2a/a2aConfigService.js.map +1 -0
- package/services/a2a/a2aHistoryService.d.ts +32 -0
- package/services/a2a/a2aHistoryService.d.ts.map +1 -0
- package/services/a2a/a2aHistoryService.js +108 -0
- package/services/a2a/a2aHistoryService.js.map +1 -0
- package/services/a2a/a2aIntegration.d.ts +9 -0
- package/services/a2a/a2aIntegration.d.ts.map +1 -0
- package/services/a2a/a2aIntegration.js +41 -0
- package/services/a2a/a2aIntegration.js.map +1 -0
- package/services/a2a/a2aQueryService.d.ts +71 -0
- package/services/a2a/a2aQueryService.d.ts.map +1 -0
- package/services/a2a/a2aQueryService.js +166 -0
- package/services/a2a/a2aQueryService.js.map +1 -0
- package/services/a2a/a2aSdkMcp.d.ts +51 -0
- package/services/a2a/a2aSdkMcp.d.ts.map +1 -0
- package/services/a2a/a2aSdkMcp.js +185 -0
- package/services/a2a/a2aSdkMcp.js.map +1 -0
- package/services/a2a/a2aStreamEvents.d.ts +94 -0
- package/services/a2a/a2aStreamEvents.d.ts.map +1 -0
- package/services/a2a/a2aStreamEvents.js +92 -0
- package/services/a2a/a2aStreamEvents.js.map +1 -0
- package/services/a2a/agentCardService.d.ts +34 -0
- package/services/a2a/agentCardService.d.ts.map +1 -0
- package/services/a2a/agentCardService.js +228 -0
- package/services/a2a/agentCardService.js.map +1 -0
- package/services/a2a/agentMappingService.d.ts +53 -0
- package/services/a2a/agentMappingService.d.ts.map +1 -0
- package/services/a2a/agentMappingService.js +185 -0
- package/services/a2a/agentMappingService.js.map +1 -0
- package/services/a2a/apiKeyService.d.ts +101 -0
- package/services/a2a/apiKeyService.d.ts.map +1 -0
- package/services/a2a/apiKeyService.js +314 -0
- package/services/a2a/apiKeyService.js.map +1 -0
- package/services/a2a/taskCleanup.d.ts +30 -0
- package/services/a2a/taskCleanup.d.ts.map +1 -0
- package/services/a2a/taskCleanup.js +184 -0
- package/services/a2a/taskCleanup.js.map +1 -0
- package/services/a2a/taskManager.d.ts +86 -0
- package/services/a2a/taskManager.d.ts.map +1 -0
- package/services/a2a/taskManager.js +263 -0
- package/services/a2a/taskManager.js.map +1 -0
- package/services/agentStorage.d.ts +27 -0
- package/services/agentStorage.d.ts.map +1 -0
- package/services/agentStorage.js +487 -0
- package/services/agentStorage.js.map +1 -0
- package/services/askUserQuestion/askUserQuestionIntegration.d.ts +24 -0
- package/services/askUserQuestion/askUserQuestionIntegration.d.ts.map +1 -0
- package/services/askUserQuestion/askUserQuestionIntegration.js +52 -0
- package/services/askUserQuestion/askUserQuestionIntegration.js.map +1 -0
- package/services/askUserQuestion/askUserQuestionMcp.d.ts +103 -0
- package/services/askUserQuestion/askUserQuestionMcp.d.ts.map +1 -0
- package/services/askUserQuestion/askUserQuestionMcp.js +129 -0
- package/services/askUserQuestion/askUserQuestionMcp.js.map +1 -0
- package/services/askUserQuestion/index.d.ts +13 -0
- package/services/askUserQuestion/index.d.ts.map +1 -0
- package/services/askUserQuestion/index.js +35 -0
- package/services/askUserQuestion/index.js.map +1 -0
- package/services/askUserQuestion/init.d.ts +17 -0
- package/services/askUserQuestion/init.d.ts.map +1 -0
- package/services/askUserQuestion/init.js +47 -0
- package/services/askUserQuestion/init.js.map +1 -0
- package/services/askUserQuestion/notificationChannel.d.ts +97 -0
- package/services/askUserQuestion/notificationChannel.d.ts.map +1 -0
- package/services/askUserQuestion/notificationChannel.js +147 -0
- package/services/askUserQuestion/notificationChannel.js.map +1 -0
- package/services/askUserQuestion/slackNotificationChannel.d.ts +35 -0
- package/services/askUserQuestion/slackNotificationChannel.d.ts.map +1 -0
- package/services/askUserQuestion/slackNotificationChannel.js +129 -0
- package/services/askUserQuestion/slackNotificationChannel.js.map +1 -0
- package/services/askUserQuestion/sseNotificationChannel.d.ts +36 -0
- package/services/askUserQuestion/sseNotificationChannel.d.ts.map +1 -0
- package/services/askUserQuestion/sseNotificationChannel.js +88 -0
- package/services/askUserQuestion/sseNotificationChannel.js.map +1 -0
- package/services/askUserQuestion/userInputRegistry.d.ts +107 -0
- package/services/askUserQuestion/userInputRegistry.d.ts.map +1 -0
- package/services/askUserQuestion/userInputRegistry.js +253 -0
- package/services/askUserQuestion/userInputRegistry.js.map +1 -0
- package/{backend/dist/services → services}/claudeSession.d.ts +20 -5
- package/services/claudeSession.d.ts.map +1 -0
- package/{backend/dist/services → services}/claudeSession.js +123 -41
- package/services/claudeSession.js.map +1 -0
- package/services/claudeVersionStorage.d.ts +20 -0
- package/services/claudeVersionStorage.d.ts.map +1 -0
- package/services/claudeVersionStorage.js +331 -0
- package/services/claudeVersionStorage.js.map +1 -0
- package/services/mcpAdmin/__tests__/adminApiKeyService.test.d.ts +5 -0
- package/services/mcpAdmin/__tests__/adminApiKeyService.test.d.ts.map +1 -0
- package/services/mcpAdmin/__tests__/adminApiKeyService.test.js +289 -0
- package/services/mcpAdmin/__tests__/adminApiKeyService.test.js.map +1 -0
- package/services/mcpAdmin/__tests__/mcpAdminRoutes.test.d.ts +5 -0
- package/services/mcpAdmin/__tests__/mcpAdminRoutes.test.d.ts.map +1 -0
- package/services/mcpAdmin/__tests__/mcpAdminRoutes.test.js +345 -0
- package/services/mcpAdmin/__tests__/mcpAdminRoutes.test.js.map +1 -0
- package/services/mcpAdmin/__tests__/mcpAdminServer.test.d.ts +5 -0
- package/services/mcpAdmin/__tests__/mcpAdminServer.test.d.ts.map +1 -0
- package/services/mcpAdmin/__tests__/mcpAdminServer.test.js +453 -0
- package/services/mcpAdmin/__tests__/mcpAdminServer.test.js.map +1 -0
- package/services/mcpAdmin/__tests__/tools.test.d.ts +5 -0
- package/services/mcpAdmin/__tests__/tools.test.d.ts.map +1 -0
- package/services/mcpAdmin/__tests__/tools.test.js +371 -0
- package/services/mcpAdmin/__tests__/tools.test.js.map +1 -0
- package/services/mcpAdmin/adminApiKeyService.d.ts +61 -0
- package/services/mcpAdmin/adminApiKeyService.d.ts.map +1 -0
- package/services/mcpAdmin/adminApiKeyService.js +270 -0
- package/services/mcpAdmin/adminApiKeyService.js.map +1 -0
- package/services/mcpAdmin/index.d.ts +10 -0
- package/services/mcpAdmin/index.d.ts.map +1 -0
- package/services/mcpAdmin/index.js +43 -0
- package/services/mcpAdmin/index.js.map +1 -0
- package/services/mcpAdmin/mcpAdminServer.d.ts +76 -0
- package/services/mcpAdmin/mcpAdminServer.d.ts.map +1 -0
- package/services/mcpAdmin/mcpAdminServer.js +243 -0
- package/services/mcpAdmin/mcpAdminServer.js.map +1 -0
- package/services/mcpAdmin/tools/agentTools.d.ts +27 -0
- package/services/mcpAdmin/tools/agentTools.d.ts.map +1 -0
- package/services/mcpAdmin/tools/agentTools.js +359 -0
- package/services/mcpAdmin/tools/agentTools.js.map +1 -0
- package/services/mcpAdmin/tools/index.d.ts +15 -0
- package/services/mcpAdmin/tools/index.d.ts.map +1 -0
- package/services/mcpAdmin/tools/index.js +30 -0
- package/services/mcpAdmin/tools/index.js.map +1 -0
- package/services/mcpAdmin/tools/mcpServerTools.d.ts +27 -0
- package/services/mcpAdmin/tools/mcpServerTools.d.ts.map +1 -0
- package/services/mcpAdmin/tools/mcpServerTools.js +334 -0
- package/services/mcpAdmin/tools/mcpServerTools.js.map +1 -0
- package/services/mcpAdmin/tools/projectTools.d.ts +27 -0
- package/services/mcpAdmin/tools/projectTools.d.ts.map +1 -0
- package/services/mcpAdmin/tools/projectTools.js +353 -0
- package/services/mcpAdmin/tools/projectTools.js.map +1 -0
- package/services/mcpAdmin/tools/systemTools.d.ts +23 -0
- package/services/mcpAdmin/tools/systemTools.d.ts.map +1 -0
- package/services/mcpAdmin/tools/systemTools.js +241 -0
- package/services/mcpAdmin/tools/systemTools.js.map +1 -0
- package/services/mcpAdmin/types.d.ts +124 -0
- package/services/mcpAdmin/types.d.ts.map +1 -0
- package/services/mcpAdmin/types.js +18 -0
- package/services/mcpAdmin/types.js.map +1 -0
- package/{backend/dist/services → services}/messageQueue.d.ts.map +1 -1
- package/{backend/dist/services → services}/messageQueue.js +16 -3
- package/services/messageQueue.js.map +1 -0
- package/services/pluginInstaller.d.ts +58 -0
- package/services/pluginInstaller.d.ts.map +1 -0
- package/services/pluginInstaller.js +321 -0
- package/services/pluginInstaller.js.map +1 -0
- package/services/pluginParser.d.ts +45 -0
- package/services/pluginParser.d.ts.map +1 -0
- package/services/pluginParser.js +437 -0
- package/services/pluginParser.js.map +1 -0
- package/services/pluginPaths.d.ts +80 -0
- package/services/pluginPaths.d.ts.map +1 -0
- package/services/pluginPaths.js +274 -0
- package/services/pluginPaths.js.map +1 -0
- package/services/pluginScanner.d.ts +36 -0
- package/services/pluginScanner.d.ts.map +1 -0
- package/services/pluginScanner.js +251 -0
- package/services/pluginScanner.js.map +1 -0
- package/services/pluginSymlink.d.ts +54 -0
- package/services/pluginSymlink.d.ts.map +1 -0
- package/services/pluginSymlink.js +223 -0
- package/services/pluginSymlink.js.map +1 -0
- package/services/projectMetadataStorage.d.ts +114 -0
- package/services/projectMetadataStorage.d.ts.map +1 -0
- package/services/projectMetadataStorage.js +711 -0
- package/services/projectMetadataStorage.js.map +1 -0
- package/services/scheduledTaskStorage.d.ts +52 -0
- package/services/scheduledTaskStorage.d.ts.map +1 -0
- package/services/scheduledTaskStorage.js +285 -0
- package/services/scheduledTaskStorage.js.map +1 -0
- package/services/schedulerService.d.ts +81 -0
- package/services/schedulerService.d.ts.map +1 -0
- package/services/schedulerService.js +743 -0
- package/services/schedulerService.js.map +1 -0
- package/{backend/dist/services → services}/sessionManager.d.ts +6 -4
- package/services/sessionManager.d.ts.map +1 -0
- package/{backend/dist/services → services}/sessionManager.js +77 -16
- package/services/sessionManager.js.map +1 -0
- package/services/skillStorage.d.ts +60 -0
- package/services/skillStorage.d.ts.map +1 -0
- package/services/skillStorage.js +398 -0
- package/services/skillStorage.js.map +1 -0
- package/services/slackAIService.d.ts +81 -0
- package/services/slackAIService.d.ts.map +1 -0
- package/services/slackAIService.js +1091 -0
- package/services/slackAIService.js.map +1 -0
- package/services/slackClient.d.ts +46 -0
- package/services/slackClient.d.ts.map +1 -0
- package/services/slackClient.js +85 -0
- package/services/slackClient.js.map +1 -0
- package/services/slackSessionLock.d.ts +79 -0
- package/services/slackSessionLock.d.ts.map +1 -0
- package/services/slackSessionLock.js +353 -0
- package/services/slackSessionLock.js.map +1 -0
- package/services/slackThreadMapper.d.ts +57 -0
- package/services/slackThreadMapper.d.ts.map +1 -0
- package/services/slackThreadMapper.js +140 -0
- package/services/slackThreadMapper.js.map +1 -0
- package/types/a2a.d.ts +275 -0
- package/types/a2a.d.ts.map +1 -0
- package/types/a2a.js +23 -0
- package/types/a2a.js.map +1 -0
- package/types/agents.d.ts +95 -0
- package/types/agents.d.ts.map +1 -0
- package/types/agents.js +46 -0
- package/types/agents.js.map +1 -0
- package/types/claude-history.d.ts +62 -0
- package/types/claude-history.d.ts.map +1 -0
- package/types/claude-history.js +4 -0
- package/types/claude-history.js.map +1 -0
- package/types/claude-versions.d.ts +36 -0
- package/types/claude-versions.d.ts.map +1 -0
- package/types/claude-versions.js +3 -0
- package/types/claude-versions.js.map +1 -0
- package/types/commands.d.ts +50 -0
- package/types/commands.d.ts.map +1 -0
- package/types/commands.js +23 -0
- package/types/commands.js.map +1 -0
- package/types/plugins.d.ts +144 -0
- package/types/plugins.d.ts.map +1 -0
- package/types/plugins.js +8 -0
- package/types/plugins.js.map +1 -0
- package/types/projects.d.ts +42 -0
- package/types/projects.d.ts.map +1 -0
- package/types/projects.js +4 -0
- package/types/projects.js.map +1 -0
- package/types/scheduledTasks.d.ts +164 -0
- package/types/scheduledTasks.d.ts.map +1 -0
- package/types/scheduledTasks.js +17 -0
- package/types/scheduledTasks.js.map +1 -0
- package/types/skills.d.ts +91 -0
- package/types/skills.d.ts.map +1 -0
- package/types/skills.js +6 -0
- package/types/skills.js.map +1 -0
- package/types/slack.d.ts +97 -0
- package/types/slack.d.ts.map +1 -0
- package/types/slack.js +8 -0
- package/types/slack.js.map +1 -0
- package/types/streaming.d.ts +12 -0
- package/types/streaming.d.ts.map +1 -0
- package/types/streaming.js +8 -0
- package/types/streaming.js.map +1 -0
- package/types/subagents.d.ts +26 -0
- package/types/subagents.d.ts.map +1 -0
- package/types/subagents.js +3 -0
- package/types/subagents.js.map +1 -0
- package/utils/__tests__/claudeUtils.test.d.ts +5 -0
- package/utils/__tests__/claudeUtils.test.d.ts.map +1 -0
- package/utils/__tests__/claudeUtils.test.js +282 -0
- package/utils/__tests__/claudeUtils.test.js.map +1 -0
- package/utils/__tests__/sessionUtils.test.d.ts +5 -0
- package/utils/__tests__/sessionUtils.test.d.ts.map +1 -0
- package/utils/__tests__/sessionUtils.test.js +295 -0
- package/utils/__tests__/sessionUtils.test.js.map +1 -0
- package/utils/agentCardCache.d.ts +93 -0
- package/utils/agentCardCache.d.ts.map +1 -0
- package/utils/agentCardCache.js +212 -0
- package/utils/agentCardCache.js.map +1 -0
- package/utils/claudeUtils.d.ts +54 -0
- package/utils/claudeUtils.d.ts.map +1 -0
- package/utils/claudeUtils.js +387 -0
- package/utils/claudeUtils.js.map +1 -0
- package/utils/fileUtils.d.ts +2 -0
- package/utils/fileUtils.d.ts.map +1 -0
- package/utils/fileUtils.js +11 -0
- package/utils/fileUtils.js.map +1 -0
- package/utils/jwt.d.ts +30 -0
- package/utils/jwt.d.ts.map +1 -0
- package/utils/jwt.js +95 -0
- package/utils/jwt.js.map +1 -0
- package/utils/sessionUtils.d.ts +64 -0
- package/utils/sessionUtils.d.ts.map +1 -0
- package/utils/sessionUtils.js +266 -0
- package/utils/sessionUtils.js.map +1 -0
- package/README.zh-CN.md +0 -525
- package/backend/dist/bin/agentstudio.js +0 -120
- package/backend/dist/bin/agentstudio.js.map +0 -1
- package/backend/dist/frontend/assets/AgentsPage-Dqb_aqAA.js +0 -1
- package/backend/dist/frontend/assets/ChatPage-L8Paywyc.js +0 -91
- package/backend/dist/frontend/assets/CommandForm-DLl7EIMS.js +0 -7
- package/backend/dist/frontend/assets/CommandsPage-Bzavq0Ec.js +0 -1
- package/backend/dist/frontend/assets/DashboardPage-B3o4AYFT.js +0 -15
- package/backend/dist/frontend/assets/FileBrowser-DL3ayaqb.js +0 -1
- package/backend/dist/frontend/assets/GeneralSettingsPage-CBN_de-V.js +0 -1
- package/backend/dist/frontend/assets/LandingPage-Dl4ioKos.js +0 -1
- package/backend/dist/frontend/assets/LoginPage-4QqRdiSi.js +0 -12
- package/backend/dist/frontend/assets/McpPage-CY3tYiqj.js +0 -39
- package/backend/dist/frontend/assets/MemorySettingsPage-DGxrok5K.js +0 -1
- package/backend/dist/frontend/assets/ProjectSelector-hgmGYVFh.js +0 -1
- package/backend/dist/frontend/assets/ProjectsPage-D399IM0c.js +0 -14
- package/backend/dist/frontend/assets/SettingsLayout-CL_K-lzJ.js +0 -1
- package/backend/dist/frontend/assets/SubagentsPage-Chbhj8p2.js +0 -1
- package/backend/dist/frontend/assets/UnifiedToolSelector-CsM9qBvs.js +0 -1
- package/backend/dist/frontend/assets/VersionSettingsPage-74Q-LVgA.js +0 -5
- package/backend/dist/frontend/assets/agents-ClAzIJTw.js +0 -1
- package/backend/dist/frontend/assets/authFetch-BATQyPG5.js +0 -1
- package/backend/dist/frontend/assets/index-B9YHa7XT.css +0 -1
- package/backend/dist/frontend/assets/index-B_CTNvca.js +0 -268
- package/backend/dist/frontend/assets/monaco-editor-C7Z4sOhS.js +0 -19
- package/backend/dist/frontend/assets/tabManager-DV8urRBM.js +0 -30
- package/backend/dist/frontend/assets/tools-C4EPanYi.js +0 -1
- package/backend/dist/frontend/assets/useAgents-DwnOE1_k.js +0 -2
- package/backend/dist/frontend/assets/useClaudeVersions-CQdGnCqv.js +0 -1
- package/backend/dist/frontend/assets/useCommands-CCVaurbt.js +0 -1
- package/backend/dist/index.d.ts +0 -3
- package/backend/dist/index.d.ts.map +0 -1
- package/backend/dist/index.js +0 -157
- package/backend/dist/index.js.map +0 -1
- package/backend/dist/middleware/auth.d.ts.map +0 -1
- package/backend/dist/middleware/auth.js +0 -21
- package/backend/dist/middleware/auth.js.map +0 -1
- package/backend/dist/routes/agents.js +0 -803
- package/backend/dist/routes/agents.js.map +0 -1
- package/backend/dist/routes/auth.js +0 -60
- package/backend/dist/routes/auth.js.map +0 -1
- package/backend/dist/routes/commands.js.map +0 -1
- package/backend/dist/routes/files.js.map +0 -1
- package/backend/dist/routes/mcp.d.ts.map +0 -1
- package/backend/dist/routes/mcp.js.map +0 -1
- package/backend/dist/routes/media.d.ts.map +0 -1
- package/backend/dist/routes/media.js.map +0 -1
- package/backend/dist/routes/projects.js +0 -528
- package/backend/dist/routes/projects.js.map +0 -1
- package/backend/dist/routes/sessions.js.map +0 -1
- package/backend/dist/routes/settings.js.map +0 -1
- package/backend/dist/routes/slides.js.map +0 -1
- package/backend/dist/routes/subagents.js.map +0 -1
- package/backend/dist/services/claudeSession.d.ts.map +0 -1
- package/backend/dist/services/claudeSession.js.map +0 -1
- package/backend/dist/services/messageQueue.js.map +0 -1
- package/backend/dist/services/sessionManager.d.ts.map +0 -1
- package/backend/dist/services/sessionManager.js.map +0 -1
- package/backend/dist/utils/jwt.d.ts +0 -15
- package/backend/dist/utils/jwt.d.ts.map +0 -1
- package/backend/dist/utils/jwt.js +0 -28
- package/backend/dist/utils/jwt.js.map +0 -1
- /package/{backend/dist/bin → bin}/agentstudio.d.ts +0 -0
- /package/{backend/dist/bin → bin}/agentstudio.d.ts.map +0 -0
- /package/{backend/dist/frontend → public}/assets/ChatPage-BvQmXfcP.css +0 -0
- /package/{backend/dist/frontend → public}/assets/agents-DwCY2K8p.css +0 -0
- /package/{backend/dist/frontend → public}/assets/dateFormat-CXa8VnEC.js +0 -0
- /package/{backend/dist/frontend → public}/cc-studio.png +0 -0
- /package/{backend/dist/frontend → public}/vite.svg +0 -0
- /package/{backend/dist/routes → routes}/agents.d.ts +0 -0
- /package/{backend/dist/routes → routes}/auth.d.ts +0 -0
- /package/{backend/dist/routes → routes}/commands.d.ts +0 -0
- /package/{backend/dist/routes → routes}/files.d.ts +0 -0
- /package/{backend/dist/routes → routes}/media.d.ts +0 -0
- /package/{backend/dist/routes → routes}/projects.d.ts +0 -0
- /package/{backend/dist/routes → routes}/sessions.d.ts +0 -0
- /package/{backend/dist/routes → routes}/settings.d.ts +0 -0
- /package/{backend/dist/routes → routes}/slides.d.ts +0 -0
- /package/{backend/dist/routes → routes}/subagents.d.ts +0 -0
- /package/{backend/dist/routes → routes}/subagents.d.ts.map +0 -0
- /package/{backend/dist/services → services}/messageQueue.d.ts +0 -0
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-B3o4AYFT.js","assets/data-structures-DLJedtzx.js","assets/monaco-editor-C7Z4sOhS.js","assets/syntax-highlighting-YWvMU4Hm.js","assets/useAgents-DwnOE1_k.js","assets/agents-ClAzIJTw.js","assets/tools-C4EPanYi.js","assets/ui-components-Cw21Epuw.js","assets/agents-DwCY2K8p.css","assets/authFetch-BATQyPG5.js","assets/tabManager-DV8urRBM.js","assets/useClaudeVersions-CQdGnCqv.js","assets/useCommands-CCVaurbt.js","assets/AgentsPage-Dqb_aqAA.js","assets/table-D6q1rytw.js","assets/ProjectSelector-hgmGYVFh.js","assets/FileBrowser-DL3ayaqb.js","assets/UnifiedToolSelector-CsM9qBvs.js","assets/ProjectsPage-D399IM0c.js","assets/dateFormat-CXa8VnEC.js","assets/CommandForm-DLl7EIMS.js","assets/SubagentForm-DXtTTIKg.js","assets/McpPage-CY3tYiqj.js","assets/SettingsLayout-CL_K-lzJ.js","assets/GeneralSettingsPage-CBN_de-V.js","assets/VersionSettingsPage-74Q-LVgA.js","assets/MemorySettingsPage-DGxrok5K.js","assets/SubagentsPage-Chbhj8p2.js","assets/CommandsPage-Bzavq0Ec.js","assets/ChatPage-L8Paywyc.js","assets/ChatPage-BvQmXfcP.css","assets/LandingPage-Dl4ioKos.js","assets/LoginPage-4QqRdiSi.js","assets/ToastTestPage-DT4wuN5C.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{j as h}from"./data-structures-DLJedtzx.js";import{a as Yh,r as S,g as zv,W as Ut,R as _v}from"./monaco-editor-C7Z4sOhS.js";import{c as rt}from"./syntax-highlighting-YWvMU4Hm.js";import{g as $h,s as Pv,l as Fv,a as Hv,b as Bv,c as Vv,r as qv,u as Gv,A as ii,Q as Yv,d as $v}from"./agents-ClAzIJTw.js";import{u as dn,i as Kv}from"./tools-C4EPanYi.js";import{q as ca,X as Qs,R as Qv,r as Xv,k as Kh,m as Qh,C as ra,i as Xh,s as Iv,t as qc,u as Zv,o as Ih,v as Zh,w as Jv,e as Wv,x as Jm,y as eb,T as tb,z as nb,D as ab,j as lb,M as ib,H as sb,d as ob,I as rb,J as cb,K as ub,L as Jh,N as db,O as Wm,Q as fb,U as eh,a as mb,V as hb}from"./ui-components-Cw21Epuw.js";(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function o(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(u){if(u.ep)return;u.ep=!0;const d=o(u);fetch(u.href,d)}})();var gc={exports:{}},si={},pc={exports:{}},yc={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* scheduler.production.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var th;function gb(){return th||(th=1,(function(i){function l(U,P){var _=U.length;U.push(P);e:for(;0<_;){var ie=_-1>>>1,pe=U[ie];if(0<u(pe,P))U[ie]=P,U[_]=pe,_=ie;else break e}}function o(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var P=U[0],_=U.pop();if(_!==P){U[0]=_;e:for(var ie=0,pe=U.length,he=pe>>>1;ie<he;){var oe=2*(ie+1)-1,ee=U[oe],ue=oe+1,tt=U[ue];if(0>u(ee,_))ue<pe&&0>u(tt,ee)?(U[ie]=tt,U[ue]=_,ie=ue):(U[ie]=ee,U[oe]=_,ie=oe);else if(ue<pe&&0>u(tt,_))U[ie]=tt,U[ue]=_,ie=ue;else break e}}return P}function u(U,P){var _=U.sortIndex-P.sortIndex;return _!==0?_:U.id-P.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var m=Date,p=m.now();i.unstable_now=function(){return m.now()-p}}var y=[],f=[],b=1,x=null,T=3,D=!1,R=!1,k=!1,N=!1,F=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function q(U){for(var P=o(f);P!==null;){if(P.callback===null)r(f);else if(P.startTime<=U)r(f),P.sortIndex=P.expirationTime,l(y,P);else break;P=o(f)}}function X(U){if(k=!1,q(U),!R)if(o(y)!==null)R=!0,Y||(Y=!0,Ee());else{var P=o(f);P!==null&&ve(X,P.startTime-U)}}var Y=!1,I=-1,G=5,Z=-1;function se(){return N?!0:!(i.unstable_now()-Z<G)}function Ne(){if(N=!1,Y){var U=i.unstable_now();Z=U;var P=!0;try{e:{R=!1,k&&(k=!1,A(I),I=-1),D=!0;var _=T;try{t:{for(q(U),x=o(y);x!==null&&!(x.expirationTime>U&&se());){var ie=x.callback;if(typeof ie=="function"){x.callback=null,T=x.priorityLevel;var pe=ie(x.expirationTime<=U);if(U=i.unstable_now(),typeof pe=="function"){x.callback=pe,q(U),P=!0;break t}x===o(y)&&r(y),q(U)}else r(y);x=o(y)}if(x!==null)P=!0;else{var he=o(f);he!==null&&ve(X,he.startTime-U),P=!1}}break e}finally{x=null,T=_,D=!1}P=void 0}}finally{P?Ee():Y=!1}}}var Ee;if(typeof z=="function")Ee=function(){z(Ne)};else if(typeof MessageChannel<"u"){var Me=new MessageChannel,J=Me.port2;Me.port1.onmessage=Ne,Ee=function(){J.postMessage(null)}}else Ee=function(){F(Ne,0)};function ve(U,P){I=F(function(){U(i.unstable_now())},P)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(U){U.callback=null},i.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<U?Math.floor(1e3/U):5},i.unstable_getCurrentPriorityLevel=function(){return T},i.unstable_next=function(U){switch(T){case 1:case 2:case 3:var P=3;break;default:P=T}var _=T;T=P;try{return U()}finally{T=_}},i.unstable_requestPaint=function(){N=!0},i.unstable_runWithPriority=function(U,P){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var _=T;T=U;try{return P()}finally{T=_}},i.unstable_scheduleCallback=function(U,P,_){var ie=i.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?ie+_:ie):_=ie,U){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=_+pe,U={id:b++,callback:P,priorityLevel:U,startTime:_,expirationTime:pe,sortIndex:-1},_>ie?(U.sortIndex=_,l(f,U),o(y)===null&&U===o(f)&&(k?(A(I),I=-1):k=!0,ve(X,_-ie))):(U.sortIndex=pe,l(y,U),R||D||(R=!0,Y||(Y=!0,Ee()))),U},i.unstable_shouldYield=se,i.unstable_wrapCallback=function(U){var P=T;return function(){var _=T;T=P;try{return U.apply(this,arguments)}finally{T=_}}}})(yc)),yc}var nh;function pb(){return nh||(nh=1,pc.exports=gb()),pc.exports}var vc={exports:{}},We={};/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react-dom.production.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var ah;function yb(){if(ah)return We;ah=1;var i=Yh();function l(y){var f="https://react.dev/errors/"+y;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)f+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+y+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(y,f,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:x==null?null:""+x,children:y,containerInfo:f,implementation:b}}var m=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,f){if(y==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return We.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,We.createPortal=function(y,f){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(l(299));return d(y,f,null,b)},We.flushSync=function(y){var f=m.T,b=r.p;try{if(m.T=null,r.p=2,y)return y()}finally{m.T=f,r.p=b,r.d.f()}},We.preconnect=function(y,f){typeof y=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(y,f))},We.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},We.preinit=function(y,f){if(typeof y=="string"&&f&&typeof f.as=="string"){var b=f.as,x=p(b,f.crossOrigin),T=typeof f.integrity=="string"?f.integrity:void 0,D=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;b==="style"?r.d.S(y,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:x,integrity:T,fetchPriority:D}):b==="script"&&r.d.X(y,{crossOrigin:x,integrity:T,fetchPriority:D,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},We.preinitModule=function(y,f){if(typeof y=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var b=p(f.as,f.crossOrigin);r.d.M(y,{crossOrigin:b,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(y)},We.preload=function(y,f){if(typeof y=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var b=f.as,x=p(b,f.crossOrigin);r.d.L(y,b,{crossOrigin:x,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},We.preloadModule=function(y,f){if(typeof y=="string")if(f){var b=p(f.as,f.crossOrigin);r.d.m(y,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:b,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(y)},We.requestFormReset=function(y){r.d.r(y)},We.unstable_batchedUpdates=function(y,f){return y(f)},We.useFormState=function(y,f,b){return m.H.useFormState(y,f,b)},We.useFormStatus=function(){return m.H.useHostTransitionStatus()},We.version="19.1.1",We}var lh;function Wh(){if(lh)return vc.exports;lh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),vc.exports=yb(),vc.exports}/**
|
|
19
|
-
* @license React
|
|
20
|
-
* react-dom-client.production.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var ih;function vb(){if(ih)return si;ih=1;var i=pb(),l=Yh(),o=Wh();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(d(e)!==e)throw Error(r(188))}function y(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(a=s.return,a!==null){n=a;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return p(s),e;if(c===a)return p(s),t;c=c.sibling}throw Error(r(188))}if(n.return!==a.return)n=s,a=c;else{for(var g=!1,v=s.child;v;){if(v===n){g=!0,n=s,a=c;break}if(v===a){g=!0,a=s,n=c;break}v=v.sibling}if(!g){for(v=c.child;v;){if(v===n){g=!0,n=c,a=s;break}if(v===a){g=!0,a=c,n=s;break}v=v.sibling}if(!g)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,x=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),D=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),A=Symbol.for("react.consumer"),z=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),G=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),Ne=Symbol.iterator;function Ee(e){return e===null||typeof e!="object"?null:(e=Ne&&e[Ne]||e["@@iterator"],typeof e=="function"?e:null)}var Me=Symbol.for("react.client.reference");function J(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Me?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case N:return"Profiler";case k:return"StrictMode";case X:return"Suspense";case Y:return"SuspenseList";case Z:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case D:return"Portal";case z:return(e.displayName||"Context")+".Provider";case A:return(e._context.displayName||"Context")+".Consumer";case q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I:return t=e.displayName||null,t!==null?t:J(e.type)||"Memo";case G:t=e._payload,e=e._init;try{return J(e(t))}catch{}}return null}var ve=Array.isArray,U=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_={pending:!1,data:null,method:null,action:null},ie=[],pe=-1;function he(e){return{current:e}}function oe(e){0>pe||(e.current=ie[pe],ie[pe]=null,pe--)}function ee(e,t){pe++,ie[pe]=e.current,e.current=t}var ue=he(null),tt=he(null),Rt=he(null),De=he(null);function Bn(e,t){switch(ee(Rt,t),ee(tt,e),ee(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Em(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Em(t),e=km(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}oe(ue),ee(ue,e)}function Mt(){oe(ue),oe(tt),oe(Rt)}function fn(e){e.memoizedState!==null&&ee(De,e);var t=ue.current,n=km(t,e.type);t!==n&&(ee(tt,e),ee(ue,n))}function mn(e){tt.current===e&&(oe(ue),oe(tt)),De.current===e&&(oe(De),ei._currentValue=_)}var hn=Object.prototype.hasOwnProperty,to=i.unstable_scheduleCallback,no=i.unstable_cancelCallback,hp=i.unstable_shouldYield,gp=i.unstable_requestPaint,Pt=i.unstable_now,pp=i.unstable_getCurrentPriorityLevel,iu=i.unstable_ImmediatePriority,su=i.unstable_UserBlockingPriority,Si=i.unstable_NormalPriority,yp=i.unstable_LowPriority,ou=i.unstable_IdlePriority,vp=i.log,bp=i.unstable_setDisableYieldValue,rl=null,ct=null;function gn(e){if(typeof vp=="function"&&bp(e),ct&&typeof ct.setStrictMode=="function")try{ct.setStrictMode(rl,e)}catch{}}var ut=Math.clz32?Math.clz32:wp,Sp=Math.log,xp=Math.LN2;function wp(e){return e>>>=0,e===0?32:31-(Sp(e)/xp|0)|0}var xi=256,wi=4194304;function Vn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ci(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var s=0,c=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~c,a!==0?s=Vn(a):(g&=v,g!==0?s=Vn(g):n||(n=v&~e,n!==0&&(s=Vn(n))))):(v=a&~c,v!==0?s=Vn(v):g!==0?s=Vn(g):n||(n=a&~e,n!==0&&(s=Vn(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function cl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Cp(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ru(){var e=xi;return xi<<=1,(xi&4194048)===0&&(xi=256),e}function cu(){var e=wi;return wi<<=1,(wi&62914560)===0&&(wi=4194304),e}function ao(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ul(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Tp(e,t,n,a,s,c){var g=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,w=e.expirationTimes,M=e.hiddenUpdates;for(n=g&~n;0<n;){var H=31-ut(n),V=1<<H;v[H]=0,w[H]=-1;var O=M[H];if(O!==null)for(M[H]=null,H=0;H<O.length;H++){var L=O[H];L!==null&&(L.lane&=-536870913)}n&=~V}a!==0&&uu(e,a,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(g&~t))}function uu(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ut(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&4194090}function du(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-ut(n),s=1<<a;s&t|e[a]&t&&(e[a]|=t),n&=~s}}function lo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function io(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fu(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:$m(e.type))}function Ap(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var pn=Math.random().toString(36).slice(2),Ze="__reactFiber$"+pn,at="__reactProps$"+pn,fa="__reactContainer$"+pn,so="__reactEvents$"+pn,Ep="__reactListeners$"+pn,kp="__reactHandles$"+pn,mu="__reactResources$"+pn,dl="__reactMarker$"+pn;function oo(e){delete e[Ze],delete e[at],delete e[so],delete e[Ep],delete e[kp]}function ma(e){var t=e[Ze];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fa]||n[Ze]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Mm(e);e!==null;){if(n=e[Ze])return n;e=Mm(e)}return t}e=n,n=e.parentNode}return null}function ha(e){if(e=e[Ze]||e[fa]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function fl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function ga(e){var t=e[mu];return t||(t=e[mu]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qe(e){e[dl]=!0}var hu=new Set,gu={};function qn(e,t){pa(e,t),pa(e+"Capture",t)}function pa(e,t){for(gu[e]=t,e=0;e<t.length;e++)hu.add(t[e])}var Np=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),pu={},yu={};function jp(e){return hn.call(yu,e)?!0:hn.call(pu,e)?!1:Np.test(e)?yu[e]=!0:(pu[e]=!0,!1)}function Ti(e,t,n){if(jp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Ai(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function $t(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}var ro,vu;function ya(e){if(ro===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ro=t&&t[1]||"",vu=-1<n.stack.indexOf(`
|
|
27
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
28
|
-
`+ro+e+vu}var co=!1;function uo(e,t){if(!e||co)return"";co=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(L){var O=L}Reflect.construct(e,[],V)}else{try{V.call()}catch(L){O=L}e.call(V.prototype)}}else{try{throw Error()}catch(L){O=L}(V=e())&&typeof V.catch=="function"&&V.catch(function(){})}}catch(L){if(L&&O&&typeof L.stack=="string")return[L.stack,O.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),g=c[0],v=c[1];if(g&&v){var w=g.split(`
|
|
29
|
-
`),M=v.split(`
|
|
30
|
-
`);for(s=a=0;a<w.length&&!w[a].includes("DetermineComponentFrameRoot");)a++;for(;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;if(a===w.length||s===M.length)for(a=w.length-1,s=M.length-1;1<=a&&0<=s&&w[a]!==M[s];)s--;for(;1<=a&&0<=s;a--,s--)if(w[a]!==M[s]){if(a!==1||s!==1)do if(a--,s--,0>s||w[a]!==M[s]){var H=`
|
|
31
|
-
`+w[a].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=a&&0<=s);break}}}finally{co=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ya(n):""}function Rp(e){switch(e.tag){case 26:case 27:case 5:return ya(e.type);case 16:return ya("Lazy");case 13:return ya("Suspense");case 19:return ya("SuspenseList");case 0:case 15:return uo(e.type,!1);case 11:return uo(e.type.render,!1);case 1:return uo(e.type,!0);case 31:return ya("Activity");default:return""}}function bu(e){try{var t="";do t+=Rp(e),e=e.return;while(e);return t}catch(n){return`
|
|
32
|
-
Error generating stack: `+n.message+`
|
|
33
|
-
`+n.stack}}function bt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Su(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mp(e){var t=Su(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(g){a=""+g,c.call(this,g)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(g){a=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ei(e){e._valueTracker||(e._valueTracker=Mp(e))}function xu(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Su(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function ki(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Dp=/[\n"\\]/g;function St(e){return e.replace(Dp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fo(e,t,n,a,s,c,g,v){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+bt(t)):e.value!==""+bt(t)&&(e.value=""+bt(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?mo(e,g,bt(t)):n!=null?mo(e,g,bt(n)):a!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+bt(v):e.removeAttribute("name")}function wu(e,t,n,a,s,c,g,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null))return;n=n!=null?""+bt(n):"",t=t!=null?""+bt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??s,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g)}function mo(e,t,n){t==="number"&&ki(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function va(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&a&&(e[n].defaultSelected=!0)}else{for(n=""+bt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,a&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Cu(e,t,n){if(t!=null&&(t=""+bt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+bt(n):""}function Tu(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if(ve(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=bt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a)}function ba(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Op=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Au(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||Op.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Eu(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var s in t)a=t[s],t.hasOwnProperty(s)&&n[s]!==a&&Au(e,s,a)}else for(var c in t)t.hasOwnProperty(c)&&Au(e,c,t[c])}function ho(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Lp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Up=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ni(e){return Up.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var go=null;function po(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sa=null,xa=null;function ku(e){var t=ha(e);if(t&&(e=t.stateNode)){var n=e[at]||null;e:switch(e=t.stateNode,t.type){case"input":if(fo(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+St(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var s=a[at]||null;if(!s)throw Error(r(90));fo(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&xu(a)}break e;case"textarea":Cu(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&va(e,!!n.multiple,t,!1)}}}var yo=!1;function Nu(e,t,n){if(yo)return e(t,n);yo=!0;try{var a=e(t);return a}finally{if(yo=!1,(Sa!==null||xa!==null)&&(ms(),Sa&&(t=Sa,e=xa,xa=Sa=null,ku(t),e)))for(t=0;t<e.length;t++)ku(e[t])}}function ml(e,t){var n=e.stateNode;if(n===null)return null;var a=n[at]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var Kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),vo=!1;if(Kt)try{var hl={};Object.defineProperty(hl,"passive",{get:function(){vo=!0}}),window.addEventListener("test",hl,hl),window.removeEventListener("test",hl,hl)}catch{vo=!1}var yn=null,bo=null,ji=null;function ju(){if(ji)return ji;var e,t=bo,n=t.length,a,s="value"in yn?yn.value:yn.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var g=n-e;for(a=1;a<=g&&t[n-a]===s[c-a];a++);return ji=s.slice(e,1<a?1-a:void 0)}function Ri(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mi(){return!0}function Ru(){return!1}function lt(e){function t(n,a,s,c,g){this._reactName=n,this._targetInst=s,this.type=a,this.nativeEvent=c,this.target=g,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Mi:Ru,this.isPropagationStopped=Ru,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Mi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Mi)},persist:function(){},isPersistent:Mi}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Di=lt(Gn),gl=b({},Gn,{view:0,detail:0}),zp=lt(gl),So,xo,pl,Oi=b({},gl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Co,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==pl&&(pl&&e.type==="mousemove"?(So=e.screenX-pl.screenX,xo=e.screenY-pl.screenY):xo=So=0,pl=e),So)},movementY:function(e){return"movementY"in e?e.movementY:xo}}),Mu=lt(Oi),_p=b({},Oi,{dataTransfer:0}),Pp=lt(_p),Fp=b({},gl,{relatedTarget:0}),wo=lt(Fp),Hp=b({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0}),Bp=lt(Hp),Vp=b({},Gn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qp=lt(Vp),Gp=b({},Gn,{data:0}),Du=lt(Gp),Yp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$p={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Kp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Kp[e])?!!t[e]:!1}function Co(){return Qp}var Xp=b({},gl,{key:function(e){if(e.key){var t=Yp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$p[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Co,charCode:function(e){return e.type==="keypress"?Ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ip=lt(Xp),Zp=b({},Oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ou=lt(Zp),Jp=b({},gl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Co}),Wp=lt(Jp),ey=b({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0}),ty=lt(ey),ny=b({},Oi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ay=lt(ny),ly=b({},Gn,{newState:0,oldState:0}),iy=lt(ly),sy=[9,13,27,32],To=Kt&&"CompositionEvent"in window,yl=null;Kt&&"documentMode"in document&&(yl=document.documentMode);var oy=Kt&&"TextEvent"in window&&!yl,Lu=Kt&&(!To||yl&&8<yl&&11>=yl),Uu=" ",zu=!1;function _u(e,t){switch(e){case"keyup":return sy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pu(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wa=!1;function ry(e,t){switch(e){case"compositionend":return Pu(t);case"keypress":return t.which!==32?null:(zu=!0,Uu);case"textInput":return e=t.data,e===Uu&&zu?null:e;default:return null}}function cy(e,t){if(wa)return e==="compositionend"||!To&&_u(e,t)?(e=ju(),ji=bo=yn=null,wa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lu&&t.locale!=="ko"?null:t.data;default:return null}}var uy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!uy[e.type]:t==="textarea"}function Hu(e,t,n,a){Sa?xa?xa.push(a):xa=[a]:Sa=a,t=bs(t,"onChange"),0<t.length&&(n=new Di("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var vl=null,bl=null;function dy(e){xm(e,0)}function Li(e){var t=fl(e);if(xu(t))return e}function Bu(e,t){if(e==="change")return t}var Vu=!1;if(Kt){var Ao;if(Kt){var Eo="oninput"in document;if(!Eo){var qu=document.createElement("div");qu.setAttribute("oninput","return;"),Eo=typeof qu.oninput=="function"}Ao=Eo}else Ao=!1;Vu=Ao&&(!document.documentMode||9<document.documentMode)}function Gu(){vl&&(vl.detachEvent("onpropertychange",Yu),bl=vl=null)}function Yu(e){if(e.propertyName==="value"&&Li(bl)){var t=[];Hu(t,bl,e,po(e)),Nu(dy,t)}}function fy(e,t,n){e==="focusin"?(Gu(),vl=t,bl=n,vl.attachEvent("onpropertychange",Yu)):e==="focusout"&&Gu()}function my(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Li(bl)}function hy(e,t){if(e==="click")return Li(t)}function gy(e,t){if(e==="input"||e==="change")return Li(t)}function py(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var dt=typeof Object.is=="function"?Object.is:py;function Sl(e,t){if(dt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var s=n[a];if(!hn.call(t,s)||!dt(e[s],t[s]))return!1}return!0}function $u(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ku(e,t){var n=$u(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$u(n)}}function Qu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xu(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ki(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ki(e.document)}return t}function ko(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var yy=Kt&&"documentMode"in document&&11>=document.documentMode,Ca=null,No=null,xl=null,jo=!1;function Iu(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;jo||Ca==null||Ca!==ki(a)||(a=Ca,"selectionStart"in a&&ko(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),xl&&Sl(xl,a)||(xl=a,a=bs(No,"onSelect"),0<a.length&&(t=new Di("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ca)))}function Yn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ta={animationend:Yn("Animation","AnimationEnd"),animationiteration:Yn("Animation","AnimationIteration"),animationstart:Yn("Animation","AnimationStart"),transitionrun:Yn("Transition","TransitionRun"),transitionstart:Yn("Transition","TransitionStart"),transitioncancel:Yn("Transition","TransitionCancel"),transitionend:Yn("Transition","TransitionEnd")},Ro={},Zu={};Kt&&(Zu=document.createElement("div").style,"AnimationEvent"in window||(delete Ta.animationend.animation,delete Ta.animationiteration.animation,delete Ta.animationstart.animation),"TransitionEvent"in window||delete Ta.transitionend.transition);function $n(e){if(Ro[e])return Ro[e];if(!Ta[e])return e;var t=Ta[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zu)return Ro[e]=t[n];return e}var Ju=$n("animationend"),Wu=$n("animationiteration"),ed=$n("animationstart"),vy=$n("transitionrun"),by=$n("transitionstart"),Sy=$n("transitioncancel"),td=$n("transitionend"),nd=new Map,Mo="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Mo.push("scrollEnd");function Dt(e,t){nd.set(e,t),qn(t,[e])}var ad=new WeakMap;function xt(e,t){if(typeof e=="object"&&e!==null){var n=ad.get(e);return n!==void 0?n:(t={value:e,source:t,stack:bu(t)},ad.set(e,t),t)}return{value:e,source:t,stack:bu(t)}}var wt=[],Aa=0,Do=0;function Ui(){for(var e=Aa,t=Do=Aa=0;t<e;){var n=wt[t];wt[t++]=null;var a=wt[t];wt[t++]=null;var s=wt[t];wt[t++]=null;var c=wt[t];if(wt[t++]=null,a!==null&&s!==null){var g=a.pending;g===null?s.next=s:(s.next=g.next,g.next=s),a.pending=s}c!==0&&ld(n,s,c)}}function zi(e,t,n,a){wt[Aa++]=e,wt[Aa++]=t,wt[Aa++]=n,wt[Aa++]=a,Do|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Oo(e,t,n,a){return zi(e,t,n,a),_i(e)}function Ea(e,t){return zi(e,null,null,t),_i(e)}function ld(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-ut(n),e=c.hiddenUpdates,a=e[s],a===null?e[s]=[t]:a.push(t),t.lane=n|536870912),c):null}function _i(e){if(50<$l)throw $l=0,Fr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ka={};function xy(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ft(e,t,n,a){return new xy(e,t,n,a)}function Lo(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qt(e,t){var n=e.alternate;return n===null?(n=ft(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function id(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Pi(e,t,n,a,s,c){var g=0;if(a=e,typeof e=="function")Lo(e)&&(g=1);else if(typeof e=="string")g=Cv(e,n,ue.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Z:return e=ft(31,n,t,s),e.elementType=Z,e.lanes=c,e;case R:return Kn(n.children,s,c,t);case k:g=8,s|=24;break;case N:return e=ft(12,n,t,s|2),e.elementType=N,e.lanes=c,e;case X:return e=ft(13,n,t,s),e.elementType=X,e.lanes=c,e;case Y:return e=ft(19,n,t,s),e.elementType=Y,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:case z:g=10;break e;case A:g=9;break e;case q:g=11;break e;case I:g=14;break e;case G:g=16,a=null;break e}g=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=ft(g,n,t,s),t.elementType=e,t.type=a,t.lanes=c,t}function Kn(e,t,n,a){return e=ft(7,e,a,t),e.lanes=n,e}function Uo(e,t,n){return e=ft(6,e,null,t),e.lanes=n,e}function zo(e,t,n){return t=ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Na=[],ja=0,Fi=null,Hi=0,Ct=[],Tt=0,Qn=null,Xt=1,It="";function Xn(e,t){Na[ja++]=Hi,Na[ja++]=Fi,Fi=e,Hi=t}function sd(e,t,n){Ct[Tt++]=Xt,Ct[Tt++]=It,Ct[Tt++]=Qn,Qn=e;var a=Xt;e=It;var s=32-ut(a)-1;a&=~(1<<s),n+=1;var c=32-ut(t)+s;if(30<c){var g=s-s%5;c=(a&(1<<g)-1).toString(32),a>>=g,s-=g,Xt=1<<32-ut(t)+s|n<<s|a,It=c+e}else Xt=1<<c|n<<s|a,It=e}function _o(e){e.return!==null&&(Xn(e,1),sd(e,1,0))}function Po(e){for(;e===Fi;)Fi=Na[--ja],Na[ja]=null,Hi=Na[--ja],Na[ja]=null;for(;e===Qn;)Qn=Ct[--Tt],Ct[Tt]=null,It=Ct[--Tt],Ct[Tt]=null,Xt=Ct[--Tt],Ct[Tt]=null}var nt=null,Le=null,be=!1,In=null,Ft=!1,Fo=Error(r(519));function Zn(e){var t=Error(r(418,""));throw Tl(xt(t,e)),Fo}function od(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Ze]=e,t[at]=a,n){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(n=0;n<Ql.length;n++)me(Ql[n],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),wu(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),Ei(t);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),Tu(t,a.value,a.defaultValue,a.children),Ei(t)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||Am(t.textContent,n)?(a.popover!=null&&(me("beforetoggle",t),me("toggle",t)),a.onScroll!=null&&me("scroll",t),a.onScrollEnd!=null&&me("scrollend",t),a.onClick!=null&&(t.onclick=Ss),t=!0):t=!1,t||Zn(e)}function rd(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:nt=nt.return}}function wl(e){if(e!==nt)return!1;if(!be)return rd(e),be=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||tc(e.type,e.memoizedProps)),n=!n),n&&Le&&Zn(e),rd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Le=Lt(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Le=null}}else t===27?(t=Le,On(e.type)?(e=ic,ic=null,Le=e):Le=t):Le=nt?Lt(e.stateNode.nextSibling):null;return!0}function Cl(){Le=nt=null,be=!1}function cd(){var e=In;return e!==null&&(ot===null?ot=e:ot.push.apply(ot,e),In=null),e}function Tl(e){In===null?In=[e]:In.push(e)}var Ho=he(null),Jn=null,Zt=null;function vn(e,t,n){ee(Ho,t._currentValue),t._currentValue=n}function Jt(e){e._currentValue=Ho.current,oe(Ho)}function Bo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function Vo(e,t,n,a){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var g=s.child;c=c.firstContext;e:for(;c!==null;){var v=c;c=s;for(var w=0;w<t.length;w++)if(v.context===t[w]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),Bo(c.return,n,e),a||(g=null);break e}c=v.next}}else if(s.tag===18){if(g=s.return,g===null)throw Error(r(341));g.lanes|=n,c=g.alternate,c!==null&&(c.lanes|=n),Bo(g,n,e),g=null}else g=s.child;if(g!==null)g.return=s;else for(g=s;g!==null;){if(g===e){g=null;break}if(s=g.sibling,s!==null){s.return=g.return,g=s;break}g=g.return}s=g}}function Al(e,t,n,a){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var g=s.alternate;if(g===null)throw Error(r(387));if(g=g.memoizedProps,g!==null){var v=s.type;dt(s.pendingProps.value,g.value)||(e!==null?e.push(v):e=[v])}}else if(s===De.current){if(g=s.alternate,g===null)throw Error(r(387));g.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(ei):e=[ei])}s=s.return}e!==null&&Vo(t,e,n,a),t.flags|=262144}function Bi(e){for(e=e.firstContext;e!==null;){if(!dt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wn(e){Jn=e,Zt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Je(e){return ud(Jn,e)}function Vi(e,t){return Jn===null&&Wn(e),ud(e,t)}function ud(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Zt===null){if(e===null)throw Error(r(308));Zt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zt=Zt.next=t;return n}var wy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Cy=i.unstable_scheduleCallback,Ty=i.unstable_NormalPriority,He={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qo(){return{controller:new wy,data:new Map,refCount:0}}function El(e){e.refCount--,e.refCount===0&&Cy(Ty,function(){e.controller.abort()})}var kl=null,Go=0,Ra=0,Ma=null;function Ay(e,t){if(kl===null){var n=kl=[];Go=0,Ra=$r(),Ma={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Go++,t.then(dd,dd),t}function dd(){if(--Go===0&&kl!==null){Ma!==null&&(Ma.status="fulfilled");var e=kl;kl=null,Ra=0,Ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ey(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(a.status="rejected",a.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),a}var fd=U.S;U.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ay(e,t),fd!==null&&fd(e,t)};var ea=he(null);function Yo(){var e=ea.current;return e!==null?e:ke.pooledCache}function qi(e,t){t===null?ee(ea,ea.current):ee(ea,t.pool)}function md(){var e=Yo();return e===null?null:{parent:He._currentValue,pool:e}}var Nl=Error(r(460)),hd=Error(r(474)),Gi=Error(r(542)),$o={then:function(){}};function gd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yi(){}function pd(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Yi,Yi),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vd(e),e;default:if(typeof t.status=="string")t.then(Yi,Yi);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=a}},function(a){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vd(e),e}throw jl=t,Nl}}var jl=null;function yd(){if(jl===null)throw Error(r(459));var e=jl;return jl=null,e}function vd(e){if(e===Nl||e===Gi)throw Error(r(483))}var bn=!1;function Ko(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Sn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Se&2)!==0){var s=a.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),a.pending=t,t=_i(e),ld(e,null,n),t}return zi(e,a,t,n),_i(e)}function Rl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,du(e,n)}}function Xo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=g:c=c.next=g,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:a.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Io=!1;function Ml(){if(Io){var e=Ma;if(e!==null)throw e}}function Dl(e,t,n,a){Io=!1;var s=e.updateQueue;bn=!1;var c=s.firstBaseUpdate,g=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var w=v,M=w.next;w.next=null,g===null?c=M:g.next=M,g=w;var H=e.alternate;H!==null&&(H=H.updateQueue,v=H.lastBaseUpdate,v!==g&&(v===null?H.firstBaseUpdate=M:v.next=M,H.lastBaseUpdate=w))}if(c!==null){var V=s.baseState;g=0,H=M=w=null,v=c;do{var O=v.lane&-536870913,L=O!==v.lane;if(L?(ge&O)===O:(a&O)===O){O!==0&&O===Ra&&(Io=!0),H!==null&&(H=H.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ae=e,te=v;O=t;var Te=n;switch(te.tag){case 1:if(ae=te.payload,typeof ae=="function"){V=ae.call(Te,V,O);break e}V=ae;break e;case 3:ae.flags=ae.flags&-65537|128;case 0:if(ae=te.payload,O=typeof ae=="function"?ae.call(Te,V,O):ae,O==null)break e;V=b({},V,O);break e;case 2:bn=!0}}O=v.callback,O!==null&&(e.flags|=64,L&&(e.flags|=8192),L=s.callbacks,L===null?s.callbacks=[O]:L.push(O))}else L={lane:O,tag:v.tag,payload:v.payload,callback:v.callback,next:null},H===null?(M=H=L,w=V):H=H.next=L,g|=O;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;L=v,v=L.next,L.next=null,s.lastBaseUpdate=L,s.shared.pending=null}}while(!0);H===null&&(w=V),s.baseState=w,s.firstBaseUpdate=M,s.lastBaseUpdate=H,c===null&&(s.shared.lanes=0),jn|=g,e.lanes=g,e.memoizedState=V}}function bd(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Sd(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)bd(n[e],t)}var Da=he(null),$i=he(0);function xd(e,t){e=sn,ee($i,e),ee(Da,t),sn=e|t.baseLanes}function Zo(){ee($i,sn),ee(Da,Da.current)}function Jo(){sn=$i.current,oe(Da),oe($i)}var wn=0,re=null,we=null,Pe=null,Ki=!1,Oa=!1,ta=!1,Qi=0,Ol=0,La=null,ky=0;function ze(){throw Error(r(321))}function Wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!dt(e[n],t[n]))return!1;return!0}function er(e,t,n,a,s,c){return wn=c,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?lf:sf,ta=!1,c=n(a,s),ta=!1,Oa&&(c=Cd(t,n,a,s)),wd(e),c}function wd(e){U.H=es;var t=we!==null&&we.next!==null;if(wn=0,Pe=we=re=null,Ki=!1,Ol=0,La=null,t)throw Error(r(300));e===null||Ge||(e=e.dependencies,e!==null&&Bi(e)&&(Ge=!0))}function Cd(e,t,n,a){re=e;var s=0;do{if(Oa&&(La=null),Ol=0,Oa=!1,25<=s)throw Error(r(301));if(s+=1,Pe=we=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=Ly,c=t(n,a)}while(Oa);return c}function Ny(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?Ll(t):t,e=e.useState()[0],(we!==null?we.memoizedState:null)!==e&&(re.flags|=1024),t}function tr(){var e=Qi!==0;return Qi=0,e}function nr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ar(e){if(Ki){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ki=!1}wn=0,Pe=we=re=null,Oa=!1,Ol=Qi=0,La=null}function it(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pe===null?re.memoizedState=Pe=e:Pe=Pe.next=e,Pe}function Fe(){if(we===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=we.next;var t=Pe===null?re.memoizedState:Pe.next;if(t!==null)Pe=t,we=e;else{if(e===null)throw re.alternate===null?Error(r(467)):Error(r(310));we=e,e={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},Pe===null?re.memoizedState=Pe=e:Pe=Pe.next=e}return Pe}function lr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ll(e){var t=Ol;return Ol+=1,La===null&&(La=[]),e=pd(La,e,t),t=re,(Pe===null?t.memoizedState:Pe.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?lf:sf),e}function Xi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ll(e);if(e.$$typeof===z)return Je(e)}throw Error(r(438,String(e)))}function ir(e){var t=null,n=re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=re.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=lr(),re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=se;return t.index++,n}function Wt(e,t){return typeof t=="function"?t(e):t}function Ii(e){var t=Fe();return sr(t,we,e)}function sr(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var s=e.baseQueue,c=a.pending;if(c!==null){if(s!==null){var g=s.next;s.next=c.next,c.next=g}t.baseQueue=s=c,a.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var v=g=null,w=null,M=t,H=!1;do{var V=M.lane&-536870913;if(V!==M.lane?(ge&V)===V:(wn&V)===V){var O=M.revertLane;if(O===0)w!==null&&(w=w.next={lane:0,revertLane:0,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),V===Ra&&(H=!0);else if((wn&O)===O){M=M.next,O===Ra&&(H=!0);continue}else V={lane:0,revertLane:M.revertLane,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(v=w=V,g=c):w=w.next=V,re.lanes|=O,jn|=O;V=M.action,ta&&n(c,V),c=M.hasEagerState?M.eagerState:n(c,V)}else O={lane:V,revertLane:M.revertLane,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},w===null?(v=w=O,g=c):w=w.next=O,re.lanes|=V,jn|=V;M=M.next}while(M!==null&&M!==t);if(w===null?g=c:w.next=v,!dt(c,e.memoizedState)&&(Ge=!0,H&&(n=Ma,n!==null)))throw n;e.memoizedState=c,e.baseState=g,e.baseQueue=w,a.lastRenderedState=c}return s===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function or(e){var t=Fe(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.pending=null;var g=s=s.next;do c=e(c,g.action),g=g.next;while(g!==s);dt(c,t.memoizedState)||(Ge=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,a]}function Td(e,t,n){var a=re,s=Fe(),c=be;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var g=!dt((we||s).memoizedState,n);g&&(s.memoizedState=n,Ge=!0),s=s.queue;var v=kd.bind(null,a,s,e);if(Ul(2048,8,v,[e]),s.getSnapshot!==t||g||Pe!==null&&Pe.memoizedState.tag&1){if(a.flags|=2048,Ua(9,Zi(),Ed.bind(null,a,s,n,t),null),ke===null)throw Error(r(349));c||(wn&124)!==0||Ad(a,t,n)}return n}function Ad(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t=lr(),re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ed(e,t,n,a){t.value=n,t.getSnapshot=a,Nd(t)&&jd(e)}function kd(e,t,n){return n(function(){Nd(t)&&jd(e)})}function Nd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!dt(e,n)}catch{return!0}}function jd(e){var t=Ea(e,2);t!==null&&yt(t,e,2)}function rr(e){var t=it();if(typeof e=="function"){var n=e;if(e=n(),ta){gn(!0);try{n()}finally{gn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wt,lastRenderedState:e},t}function Rd(e,t,n,a){return e.baseState=n,sr(e,we,typeof a=="function"?a:Wt)}function jy(e,t,n,a,s){if(Wi(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){c.listeners.push(g)}};U.T!==null?n(!0):c.isTransition=!1,a(c),n=t.pending,n===null?(c.next=t.pending=c,Md(t,c)):(c.next=n.next,t.pending=n.next=c)}}function Md(e,t){var n=t.action,a=t.payload,s=e.state;if(t.isTransition){var c=U.T,g={};U.T=g;try{var v=n(s,a),w=U.S;w!==null&&w(g,v),Dd(e,t,v)}catch(M){cr(e,t,M)}finally{U.T=c}}else try{c=n(s,a),Dd(e,t,c)}catch(M){cr(e,t,M)}}function Dd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Od(e,t,a)},function(a){return cr(e,t,a)}):Od(e,t,n)}function Od(e,t,n){t.status="fulfilled",t.value=n,Ld(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Md(e,n)))}function cr(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Ld(t),t=t.next;while(t!==a)}e.action=null}function Ld(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ud(e,t){return t}function zd(e,t){if(be){var n=ke.formState;if(n!==null){e:{var a=re;if(be){if(Le){t:{for(var s=Le,c=Ft;s.nodeType!==8;){if(!c){s=null;break t}if(s=Lt(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Le=Lt(s.nextSibling),a=s.data==="F!";break e}}Zn(a)}a=!1}a&&(t=n[0])}}return n=it(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ud,lastRenderedState:t},n.queue=a,n=tf.bind(null,re,a),a.dispatch=n,a=rr(!1),c=hr.bind(null,re,!1,a.queue),a=it(),s={state:t,dispatch:null,action:e,pending:null},a.queue=s,n=jy.bind(null,re,s,c,n),s.dispatch=n,a.memoizedState=e,[t,n,!1]}function _d(e){var t=Fe();return Pd(t,we,e)}function Pd(e,t,n){if(t=sr(e,t,Ud)[0],e=Ii(Wt)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ll(t)}catch(g){throw g===Nl?Gi:g}else a=t;t=Fe();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(re.flags|=2048,Ua(9,Zi(),Ry.bind(null,s,n),null)),[a,c,e]}function Ry(e,t){e.action=t}function Fd(e){var t=Fe(),n=we;if(n!==null)return Pd(t,n,e);Fe(),t=t.memoizedState,n=Fe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Ua(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=re.updateQueue,t===null&&(t=lr(),re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Zi(){return{destroy:void 0,resource:void 0}}function Hd(){return Fe().memoizedState}function Ji(e,t,n,a){var s=it();a=a===void 0?null:a,re.flags|=e,s.memoizedState=Ua(1|t,Zi(),n,a)}function Ul(e,t,n,a){var s=Fe();a=a===void 0?null:a;var c=s.memoizedState.inst;we!==null&&a!==null&&Wo(a,we.memoizedState.deps)?s.memoizedState=Ua(t,c,n,a):(re.flags|=e,s.memoizedState=Ua(1|t,c,n,a))}function Bd(e,t){Ji(8390656,8,e,t)}function Vd(e,t){Ul(2048,8,e,t)}function qd(e,t){return Ul(4,2,e,t)}function Gd(e,t){return Ul(4,4,e,t)}function Yd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $d(e,t,n){n=n!=null?n.concat([e]):null,Ul(4,4,Yd.bind(null,t,e),n)}function ur(){}function Kd(e,t){var n=Fe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Wo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Qd(e,t){var n=Fe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Wo(t,a[1]))return a[0];if(a=e(),ta){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[a,t],a}function dr(e,t,n){return n===void 0||(wn&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Jf(),re.lanes|=e,jn|=e,n)}function Xd(e,t,n,a){return dt(n,t)?n:Da.current!==null?(e=dr(e,n,a),dt(e,t)||(Ge=!0),e):(wn&42)===0?(Ge=!0,e.memoizedState=n):(e=Jf(),re.lanes|=e,jn|=e,t)}function Id(e,t,n,a,s){var c=P.p;P.p=c!==0&&8>c?c:8;var g=U.T,v={};U.T=v,hr(e,!1,t,n);try{var w=s(),M=U.S;if(M!==null&&M(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var H=Ey(w,a);zl(e,t,H,pt(e))}else zl(e,t,a,pt(e))}catch(V){zl(e,t,{then:function(){},status:"rejected",reason:V},pt())}finally{P.p=c,U.T=g}}function My(){}function fr(e,t,n,a){if(e.tag!==5)throw Error(r(476));var s=Zd(e).queue;Id(e,s,t,_,n===null?My:function(){return Jd(e),n(a)})}function Zd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:_,baseState:_,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wt,lastRenderedState:_},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wt,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Jd(e){var t=Zd(e).next.queue;zl(e,t,{},pt())}function mr(){return Je(ei)}function Wd(){return Fe().memoizedState}function ef(){return Fe().memoizedState}function Dy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pt();e=Sn(n);var a=xn(t,e,n);a!==null&&(yt(a,t,n),Rl(a,t,n)),t={cache:qo()},e.payload=t;return}t=t.return}}function Oy(e,t,n){var a=pt();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Wi(e)?nf(t,n):(n=Oo(e,t,n,a),n!==null&&(yt(n,e,a),af(n,t,a)))}function tf(e,t,n){var a=pt();zl(e,t,n,a)}function zl(e,t,n,a){var s={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wi(e))nf(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var g=t.lastRenderedState,v=c(g,n);if(s.hasEagerState=!0,s.eagerState=v,dt(v,g))return zi(e,t,s,0),ke===null&&Ui(),!1}catch{}finally{}if(n=Oo(e,t,s,a),n!==null)return yt(n,e,a),af(n,t,a),!0}return!1}function hr(e,t,n,a){if(a={lane:2,revertLane:$r(),action:a,hasEagerState:!1,eagerState:null,next:null},Wi(e)){if(t)throw Error(r(479))}else t=Oo(e,n,a,2),t!==null&&yt(t,e,2)}function Wi(e){var t=e.alternate;return e===re||t!==null&&t===re}function nf(e,t){Oa=Ki=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function af(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,du(e,n)}}var es={readContext:Je,use:Xi,useCallback:ze,useContext:ze,useEffect:ze,useImperativeHandle:ze,useLayoutEffect:ze,useInsertionEffect:ze,useMemo:ze,useReducer:ze,useRef:ze,useState:ze,useDebugValue:ze,useDeferredValue:ze,useTransition:ze,useSyncExternalStore:ze,useId:ze,useHostTransitionStatus:ze,useFormState:ze,useActionState:ze,useOptimistic:ze,useMemoCache:ze,useCacheRefresh:ze},lf={readContext:Je,use:Xi,useCallback:function(e,t){return it().memoizedState=[e,t===void 0?null:t],e},useContext:Je,useEffect:Bd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ji(4194308,4,Yd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ji(4194308,4,e,t)},useInsertionEffect:function(e,t){Ji(4,2,e,t)},useMemo:function(e,t){var n=it();t=t===void 0?null:t;var a=e();if(ta){gn(!0);try{e()}finally{gn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=it();if(n!==void 0){var s=n(t);if(ta){gn(!0);try{n(t)}finally{gn(!1)}}}else s=t;return a.memoizedState=a.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},a.queue=e,e=e.dispatch=Oy.bind(null,re,e),[a.memoizedState,e]},useRef:function(e){var t=it();return e={current:e},t.memoizedState=e},useState:function(e){e=rr(e);var t=e.queue,n=tf.bind(null,re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ur,useDeferredValue:function(e,t){var n=it();return dr(n,e,t)},useTransition:function(){var e=rr(!1);return e=Id.bind(null,re,e.queue,!0,!1),it().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=re,s=it();if(be){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),ke===null)throw Error(r(349));(ge&124)!==0||Ad(a,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,Bd(kd.bind(null,a,c,e),[e]),a.flags|=2048,Ua(9,Zi(),Ed.bind(null,a,c,n,t),null),n},useId:function(){var e=it(),t=ke.identifierPrefix;if(be){var n=It,a=Xt;n=(a&~(1<<32-ut(a)-1)).toString(32)+n,t="«"+t+"R"+n,n=Qi++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=ky++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:mr,useFormState:zd,useActionState:zd,useOptimistic:function(e){var t=it();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=hr.bind(null,re,!0,n),n.dispatch=t,[e,t]},useMemoCache:ir,useCacheRefresh:function(){return it().memoizedState=Dy.bind(null,re)}},sf={readContext:Je,use:Xi,useCallback:Kd,useContext:Je,useEffect:Vd,useImperativeHandle:$d,useInsertionEffect:qd,useLayoutEffect:Gd,useMemo:Qd,useReducer:Ii,useRef:Hd,useState:function(){return Ii(Wt)},useDebugValue:ur,useDeferredValue:function(e,t){var n=Fe();return Xd(n,we.memoizedState,e,t)},useTransition:function(){var e=Ii(Wt)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Ll(e),t]},useSyncExternalStore:Td,useId:Wd,useHostTransitionStatus:mr,useFormState:_d,useActionState:_d,useOptimistic:function(e,t){var n=Fe();return Rd(n,we,e,t)},useMemoCache:ir,useCacheRefresh:ef},Ly={readContext:Je,use:Xi,useCallback:Kd,useContext:Je,useEffect:Vd,useImperativeHandle:$d,useInsertionEffect:qd,useLayoutEffect:Gd,useMemo:Qd,useReducer:or,useRef:Hd,useState:function(){return or(Wt)},useDebugValue:ur,useDeferredValue:function(e,t){var n=Fe();return we===null?dr(n,e,t):Xd(n,we.memoizedState,e,t)},useTransition:function(){var e=or(Wt)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Ll(e),t]},useSyncExternalStore:Td,useId:Wd,useHostTransitionStatus:mr,useFormState:Fd,useActionState:Fd,useOptimistic:function(e,t){var n=Fe();return we!==null?Rd(n,we,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ir,useCacheRefresh:ef},za=null,_l=0;function ts(e){var t=_l;return _l+=1,za===null&&(za=[]),pd(za,e,t)}function Pl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ns(e,t){throw t.$$typeof===x?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function of(e){var t=e._init;return t(e._payload)}function rf(e){function t(E,C){if(e){var j=E.deletions;j===null?(E.deletions=[C],E.flags|=16):j.push(C)}}function n(E,C){if(!e)return null;for(;C!==null;)t(E,C),C=C.sibling;return null}function a(E){for(var C=new Map;E!==null;)E.key!==null?C.set(E.key,E):C.set(E.index,E),E=E.sibling;return C}function s(E,C){return E=Qt(E,C),E.index=0,E.sibling=null,E}function c(E,C,j){return E.index=j,e?(j=E.alternate,j!==null?(j=j.index,j<C?(E.flags|=67108866,C):j):(E.flags|=67108866,C)):(E.flags|=1048576,C)}function g(E){return e&&E.alternate===null&&(E.flags|=67108866),E}function v(E,C,j,B){return C===null||C.tag!==6?(C=Uo(j,E.mode,B),C.return=E,C):(C=s(C,j),C.return=E,C)}function w(E,C,j,B){var $=j.type;return $===R?H(E,C,j.props.children,B,j.key):C!==null&&(C.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===G&&of($)===C.type)?(C=s(C,j.props),Pl(C,j),C.return=E,C):(C=Pi(j.type,j.key,j.props,null,E.mode,B),Pl(C,j),C.return=E,C)}function M(E,C,j,B){return C===null||C.tag!==4||C.stateNode.containerInfo!==j.containerInfo||C.stateNode.implementation!==j.implementation?(C=zo(j,E.mode,B),C.return=E,C):(C=s(C,j.children||[]),C.return=E,C)}function H(E,C,j,B,$){return C===null||C.tag!==7?(C=Kn(j,E.mode,B,$),C.return=E,C):(C=s(C,j),C.return=E,C)}function V(E,C,j){if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return C=Uo(""+C,E.mode,j),C.return=E,C;if(typeof C=="object"&&C!==null){switch(C.$$typeof){case T:return j=Pi(C.type,C.key,C.props,null,E.mode,j),Pl(j,C),j.return=E,j;case D:return C=zo(C,E.mode,j),C.return=E,C;case G:var B=C._init;return C=B(C._payload),V(E,C,j)}if(ve(C)||Ee(C))return C=Kn(C,E.mode,j,null),C.return=E,C;if(typeof C.then=="function")return V(E,ts(C),j);if(C.$$typeof===z)return V(E,Vi(E,C),j);ns(E,C)}return null}function O(E,C,j,B){var $=C!==null?C.key:null;if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return $!==null?null:v(E,C,""+j,B);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case T:return j.key===$?w(E,C,j,B):null;case D:return j.key===$?M(E,C,j,B):null;case G:return $=j._init,j=$(j._payload),O(E,C,j,B)}if(ve(j)||Ee(j))return $!==null?null:H(E,C,j,B,null);if(typeof j.then=="function")return O(E,C,ts(j),B);if(j.$$typeof===z)return O(E,C,Vi(E,j),B);ns(E,j)}return null}function L(E,C,j,B,$){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return E=E.get(j)||null,v(C,E,""+B,$);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case T:return E=E.get(B.key===null?j:B.key)||null,w(C,E,B,$);case D:return E=E.get(B.key===null?j:B.key)||null,M(C,E,B,$);case G:var de=B._init;return B=de(B._payload),L(E,C,j,B,$)}if(ve(B)||Ee(B))return E=E.get(j)||null,H(C,E,B,$,null);if(typeof B.then=="function")return L(E,C,j,ts(B),$);if(B.$$typeof===z)return L(E,C,j,Vi(C,B),$);ns(C,B)}return null}function ae(E,C,j,B){for(var $=null,de=null,W=C,ne=C=0,$e=null;W!==null&&ne<j.length;ne++){W.index>ne?($e=W,W=null):$e=W.sibling;var ye=O(E,W,j[ne],B);if(ye===null){W===null&&(W=$e);break}e&&W&&ye.alternate===null&&t(E,W),C=c(ye,C,ne),de===null?$=ye:de.sibling=ye,de=ye,W=$e}if(ne===j.length)return n(E,W),be&&Xn(E,ne),$;if(W===null){for(;ne<j.length;ne++)W=V(E,j[ne],B),W!==null&&(C=c(W,C,ne),de===null?$=W:de.sibling=W,de=W);return be&&Xn(E,ne),$}for(W=a(W);ne<j.length;ne++)$e=L(W,E,ne,j[ne],B),$e!==null&&(e&&$e.alternate!==null&&W.delete($e.key===null?ne:$e.key),C=c($e,C,ne),de===null?$=$e:de.sibling=$e,de=$e);return e&&W.forEach(function(Pn){return t(E,Pn)}),be&&Xn(E,ne),$}function te(E,C,j,B){if(j==null)throw Error(r(151));for(var $=null,de=null,W=C,ne=C=0,$e=null,ye=j.next();W!==null&&!ye.done;ne++,ye=j.next()){W.index>ne?($e=W,W=null):$e=W.sibling;var Pn=O(E,W,ye.value,B);if(Pn===null){W===null&&(W=$e);break}e&&W&&Pn.alternate===null&&t(E,W),C=c(Pn,C,ne),de===null?$=Pn:de.sibling=Pn,de=Pn,W=$e}if(ye.done)return n(E,W),be&&Xn(E,ne),$;if(W===null){for(;!ye.done;ne++,ye=j.next())ye=V(E,ye.value,B),ye!==null&&(C=c(ye,C,ne),de===null?$=ye:de.sibling=ye,de=ye);return be&&Xn(E,ne),$}for(W=a(W);!ye.done;ne++,ye=j.next())ye=L(W,E,ne,ye.value,B),ye!==null&&(e&&ye.alternate!==null&&W.delete(ye.key===null?ne:ye.key),C=c(ye,C,ne),de===null?$=ye:de.sibling=ye,de=ye);return e&&W.forEach(function(Uv){return t(E,Uv)}),be&&Xn(E,ne),$}function Te(E,C,j,B){if(typeof j=="object"&&j!==null&&j.type===R&&j.key===null&&(j=j.props.children),typeof j=="object"&&j!==null){switch(j.$$typeof){case T:e:{for(var $=j.key;C!==null;){if(C.key===$){if($=j.type,$===R){if(C.tag===7){n(E,C.sibling),B=s(C,j.props.children),B.return=E,E=B;break e}}else if(C.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===G&&of($)===C.type){n(E,C.sibling),B=s(C,j.props),Pl(B,j),B.return=E,E=B;break e}n(E,C);break}else t(E,C);C=C.sibling}j.type===R?(B=Kn(j.props.children,E.mode,B,j.key),B.return=E,E=B):(B=Pi(j.type,j.key,j.props,null,E.mode,B),Pl(B,j),B.return=E,E=B)}return g(E);case D:e:{for($=j.key;C!==null;){if(C.key===$)if(C.tag===4&&C.stateNode.containerInfo===j.containerInfo&&C.stateNode.implementation===j.implementation){n(E,C.sibling),B=s(C,j.children||[]),B.return=E,E=B;break e}else{n(E,C);break}else t(E,C);C=C.sibling}B=zo(j,E.mode,B),B.return=E,E=B}return g(E);case G:return $=j._init,j=$(j._payload),Te(E,C,j,B)}if(ve(j))return ae(E,C,j,B);if(Ee(j)){if($=Ee(j),typeof $!="function")throw Error(r(150));return j=$.call(j),te(E,C,j,B)}if(typeof j.then=="function")return Te(E,C,ts(j),B);if(j.$$typeof===z)return Te(E,C,Vi(E,j),B);ns(E,j)}return typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint"?(j=""+j,C!==null&&C.tag===6?(n(E,C.sibling),B=s(C,j),B.return=E,E=B):(n(E,C),B=Uo(j,E.mode,B),B.return=E,E=B),g(E)):n(E,C)}return function(E,C,j,B){try{_l=0;var $=Te(E,C,j,B);return za=null,$}catch(W){if(W===Nl||W===Gi)throw W;var de=ft(29,W,null,E.mode);return de.lanes=B,de.return=E,de}finally{}}}var _a=rf(!0),cf=rf(!1),At=he(null),Ht=null;function Cn(e){var t=e.alternate;ee(Be,Be.current&1),ee(At,e),Ht===null&&(t===null||Da.current!==null||t.memoizedState!==null)&&(Ht=e)}function uf(e){if(e.tag===22){if(ee(Be,Be.current),ee(At,e),Ht===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Ht=e)}}else Tn()}function Tn(){ee(Be,Be.current),ee(At,At.current)}function en(e){oe(At),Ht===e&&(Ht=null),oe(Be)}var Be=he(0);function as(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||lc(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function gr(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var pr={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=pt(),s=Sn(a);s.payload=t,n!=null&&(s.callback=n),t=xn(e,s,a),t!==null&&(yt(t,e,a),Rl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=pt(),s=Sn(a);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=xn(e,s,a),t!==null&&(yt(t,e,a),Rl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pt(),a=Sn(n);a.tag=2,t!=null&&(a.callback=t),t=xn(e,a,n),t!==null&&(yt(t,e,n),Rl(t,e,n))}};function df(e,t,n,a,s,c,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,g):t.prototype&&t.prototype.isPureReactComponent?!Sl(n,a)||!Sl(s,c):!0}function ff(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&pr.enqueueReplaceState(t,t.state,null)}function na(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}var ls=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function mf(e){ls(e)}function hf(e){console.error(e)}function gf(e){ls(e)}function is(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function pf(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function yr(e,t,n){return n=Sn(n),n.tag=3,n.payload={element:null},n.callback=function(){is(e,t)},n}function yf(e){return e=Sn(e),e.tag=3,e}function vf(e,t,n,a){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=a.value;e.payload=function(){return s(c)},e.callback=function(){pf(t,n,a)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){pf(t,n,a),typeof s!="function"&&(Rn===null?Rn=new Set([this]):Rn.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function Uy(e,t,n,a,s){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Al(t,n,s,!0),n=At.current,n!==null){switch(n.tag){case 13:return Ht===null?Br():n.alternate===null&&Ue===0&&(Ue=3),n.flags&=-257,n.flags|=65536,n.lanes=s,a===$o?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),qr(e,a,s)),!1;case 22:return n.flags|=65536,a===$o?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),qr(e,a,s)),!1}throw Error(r(435,n.tag))}return qr(e,a,s),Br(),!1}if(be)return t=At.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,a!==Fo&&(e=Error(r(422),{cause:a}),Tl(xt(e,n)))):(a!==Fo&&(t=Error(r(423),{cause:a}),Tl(xt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,a=xt(a,n),s=yr(e.stateNode,a,s),Xo(e,s),Ue!==4&&(Ue=2)),!1;var c=Error(r(520),{cause:a});if(c=xt(c,n),Yl===null?Yl=[c]:Yl.push(c),Ue!==4&&(Ue=2),t===null)return!0;a=xt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=yr(n.stateNode,a,e),Xo(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Rn===null||!Rn.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=yf(s),vf(s,e,n,a),Xo(n,s),!1}n=n.return}while(n!==null);return!1}var bf=Error(r(461)),Ge=!1;function Ke(e,t,n,a){t.child=e===null?cf(t,null,n,a):_a(t,e.child,n,a)}function Sf(e,t,n,a,s){n=n.render;var c=t.ref;if("ref"in a){var g={};for(var v in a)v!=="ref"&&(g[v]=a[v])}else g=a;return Wn(t),a=er(e,t,n,g,c,s),v=tr(),e!==null&&!Ge?(nr(e,t,s),tn(e,t,s)):(be&&v&&_o(t),t.flags|=1,Ke(e,t,a,s),t.child)}function xf(e,t,n,a,s){if(e===null){var c=n.type;return typeof c=="function"&&!Lo(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,wf(e,t,c,a,s)):(e=Pi(n.type,null,a,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ar(e,s)){var g=c.memoizedProps;if(n=n.compare,n=n!==null?n:Sl,n(g,a)&&e.ref===t.ref)return tn(e,t,s)}return t.flags|=1,e=Qt(c,a),e.ref=t.ref,e.return=t,t.child=e}function wf(e,t,n,a,s){if(e!==null){var c=e.memoizedProps;if(Sl(c,a)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=a=c,Ar(e,s))(e.flags&131072)!==0&&(Ge=!0);else return t.lanes=e.lanes,tn(e,t,s)}return vr(e,t,n,a,s)}function Cf(e,t,n){var a=t.pendingProps,s=a.children,c=e!==null?e.memoizedState:null;if(a.mode==="hidden"){if((t.flags&128)!==0){if(a=c!==null?c.baseLanes|n:n,e!==null){for(s=t.child=e.child,c=0;s!==null;)c=c|s.lanes|s.childLanes,s=s.sibling;t.childLanes=c&~a}else t.childLanes=0,t.child=null;return Tf(e,t,a,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&qi(t,c!==null?c.cachePool:null),c!==null?xd(t,c):Zo(),uf(t);else return t.lanes=t.childLanes=536870912,Tf(e,t,c!==null?c.baseLanes|n:n,n)}else c!==null?(qi(t,c.cachePool),xd(t,c),Tn(),t.memoizedState=null):(e!==null&&qi(t,null),Zo(),Tn());return Ke(e,t,s,n),t.child}function Tf(e,t,n,a){var s=Yo();return s=s===null?null:{parent:He._currentValue,pool:s},t.memoizedState={baseLanes:n,cachePool:s},e!==null&&qi(t,null),Zo(),uf(t),e!==null&&Al(e,t,a,!0),null}function ss(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function vr(e,t,n,a,s){return Wn(t),n=er(e,t,n,a,void 0,s),a=tr(),e!==null&&!Ge?(nr(e,t,s),tn(e,t,s)):(be&&a&&_o(t),t.flags|=1,Ke(e,t,n,s),t.child)}function Af(e,t,n,a,s,c){return Wn(t),t.updateQueue=null,n=Cd(t,a,n,s),wd(e),a=tr(),e!==null&&!Ge?(nr(e,t,c),tn(e,t,c)):(be&&a&&_o(t),t.flags|=1,Ke(e,t,n,c),t.child)}function Ef(e,t,n,a,s){if(Wn(t),t.stateNode===null){var c=ka,g=n.contextType;typeof g=="object"&&g!==null&&(c=Je(g)),c=new n(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=pr,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Ko(t),g=n.contextType,c.context=typeof g=="object"&&g!==null?Je(g):ka,c.state=t.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(gr(t,n,g,a),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(g=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),g!==c.state&&pr.enqueueReplaceState(c,c.state,null),Dl(t,a,c,s),Ml(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var v=t.memoizedProps,w=na(n,v);c.props=w;var M=c.context,H=n.contextType;g=ka,typeof H=="object"&&H!==null&&(g=Je(H));var V=n.getDerivedStateFromProps;H=typeof V=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||M!==g)&&ff(t,c,a,g),bn=!1;var O=t.memoizedState;c.state=O,Dl(t,a,c,s),Ml(),M=t.memoizedState,v||O!==M||bn?(typeof V=="function"&&(gr(t,n,V,a),M=t.memoizedState),(w=bn||df(t,n,w,a,O,M,g))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=M),c.props=a,c.state=M,c.context=g,a=w):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Qo(e,t),g=t.memoizedProps,H=na(n,g),c.props=H,V=t.pendingProps,O=c.context,M=n.contextType,w=ka,typeof M=="object"&&M!==null&&(w=Je(M)),v=n.getDerivedStateFromProps,(M=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g!==V||O!==w)&&ff(t,c,a,w),bn=!1,O=t.memoizedState,c.state=O,Dl(t,a,c,s),Ml();var L=t.memoizedState;g!==V||O!==L||bn||e!==null&&e.dependencies!==null&&Bi(e.dependencies)?(typeof v=="function"&&(gr(t,n,v,a),L=t.memoizedState),(H=bn||df(t,n,H,a,O,L,w)||e!==null&&e.dependencies!==null&&Bi(e.dependencies))?(M||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,L,w),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,L,w)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=L),c.props=a,c.state=L,c.context=w,a=H):(typeof c.componentDidUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,ss(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=_a(t,e.child,null,s),t.child=_a(t,null,n,s)):Ke(e,t,n,s),t.memoizedState=c.state,e=t.child):e=tn(e,t,s),e}function kf(e,t,n,a){return Cl(),t.flags|=256,Ke(e,t,n,a),t.child}var br={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sr(e){return{baseLanes:e,cachePool:md()}}function xr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Et),e}function Nf(e,t,n){var a=t.pendingProps,s=!1,c=(t.flags&128)!==0,g;if((g=c)||(g=e!==null&&e.memoizedState===null?!1:(Be.current&2)!==0),g&&(s=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(be){if(s?Cn(t):Tn(),be){var v=Le,w;if(w=v){e:{for(w=v,v=Ft;w.nodeType!==8;){if(!v){v=null;break e}if(w=Lt(w.nextSibling),w===null){v=null;break e}}v=w}v!==null?(t.memoizedState={dehydrated:v,treeContext:Qn!==null?{id:Xt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},w=ft(18,null,null,0),w.stateNode=v,w.return=t,t.child=w,nt=t,Le=null,w=!0):w=!1}w||Zn(t)}if(v=t.memoizedState,v!==null&&(v=v.dehydrated,v!==null))return lc(v)?t.lanes=32:t.lanes=536870912,null;en(t)}return v=a.children,a=a.fallback,s?(Tn(),s=t.mode,v=os({mode:"hidden",children:v},s),a=Kn(a,s,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,s=t.child,s.memoizedState=Sr(n),s.childLanes=xr(e,g,n),t.memoizedState=br,a):(Cn(t),wr(t,v))}if(w=e.memoizedState,w!==null&&(v=w.dehydrated,v!==null)){if(c)t.flags&256?(Cn(t),t.flags&=-257,t=Cr(e,t,n)):t.memoizedState!==null?(Tn(),t.child=e.child,t.flags|=128,t=null):(Tn(),s=a.fallback,v=t.mode,a=os({mode:"visible",children:a.children},v),s=Kn(s,v,n,null),s.flags|=2,a.return=t,s.return=t,a.sibling=s,t.child=a,_a(t,e.child,null,n),a=t.child,a.memoizedState=Sr(n),a.childLanes=xr(e,g,n),t.memoizedState=br,t=s);else if(Cn(t),lc(v)){if(g=v.nextSibling&&v.nextSibling.dataset,g)var M=g.dgst;g=M,a=Error(r(419)),a.stack="",a.digest=g,Tl({value:a,source:null,stack:null}),t=Cr(e,t,n)}else if(Ge||Al(e,t,n,!1),g=(n&e.childLanes)!==0,Ge||g){if(g=ke,g!==null&&(a=n&-n,a=(a&42)!==0?1:lo(a),a=(a&(g.suspendedLanes|n))!==0?0:a,a!==0&&a!==w.retryLane))throw w.retryLane=a,Ea(e,a),yt(g,e,a),bf;v.data==="$?"||Br(),t=Cr(e,t,n)}else v.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,Le=Lt(v.nextSibling),nt=t,be=!0,In=null,Ft=!1,e!==null&&(Ct[Tt++]=Xt,Ct[Tt++]=It,Ct[Tt++]=Qn,Xt=e.id,It=e.overflow,Qn=t),t=wr(t,a.children),t.flags|=4096);return t}return s?(Tn(),s=a.fallback,v=t.mode,w=e.child,M=w.sibling,a=Qt(w,{mode:"hidden",children:a.children}),a.subtreeFlags=w.subtreeFlags&65011712,M!==null?s=Qt(M,s):(s=Kn(s,v,n,null),s.flags|=2),s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,v=e.child.memoizedState,v===null?v=Sr(n):(w=v.cachePool,w!==null?(M=He._currentValue,w=w.parent!==M?{parent:M,pool:M}:w):w=md(),v={baseLanes:v.baseLanes|n,cachePool:w}),s.memoizedState=v,s.childLanes=xr(e,g,n),t.memoizedState=br,a):(Cn(t),n=e.child,e=n.sibling,n=Qt(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=n,t.memoizedState=null,n)}function wr(e,t){return t=os({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function os(e,t){return e=ft(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Cr(e,t,n){return _a(t,e.child,null,n),e=wr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jf(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Bo(e.return,t,n)}function Tr(e,t,n,a,s){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=n,c.tailMode=s)}function Rf(e,t,n){var a=t.pendingProps,s=a.revealOrder,c=a.tail;if(Ke(e,t,a.children,n),a=Be.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jf(e,n,t);else if(e.tag===19)jf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(ee(Be,a),s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&as(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Tr(t,!1,s,n,c);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&as(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Tr(t,!0,n,null,c);break;case"together":Tr(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),jn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Al(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Qt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ar(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Bi(e)))}function zy(e,t,n){switch(t.tag){case 3:Bn(t,t.stateNode.containerInfo),vn(t,He,e.memoizedState.cache),Cl();break;case 27:case 5:fn(t);break;case 4:Bn(t,t.stateNode.containerInfo);break;case 10:vn(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Cn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?Nf(e,t,n):(Cn(t),e=tn(e,t,n),e!==null?e.sibling:null);Cn(t);break;case 19:var s=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Al(e,t,n,!1),a=(n&t.childLanes)!==0),s){if(a)return Rf(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),ee(Be,Be.current),a)break;return null;case 22:case 23:return t.lanes=0,Cf(e,t,n);case 24:vn(t,He,e.memoizedState.cache)}return tn(e,t,n)}function Mf(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ge=!0;else{if(!Ar(e,n)&&(t.flags&128)===0)return Ge=!1,zy(e,t,n);Ge=(e.flags&131072)!==0}else Ge=!1,be&&(t.flags&1048576)!==0&&sd(t,Hi,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,s=a._init;if(a=s(a._payload),t.type=a,typeof a=="function")Lo(a)?(e=na(a,e),t.tag=1,t=Ef(null,t,a,e,n)):(t.tag=0,t=vr(null,t,a,e,n));else{if(a!=null){if(s=a.$$typeof,s===q){t.tag=11,t=Sf(null,t,a,e,n);break e}else if(s===I){t.tag=14,t=xf(null,t,a,e,n);break e}}throw t=J(a)||a,Error(r(306,t,""))}}return t;case 0:return vr(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,s=na(a,t.pendingProps),Ef(e,t,a,s,n);case 3:e:{if(Bn(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var c=t.memoizedState;s=c.element,Qo(e,t),Dl(t,a,null,n);var g=t.memoizedState;if(a=g.cache,vn(t,He,a),a!==c.cache&&Vo(t,[He],n,!0),Ml(),a=g.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=kf(e,t,a,n);break e}else if(a!==s){s=xt(Error(r(424)),t),Tl(s),t=kf(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Le=Lt(e.firstChild),nt=t,be=!0,In=null,Ft=!0,n=cf(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Cl(),a===s){t=tn(e,t,n);break e}Ke(e,t,a,n)}t=t.child}return t;case 26:return ss(e,t),e===null?(n=Um(t.type,null,t.pendingProps,null))?t.memoizedState=n:be||(n=t.type,e=t.pendingProps,a=xs(Rt.current).createElement(n),a[Ze]=t,a[at]=e,Xe(a,n,e),qe(a),t.stateNode=a):t.memoizedState=Um(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fn(t),e===null&&be&&(a=t.stateNode=Dm(t.type,t.pendingProps,Rt.current),nt=t,Ft=!0,s=Le,On(t.type)?(ic=s,Le=Lt(a.firstChild)):Le=s),Ke(e,t,t.pendingProps.children,n),ss(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&be&&((s=a=Le)&&(a=uv(a,t.type,t.pendingProps,Ft),a!==null?(t.stateNode=a,nt=t,Le=Lt(a.firstChild),Ft=!1,s=!0):s=!1),s||Zn(t)),fn(t),s=t.type,c=t.pendingProps,g=e!==null?e.memoizedProps:null,a=c.children,tc(s,c)?a=null:g!==null&&tc(s,g)&&(t.flags|=32),t.memoizedState!==null&&(s=er(e,t,Ny,null,null,n),ei._currentValue=s),ss(e,t),Ke(e,t,a,n),t.child;case 6:return e===null&&be&&((e=n=Le)&&(n=dv(n,t.pendingProps,Ft),n!==null?(t.stateNode=n,nt=t,Le=null,e=!0):e=!1),e||Zn(t)),null;case 13:return Nf(e,t,n);case 4:return Bn(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=_a(t,null,a,n):Ke(e,t,a,n),t.child;case 11:return Sf(e,t,t.type,t.pendingProps,n);case 7:return Ke(e,t,t.pendingProps,n),t.child;case 8:return Ke(e,t,t.pendingProps.children,n),t.child;case 12:return Ke(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,vn(t,t.type,a.value),Ke(e,t,a.children,n),t.child;case 9:return s=t.type._context,a=t.pendingProps.children,Wn(t),s=Je(s),a=a(s),t.flags|=1,Ke(e,t,a,n),t.child;case 14:return xf(e,t,t.type,t.pendingProps,n);case 15:return wf(e,t,t.type,t.pendingProps,n);case 19:return Rf(e,t,n);case 31:return a=t.pendingProps,n=t.mode,a={mode:a.mode,children:a.children},e===null?(n=os(a,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Qt(e.child,a),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Cf(e,t,n);case 24:return Wn(t),a=Je(He),e===null?(s=Yo(),s===null&&(s=ke,c=qo(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:a,cache:s},Ko(t),vn(t,He,s)):((e.lanes&n)!==0&&(Qo(e,t),Dl(t,null,null,n),Ml()),s=e.memoizedState,c=t.memoizedState,s.parent!==a?(s={parent:a,cache:a},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),vn(t,He,a)):(a=c.cache,vn(t,He,a),a!==s.cache&&Vo(t,[He],n,!0))),Ke(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function nn(e){e.flags|=4}function Df(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Hm(t)){if(t=At.current,t!==null&&((ge&4194048)===ge?Ht!==null:(ge&62914560)!==ge&&(ge&536870912)===0||t!==Ht))throw jl=$o,hd;e.flags|=8192}}function rs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?cu():536870912,e.lanes|=t,Ba|=t)}function Fl(e,t){if(!be)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags&65011712,a|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function _y(e,t,n){var a=t.pendingProps;switch(Po(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Oe(t),null;case 1:return Oe(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Jt(He),Mt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(wl(t)?nn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cd())),Oe(t),null;case 26:return n=t.memoizedState,e===null?(nn(t),n!==null?(Oe(t),Df(t,n)):(Oe(t),t.flags&=-16777217)):n?n!==e.memoizedState?(nn(t),Oe(t),Df(t,n)):(Oe(t),t.flags&=-16777217):(e.memoizedProps!==a&&nn(t),Oe(t),t.flags&=-16777217),null;case 27:mn(t),n=Rt.current;var s=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Oe(t),null}e=ue.current,wl(t)?od(t):(e=Dm(s,a,n),t.stateNode=e,nn(t))}return Oe(t),null;case 5:if(mn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Oe(t),null}if(e=ue.current,wl(t))od(t);else{switch(s=xs(Rt.current),e){case 1:e=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}e[Ze]=t,e[at]=a;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)e.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=e;e:switch(Xe(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&nn(t)}}return Oe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&nn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=Rt.current,wl(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,s=nt,s!==null)switch(s.tag){case 27:case 5:a=s.memoizedProps}e[Ze]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Am(e.nodeValue,n)),e||Zn(t)}else e=xs(e).createTextNode(a),e[Ze]=t,t.stateNode=e}return Oe(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=wl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[Ze]=t}else Cl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Oe(t),s=!1}else s=cd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(en(t),t):(en(t),null)}if(en(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=a!==null,e=e!==null&&e.memoizedState!==null,n){a=t.child,s=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(s=a.alternate.memoizedState.cachePool.pool);var c=null;a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==s&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),rs(t,t.updateQueue),Oe(t),null;case 4:return Mt(),e===null&&Ir(t.stateNode.containerInfo),Oe(t),null;case 10:return Jt(t.type),Oe(t),null;case 19:if(oe(Be),s=t.memoizedState,s===null)return Oe(t),null;if(a=(t.flags&128)!==0,c=s.rendering,c===null)if(a)Fl(s,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=as(e),c!==null){for(t.flags|=128,Fl(s,!1),e=c.updateQueue,t.updateQueue=e,rs(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)id(n,e),n=n.sibling;return ee(Be,Be.current&1|2),t.child}e=e.sibling}s.tail!==null&&Pt()>ds&&(t.flags|=128,a=!0,Fl(s,!1),t.lanes=4194304)}else{if(!a)if(e=as(c),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,rs(t,e),Fl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!be)return Oe(t),null}else 2*Pt()-s.renderingStartTime>ds&&n!==536870912&&(t.flags|=128,a=!0,Fl(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(e=s.last,e!==null?e.sibling=c:t.child=c,s.last=c)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Pt(),t.sibling=null,e=Be.current,ee(Be,a?e&1|2:e&1),t):(Oe(t),null);case 22:case 23:return en(t),Jo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Oe(t),t.subtreeFlags&6&&(t.flags|=8192)):Oe(t),n=t.updateQueue,n!==null&&rs(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&oe(ea),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Jt(He),Oe(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Py(e,t){switch(Po(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jt(He),Mt(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return mn(t),null;case 13:if(en(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Cl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(Be),null;case 4:return Mt(),null;case 10:return Jt(t.type),null;case 22:case 23:return en(t),Jo(),e!==null&&oe(ea),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Jt(He),null;case 25:return null;default:return null}}function Of(e,t){switch(Po(t),t.tag){case 3:Jt(He),Mt();break;case 26:case 27:case 5:mn(t);break;case 4:Mt();break;case 13:en(t);break;case 19:oe(Be);break;case 10:Jt(t.type);break;case 22:case 23:en(t),Jo(),e!==null&&oe(ea);break;case 24:Jt(He)}}function Hl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var s=a.next;n=s;do{if((n.tag&e)===e){a=void 0;var c=n.create,g=n.inst;a=c(),g.destroy=a}n=n.next}while(n!==s)}}catch(v){Ae(t,t.return,v)}}function An(e,t,n){try{var a=t.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var c=s.next;a=c;do{if((a.tag&e)===e){var g=a.inst,v=g.destroy;if(v!==void 0){g.destroy=void 0,s=t;var w=n,M=v;try{M()}catch(H){Ae(s,w,H)}}}a=a.next}while(a!==c)}}catch(H){Ae(t,t.return,H)}}function Lf(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Sd(t,n)}catch(a){Ae(e,e.return,a)}}}function Uf(e,t,n){n.props=na(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Ae(e,t,a)}}function Bl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(s){Ae(e,t,s)}}function Bt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(s){Ae(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Ae(e,t,s)}else n.current=null}function zf(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(s){Ae(e,e.return,s)}}function Er(e,t,n){try{var a=e.stateNode;iv(a,e.type,n,t),a[at]=t}catch(s){Ae(e,e.return,s)}}function _f(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&On(e.type)||e.tag===4}function kr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_f(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&On(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nr(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ss));else if(a!==4&&(a===27&&On(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Nr(e,t,n),e=e.sibling;e!==null;)Nr(e,t,n),e=e.sibling}function cs(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&On(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(cs(e,t,n),e=e.sibling;e!==null;)cs(e,t,n),e=e.sibling}function Pf(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Xe(t,a,n),t[Ze]=e,t[at]=n}catch(c){Ae(e,e.return,c)}}var an=!1,_e=!1,jr=!1,Ff=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function Fy(e,t){if(e=e.containerInfo,Wr=ks,e=Xu(e),ko(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var s=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var g=0,v=-1,w=-1,M=0,H=0,V=e,O=null;t:for(;;){for(var L;V!==n||s!==0&&V.nodeType!==3||(v=g+s),V!==c||a!==0&&V.nodeType!==3||(w=g+a),V.nodeType===3&&(g+=V.nodeValue.length),(L=V.firstChild)!==null;)O=V,V=L;for(;;){if(V===e)break t;if(O===n&&++M===s&&(v=g),O===c&&++H===a&&(w=g),(L=V.nextSibling)!==null)break;V=O,O=V.parentNode}V=L}n=v===-1||w===-1?null:{start:v,end:w}}else n=null}n=n||{start:0,end:0}}else n=null;for(ec={focusedElem:e,selectionRange:n},ks=!1,Ye=t;Ye!==null;)if(t=Ye,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Ye=e;else for(;Ye!==null;){switch(t=Ye,c=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var ae=na(n.type,s,n.elementType===n.type);e=a.getSnapshotBeforeUpdate(ae,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(te){Ae(n,n.return,te)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ac(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ac(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ye=e;break}Ye=t.return}}function Hf(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:En(e,n),a&4&&Hl(5,n);break;case 1:if(En(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(g){Ae(n,n.return,g)}else{var s=na(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Ae(n,n.return,g)}}a&64&&Lf(n),a&512&&Bl(n,n.return);break;case 3:if(En(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Sd(e,t)}catch(g){Ae(n,n.return,g)}}break;case 27:t===null&&a&4&&Pf(n);case 26:case 5:En(e,n),t===null&&a&4&&zf(n),a&512&&Bl(n,n.return);break;case 12:En(e,n);break;case 13:En(e,n),a&4&&qf(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Qy.bind(null,n),fv(e,n))));break;case 22:if(a=n.memoizedState!==null||an,!a){t=t!==null&&t.memoizedState!==null||_e,s=an;var c=_e;an=a,(_e=t)&&!c?kn(e,n,(n.subtreeFlags&8772)!==0):En(e,n),an=s,_e=c}break;case 30:break;default:En(e,n)}}function Bf(e){var t=e.alternate;t!==null&&(e.alternate=null,Bf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&oo(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var je=null,st=!1;function ln(e,t,n){for(n=n.child;n!==null;)Vf(e,t,n),n=n.sibling}function Vf(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(rl,n)}catch{}switch(n.tag){case 26:_e||Bt(n,t),ln(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:_e||Bt(n,t);var a=je,s=st;On(n.type)&&(je=n.stateNode,st=!1),ln(e,t,n),Il(n.stateNode),je=a,st=s;break;case 5:_e||Bt(n,t);case 6:if(a=je,s=st,je=null,ln(e,t,n),je=a,st=s,je!==null)if(st)try{(je.nodeType===9?je.body:je.nodeName==="HTML"?je.ownerDocument.body:je).removeChild(n.stateNode)}catch(c){Ae(n,t,c)}else try{je.removeChild(n.stateNode)}catch(c){Ae(n,t,c)}break;case 18:je!==null&&(st?(e=je,Rm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),li(e)):Rm(je,n.stateNode));break;case 4:a=je,s=st,je=n.stateNode.containerInfo,st=!0,ln(e,t,n),je=a,st=s;break;case 0:case 11:case 14:case 15:_e||An(2,n,t),_e||An(4,n,t),ln(e,t,n);break;case 1:_e||(Bt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Uf(n,t,a)),ln(e,t,n);break;case 21:ln(e,t,n);break;case 22:_e=(a=_e)||n.memoizedState!==null,ln(e,t,n),_e=a;break;default:ln(e,t,n)}}function qf(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{li(e)}catch(n){Ae(t,t.return,n)}}function Hy(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ff),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ff),t;default:throw Error(r(435,e.tag))}}function Rr(e,t){var n=Hy(e);t.forEach(function(a){var s=Xy.bind(null,e,a);n.has(a)||(n.add(a),a.then(s,s))})}function mt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var s=n[a],c=e,g=t,v=g;e:for(;v!==null;){switch(v.tag){case 27:if(On(v.type)){je=v.stateNode,st=!1;break e}break;case 5:je=v.stateNode,st=!1;break e;case 3:case 4:je=v.stateNode.containerInfo,st=!0;break e}v=v.return}if(je===null)throw Error(r(160));Vf(c,g,s),je=null,st=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Gf(t,e),t=t.sibling}var Ot=null;function Gf(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:mt(t,e),ht(e),a&4&&(An(3,e,e.return),Hl(3,e),An(5,e,e.return));break;case 1:mt(t,e),ht(e),a&512&&(_e||n===null||Bt(n,n.return)),a&64&&an&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var s=Ot;if(mt(t,e),ht(e),a&512&&(_e||n===null||Bt(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(a){case"title":c=s.getElementsByTagName("title")[0],(!c||c[dl]||c[Ze]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(a),s.head.insertBefore(c,s.querySelector("head > title"))),Xe(c,a,n),c[Ze]=e,qe(c),a=c;break e;case"link":var g=Pm("link","href",s).get(a+(n.href||""));if(g){for(var v=0;v<g.length;v++)if(c=g[v],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(v,1);break t}}c=s.createElement(a),Xe(c,a,n),s.head.appendChild(c);break;case"meta":if(g=Pm("meta","content",s).get(a+(n.content||""))){for(v=0;v<g.length;v++)if(c=g[v],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(v,1);break t}}c=s.createElement(a),Xe(c,a,n),s.head.appendChild(c);break;default:throw Error(r(468,a))}c[Ze]=e,qe(c),a=c}e.stateNode=a}else Fm(s,e.type,e.stateNode);else e.stateNode=_m(s,a,e.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?Fm(s,e.type,e.stateNode):_m(s,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Er(e,e.memoizedProps,n.memoizedProps)}break;case 27:mt(t,e),ht(e),a&512&&(_e||n===null||Bt(n,n.return)),n!==null&&a&4&&Er(e,e.memoizedProps,n.memoizedProps);break;case 5:if(mt(t,e),ht(e),a&512&&(_e||n===null||Bt(n,n.return)),e.flags&32){s=e.stateNode;try{ba(s,"")}catch(L){Ae(e,e.return,L)}}a&4&&e.stateNode!=null&&(s=e.memoizedProps,Er(e,s,n!==null?n.memoizedProps:s)),a&1024&&(jr=!0);break;case 6:if(mt(t,e),ht(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(L){Ae(e,e.return,L)}}break;case 3:if(Ts=null,s=Ot,Ot=ws(t.containerInfo),mt(t,e),Ot=s,ht(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{li(t.containerInfo)}catch(L){Ae(e,e.return,L)}jr&&(jr=!1,Yf(e));break;case 4:a=Ot,Ot=ws(e.stateNode.containerInfo),mt(t,e),ht(e),Ot=a;break;case 12:mt(t,e),ht(e);break;case 13:mt(t,e),ht(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(zr=Pt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Rr(e,a)));break;case 22:s=e.memoizedState!==null;var w=n!==null&&n.memoizedState!==null,M=an,H=_e;if(an=M||s,_e=H||w,mt(t,e),_e=H,an=M,ht(e),a&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||w||an||_e||aa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){w=n=t;try{if(c=w.stateNode,s)g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{v=w.stateNode;var V=w.memoizedProps.style,O=V!=null&&V.hasOwnProperty("display")?V.display:null;v.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(L){Ae(w,w.return,L)}}}else if(t.tag===6){if(n===null){w=t;try{w.stateNode.nodeValue=s?"":w.memoizedProps}catch(L){Ae(w,w.return,L)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Rr(e,n))));break;case 19:mt(t,e),ht(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Rr(e,a)));break;case 30:break;case 21:break;default:mt(t,e),ht(e)}}function ht(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(_f(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,c=kr(e);cs(e,c,s);break;case 5:var g=n.stateNode;n.flags&32&&(ba(g,""),n.flags&=-33);var v=kr(e);cs(e,v,g);break;case 3:case 4:var w=n.stateNode.containerInfo,M=kr(e);Nr(e,M,w);break;default:throw Error(r(161))}}catch(H){Ae(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Yf(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Yf(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function En(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Hf(e,t.alternate,t),t=t.sibling}function aa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:An(4,t,t.return),aa(t);break;case 1:Bt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Uf(t,t.return,n),aa(t);break;case 27:Il(t.stateNode);case 26:case 5:Bt(t,t.return),aa(t);break;case 22:t.memoizedState===null&&aa(t);break;case 30:aa(t);break;default:aa(t)}e=e.sibling}}function kn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,s=e,c=t,g=c.flags;switch(c.tag){case 0:case 11:case 15:kn(s,c,n),Hl(4,c);break;case 1:if(kn(s,c,n),a=c,s=a.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(M){Ae(a,a.return,M)}if(a=c,s=a.updateQueue,s!==null){var v=a.stateNode;try{var w=s.shared.hiddenCallbacks;if(w!==null)for(s.shared.hiddenCallbacks=null,s=0;s<w.length;s++)bd(w[s],v)}catch(M){Ae(a,a.return,M)}}n&&g&64&&Lf(c),Bl(c,c.return);break;case 27:Pf(c);case 26:case 5:kn(s,c,n),n&&a===null&&g&4&&zf(c),Bl(c,c.return);break;case 12:kn(s,c,n);break;case 13:kn(s,c,n),n&&g&4&&qf(s,c);break;case 22:c.memoizedState===null&&kn(s,c,n),Bl(c,c.return);break;case 30:break;default:kn(s,c,n)}t=t.sibling}}function Mr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&El(n))}function Dr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&El(e))}function Vt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$f(e,t,n,a),t=t.sibling}function $f(e,t,n,a){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Vt(e,t,n,a),s&2048&&Hl(9,t);break;case 1:Vt(e,t,n,a);break;case 3:Vt(e,t,n,a),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&El(e)));break;case 12:if(s&2048){Vt(e,t,n,a),e=t.stateNode;try{var c=t.memoizedProps,g=c.id,v=c.onPostCommit;typeof v=="function"&&v(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){Ae(t,t.return,w)}}else Vt(e,t,n,a);break;case 13:Vt(e,t,n,a);break;case 23:break;case 22:c=t.stateNode,g=t.alternate,t.memoizedState!==null?c._visibility&2?Vt(e,t,n,a):Vl(e,t):c._visibility&2?Vt(e,t,n,a):(c._visibility|=2,Pa(e,t,n,a,(t.subtreeFlags&10256)!==0)),s&2048&&Mr(g,t);break;case 24:Vt(e,t,n,a),s&2048&&Dr(t.alternate,t);break;default:Vt(e,t,n,a)}}function Pa(e,t,n,a,s){for(s=s&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var c=e,g=t,v=n,w=a,M=g.flags;switch(g.tag){case 0:case 11:case 15:Pa(c,g,v,w,s),Hl(8,g);break;case 23:break;case 22:var H=g.stateNode;g.memoizedState!==null?H._visibility&2?Pa(c,g,v,w,s):Vl(c,g):(H._visibility|=2,Pa(c,g,v,w,s)),s&&M&2048&&Mr(g.alternate,g);break;case 24:Pa(c,g,v,w,s),s&&M&2048&&Dr(g.alternate,g);break;default:Pa(c,g,v,w,s)}t=t.sibling}}function Vl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,s=a.flags;switch(a.tag){case 22:Vl(n,a),s&2048&&Mr(a.alternate,a);break;case 24:Vl(n,a),s&2048&&Dr(a.alternate,a);break;default:Vl(n,a)}t=t.sibling}}var ql=8192;function Fa(e){if(e.subtreeFlags&ql)for(e=e.child;e!==null;)Kf(e),e=e.sibling}function Kf(e){switch(e.tag){case 26:Fa(e),e.flags&ql&&e.memoizedState!==null&&Av(Ot,e.memoizedState,e.memoizedProps);break;case 5:Fa(e);break;case 3:case 4:var t=Ot;Ot=ws(e.stateNode.containerInfo),Fa(e),Ot=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=ql,ql=16777216,Fa(e),ql=t):Fa(e));break;default:Fa(e)}}function Qf(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ye=a,If(a,e)}Qf(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xf(e),e=e.sibling}function Xf(e){switch(e.tag){case 0:case 11:case 15:Gl(e),e.flags&2048&&An(9,e,e.return);break;case 3:Gl(e);break;case 12:Gl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,us(e)):Gl(e);break;default:Gl(e)}}function us(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ye=a,If(a,e)}Qf(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:An(8,t,t.return),us(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,us(t));break;default:us(t)}e=e.sibling}}function If(e,t){for(;Ye!==null;){var n=Ye;switch(n.tag){case 0:case 11:case 15:An(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:El(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ye=a;else e:for(n=e;Ye!==null;){a=Ye;var s=a.sibling,c=a.return;if(Bf(a),a===n){Ye=null;break e}if(s!==null){s.return=c,Ye=s;break e}Ye=c}}}var By={getCacheForType:function(e){var t=Je(He),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Vy=typeof WeakMap=="function"?WeakMap:Map,Se=0,ke=null,fe=null,ge=0,xe=0,gt=null,Nn=!1,Ha=!1,Or=!1,sn=0,Ue=0,jn=0,la=0,Lr=0,Et=0,Ba=0,Yl=null,ot=null,Ur=!1,zr=0,ds=1/0,fs=null,Rn=null,Qe=0,Mn=null,Va=null,qa=0,_r=0,Pr=null,Zf=null,$l=0,Fr=null;function pt(){if((Se&2)!==0&&ge!==0)return ge&-ge;if(U.T!==null){var e=Ra;return e!==0?e:$r()}return fu()}function Jf(){Et===0&&(Et=(ge&536870912)===0||be?ru():536870912);var e=At.current;return e!==null&&(e.flags|=32),Et}function yt(e,t,n){(e===ke&&(xe===2||xe===9)||e.cancelPendingCommit!==null)&&(Ga(e,0),Dn(e,ge,Et,!1)),ul(e,n),((Se&2)===0||e!==ke)&&(e===ke&&((Se&2)===0&&(la|=n),Ue===4&&Dn(e,ge,Et,!1)),qt(e))}function Wf(e,t,n){if((Se&6)!==0)throw Error(r(327));var a=!n&&(t&124)===0&&(t&e.expiredLanes)===0||cl(e,t),s=a?Yy(e,t):Vr(e,t,!0),c=a;do{if(s===0){Ha&&!a&&Dn(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!qy(n)){s=Vr(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var v=e;s=Yl;var w=v.current.memoizedState.isDehydrated;if(w&&(Ga(v,g).flags|=256),g=Vr(v,g,!1),g!==2){if(Or&&!w){v.errorRecoveryDisabledLanes|=c,la|=c,s=4;break e}c=ot,ot=s,c!==null&&(ot===null?ot=c:ot.push.apply(ot,c))}s=g}if(c=!1,s!==2)continue}}if(s===1){Ga(e,0),Dn(e,t,0,!0);break}e:{switch(a=e,c=s,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Dn(a,t,Et,!Nn);break e;case 2:ot=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=zr+300-Pt(),10<s)){if(Dn(a,t,Et,!Nn),Ci(a,0,!0)!==0)break e;a.timeoutHandle=Nm(em.bind(null,a,n,ot,fs,Ur,t,Et,la,Ba,Nn,c,2,-0,0),s);break e}em(a,n,ot,fs,Ur,t,Et,la,Ba,Nn,c,0,-0,0)}}break}while(!0);qt(e)}function em(e,t,n,a,s,c,g,v,w,M,H,V,O,L){if(e.timeoutHandle=-1,V=t.subtreeFlags,(V&8192||(V&16785408)===16785408)&&(Wl={stylesheets:null,count:0,unsuspend:Tv},Kf(t),V=Ev(),V!==null)){e.cancelPendingCommit=V(om.bind(null,e,t,c,n,a,s,g,v,w,H,1,O,L)),Dn(e,c,g,!M);return}om(e,t,c,n,a,s,g,v,w)}function qy(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var s=n[a],c=s.getSnapshot;s=s.value;try{if(!dt(c(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Dn(e,t,n,a){t&=~Lr,t&=~la,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var s=t;0<s;){var c=31-ut(s),g=1<<c;a[c]=-1,s&=~g}n!==0&&uu(e,n,t)}function ms(){return(Se&6)===0?(Kl(0),!1):!0}function Hr(){if(fe!==null){if(xe===0)var e=fe.return;else e=fe,Zt=Jn=null,ar(e),za=null,_l=0,e=fe;for(;e!==null;)Of(e.alternate,e),e=e.return;fe=null}}function Ga(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,ov(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Hr(),ke=e,fe=n=Qt(e.current,null),ge=t,xe=0,gt=null,Nn=!1,Ha=cl(e,t),Or=!1,Ba=Et=Lr=la=jn=Ue=0,ot=Yl=null,Ur=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var s=31-ut(a),c=1<<s;t|=e[s],a&=~c}return sn=t,Ui(),n}function tm(e,t){re=null,U.H=es,t===Nl||t===Gi?(t=yd(),xe=3):t===hd?(t=yd(),xe=4):xe=t===bf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gt=t,fe===null&&(Ue=1,is(e,xt(t,e.current)))}function nm(){var e=U.H;return U.H=es,e===null?es:e}function am(){var e=U.A;return U.A=By,e}function Br(){Ue=4,Nn||(ge&4194048)!==ge&&At.current!==null||(Ha=!0),(jn&134217727)===0&&(la&134217727)===0||ke===null||Dn(ke,ge,Et,!1)}function Vr(e,t,n){var a=Se;Se|=2;var s=nm(),c=am();(ke!==e||ge!==t)&&(fs=null,Ga(e,t)),t=!1;var g=Ue;e:do try{if(xe!==0&&fe!==null){var v=fe,w=gt;switch(xe){case 8:Hr(),g=6;break e;case 3:case 2:case 9:case 6:At.current===null&&(t=!0);var M=xe;if(xe=0,gt=null,Ya(e,v,w,M),n&&Ha){g=0;break e}break;default:M=xe,xe=0,gt=null,Ya(e,v,w,M)}}Gy(),g=Ue;break}catch(H){tm(e,H)}while(!0);return t&&e.shellSuspendCounter++,Zt=Jn=null,Se=a,U.H=s,U.A=c,fe===null&&(ke=null,ge=0,Ui()),g}function Gy(){for(;fe!==null;)lm(fe)}function Yy(e,t){var n=Se;Se|=2;var a=nm(),s=am();ke!==e||ge!==t?(fs=null,ds=Pt()+500,Ga(e,t)):Ha=cl(e,t);e:do try{if(xe!==0&&fe!==null){t=fe;var c=gt;t:switch(xe){case 1:xe=0,gt=null,Ya(e,t,c,1);break;case 2:case 9:if(gd(c)){xe=0,gt=null,im(t);break}t=function(){xe!==2&&xe!==9||ke!==e||(xe=7),qt(e)},c.then(t,t);break e;case 3:xe=7;break e;case 4:xe=5;break e;case 7:gd(c)?(xe=0,gt=null,im(t)):(xe=0,gt=null,Ya(e,t,c,7));break;case 5:var g=null;switch(fe.tag){case 26:g=fe.memoizedState;case 5:case 27:var v=fe;if(!g||Hm(g)){xe=0,gt=null;var w=v.sibling;if(w!==null)fe=w;else{var M=v.return;M!==null?(fe=M,hs(M)):fe=null}break t}}xe=0,gt=null,Ya(e,t,c,5);break;case 6:xe=0,gt=null,Ya(e,t,c,6);break;case 8:Hr(),Ue=6;break e;default:throw Error(r(462))}}$y();break}catch(H){tm(e,H)}while(!0);return Zt=Jn=null,U.H=a,U.A=s,Se=n,fe!==null?0:(ke=null,ge=0,Ui(),Ue)}function $y(){for(;fe!==null&&!hp();)lm(fe)}function lm(e){var t=Mf(e.alternate,e,sn);e.memoizedProps=e.pendingProps,t===null?hs(e):fe=t}function im(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Af(n,t,t.pendingProps,t.type,void 0,ge);break;case 11:t=Af(n,t,t.pendingProps,t.type.render,t.ref,ge);break;case 5:ar(t);default:Of(n,t),t=fe=id(t,sn),t=Mf(n,t,sn)}e.memoizedProps=e.pendingProps,t===null?hs(e):fe=t}function Ya(e,t,n,a){Zt=Jn=null,ar(t),za=null,_l=0;var s=t.return;try{if(Uy(e,s,t,n,ge)){Ue=1,is(e,xt(n,e.current)),fe=null;return}}catch(c){if(s!==null)throw fe=s,c;Ue=1,is(e,xt(n,e.current)),fe=null;return}t.flags&32768?(be||a===1?e=!0:Ha||(ge&536870912)!==0?e=!1:(Nn=e=!0,(a===2||a===9||a===3||a===6)&&(a=At.current,a!==null&&a.tag===13&&(a.flags|=16384))),sm(t,e)):hs(t)}function hs(e){var t=e;do{if((t.flags&32768)!==0){sm(t,Nn);return}e=t.return;var n=_y(t.alternate,t,sn);if(n!==null){fe=n;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ue===0&&(Ue=5)}function sm(e,t){do{var n=Py(e.alternate,e);if(n!==null){n.flags&=32767,fe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=n}while(e!==null);Ue=6,fe=null}function om(e,t,n,a,s,c,g,v,w){e.cancelPendingCommit=null;do gs();while(Qe!==0);if((Se&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=Do,Tp(e,n,c,g,v,w),e===ke&&(fe=ke=null,ge=0),Va=t,Mn=e,qa=n,_r=c,Pr=s,Zf=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Iy(Si,function(){return fm(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,s=P.p,P.p=2,g=Se,Se|=4;try{Fy(e,t,n)}finally{Se=g,P.p=s,U.T=a}}Qe=1,rm(),cm(),um()}}function rm(){if(Qe===1){Qe=0;var e=Mn,t=Va,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var a=P.p;P.p=2;var s=Se;Se|=4;try{Gf(t,e);var c=ec,g=Xu(e.containerInfo),v=c.focusedElem,w=c.selectionRange;if(g!==v&&v&&v.ownerDocument&&Qu(v.ownerDocument.documentElement,v)){if(w!==null&&ko(v)){var M=w.start,H=w.end;if(H===void 0&&(H=M),"selectionStart"in v)v.selectionStart=M,v.selectionEnd=Math.min(H,v.value.length);else{var V=v.ownerDocument||document,O=V&&V.defaultView||window;if(O.getSelection){var L=O.getSelection(),ae=v.textContent.length,te=Math.min(w.start,ae),Te=w.end===void 0?te:Math.min(w.end,ae);!L.extend&&te>Te&&(g=Te,Te=te,te=g);var E=Ku(v,te),C=Ku(v,Te);if(E&&C&&(L.rangeCount!==1||L.anchorNode!==E.node||L.anchorOffset!==E.offset||L.focusNode!==C.node||L.focusOffset!==C.offset)){var j=V.createRange();j.setStart(E.node,E.offset),L.removeAllRanges(),te>Te?(L.addRange(j),L.extend(C.node,C.offset)):(j.setEnd(C.node,C.offset),L.addRange(j))}}}}for(V=[],L=v;L=L.parentNode;)L.nodeType===1&&V.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<V.length;v++){var B=V[v];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}ks=!!Wr,ec=Wr=null}finally{Se=s,P.p=a,U.T=n}}e.current=t,Qe=2}}function cm(){if(Qe===2){Qe=0;var e=Mn,t=Va,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var a=P.p;P.p=2;var s=Se;Se|=4;try{Hf(e,t.alternate,t)}finally{Se=s,P.p=a,U.T=n}}Qe=3}}function um(){if(Qe===4||Qe===3){Qe=0,gp();var e=Mn,t=Va,n=qa,a=Zf;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Qe=5:(Qe=0,Va=Mn=null,dm(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Rn=null),io(n),t=t.stateNode,ct&&typeof ct.onCommitFiberRoot=="function")try{ct.onCommitFiberRoot(rl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=U.T,s=P.p,P.p=2,U.T=null;try{for(var c=e.onRecoverableError,g=0;g<a.length;g++){var v=a[g];c(v.value,{componentStack:v.stack})}}finally{U.T=t,P.p=s}}(qa&3)!==0&&gs(),qt(e),s=e.pendingLanes,(n&4194090)!==0&&(s&42)!==0?e===Fr?$l++:($l=0,Fr=e):$l=0,Kl(0)}}function dm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,El(t)))}function gs(e){return rm(),cm(),um(),fm()}function fm(){if(Qe!==5)return!1;var e=Mn,t=_r;_r=0;var n=io(qa),a=U.T,s=P.p;try{P.p=32>n?32:n,U.T=null,n=Pr,Pr=null;var c=Mn,g=qa;if(Qe=0,Va=Mn=null,qa=0,(Se&6)!==0)throw Error(r(331));var v=Se;if(Se|=4,Xf(c.current),$f(c,c.current,g,n),Se=v,Kl(0,!1),ct&&typeof ct.onPostCommitFiberRoot=="function")try{ct.onPostCommitFiberRoot(rl,c)}catch{}return!0}finally{P.p=s,U.T=a,dm(e,t)}}function mm(e,t,n){t=xt(n,t),t=yr(e.stateNode,t,2),e=xn(e,t,2),e!==null&&(ul(e,2),qt(e))}function Ae(e,t,n){if(e.tag===3)mm(e,e,n);else for(;t!==null;){if(t.tag===3){mm(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Rn===null||!Rn.has(a))){e=xt(n,e),n=yf(2),a=xn(t,n,2),a!==null&&(vf(n,a,t,e),ul(a,2),qt(a));break}}t=t.return}}function qr(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Vy;var s=new Set;a.set(t,s)}else s=a.get(t),s===void 0&&(s=new Set,a.set(t,s));s.has(n)||(Or=!0,s.add(n),e=Ky.bind(null,e,t,n),t.then(e,e))}function Ky(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ke===e&&(ge&n)===n&&(Ue===4||Ue===3&&(ge&62914560)===ge&&300>Pt()-zr?(Se&2)===0&&Ga(e,0):Lr|=n,Ba===ge&&(Ba=0)),qt(e)}function hm(e,t){t===0&&(t=cu()),e=Ea(e,t),e!==null&&(ul(e,t),qt(e))}function Qy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hm(e,n)}function Xy(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),hm(e,n)}function Iy(e,t){return to(e,t)}var ps=null,$a=null,Gr=!1,ys=!1,Yr=!1,ia=0;function qt(e){e!==$a&&e.next===null&&($a===null?ps=$a=e:$a=$a.next=e),ys=!0,Gr||(Gr=!0,Jy())}function Kl(e,t){if(!Yr&&ys){Yr=!0;do for(var n=!1,a=ps;a!==null;){if(e!==0){var s=a.pendingLanes;if(s===0)var c=0;else{var g=a.suspendedLanes,v=a.pingedLanes;c=(1<<31-ut(42|e)+1)-1,c&=s&~(g&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,vm(a,c))}else c=ge,c=Ci(a,a===ke?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||cl(a,c)||(n=!0,vm(a,c));a=a.next}while(n);Yr=!1}}function Zy(){gm()}function gm(){ys=Gr=!1;var e=0;ia!==0&&(sv()&&(e=ia),ia=0);for(var t=Pt(),n=null,a=ps;a!==null;){var s=a.next,c=pm(a,t);c===0?(a.next=null,n===null?ps=s:n.next=s,s===null&&($a=n)):(n=a,(e!==0||(c&3)!==0)&&(ys=!0)),a=s}Kl(e)}function pm(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var g=31-ut(c),v=1<<g,w=s[g];w===-1?((v&n)===0||(v&a)!==0)&&(s[g]=Cp(v,t)):w<=t&&(e.expiredLanes|=v),c&=~v}if(t=ke,n=ge,n=Ci(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(xe===2||xe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&no(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||cl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&no(a),io(n)){case 2:case 8:n=su;break;case 32:n=Si;break;case 268435456:n=ou;break;default:n=Si}return a=ym.bind(null,e),n=to(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&no(a),e.callbackPriority=2,e.callbackNode=null,2}function ym(e,t){if(Qe!==0&&Qe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(gs()&&e.callbackNode!==n)return null;var a=ge;return a=Ci(e,e===ke?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Wf(e,a,t),pm(e,Pt()),e.callbackNode!=null&&e.callbackNode===n?ym.bind(null,e):null)}function vm(e,t){if(gs())return null;Wf(e,t,!0)}function Jy(){rv(function(){(Se&6)!==0?to(iu,Zy):gm()})}function $r(){return ia===0&&(ia=ru()),ia}function bm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ni(""+e)}function Sm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Wy(e,t,n,a,s){if(t==="submit"&&n&&n.stateNode===s){var c=bm((s[at]||null).action),g=a.submitter;g&&(t=(t=g[at]||null)?bm(t.formAction):g.getAttribute("formAction"),t!==null&&(c=t,g=null));var v=new Di("action","action",null,a,s);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(ia!==0){var w=g?Sm(s,g):new FormData(s);fr(n,{pending:!0,data:w,method:s.method,action:c},null,w)}}else typeof c=="function"&&(v.preventDefault(),w=g?Sm(s,g):new FormData(s),fr(n,{pending:!0,data:w,method:s.method,action:c},c,w))},currentTarget:s}]})}}for(var Kr=0;Kr<Mo.length;Kr++){var Qr=Mo[Kr],ev=Qr.toLowerCase(),tv=Qr[0].toUpperCase()+Qr.slice(1);Dt(ev,"on"+tv)}Dt(Ju,"onAnimationEnd"),Dt(Wu,"onAnimationIteration"),Dt(ed,"onAnimationStart"),Dt("dblclick","onDoubleClick"),Dt("focusin","onFocus"),Dt("focusout","onBlur"),Dt(vy,"onTransitionRun"),Dt(by,"onTransitionStart"),Dt(Sy,"onTransitionCancel"),Dt(td,"onTransitionEnd"),pa("onMouseEnter",["mouseout","mouseover"]),pa("onMouseLeave",["mouseout","mouseover"]),pa("onPointerEnter",["pointerout","pointerover"]),pa("onPointerLeave",["pointerout","pointerover"]),qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qn("onBeforeInput",["compositionend","keypress","textInput","paste"]),qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ql="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),nv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ql));function xm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],s=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var g=a.length-1;0<=g;g--){var v=a[g],w=v.instance,M=v.currentTarget;if(v=v.listener,w!==c&&s.isPropagationStopped())break e;c=v,s.currentTarget=M;try{c(s)}catch(H){ls(H)}s.currentTarget=null,c=w}else for(g=0;g<a.length;g++){if(v=a[g],w=v.instance,M=v.currentTarget,v=v.listener,w!==c&&s.isPropagationStopped())break e;c=v,s.currentTarget=M;try{c(s)}catch(H){ls(H)}s.currentTarget=null,c=w}}}}function me(e,t){var n=t[so];n===void 0&&(n=t[so]=new Set);var a=e+"__bubble";n.has(a)||(wm(t,e,2,!1),n.add(a))}function Xr(e,t,n){var a=0;t&&(a|=4),wm(n,e,a,t)}var vs="_reactListening"+Math.random().toString(36).slice(2);function Ir(e){if(!e[vs]){e[vs]=!0,hu.forEach(function(n){n!=="selectionchange"&&(nv.has(n)||Xr(n,!1,e),Xr(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vs]||(t[vs]=!0,Xr("selectionchange",!1,t))}}function wm(e,t,n,a){switch($m(t)){case 2:var s=jv;break;case 8:s=Rv;break;default:s=uc}n=s.bind(null,t,n,e),s=void 0,!vo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),a?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Zr(e,t,n,a,s){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var g=a.tag;if(g===3||g===4){var v=a.stateNode.containerInfo;if(v===s)break;if(g===4)for(g=a.return;g!==null;){var w=g.tag;if((w===3||w===4)&&g.stateNode.containerInfo===s)return;g=g.return}for(;v!==null;){if(g=ma(v),g===null)return;if(w=g.tag,w===5||w===6||w===26||w===27){a=c=g;continue e}v=v.parentNode}}a=a.return}Nu(function(){var M=c,H=po(n),V=[];e:{var O=nd.get(e);if(O!==void 0){var L=Di,ae=e;switch(e){case"keypress":if(Ri(n)===0)break e;case"keydown":case"keyup":L=Ip;break;case"focusin":ae="focus",L=wo;break;case"focusout":ae="blur",L=wo;break;case"beforeblur":case"afterblur":L=wo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Mu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=Pp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Wp;break;case Ju:case Wu:case ed:L=Bp;break;case td:L=ty;break;case"scroll":case"scrollend":L=zp;break;case"wheel":L=ay;break;case"copy":case"cut":case"paste":L=qp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Ou;break;case"toggle":case"beforetoggle":L=iy}var te=(t&4)!==0,Te=!te&&(e==="scroll"||e==="scrollend"),E=te?O!==null?O+"Capture":null:O;te=[];for(var C=M,j;C!==null;){var B=C;if(j=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||j===null||E===null||(B=ml(C,E),B!=null&&te.push(Xl(C,B,j))),Te)break;C=C.return}0<te.length&&(O=new L(O,ae,null,n,H),V.push({event:O,listeners:te}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",L=e==="mouseout"||e==="pointerout",O&&n!==go&&(ae=n.relatedTarget||n.fromElement)&&(ma(ae)||ae[fa]))break e;if((L||O)&&(O=H.window===H?H:(O=H.ownerDocument)?O.defaultView||O.parentWindow:window,L?(ae=n.relatedTarget||n.toElement,L=M,ae=ae?ma(ae):null,ae!==null&&(Te=d(ae),te=ae.tag,ae!==Te||te!==5&&te!==27&&te!==6)&&(ae=null)):(L=null,ae=M),L!==ae)){if(te=Mu,B="onMouseLeave",E="onMouseEnter",C="mouse",(e==="pointerout"||e==="pointerover")&&(te=Ou,B="onPointerLeave",E="onPointerEnter",C="pointer"),Te=L==null?O:fl(L),j=ae==null?O:fl(ae),O=new te(B,C+"leave",L,n,H),O.target=Te,O.relatedTarget=j,B=null,ma(H)===M&&(te=new te(E,C+"enter",ae,n,H),te.target=j,te.relatedTarget=Te,B=te),Te=B,L&&ae)t:{for(te=L,E=ae,C=0,j=te;j;j=Ka(j))C++;for(j=0,B=E;B;B=Ka(B))j++;for(;0<C-j;)te=Ka(te),C--;for(;0<j-C;)E=Ka(E),j--;for(;C--;){if(te===E||E!==null&&te===E.alternate)break t;te=Ka(te),E=Ka(E)}te=null}else te=null;L!==null&&Cm(V,O,L,te,!1),ae!==null&&Te!==null&&Cm(V,Te,ae,te,!0)}}e:{if(O=M?fl(M):window,L=O.nodeName&&O.nodeName.toLowerCase(),L==="select"||L==="input"&&O.type==="file")var $=Bu;else if(Fu(O))if(Vu)$=gy;else{$=my;var de=fy}else L=O.nodeName,!L||L.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?M&&ho(M.elementType)&&($=Bu):$=hy;if($&&($=$(e,M))){Hu(V,$,n,H);break e}de&&de(e,O,M),e==="focusout"&&M&&O.type==="number"&&M.memoizedProps.value!=null&&mo(O,"number",O.value)}switch(de=M?fl(M):window,e){case"focusin":(Fu(de)||de.contentEditable==="true")&&(Ca=de,No=M,xl=null);break;case"focusout":xl=No=Ca=null;break;case"mousedown":jo=!0;break;case"contextmenu":case"mouseup":case"dragend":jo=!1,Iu(V,n,H);break;case"selectionchange":if(yy)break;case"keydown":case"keyup":Iu(V,n,H)}var W;if(To)e:{switch(e){case"compositionstart":var ne="onCompositionStart";break e;case"compositionend":ne="onCompositionEnd";break e;case"compositionupdate":ne="onCompositionUpdate";break e}ne=void 0}else wa?_u(e,n)&&(ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ne="onCompositionStart");ne&&(Lu&&n.locale!=="ko"&&(wa||ne!=="onCompositionStart"?ne==="onCompositionEnd"&&wa&&(W=ju()):(yn=H,bo="value"in yn?yn.value:yn.textContent,wa=!0)),de=bs(M,ne),0<de.length&&(ne=new Du(ne,e,null,n,H),V.push({event:ne,listeners:de}),W?ne.data=W:(W=Pu(n),W!==null&&(ne.data=W)))),(W=oy?ry(e,n):cy(e,n))&&(ne=bs(M,"onBeforeInput"),0<ne.length&&(de=new Du("onBeforeInput","beforeinput",null,n,H),V.push({event:de,listeners:ne}),de.data=W)),Wy(V,e,M,n,H)}xm(V,t)})}function Xl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bs(e,t){for(var n=t+"Capture",a=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=ml(e,n),s!=null&&a.unshift(Xl(e,s,c)),s=ml(e,t),s!=null&&a.push(Xl(e,s,c))),e.tag===3)return a;e=e.return}return[]}function Ka(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Cm(e,t,n,a,s){for(var c=t._reactName,g=[];n!==null&&n!==a;){var v=n,w=v.alternate,M=v.stateNode;if(v=v.tag,w!==null&&w===a)break;v!==5&&v!==26&&v!==27||M===null||(w=M,s?(M=ml(n,c),M!=null&&g.unshift(Xl(n,M,w))):s||(M=ml(n,c),M!=null&&g.push(Xl(n,M,w)))),n=n.return}g.length!==0&&e.push({event:t,listeners:g})}var av=/\r\n?/g,lv=/\u0000|\uFFFD/g;function Tm(e){return(typeof e=="string"?e:""+e).replace(av,`
|
|
34
|
-
`).replace(lv,"")}function Am(e,t){return t=Tm(t),Tm(e)===t}function Ss(){}function Ce(e,t,n,a,s,c){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||ba(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&ba(e,""+a);break;case"className":Ai(e,"class",a);break;case"tabIndex":Ai(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ai(e,n,a);break;case"style":Eu(e,a,c);break;case"data":if(t!=="object"){Ai(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ni(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(n==="formAction"?(t!=="input"&&Ce(e,t,"name",s.name,s,null),Ce(e,t,"formEncType",s.formEncType,s,null),Ce(e,t,"formMethod",s.formMethod,s,null),Ce(e,t,"formTarget",s.formTarget,s,null)):(Ce(e,t,"encType",s.encType,s,null),Ce(e,t,"method",s.method,s,null),Ce(e,t,"target",s.target,s,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Ni(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Ss);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=Ni(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":me("beforetoggle",e),me("toggle",e),Ti(e,"popover",a);break;case"xlinkActuate":$t(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":$t(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":$t(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":$t(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":$t(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":$t(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":$t(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":$t(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":$t(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ti(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Lp.get(n)||n,Ti(e,n,a))}}function Jr(e,t,n,a,s,c){switch(n){case"style":Eu(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?ba(e,a):(typeof a=="number"||typeof a=="bigint")&&ba(e,""+a);break;case"onScroll":a!=null&&me("scroll",e);break;case"onScrollEnd":a!=null&&me("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Ss);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gu.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[at]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof a=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,s);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Ti(e,n,a)}}}function Xe(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var a=!1,s=!1,c;for(c in n)if(n.hasOwnProperty(c)){var g=n[c];if(g!=null)switch(c){case"src":a=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ce(e,t,c,g,n,null)}}s&&Ce(e,t,"srcSet",n.srcSet,n,null),a&&Ce(e,t,"src",n.src,n,null);return;case"input":me("invalid",e);var v=c=g=s=null,w=null,M=null;for(a in n)if(n.hasOwnProperty(a)){var H=n[a];if(H!=null)switch(a){case"name":s=H;break;case"type":g=H;break;case"checked":w=H;break;case"defaultChecked":M=H;break;case"value":c=H;break;case"defaultValue":v=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:Ce(e,t,a,H,n,null)}}wu(e,c,v,w,M,g,s,!1),Ei(e);return;case"select":me("invalid",e),a=g=c=null;for(s in n)if(n.hasOwnProperty(s)&&(v=n[s],v!=null))switch(s){case"value":c=v;break;case"defaultValue":g=v;break;case"multiple":a=v;default:Ce(e,t,s,v,n,null)}t=c,n=g,e.multiple=!!a,t!=null?va(e,!!a,t,!1):n!=null&&va(e,!!a,n,!0);return;case"textarea":me("invalid",e),c=s=a=null;for(g in n)if(n.hasOwnProperty(g)&&(v=n[g],v!=null))switch(g){case"value":a=v;break;case"defaultValue":s=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:Ce(e,t,g,v,n,null)}Tu(e,a,s,c),Ei(e);return;case"option":for(w in n)if(n.hasOwnProperty(w)&&(a=n[w],a!=null))switch(w){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ce(e,t,w,a,n,null)}return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(a=0;a<Ql.length;a++)me(Ql[a],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in n)if(n.hasOwnProperty(M)&&(a=n[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Ce(e,t,M,a,n,null)}return;default:if(ho(t)){for(H in n)n.hasOwnProperty(H)&&(a=n[H],a!==void 0&&Jr(e,t,H,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&Ce(e,t,v,a,n,null))}function iv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,g=null,v=null,w=null,M=null,H=null;for(L in n){var V=n[L];if(n.hasOwnProperty(L)&&V!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":w=V;default:a.hasOwnProperty(L)||Ce(e,t,L,null,a,V)}}for(var O in a){var L=a[O];if(V=n[O],a.hasOwnProperty(O)&&(L!=null||V!=null))switch(O){case"type":c=L;break;case"name":s=L;break;case"checked":M=L;break;case"defaultChecked":H=L;break;case"value":g=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:L!==V&&Ce(e,t,O,L,a,V)}}fo(e,g,v,w,M,H,c,s);return;case"select":L=g=v=O=null;for(c in n)if(w=n[c],n.hasOwnProperty(c)&&w!=null)switch(c){case"value":break;case"multiple":L=w;default:a.hasOwnProperty(c)||Ce(e,t,c,null,a,w)}for(s in a)if(c=a[s],w=n[s],a.hasOwnProperty(s)&&(c!=null||w!=null))switch(s){case"value":O=c;break;case"defaultValue":v=c;break;case"multiple":g=c;default:c!==w&&Ce(e,t,s,c,a,w)}t=v,n=g,a=L,O!=null?va(e,!!n,O,!1):!!a!=!!n&&(t!=null?va(e,!!n,t,!0):va(e,!!n,n?[]:"",!1));return;case"textarea":L=O=null;for(v in n)if(s=n[v],n.hasOwnProperty(v)&&s!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ce(e,t,v,null,a,s)}for(g in a)if(s=a[g],c=n[g],a.hasOwnProperty(g)&&(s!=null||c!=null))switch(g){case"value":O=s;break;case"defaultValue":L=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==c&&Ce(e,t,g,s,a,c)}Cu(e,O,L);return;case"option":for(var ae in n)if(O=n[ae],n.hasOwnProperty(ae)&&O!=null&&!a.hasOwnProperty(ae))switch(ae){case"selected":e.selected=!1;break;default:Ce(e,t,ae,null,a,O)}for(w in a)if(O=a[w],L=n[w],a.hasOwnProperty(w)&&O!==L&&(O!=null||L!=null))switch(w){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Ce(e,t,w,O,a,L)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var te in n)O=n[te],n.hasOwnProperty(te)&&O!=null&&!a.hasOwnProperty(te)&&Ce(e,t,te,null,a,O);for(M in a)if(O=a[M],L=n[M],a.hasOwnProperty(M)&&O!==L&&(O!=null||L!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:Ce(e,t,M,O,a,L)}return;default:if(ho(t)){for(var Te in n)O=n[Te],n.hasOwnProperty(Te)&&O!==void 0&&!a.hasOwnProperty(Te)&&Jr(e,t,Te,void 0,a,O);for(H in a)O=a[H],L=n[H],!a.hasOwnProperty(H)||O===L||O===void 0&&L===void 0||Jr(e,t,H,O,a,L);return}}for(var E in n)O=n[E],n.hasOwnProperty(E)&&O!=null&&!a.hasOwnProperty(E)&&Ce(e,t,E,null,a,O);for(V in a)O=a[V],L=n[V],!a.hasOwnProperty(V)||O===L||O==null&&L==null||Ce(e,t,V,O,a,L)}var Wr=null,ec=null;function xs(e){return e.nodeType===9?e:e.ownerDocument}function Em(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function km(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function tc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var nc=null;function sv(){var e=window.event;return e&&e.type==="popstate"?e===nc?!1:(nc=e,!0):(nc=null,!1)}var Nm=typeof setTimeout=="function"?setTimeout:void 0,ov=typeof clearTimeout=="function"?clearTimeout:void 0,jm=typeof Promise=="function"?Promise:void 0,rv=typeof queueMicrotask=="function"?queueMicrotask:typeof jm<"u"?function(e){return jm.resolve(null).then(e).catch(cv)}:Nm;function cv(e){setTimeout(function(){throw e})}function On(e){return e==="head"}function Rm(e,t){var n=t,a=0,s=0;do{var c=n.nextSibling;if(e.removeChild(n),c&&c.nodeType===8)if(n=c.data,n==="/$"){if(0<a&&8>a){n=a;var g=e.ownerDocument;if(n&1&&Il(g.documentElement),n&2&&Il(g.body),n&4)for(n=g.head,Il(n),g=n.firstChild;g;){var v=g.nextSibling,w=g.nodeName;g[dl]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&g.rel.toLowerCase()==="stylesheet"||n.removeChild(g),g=v}}if(s===0){e.removeChild(c),li(t);return}s--}else n==="$"||n==="$?"||n==="$!"?s++:a=n.charCodeAt(0)-48;else a=0;n=c}while(n);li(t)}function ac(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":ac(n),oo(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function uv(e,t,n,a){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[dl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function dv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Lt(e.nextSibling),e===null))return null;return e}function lc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function fv(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Lt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var ic=null;function Mm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function Dm(e,t,n){switch(t=xs(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Il(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);oo(e)}var kt=new Map,Om=new Set;function ws(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var on=P.d;P.d={f:mv,r:hv,D:gv,C:pv,L:yv,m:vv,X:Sv,S:bv,M:xv};function mv(){var e=on.f(),t=ms();return e||t}function hv(e){var t=ha(e);t!==null&&t.tag===5&&t.type==="form"?Jd(t):on.r(e)}var Qa=typeof document>"u"?null:document;function Lm(e,t,n){var a=Qa;if(a&&typeof t=="string"&&t){var s=St(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),Om.has(s)||(Om.add(s),e={rel:e,crossOrigin:n,href:t},a.querySelector(s)===null&&(t=a.createElement("link"),Xe(t,"link",e),qe(t),a.head.appendChild(t)))}}function gv(e){on.D(e),Lm("dns-prefetch",e,null)}function pv(e,t){on.C(e,t),Lm("preconnect",e,t)}function yv(e,t,n){on.L(e,t,n);var a=Qa;if(a&&e&&t){var s='link[rel="preload"][as="'+St(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+St(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+St(n.imageSizes)+'"]')):s+='[href="'+St(e)+'"]';var c=s;switch(t){case"style":c=Xa(e);break;case"script":c=Ia(e)}kt.has(c)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),kt.set(c,e),a.querySelector(s)!==null||t==="style"&&a.querySelector(Zl(c))||t==="script"&&a.querySelector(Jl(c))||(t=a.createElement("link"),Xe(t,"link",e),qe(t),a.head.appendChild(t)))}}function vv(e,t){on.m(e,t);var n=Qa;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+St(a)+'"][href="'+St(e)+'"]',c=s;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Ia(e)}if(!kt.has(c)&&(e=b({rel:"modulepreload",href:e},t),kt.set(c,e),n.querySelector(s)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Jl(c)))return}a=n.createElement("link"),Xe(a,"link",e),qe(a),n.head.appendChild(a)}}}function bv(e,t,n){on.S(e,t,n);var a=Qa;if(a&&e){var s=ga(a).hoistableStyles,c=Xa(e);t=t||"default";var g=s.get(c);if(!g){var v={loading:0,preload:null};if(g=a.querySelector(Zl(c)))v.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=kt.get(c))&&sc(e,n);var w=g=a.createElement("link");qe(w),Xe(w,"link",e),w._p=new Promise(function(M,H){w.onload=M,w.onerror=H}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Cs(g,t,a)}g={type:"stylesheet",instance:g,count:1,state:v},s.set(c,g)}}}function Sv(e,t){on.X(e,t);var n=Qa;if(n&&e){var a=ga(n).hoistableScripts,s=Ia(e),c=a.get(s);c||(c=n.querySelector(Jl(s)),c||(e=b({src:e,async:!0},t),(t=kt.get(s))&&oc(e,t),c=n.createElement("script"),qe(c),Xe(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(s,c))}}function xv(e,t){on.M(e,t);var n=Qa;if(n&&e){var a=ga(n).hoistableScripts,s=Ia(e),c=a.get(s);c||(c=n.querySelector(Jl(s)),c||(e=b({src:e,async:!0,type:"module"},t),(t=kt.get(s))&&oc(e,t),c=n.createElement("script"),qe(c),Xe(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(s,c))}}function Um(e,t,n,a){var s=(s=Rt.current)?ws(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Xa(n.href),n=ga(s).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Xa(n.href);var c=ga(s).hoistableStyles,g=c.get(e);if(g||(s=s.ownerDocument||s,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,g),(c=s.querySelector(Zl(e)))&&!c._p&&(g.instance=c,g.state.loading=5),kt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},kt.set(e,n),c||wv(s,e,n,g.state))),t&&a===null)throw Error(r(528,""));return g}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ia(n),n=ga(s).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Xa(e){return'href="'+St(e)+'"'}function Zl(e){return'link[rel="stylesheet"]['+e+"]"}function zm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function wv(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),Xe(t,"link",n),qe(t),e.head.appendChild(t))}function Ia(e){return'[src="'+St(e)+'"]'}function Jl(e){return"script[async]"+e}function _m(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+St(n.href)+'"]');if(a)return t.instance=a,qe(a),a;var s=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),qe(a),Xe(a,"style",s),Cs(a,n.precedence,e),t.instance=a;case"stylesheet":s=Xa(n.href);var c=e.querySelector(Zl(s));if(c)return t.state.loading|=4,t.instance=c,qe(c),c;a=zm(n),(s=kt.get(s))&&sc(a,s),c=(e.ownerDocument||e).createElement("link"),qe(c);var g=c;return g._p=new Promise(function(v,w){g.onload=v,g.onerror=w}),Xe(c,"link",a),t.state.loading|=4,Cs(c,n.precedence,e),t.instance=c;case"script":return c=Ia(n.src),(s=e.querySelector(Jl(c)))?(t.instance=s,qe(s),s):(a=n,(s=kt.get(c))&&(a=b({},n),oc(a,s)),e=e.ownerDocument||e,s=e.createElement("script"),qe(s),Xe(s,"link",a),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Cs(a,n.precedence,e));return t.instance}function Cs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=a.length?a[a.length-1]:null,c=s,g=0;g<a.length;g++){var v=a[g];if(v.dataset.precedence===t)c=v;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ts=null;function Pm(e,t,n){if(Ts===null){var a=new Map,s=Ts=new Map;s.set(n,a)}else s=Ts,a=s.get(n),a||(a=new Map,s.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[dl]||c[Ze]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var g=c.getAttribute(t)||"";g=e+g;var v=a.get(g);v?v.push(c):a.set(g,[c])}}return a}function Fm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Cv(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Hm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Wl=null;function Tv(){}function Av(e,t,n){if(Wl===null)throw Error(r(475));var a=Wl;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var s=Xa(n.href),c=e.querySelector(Zl(s));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(a.count++,a=As.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=c,qe(c);return}c=e.ownerDocument||e,n=zm(n),(s=kt.get(s))&&sc(n,s),c=c.createElement("link"),qe(c);var g=c;g._p=new Promise(function(v,w){g.onload=v,g.onerror=w}),Xe(c,"link",n),t.instance=c}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(a.count++,t=As.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}function Ev(){if(Wl===null)throw Error(r(475));var e=Wl;return e.stylesheets&&e.count===0&&rc(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&rc(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function As(){if(this.count--,this.count===0){if(this.stylesheets)rc(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Es=null;function rc(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Es=new Map,t.forEach(kv,e),Es=null,As.call(e))}function kv(e,t){if(!(t.state.loading&4)){var n=Es.get(e);if(n)var a=n.get(null);else{n=new Map,Es.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var g=s[c];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),a=g)}a&&n.set(null,a)}s=t.instance,g=s.getAttribute("data-precedence"),c=n.get(g)||a,c===a&&n.set(null,s),n.set(g,s),this.count++,a=As.bind(this),s.addEventListener("load",a),s.addEventListener("error",a),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var ei={$$typeof:z,Provider:null,Consumer:null,_currentValue:_,_currentValue2:_,_threadCount:0};function Nv(e,t,n,a,s,c,g,v){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ao(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ao(0),this.hiddenUpdates=ao(null),this.identifierPrefix=a,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=v,this.incompleteTransitions=new Map}function Bm(e,t,n,a,s,c,g,v,w,M,H,V){return e=new Nv(e,t,n,g,v,w,M,V),t=1,c===!0&&(t|=24),c=ft(3,null,null,t),e.current=c,c.stateNode=e,t=qo(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:t},Ko(c),e}function Vm(e){return e?(e=ka,e):ka}function qm(e,t,n,a,s,c){s=Vm(s),a.context===null?a.context=s:a.pendingContext=s,a=Sn(t),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=xn(e,a,t),n!==null&&(yt(n,e,t),Rl(n,e,t))}function Gm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cc(e,t){Gm(e,t),(e=e.alternate)&&Gm(e,t)}function Ym(e){if(e.tag===13){var t=Ea(e,67108864);t!==null&&yt(t,e,67108864),cc(e,67108864)}}var ks=!0;function jv(e,t,n,a){var s=U.T;U.T=null;var c=P.p;try{P.p=2,uc(e,t,n,a)}finally{P.p=c,U.T=s}}function Rv(e,t,n,a){var s=U.T;U.T=null;var c=P.p;try{P.p=8,uc(e,t,n,a)}finally{P.p=c,U.T=s}}function uc(e,t,n,a){if(ks){var s=dc(a);if(s===null)Zr(e,t,a,Ns,n),Km(e,a);else if(Dv(s,e,t,n,a))a.stopPropagation();else if(Km(e,a),t&4&&-1<Mv.indexOf(e)){for(;s!==null;){var c=ha(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var g=Vn(c.pendingLanes);if(g!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;g;){var w=1<<31-ut(g);v.entanglements[1]|=w,g&=~w}qt(c),(Se&6)===0&&(ds=Pt()+500,Kl(0))}}break;case 13:v=Ea(c,2),v!==null&&yt(v,c,2),ms(),cc(c,2)}if(c=dc(a),c===null&&Zr(e,t,a,Ns,n),c===s)break;s=c}s!==null&&a.stopPropagation()}else Zr(e,t,a,null,n)}}function dc(e){return e=po(e),fc(e)}var Ns=null;function fc(e){if(Ns=null,e=ma(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ns=e,null}function $m(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(pp()){case iu:return 2;case su:return 8;case Si:case yp:return 32;case ou:return 268435456;default:return 32}default:return 32}}var mc=!1,Ln=null,Un=null,zn=null,ti=new Map,ni=new Map,_n=[],Mv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Km(e,t){switch(e){case"focusin":case"focusout":Ln=null;break;case"dragenter":case"dragleave":Un=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":ti.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ni.delete(t.pointerId)}}function ai(e,t,n,a,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[s]},t!==null&&(t=ha(t),t!==null&&Ym(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Dv(e,t,n,a,s){switch(t){case"focusin":return Ln=ai(Ln,e,t,n,a,s),!0;case"dragenter":return Un=ai(Un,e,t,n,a,s),!0;case"mouseover":return zn=ai(zn,e,t,n,a,s),!0;case"pointerover":var c=s.pointerId;return ti.set(c,ai(ti.get(c)||null,e,t,n,a,s)),!0;case"gotpointercapture":return c=s.pointerId,ni.set(c,ai(ni.get(c)||null,e,t,n,a,s)),!0}return!1}function Qm(e){var t=ma(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Ap(e.priority,function(){if(n.tag===13){var a=pt();a=lo(a);var s=Ea(n,a);s!==null&&yt(s,n,a),cc(n,a)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function js(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dc(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);go=a,n.target.dispatchEvent(a),go=null}else return t=ha(n),t!==null&&Ym(t),e.blockedOn=n,!1;t.shift()}return!0}function Xm(e,t,n){js(e)&&n.delete(t)}function Ov(){mc=!1,Ln!==null&&js(Ln)&&(Ln=null),Un!==null&&js(Un)&&(Un=null),zn!==null&&js(zn)&&(zn=null),ti.forEach(Xm),ni.forEach(Xm)}function Rs(e,t){e.blockedOn===t&&(e.blockedOn=null,mc||(mc=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ov)))}var Ms=null;function Im(e){Ms!==e&&(Ms=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ms===e&&(Ms=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],s=e[t+2];if(typeof a!="function"){if(fc(a||n)===null)continue;break}var c=ha(n);c!==null&&(e.splice(t,3),t-=3,fr(c,{pending:!0,data:s,method:n.method,action:a},a,s))}}))}function li(e){function t(w){return Rs(w,e)}Ln!==null&&Rs(Ln,e),Un!==null&&Rs(Un,e),zn!==null&&Rs(zn,e),ti.forEach(t),ni.forEach(t);for(var n=0;n<_n.length;n++){var a=_n[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<_n.length&&(n=_n[0],n.blockedOn===null);)Qm(n),n.blockedOn===null&&_n.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var s=n[a],c=n[a+1],g=s[at]||null;if(typeof c=="function")g||Im(n);else if(g){var v=null;if(c&&c.hasAttribute("formAction")){if(s=c,g=c[at]||null)v=g.formAction;else if(fc(s)!==null)continue}else v=g.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),Im(n)}}}function hc(e){this._internalRoot=e}Ds.prototype.render=hc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=pt();qm(n,a,e,t,null,null)},Ds.prototype.unmount=hc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qm(e.current,2,null,e,null,null),ms(),t[fa]=null}};function Ds(e){this._internalRoot=e}Ds.prototype.unstable_scheduleHydration=function(e){if(e){var t=fu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_n.length&&t!==0&&t<_n[n].priority;n++);_n.splice(n,0,e),n===0&&Qm(e)}};var Zm=l.version;if(Zm!=="19.1.1")throw Error(r(527,Zm,"19.1.1"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=y(t),e=e!==null?f(e):null,e=e===null?null:e.stateNode,e};var Lv={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Os=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Os.isDisabled&&Os.supportsFiber)try{rl=Os.inject(Lv),ct=Os}catch{}}return si.createRoot=function(e,t){if(!u(e))throw Error(r(299));var n=!1,a="",s=mf,c=hf,g=gf,v=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(v=t.unstable_transitionCallbacks)),t=Bm(e,1,!1,null,null,n,a,s,c,g,v,null),e[fa]=t.current,Ir(e),new hc(t)},si.hydrateRoot=function(e,t,n){if(!u(e))throw Error(r(299));var a=!1,s="",c=mf,g=hf,v=gf,w=null,M=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(w=n.unstable_transitionCallbacks),n.formState!==void 0&&(M=n.formState)),t=Bm(e,1,!0,t,n??null,a,s,c,g,v,w,M),t.context=Vm(null),n=t.current,a=pt(),a=lo(a),s=Sn(a),s.callback=null,xn(n,s,a),n=a,t.current.lanes=n,ul(t,n),qt(t),e[fa]=t.current,Ir(e),new Ds(t)},si.version="19.1.1",si}var sh;function bb(){if(sh)return gc.exports;sh=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(l){console.error(l)}}return i(),gc.exports=vb(),gc.exports}var Sb=bb();/**
|
|
35
|
-
* react-router v7.9.3
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Remix Software Inc.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
41
|
-
*
|
|
42
|
-
* @license MIT
|
|
43
|
-
*/var oh="popstate";function xb(i={}){function l(r,u){let{pathname:d,search:m,hash:p}=r.location;return Nc("",{pathname:d,search:m,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function o(r,u){return typeof u=="string"?u:fi(u)}return Cb(l,o,null,i)}function Re(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}function Nt(i,l){if(!i){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function wb(){return Math.random().toString(36).substring(2,10)}function rh(i,l){return{usr:i.state,key:i.key,idx:l}}function Nc(i,l,o=null,r){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof l=="string"?nl(l):l,state:o,key:l&&l.key||r||wb()}}function fi({pathname:i="/",search:l="",hash:o=""}){return l&&l!=="?"&&(i+=l.charAt(0)==="?"?l:"?"+l),o&&o!=="#"&&(i+=o.charAt(0)==="#"?o:"#"+o),i}function nl(i){let l={};if(i){let o=i.indexOf("#");o>=0&&(l.hash=i.substring(o),i=i.substring(0,o));let r=i.indexOf("?");r>=0&&(l.search=i.substring(r),i=i.substring(0,r)),i&&(l.pathname=i)}return l}function Cb(i,l,o,r={}){let{window:u=document.defaultView,v5Compat:d=!1}=r,m=u.history,p="POP",y=null,f=b();f==null&&(f=0,m.replaceState({...m.state,idx:f},""));function b(){return(m.state||{idx:null}).idx}function x(){p="POP";let N=b(),F=N==null?null:N-f;f=N,y&&y({action:p,location:k.location,delta:F})}function T(N,F){p="PUSH";let A=Nc(k.location,N,F);f=b()+1;let z=rh(A,f),q=k.createHref(A);try{m.pushState(z,"",q)}catch(X){if(X instanceof DOMException&&X.name==="DataCloneError")throw X;u.location.assign(q)}d&&y&&y({action:p,location:k.location,delta:1})}function D(N,F){p="REPLACE";let A=Nc(k.location,N,F);f=b();let z=rh(A,f),q=k.createHref(A);m.replaceState(z,"",q),d&&y&&y({action:p,location:k.location,delta:0})}function R(N){return Tb(N)}let k={get action(){return p},get location(){return i(u,m)},listen(N){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(oh,x),y=N,()=>{u.removeEventListener(oh,x),y=null}},createHref(N){return l(u,N)},createURL:R,encodeLocation(N){let F=R(N);return{pathname:F.pathname,search:F.search,hash:F.hash}},push:T,replace:D,go(N){return m.go(N)}};return k}function Tb(i,l=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),Re(o,"No window.location.(origin|href) available to create URL");let r=typeof i=="string"?i:fi(i);return r=r.replace(/ $/,"%20"),!l&&r.startsWith("//")&&(r=o+r),new URL(r,o)}function eg(i,l,o="/"){return Ab(i,l,o,!1)}function Ab(i,l,o,r){let u=typeof l=="string"?nl(l):l,d=un(u.pathname||"/",o);if(d==null)return null;let m=tg(i);Eb(m);let p=null;for(let y=0;p==null&&y<m.length;++y){let f=_b(d);p=Ub(m[y],f,r)}return p}function tg(i,l=[],o=[],r="",u=!1){let d=(m,p,y=u,f)=>{let b={relativePath:f===void 0?m.path||"":f,caseSensitive:m.caseSensitive===!0,childrenIndex:p,route:m};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&y)return;Re(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let x=cn([r,b.relativePath]),T=o.concat(b);m.children&&m.children.length>0&&(Re(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),tg(m.children,l,T,x,y)),!(m.path==null&&!m.index)&&l.push({path:x,score:Ob(x,m.index),routesMeta:T})};return i.forEach((m,p)=>{if(m.path===""||!m.path?.includes("?"))d(m,p);else for(let y of ng(m.path))d(m,p,!0,y)}),l}function ng(i){let l=i.split("/");if(l.length===0)return[];let[o,...r]=l,u=o.endsWith("?"),d=o.replace(/\?$/,"");if(r.length===0)return u?[d,""]:[d];let m=ng(r.join("/")),p=[];return p.push(...m.map(y=>y===""?d:[d,y].join("/"))),u&&p.push(...m),p.map(y=>i.startsWith("/")&&y===""?"/":y)}function Eb(i){i.sort((l,o)=>l.score!==o.score?o.score-l.score:Lb(l.routesMeta.map(r=>r.childrenIndex),o.routesMeta.map(r=>r.childrenIndex)))}var kb=/^:[\w-]+$/,Nb=3,jb=2,Rb=1,Mb=10,Db=-2,ch=i=>i==="*";function Ob(i,l){let o=i.split("/"),r=o.length;return o.some(ch)&&(r+=Db),l&&(r+=jb),o.filter(u=>!ch(u)).reduce((u,d)=>u+(kb.test(d)?Nb:d===""?Rb:Mb),r)}function Lb(i,l){return i.length===l.length&&i.slice(0,-1).every((r,u)=>r===l[u])?i[i.length-1]-l[l.length-1]:0}function Ub(i,l,o=!1){let{routesMeta:r}=i,u={},d="/",m=[];for(let p=0;p<r.length;++p){let y=r[p],f=p===r.length-1,b=d==="/"?l:l.slice(d.length)||"/",x=Gs({path:y.relativePath,caseSensitive:y.caseSensitive,end:f},b),T=y.route;if(!x&&f&&o&&!r[r.length-1].route.index&&(x=Gs({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},b)),!x)return null;Object.assign(u,x.params),m.push({params:u,pathname:cn([d,x.pathname]),pathnameBase:Bb(cn([d,x.pathnameBase])),route:T}),x.pathnameBase!=="/"&&(d=cn([d,x.pathnameBase]))}return m}function Gs(i,l){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[o,r]=zb(i.path,i.caseSensitive,i.end),u=l.match(o);if(!u)return null;let d=u[0],m=d.replace(/(.)\/+$/,"$1"),p=u.slice(1);return{params:r.reduce((f,{paramName:b,isOptional:x},T)=>{if(b==="*"){let R=p[T]||"";m=d.slice(0,d.length-R.length).replace(/(.)\/+$/,"$1")}const D=p[T];return x&&!D?f[b]=void 0:f[b]=(D||"").replace(/%2F/g,"/"),f},{}),pathname:d,pathnameBase:m,pattern:i}}function zb(i,l=!1,o=!0){Nt(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let r=[],u="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,p,y)=>(r.push({paramName:p,isOptional:y!=null}),y?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return i.endsWith("*")?(r.push({paramName:"*"}),u+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?u+="\\/*$":i!==""&&i!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,l?void 0:"i"),r]}function _b(i){try{return i.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Nt(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),i}}function un(i,l){if(l==="/")return i;if(!i.toLowerCase().startsWith(l.toLowerCase()))return null;let o=l.endsWith("/")?l.length-1:l.length,r=i.charAt(o);return r&&r!=="/"?null:i.slice(o)||"/"}function Pb(i,l="/"){let{pathname:o,search:r="",hash:u=""}=typeof i=="string"?nl(i):i;return{pathname:o?o.startsWith("/")?o:Fb(o,l):l,search:Vb(r),hash:qb(u)}}function Fb(i,l){let o=l.replace(/\/+$/,"").split("/");return i.split("/").forEach(u=>{u===".."?o.length>1&&o.pop():u!=="."&&o.push(u)}),o.length>1?o.join("/"):"/"}function bc(i,l,o,r){return`Cannot include a '${i}' character in a manually specified \`to.${l}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Hb(i){return i.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function Gc(i){let l=Hb(i);return l.map((o,r)=>r===l.length-1?o.pathname:o.pathnameBase)}function Yc(i,l,o,r=!1){let u;typeof i=="string"?u=nl(i):(u={...i},Re(!u.pathname||!u.pathname.includes("?"),bc("?","pathname","search",u)),Re(!u.pathname||!u.pathname.includes("#"),bc("#","pathname","hash",u)),Re(!u.search||!u.search.includes("#"),bc("#","search","hash",u)));let d=i===""||u.pathname==="",m=d?"/":u.pathname,p;if(m==null)p=o;else{let x=l.length-1;if(!r&&m.startsWith("..")){let T=m.split("/");for(;T[0]==="..";)T.shift(),x-=1;u.pathname=T.join("/")}p=x>=0?l[x]:"/"}let y=Pb(u,p),f=m&&m!=="/"&&m.endsWith("/"),b=(d||m===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(f||b)&&(y.pathname+="/"),y}var cn=i=>i.join("/").replace(/\/\/+/g,"/"),Bb=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),Vb=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,qb=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function Gb(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var ag=["POST","PUT","PATCH","DELETE"];new Set(ag);var Yb=["GET",...ag];new Set(Yb);var al=S.createContext(null);al.displayName="DataRouter";var Xs=S.createContext(null);Xs.displayName="DataRouterState";S.createContext(!1);var lg=S.createContext({isTransitioning:!1});lg.displayName="ViewTransition";var $b=S.createContext(new Map);$b.displayName="Fetchers";var Kb=S.createContext(null);Kb.displayName="Await";var zt=S.createContext(null);zt.displayName="Navigation";var pi=S.createContext(null);pi.displayName="Location";var jt=S.createContext({outlet:null,matches:[],isDataRoute:!1});jt.displayName="Route";var $c=S.createContext(null);$c.displayName="RouteError";function Qb(i,{relative:l}={}){Re(ll(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:r}=S.useContext(zt),{hash:u,pathname:d,search:m}=vi(i,{relative:l}),p=d;return o!=="/"&&(p=d==="/"?o:cn([o,d])),r.createHref({pathname:p,search:m,hash:u})}function ll(){return S.useContext(pi)!=null}function _t(){return Re(ll(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(pi).location}var ig="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sg(i){S.useContext(zt).static||S.useLayoutEffect(i)}function yi(){let{isDataRoute:i}=S.useContext(jt);return i?c0():Xb()}function Xb(){Re(ll(),"useNavigate() may be used only in the context of a <Router> component.");let i=S.useContext(al),{basename:l,navigator:o}=S.useContext(zt),{matches:r}=S.useContext(jt),{pathname:u}=_t(),d=JSON.stringify(Gc(r)),m=S.useRef(!1);return sg(()=>{m.current=!0}),S.useCallback((y,f={})=>{if(Nt(m.current,ig),!m.current)return;if(typeof y=="number"){o.go(y);return}let b=Yc(y,JSON.parse(d),u,f.relative==="path");i==null&&l!=="/"&&(b.pathname=b.pathname==="/"?l:cn([l,b.pathname])),(f.replace?o.replace:o.push)(b,f.state,f)},[l,o,d,u,i])}var Ib=S.createContext(null);function Zb(i){let l=S.useContext(jt).outlet;return S.useMemo(()=>l&&S.createElement(Ib.Provider,{value:i},l),[l,i])}function rE(){let{matches:i}=S.useContext(jt),l=i[i.length-1];return l?l.params:{}}function vi(i,{relative:l}={}){let{matches:o}=S.useContext(jt),{pathname:r}=_t(),u=JSON.stringify(Gc(o));return S.useMemo(()=>Yc(i,JSON.parse(u),r,l==="path"),[i,u,r,l])}function Jb(i,l){return og(i,l)}function og(i,l,o,r,u){Re(ll(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:d}=S.useContext(zt),{matches:m}=S.useContext(jt),p=m[m.length-1],y=p?p.params:{},f=p?p.pathname:"/",b=p?p.pathnameBase:"/",x=p&&p.route;{let A=x&&x.path||"";rg(f,!x||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
44
|
-
|
|
45
|
-
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let T=_t(),D;if(l){let A=typeof l=="string"?nl(l):l;Re(b==="/"||A.pathname?.startsWith(b),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${b}" but pathname "${A.pathname}" was given in the \`location\` prop.`),D=A}else D=T;let R=D.pathname||"/",k=R;if(b!=="/"){let A=b.replace(/^\//,"").split("/");k="/"+R.replace(/^\//,"").split("/").slice(A.length).join("/")}let N=eg(i,{pathname:k});Nt(x||N!=null,`No routes matched location "${D.pathname}${D.search}${D.hash}" `),Nt(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.length-1].route.lazy!==void 0,`Matched leaf route at location "${D.pathname}${D.search}${D.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let F=a0(N&&N.map(A=>Object.assign({},A,{params:Object.assign({},y,A.params),pathname:cn([b,d.encodeLocation?d.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?b:cn([b,d.encodeLocation?d.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),m,o,r,u);return l&&F?S.createElement(pi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...D},navigationType:"POP"}},F):F}function Wb(){let i=r0(),l=Gb(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),o=i instanceof Error?i.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},m=null;return console.error("Error handled by React Router default ErrorBoundary:",i),m=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:d},"ErrorBoundary")," or"," ",S.createElement("code",{style:d},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},l),o?S.createElement("pre",{style:u},o):null,m)}var e0=S.createElement(Wb,null),t0=class extends S.Component{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,l){return l.location!==i.location||l.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:l.error,location:l.location,revalidation:i.revalidation||l.revalidation}}componentDidCatch(i,l){this.props.unstable_onError?this.props.unstable_onError(i,l):console.error("React Router caught the following error during render",i)}render(){return this.state.error!==void 0?S.createElement(jt.Provider,{value:this.props.routeContext},S.createElement($c.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function n0({routeContext:i,match:l,children:o}){let r=S.useContext(al);return r&&r.static&&r.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=l.route.id),S.createElement(jt.Provider,{value:i},o)}function a0(i,l=[],o=null,r=null,u=null){if(i==null){if(!o)return null;if(o.errors)i=o.matches;else if(l.length===0&&!o.initialized&&o.matches.length>0)i=o.matches;else return null}let d=i,m=o?.errors;if(m!=null){let f=d.findIndex(b=>b.route.id&&m?.[b.route.id]!==void 0);Re(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(m).join(",")}`),d=d.slice(0,Math.min(d.length,f+1))}let p=!1,y=-1;if(o)for(let f=0;f<d.length;f++){let b=d[f];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(y=f),b.route.id){let{loaderData:x,errors:T}=o,D=b.route.loader&&!x.hasOwnProperty(b.route.id)&&(!T||T[b.route.id]===void 0);if(b.route.lazy||D){p=!0,y>=0?d=d.slice(0,y+1):d=[d[0]];break}}}return d.reduceRight((f,b,x)=>{let T,D=!1,R=null,k=null;o&&(T=m&&b.route.id?m[b.route.id]:void 0,R=b.route.errorElement||e0,p&&(y<0&&x===0?(rg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),D=!0,k=null):y===x&&(D=!0,k=b.route.hydrateFallbackElement||null)));let N=l.concat(d.slice(0,x+1)),F=()=>{let A;return T?A=R:D?A=k:b.route.Component?A=S.createElement(b.route.Component,null):b.route.element?A=b.route.element:A=f,S.createElement(n0,{match:b,routeContext:{outlet:f,matches:N,isDataRoute:o!=null},children:A})};return o&&(b.route.ErrorBoundary||b.route.errorElement||x===0)?S.createElement(t0,{location:o.location,revalidation:o.revalidation,component:R,error:T,children:F(),routeContext:{outlet:null,matches:N,isDataRoute:!0},unstable_onError:r}):F()},null)}function Kc(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function l0(i){let l=S.useContext(al);return Re(l,Kc(i)),l}function i0(i){let l=S.useContext(Xs);return Re(l,Kc(i)),l}function s0(i){let l=S.useContext(jt);return Re(l,Kc(i)),l}function Qc(i){let l=s0(i),o=l.matches[l.matches.length-1];return Re(o.route.id,`${i} can only be used on routes that contain a unique "id"`),o.route.id}function o0(){return Qc("useRouteId")}function r0(){let i=S.useContext($c),l=i0("useRouteError"),o=Qc("useRouteError");return i!==void 0?i:l.errors?.[o]}function c0(){let{router:i}=l0("useNavigate"),l=Qc("useNavigate"),o=S.useRef(!1);return sg(()=>{o.current=!0}),S.useCallback(async(u,d={})=>{Nt(o.current,ig),o.current&&(typeof u=="number"?i.navigate(u):await i.navigate(u,{fromRouteId:l,...d}))},[i,l])}var uh={};function rg(i,l,o){!l&&!uh[i]&&(uh[i]=!0,Nt(!1,o))}S.memo(u0);function u0({routes:i,future:l,state:o,unstable_onError:r}){return og(i,void 0,o,r,l)}function d0({to:i,replace:l,state:o,relative:r}){Re(ll(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=S.useContext(zt);Nt(!u,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=S.useContext(jt),{pathname:m}=_t(),p=yi(),y=Yc(i,Gc(d),m,r==="path"),f=JSON.stringify(y);return S.useEffect(()=>{p(JSON.parse(f),{replace:l,state:o,relative:r})},[p,f,r,l,o]),null}function cE(i){return Zb(i.context)}function Ie(i){Re(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function f0({basename:i="/",children:l=null,location:o,navigationType:r="POP",navigator:u,static:d=!1}){Re(!ll(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=i.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:m,navigator:u,static:d,future:{}}),[m,u,d]);typeof o=="string"&&(o=nl(o));let{pathname:y="/",search:f="",hash:b="",state:x=null,key:T="default"}=o,D=S.useMemo(()=>{let R=un(y,m);return R==null?null:{location:{pathname:R,search:f,hash:b,state:x,key:T},navigationType:r}},[m,y,f,b,x,T,r]);return Nt(D!=null,`<Router basename="${m}"> is not able to match the URL "${y}${f}${b}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:S.createElement(zt.Provider,{value:p},S.createElement(pi.Provider,{children:l,value:D}))}function m0({children:i,location:l}){return Jb(jc(i),l)}function jc(i,l=[]){let o=[];return S.Children.forEach(i,(r,u)=>{if(!S.isValidElement(r))return;let d=[...l,u];if(r.type===S.Fragment){o.push.apply(o,jc(r.props.children,d));return}Re(r.type===Ie,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Re(!r.props.index||!r.props.children,"An index route cannot have child routes.");let m={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(m.children=jc(r.props.children,d)),o.push(m)}),o}var Hs="get",Bs="application/x-www-form-urlencoded";function Is(i){return i!=null&&typeof i.tagName=="string"}function h0(i){return Is(i)&&i.tagName.toLowerCase()==="button"}function g0(i){return Is(i)&&i.tagName.toLowerCase()==="form"}function p0(i){return Is(i)&&i.tagName.toLowerCase()==="input"}function y0(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function v0(i,l){return i.button===0&&(!l||l==="_self")&&!y0(i)}function Rc(i=""){return new URLSearchParams(typeof i=="string"||Array.isArray(i)||i instanceof URLSearchParams?i:Object.keys(i).reduce((l,o)=>{let r=i[o];return l.concat(Array.isArray(r)?r.map(u=>[o,u]):[[o,r]])},[]))}function b0(i,l){let o=Rc(i);return l&&l.forEach((r,u)=>{o.has(u)||l.getAll(u).forEach(d=>{o.append(u,d)})}),o}var Ls=null;function S0(){if(Ls===null)try{new FormData(document.createElement("form"),0),Ls=!1}catch{Ls=!0}return Ls}var x0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Sc(i){return i!=null&&!x0.has(i)?(Nt(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bs}"`),null):i}function w0(i,l){let o,r,u,d,m;if(g0(i)){let p=i.getAttribute("action");r=p?un(p,l):null,o=i.getAttribute("method")||Hs,u=Sc(i.getAttribute("enctype"))||Bs,d=new FormData(i)}else if(h0(i)||p0(i)&&(i.type==="submit"||i.type==="image")){let p=i.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=i.getAttribute("formaction")||p.getAttribute("action");if(r=y?un(y,l):null,o=i.getAttribute("formmethod")||p.getAttribute("method")||Hs,u=Sc(i.getAttribute("formenctype"))||Sc(p.getAttribute("enctype"))||Bs,d=new FormData(p,i),!S0()){let{name:f,type:b,value:x}=i;if(b==="image"){let T=f?`${f}.`:"";d.append(`${T}x`,"0"),d.append(`${T}y`,"0")}else f&&d.append(f,x)}}else{if(Is(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Hs,r=null,u=Bs,m=i}return d&&u==="text/plain"&&(m=d,d=void 0),{action:r,method:o.toLowerCase(),encType:u,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Xc(i,l){if(i===!1||i===null||typeof i>"u")throw new Error(l)}function C0(i,l,o){let r=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return r.pathname==="/"?r.pathname=`_root.${o}`:l&&un(r.pathname,l)==="/"?r.pathname=`${l.replace(/\/$/,"")}/_root.${o}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${o}`,r}async function T0(i,l){if(i.id in l)return l[i.id];try{let o=await import(i.module);return l[i.id]=o,o}catch(o){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function A0(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function E0(i,l,o){let r=await Promise.all(i.map(async u=>{let d=l.routes[u.route.id];if(d){let m=await T0(d,o);return m.links?m.links():[]}return[]}));return R0(r.flat(1).filter(A0).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function dh(i,l,o,r,u,d){let m=(y,f)=>o[f]?y.route.id!==o[f].route.id:!0,p=(y,f)=>o[f].pathname!==y.pathname||o[f].route.path?.endsWith("*")&&o[f].params["*"]!==y.params["*"];return d==="assets"?l.filter((y,f)=>m(y,f)||p(y,f)):d==="data"?l.filter((y,f)=>{let b=r.routes[y.route.id];if(!b||!b.hasLoader)return!1;if(m(y,f)||p(y,f))return!0;if(y.route.shouldRevalidate){let x=y.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:o[0]?.params||{},nextUrl:new URL(i,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function k0(i,l,{includeHydrateFallback:o}={}){return N0(i.map(r=>{let u=l.routes[r.route.id];if(!u)return[];let d=[u.module];return u.clientActionModule&&(d=d.concat(u.clientActionModule)),u.clientLoaderModule&&(d=d.concat(u.clientLoaderModule)),o&&u.hydrateFallbackModule&&(d=d.concat(u.hydrateFallbackModule)),u.imports&&(d=d.concat(u.imports)),d}).flat(1))}function N0(i){return[...new Set(i)]}function j0(i){let l={},o=Object.keys(i).sort();for(let r of o)l[r]=i[r];return l}function R0(i,l){let o=new Set;return new Set(l),i.reduce((r,u)=>{let d=JSON.stringify(j0(u));return o.has(d)||(o.add(d),r.push({key:d,link:u})),r},[])}function cg(){let i=S.useContext(al);return Xc(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function M0(){let i=S.useContext(Xs);return Xc(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var Ic=S.createContext(void 0);Ic.displayName="FrameworkContext";function ug(){let i=S.useContext(Ic);return Xc(i,"You must render this element inside a <HydratedRouter> element"),i}function D0(i,l){let o=S.useContext(Ic),[r,u]=S.useState(!1),[d,m]=S.useState(!1),{onFocus:p,onBlur:y,onMouseEnter:f,onMouseLeave:b,onTouchStart:x}=l,T=S.useRef(null);S.useEffect(()=>{if(i==="render"&&m(!0),i==="viewport"){let k=F=>{F.forEach(A=>{m(A.isIntersecting)})},N=new IntersectionObserver(k,{threshold:.5});return T.current&&N.observe(T.current),()=>{N.disconnect()}}},[i]),S.useEffect(()=>{if(r){let k=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(k)}}},[r]);let D=()=>{u(!0)},R=()=>{u(!1),m(!1)};return o?i!=="intent"?[d,T,{}]:[d,T,{onFocus:oi(p,D),onBlur:oi(y,R),onMouseEnter:oi(f,D),onMouseLeave:oi(b,R),onTouchStart:oi(x,D)}]:[!1,T,{}]}function oi(i,l){return o=>{i&&i(o),o.defaultPrevented||l(o)}}function O0({page:i,...l}){let{router:o}=cg(),r=S.useMemo(()=>eg(o.routes,i,o.basename),[o.routes,i,o.basename]);return r?S.createElement(U0,{page:i,matches:r,...l}):null}function L0(i){let{manifest:l,routeModules:o}=ug(),[r,u]=S.useState([]);return S.useEffect(()=>{let d=!1;return E0(i,l,o).then(m=>{d||u(m)}),()=>{d=!0}},[i,l,o]),r}function U0({page:i,matches:l,...o}){let r=_t(),{manifest:u,routeModules:d}=ug(),{basename:m}=cg(),{loaderData:p,matches:y}=M0(),f=S.useMemo(()=>dh(i,l,y,u,r,"data"),[i,l,y,u,r]),b=S.useMemo(()=>dh(i,l,y,u,r,"assets"),[i,l,y,u,r]),x=S.useMemo(()=>{if(i===r.pathname+r.search+r.hash)return[];let R=new Set,k=!1;if(l.forEach(F=>{let A=u.routes[F.route.id];!A||!A.hasLoader||(!f.some(z=>z.route.id===F.route.id)&&F.route.id in p&&d[F.route.id]?.shouldRevalidate||A.hasClientLoader?k=!0:R.add(F.route.id))}),R.size===0)return[];let N=C0(i,m,"data");return k&&R.size>0&&N.searchParams.set("_routes",l.filter(F=>R.has(F.route.id)).map(F=>F.route.id).join(",")),[N.pathname+N.search]},[m,p,r,u,f,l,i,d]),T=S.useMemo(()=>k0(b,u),[b,u]),D=L0(b);return S.createElement(S.Fragment,null,x.map(R=>S.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...o})),T.map(R=>S.createElement("link",{key:R,rel:"modulepreload",href:R,...o})),D.map(({key:R,link:k})=>S.createElement("link",{key:R,nonce:o.nonce,...k})))}function z0(...i){return l=>{i.forEach(o=>{typeof o=="function"?o(l):o!=null&&(o.current=l)})}}var dg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dg&&(window.__reactRouterVersion="7.9.3")}catch{}function _0({basename:i,children:l,window:o}){let r=S.useRef();r.current==null&&(r.current=xb({window:o,v5Compat:!0}));let u=r.current,[d,m]=S.useState({action:u.action,location:u.location}),p=S.useCallback(y=>{S.startTransition(()=>m(y))},[m]);return S.useLayoutEffect(()=>u.listen(p),[u,p]),S.createElement(f0,{basename:i,children:l,location:d.location,navigationType:d.action,navigator:u})}var fg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mg=S.forwardRef(function({onClick:l,discover:o="render",prefetch:r="none",relative:u,reloadDocument:d,replace:m,state:p,target:y,to:f,preventScrollReset:b,viewTransition:x,...T},D){let{basename:R}=S.useContext(zt),k=typeof f=="string"&&fg.test(f),N,F=!1;if(typeof f=="string"&&k&&(N=f,dg))try{let Z=new URL(window.location.href),se=f.startsWith("//")?new URL(Z.protocol+f):new URL(f),Ne=un(se.pathname,R);se.origin===Z.origin&&Ne!=null?f=Ne+se.search+se.hash:F=!0}catch{Nt(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=Qb(f,{relative:u}),[z,q,X]=D0(r,T),Y=H0(f,{replace:m,state:p,target:y,preventScrollReset:b,relative:u,viewTransition:x});function I(Z){l&&l(Z),Z.defaultPrevented||Y(Z)}let G=S.createElement("a",{...T,...X,href:N||A,onClick:F||d?l:I,ref:z0(D,q),target:y,"data-discover":!k&&o==="render"?"true":void 0});return z&&!k?S.createElement(S.Fragment,null,G,S.createElement(O0,{page:A})):G});mg.displayName="Link";var Mc=S.forwardRef(function({"aria-current":l="page",caseSensitive:o=!1,className:r="",end:u=!1,style:d,to:m,viewTransition:p,children:y,...f},b){let x=vi(m,{relative:f.relative}),T=_t(),D=S.useContext(Xs),{navigator:R,basename:k}=S.useContext(zt),N=D!=null&&Y0(x)&&p===!0,F=R.encodeLocation?R.encodeLocation(x).pathname:x.pathname,A=T.pathname,z=D&&D.navigation&&D.navigation.location?D.navigation.location.pathname:null;o||(A=A.toLowerCase(),z=z?z.toLowerCase():null,F=F.toLowerCase()),z&&k&&(z=un(z,k)||z);const q=F!=="/"&&F.endsWith("/")?F.length-1:F.length;let X=A===F||!u&&A.startsWith(F)&&A.charAt(q)==="/",Y=z!=null&&(z===F||!u&&z.startsWith(F)&&z.charAt(F.length)==="/"),I={isActive:X,isPending:Y,isTransitioning:N},G=X?l:void 0,Z;typeof r=="function"?Z=r(I):Z=[r,X?"active":null,Y?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let se=typeof d=="function"?d(I):d;return S.createElement(mg,{...f,"aria-current":G,className:Z,ref:b,style:se,to:m,viewTransition:p},typeof y=="function"?y(I):y)});Mc.displayName="NavLink";var P0=S.forwardRef(({discover:i="render",fetcherKey:l,navigate:o,reloadDocument:r,replace:u,state:d,method:m=Hs,action:p,onSubmit:y,relative:f,preventScrollReset:b,viewTransition:x,...T},D)=>{let R=q0(),k=G0(p,{relative:f}),N=m.toLowerCase()==="get"?"get":"post",F=typeof p=="string"&&fg.test(p),A=z=>{if(y&&y(z),z.defaultPrevented)return;z.preventDefault();let q=z.nativeEvent.submitter,X=q?.getAttribute("formmethod")||m;R(q||z.currentTarget,{fetcherKey:l,method:X,navigate:o,replace:u,state:d,relative:f,preventScrollReset:b,viewTransition:x})};return S.createElement("form",{ref:D,method:N,action:k,onSubmit:r?y:A,...T,"data-discover":!F&&i==="render"?"true":void 0})});P0.displayName="Form";function F0(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hg(i){let l=S.useContext(al);return Re(l,F0(i)),l}function H0(i,{target:l,replace:o,state:r,preventScrollReset:u,relative:d,viewTransition:m}={}){let p=yi(),y=_t(),f=vi(i,{relative:d});return S.useCallback(b=>{if(v0(b,l)){b.preventDefault();let x=o!==void 0?o:fi(y)===fi(f);p(i,{replace:x,state:r,preventScrollReset:u,relative:d,viewTransition:m})}},[y,p,f,o,r,l,i,u,d,m])}function uE(i){Nt(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let l=S.useRef(Rc(i)),o=S.useRef(!1),r=_t(),u=S.useMemo(()=>b0(r.search,o.current?null:l.current),[r.search]),d=yi(),m=S.useCallback((p,y)=>{const f=Rc(typeof p=="function"?p(new URLSearchParams(u)):p);o.current=!0,d("?"+f,y)},[d,u]);return[u,m]}var B0=0,V0=()=>`__${String(++B0)}__`;function q0(){let{router:i}=hg("useSubmit"),{basename:l}=S.useContext(zt),o=o0();return S.useCallback(async(r,u={})=>{let{action:d,method:m,encType:p,formData:y,body:f}=w0(r,l);if(u.navigate===!1){let b=u.fetcherKey||V0();await i.fetch(b,o,u.action||d,{preventScrollReset:u.preventScrollReset,formData:y,body:f,formMethod:u.method||m,formEncType:u.encType||p,flushSync:u.flushSync})}else await i.navigate(u.action||d,{preventScrollReset:u.preventScrollReset,formData:y,body:f,formMethod:u.method||m,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:o,flushSync:u.flushSync,viewTransition:u.viewTransition})},[i,l,o])}function G0(i,{relative:l}={}){let{basename:o}=S.useContext(zt),r=S.useContext(jt);Re(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),d={...vi(i||".",{relative:l})},m=_t();if(i==null){d.search=m.search;let p=new URLSearchParams(d.search),y=p.getAll("index");if(y.some(b=>b==="")){p.delete("index"),y.filter(x=>x).forEach(x=>p.append("index",x));let b=p.toString();d.search=b?`?${b}`:""}}return(!i||i===".")&&u.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:cn([o,d.pathname])),fi(d)}function Y0(i,{relative:l}={}){let o=S.useContext(lg);Re(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=hg("useViewTransitionState"),u=vi(i,{relative:l});if(!o.isTransitioning)return!1;let d=un(o.currentLocation.pathname,r)||o.currentLocation.pathname,m=un(o.nextLocation.pathname,r)||o.nextLocation.pathname;return Gs(u.pathname,m)!=null||Gs(u.pathname,d)!=null}var Zc=Wh();const $0=zv(Zc),K0=3,Q0=5e3;let xc=0;function X0(){return xc=(xc+1)%Number.MAX_SAFE_INTEGER,xc.toString()}const wc=new Map,fh=i=>{if(wc.has(i))return;const l=setTimeout(()=>{wc.delete(i),ui({type:"REMOVE_TOAST",toastId:i})},Q0);wc.set(i,l)},I0=(i,l)=>{switch(l.type){case"ADD_TOAST":return{...i,toasts:[l.toast,...i.toasts].slice(0,K0)};case"UPDATE_TOAST":return{...i,toasts:i.toasts.map(o=>o.id===l.toast.id?{...o,...l.toast}:o)};case"DISMISS_TOAST":{const{toastId:o}=l;return o?fh(o):i.toasts.forEach(r=>{fh(r.id)}),{...i,toasts:i.toasts.map(r=>r.id===o||o===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return l.toastId===void 0?{...i,toasts:[]}:{...i,toasts:i.toasts.filter(o=>o.id!==l.toastId)}}},Vs=[];let qs={toasts:[]};function ui(i){qs=I0(qs,i),Vs.forEach(l=>{l(qs)})}function Zs({...i}){const l=X0(),o=u=>ui({type:"UPDATE_TOAST",toast:{...u,id:l}}),r=()=>ui({type:"DISMISS_TOAST",toastId:l});return ui({type:"ADD_TOAST",toast:{...i,id:l,open:!0,onOpenChange:u=>{u||r()}}}),{id:l,dismiss:r,update:o}}function Z0(){const[i,l]=S.useState(qs);return S.useEffect(()=>(Vs.push(l),()=>{const o=Vs.indexOf(l);o>-1&&Vs.splice(o,1)}),[i]),{...i,toast:Zs,dismiss:o=>ui({type:"DISMISS_TOAST",toastId:o})}}function J0(i,l){Zs({title:i,description:l,variant:"default"})}function dE(i,l){Zs({title:i,description:l,variant:"destructive"})}function fE(i,l){Zs({title:i,description:l,variant:"default"})}const W0=({isOpen:i,onClose:l})=>{const{t:o}=dn("components"),[r,u]=S.useState(""),[d,m]=S.useState(!1),[p,y]=S.useState("unknown"),[f,b]=S.useState("");S.useEffect(()=>{if(i){const A=$h();u(!A||A===""?"http://127.0.0.1:4936":A),y("unknown"),b("")}},[i]);const x=async A=>{m(!0),y("unknown"),b("");try{const z=`${A}/api/health`,q=await fetch(z,{method:"GET",headers:{"Content-Type":"application/json"},signal:AbortSignal.timeout(5e3)});q.ok?y("success"):(y("error"),b(o("apiSettingsModal.errors.serverError",{status:q.status,statusText:q.statusText})))}catch(z){y("error"),z instanceof Error?b(o("apiSettingsModal.errors.connectionFailed",{message:z.message})):b(o("apiSettingsModal.errors.connectionFailedUnknown"))}finally{m(!1)}},T=async()=>{if(!r.trim()){b(o("apiSettingsModal.errors.enterAddress"));return}await x(r.trim()),p==="success"&&(Pv(r.trim()),J0(o("apiSettingsModal.saveSuccess")),window.location.reload())},D=()=>{u("http://127.0.0.1:4936"),y("unknown"),b("")},R=()=>{r.trim()&&x(r.trim())},k=A=>{u(A),y("unknown"),b("")},N=()=>{switch(p){case"success":return h.jsx(ra,{className:"w-4 h-4 text-green-500"});case"error":return h.jsx(Qh,{className:"w-4 h-4 text-red-500"});default:return h.jsx(Kh,{className:"w-4 h-4 text-gray-500"})}},F=()=>{switch(p){case"success":return o("apiSettingsModal.status.success");case"error":return o("apiSettingsModal.status.error");default:return o("apiSettingsModal.status.untested")}};return i?h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:h.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-xl max-w-md w-full mx-4 max-h-[90vh] overflow-y-auto",children:[h.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-gray-200 dark:border-gray-700",children:[h.jsxs("div",{className:"flex items-center space-x-3",children:[h.jsx(ca,{className:"w-6 h-6 text-blue-500"}),h.jsx("h3",{className:"text-lg font-medium text-gray-900 dark:text-white",children:o("apiSettingsModal.title")})]}),h.jsx("button",{onClick:l,className:"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",children:h.jsx(Qs,{className:"w-5 h-5"})})]}),h.jsxs("div",{className:"p-6 space-y-4",children:[h.jsxs("div",{children:[h.jsx("label",{htmlFor:"api-host",className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:o("apiSettingsModal.fields.address")}),h.jsxs("div",{className:"flex space-x-2",children:[h.jsx("input",{id:"api-host",type:"url",value:r,onChange:A=>u(A.target.value),placeholder:o("apiSettingsModal.fields.addressPlaceholder"),className:`flex-1 px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm
|
|
46
|
-
focus:outline-none focus:ring-blue-500 focus:border-blue-500
|
|
47
|
-
dark:bg-gray-700 dark:text-white text-sm`}),h.jsxs("button",{onClick:R,disabled:d||!r.trim(),className:`px-3 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-md
|
|
48
|
-
disabled:opacity-50 disabled:cursor-not-allowed flex items-center space-x-1 text-sm`,children:[d?h.jsx("div",{className:"w-3 h-3 border-2 border-white border-t-transparent rounded-full animate-spin"}):h.jsx(ca,{className:"w-3 h-3"}),h.jsx("span",{children:o("apiSettingsModal.actions.test")})]})]}),h.jsxs("div",{className:"mt-3",children:[h.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400 mb-2",children:o("apiSettingsModal.quickSelect.title")}),h.jsxs("div",{className:"flex flex-wrap gap-2",children:[h.jsx("button",{onClick:()=>k("http://127.0.0.1:4936"),className:`px-2 py-1 text-xs bg-gray-100 hover:bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-600
|
|
49
|
-
text-gray-700 dark:text-gray-300 rounded border border-gray-300 dark:border-gray-600
|
|
50
|
-
transition-colors duration-200`,children:o("apiSettingsModal.quickSelect.localDev")}),h.jsx("button",{onClick:()=>k("https://srv.agentstudio.cc"),className:`px-2 py-1 text-xs bg-gray-100 hover:bg-gray-200 dark:bg-gray-700 dark:hover:bg-gray-600
|
|
51
|
-
text-gray-700 dark:text-gray-300 rounded border border-gray-300 dark:border-gray-600
|
|
52
|
-
transition-colors duration-200`,children:o("apiSettingsModal.quickSelect.officialServer")})]})]})]}),h.jsxs("div",{className:"flex items-center space-x-2",children:[N(),h.jsxs("span",{className:`text-sm ${p==="success"?"text-green-600 dark:text-green-400":p==="error"?"text-red-600 dark:text-red-400":"text-gray-600 dark:text-gray-400"}`,children:[o("apiSettingsModal.status.label"),": ",F()]})]}),f&&h.jsx("div",{className:"p-3 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-md",children:h.jsx("p",{className:"text-sm text-red-600 dark:text-red-400",children:f})}),h.jsxs("div",{className:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-md p-3",children:[h.jsx("h4",{className:"text-sm font-medium text-blue-800 dark:text-blue-300 mb-2",children:o("apiSettingsModal.instructions.title")}),h.jsxs("ul",{className:"text-xs text-blue-700 dark:text-blue-400 space-y-1",children:[h.jsxs("li",{children:["• ",o("apiSettingsModal.instructions.localDev")," ",h.jsx("code",{className:"bg-blue-100 dark:bg-blue-800 px-1 rounded",children:"http://localhost:4936"})]}),h.jsxs("li",{children:["• ",o("apiSettingsModal.instructions.production")]}),h.jsxs("li",{children:["• ",o("apiSettingsModal.instructions.cors")]}),h.jsxs("li",{children:["• ",o("apiSettingsModal.instructions.refresh")]})]})]})]}),h.jsxs("div",{className:"flex justify-between items-center p-6 border-t border-gray-200 dark:border-gray-700",children:[h.jsxs("button",{onClick:D,className:"flex items-center space-x-2 px-3 py-2 bg-gray-600 hover:bg-gray-700 text-white rounded-md text-sm",children:[h.jsx(Qv,{className:"w-4 h-4"}),h.jsx("span",{children:o("apiSettingsModal.actions.reset")})]}),h.jsxs("div",{className:"flex space-x-2",children:[h.jsx("button",{onClick:l,className:"px-4 py-2 bg-gray-300 hover:bg-gray-400 text-gray-700 rounded-md text-sm",children:o("apiSettingsModal.actions.cancel")}),h.jsxs("button",{onClick:T,disabled:d||p==="error",className:`flex items-center space-x-2 px-4 py-2 bg-green-600 hover:bg-green-700 text-white rounded-md
|
|
53
|
-
disabled:opacity-50 disabled:cursor-not-allowed text-sm`,children:[h.jsx(Xv,{className:"w-4 h-4"}),h.jsx("span",{children:o("apiSettingsModal.actions.save")})]})]})]})]})}):null},Js=()=>{const[i,l]=S.useState(Fv());S.useEffect(()=>{Hv(i)},[i]);const o=S.useMemo(()=>Bv(i),[i.currentServiceId,i.services]),r=p=>{const y={...p,id:Date.now().toString()};return l(f=>({...f,services:[...f.services,y]})),y},u=(p,y)=>{l(f=>Gv(f,p,y))},d=p=>{l(y=>qv(y,p))},m=p=>{l(y=>Vv(y,p))};return{services:i.services,currentService:o,currentServiceId:i.currentServiceId,addService:r,updateService:u,removeService:d,switchService:m}},eS=({className:i=""})=>{const{t:l}=dn("components"),{services:o,currentService:r,switchService:u,addService:d,updateService:m,removeService:p}=Js(),[y,f]=S.useState(!1),[b,x]=S.useState(!1),[T,D]=S.useState(null),[R,k]=S.useState({name:"",url:""}),[N,F]=S.useState(!1),[A,z]=S.useState(null),[q,X]=S.useState(!1),Y=S.useRef(null);S.useEffect(()=>{const P=_=>{Y.current&&!Y.current.contains(_.target)&&(f(!1),x(!1),D(null))};return document.addEventListener("mousedown",P),()=>document.removeEventListener("mousedown",P)},[]);const I=async P=>{X(!0);try{const _=`${P}/api/health`;return(await fetch(_,{method:"GET",headers:{"Content-Type":"application/json"},signal:AbortSignal.timeout(5e3)})).ok}catch{return!1}finally{X(!1)}},G=async P=>{await I(P.url)?(u(P.id),f(!1),window.location.reload()):(z(P),F(!0))},Z=()=>{A&&(u(A.id),F(!1),z(null),f(!1),window.location.reload())},se=()=>{F(!1),z(null)},Ne=()=>{R.name.trim()&&R.url.trim()&&(d({name:R.name.trim(),url:R.url.trim()}),k({name:"",url:""}),x(!1))},Ee=P=>{o.find(ie=>ie.id===P)&&R.name.trim()&&R.url.trim()&&(m(P,{name:R.name.trim(),url:R.url.trim()}),k({name:"",url:""}),D(null))},Me=(P,_)=>{_.stopPropagation(),p(P)},J=(P,_)=>{_.stopPropagation(),D(P.id),k({name:P.name,url:P.url})},ve=()=>{D(null),k({name:"",url:""})},U=()=>{x(!1),k({name:"",url:""})};return h.jsxs("div",{className:`relative ${i}`,ref:Y,children:[h.jsxs("button",{onClick:()=>f(!y),className:`flex items-center space-x-2 px-3 py-2 text-sm text-gray-600 dark:text-gray-300
|
|
54
|
-
hover:bg-gray-50 dark:hover:bg-gray-700 rounded-md transition-colors
|
|
55
|
-
border border-gray-200 dark:border-gray-600`,children:[h.jsx(ca,{className:"w-4 h-4"}),h.jsx("span",{className:"font-medium truncate max-w-32",children:r?.name||l("backendServiceSwitcher.noService")}),h.jsx(Xh,{className:`w-4 h-4 transition-transform ${y?"rotate-180":""}`})]}),y&&h.jsxs("div",{className:`absolute bottom-full left-0 mb-2 w-80 bg-white dark:bg-gray-800
|
|
56
|
-
rounded-lg shadow-lg border border-gray-200 dark:border-gray-700 z-50`,children:[h.jsx("div",{className:"p-3 border-b border-gray-200 dark:border-gray-700",children:h.jsx("h3",{className:"text-sm font-medium text-gray-900 dark:text-white",children:l("backendServiceSwitcher.title")})}),h.jsxs("div",{className:"max-h-64 overflow-y-auto",children:[o.map(P=>h.jsx("div",{className:`flex items-center justify-between p-3 hover:bg-gray-50 dark:hover:bg-gray-700
|
|
57
|
-
cursor-pointer transition-colors ${P.id===r?.id?"bg-blue-50 dark:bg-blue-900/30":""}`,onClick:()=>G(P),children:T===P.id?h.jsxs("div",{className:"flex-1 space-y-2",onClick:_=>_.stopPropagation(),children:[h.jsx("input",{type:"text",value:R.name,onChange:_=>k(ie=>({...ie,name:_.target.value})),placeholder:l("backendServiceSwitcher.namePlaceholder"),className:`w-full px-2 py-1 text-sm border border-gray-300 dark:border-gray-600
|
|
58
|
-
rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-white`,autoFocus:!0}),h.jsx("input",{type:"url",value:R.url,onChange:_=>k(ie=>({...ie,url:_.target.value})),placeholder:l("backendServiceSwitcher.urlPlaceholder"),className:`w-full px-2 py-1 text-sm border border-gray-300 dark:border-gray-600
|
|
59
|
-
rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-white`}),h.jsxs("div",{className:"flex space-x-2",children:[h.jsx("button",{onClick:()=>Ee(P.id),className:"px-2 py-1 text-xs bg-blue-600 text-white rounded hover:bg-blue-700",children:l("backendServiceSwitcher.save")}),h.jsx("button",{onClick:ve,className:"px-2 py-1 text-xs bg-gray-500 text-white rounded hover:bg-gray-600",children:l("backendServiceSwitcher.cancel")})]})]}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"flex items-center space-x-3 flex-1",children:[P.id===r?.id&&h.jsx(Iv,{className:"w-4 h-4 text-blue-500"}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("div",{className:"text-sm font-medium text-gray-900 dark:text-white truncate",children:P.name}),h.jsx("div",{className:"text-xs text-gray-500 dark:text-gray-400 truncate",children:P.url})]})]}),!P.isDefault&&h.jsxs("div",{className:"flex space-x-1",children:[h.jsx("button",{onClick:_=>J(P,_),className:"p-1 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300",title:l("backendServiceSwitcher.edit"),children:h.jsx(qc,{className:"w-3 h-3"})}),h.jsx("button",{onClick:_=>Me(P.id,_),className:"p-1 text-gray-400 hover:text-red-600 dark:hover:text-red-400",title:l("backendServiceSwitcher.delete"),children:h.jsx(Zv,{className:"w-3 h-3"})})]})]})},P.id)),b?h.jsx("div",{className:"p-3 border-t border-gray-200 dark:border-gray-700",children:h.jsxs("div",{className:"space-y-2",children:[h.jsx("input",{type:"text",value:R.name,onChange:P=>k(_=>({..._,name:P.target.value})),placeholder:l("backendServiceSwitcher.namePlaceholder"),className:`w-full px-2 py-1 text-sm border border-gray-300 dark:border-gray-600
|
|
60
|
-
rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-white`,autoFocus:!0}),h.jsx("input",{type:"url",value:R.url,onChange:P=>k(_=>({..._,url:P.target.value})),placeholder:l("backendServiceSwitcher.urlPlaceholder"),className:`w-full px-2 py-1 text-sm border border-gray-300 dark:border-gray-600
|
|
61
|
-
rounded bg-white dark:bg-gray-700 text-gray-900 dark:text-white`}),h.jsxs("div",{className:"flex space-x-2",children:[h.jsx("button",{onClick:Ne,className:"px-2 py-1 text-xs bg-blue-600 text-white rounded hover:bg-blue-700",children:l("backendServiceSwitcher.add")}),h.jsx("button",{onClick:U,className:"px-2 py-1 text-xs bg-gray-500 text-white rounded hover:bg-gray-600",children:l("backendServiceSwitcher.cancel")})]})]})}):h.jsxs("button",{onClick:()=>x(!0),className:`w-full flex items-center space-x-2 p-3 text-sm text-gray-600 dark:text-gray-300
|
|
62
|
-
hover:bg-gray-50 dark:hover:bg-gray-700 border-t border-gray-200 dark:border-gray-700`,children:[h.jsx(Ih,{className:"w-4 h-4"}),h.jsx("span",{children:l("backendServiceSwitcher.addNew")})]})]})]}),N&&A&&h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-[100]",children:h.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-xl p-6 max-w-md mx-4",children:[h.jsxs("div",{className:"flex items-start space-x-3 mb-4",children:[h.jsx(Zh,{className:"w-6 h-6 text-yellow-500 flex-shrink-0 mt-0.5"}),h.jsxs("div",{children:[h.jsx("h3",{className:"text-lg font-medium text-gray-900 dark:text-white mb-2",children:l("backendServiceSwitcher.connectionWarning.title")}),h.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300 mb-3",children:l("backendServiceSwitcher.connectionWarning.message",{name:A.name,url:A.url})}),h.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:l("backendServiceSwitcher.connectionWarning.consequence")})]})]}),h.jsxs("div",{className:"flex justify-end space-x-3 mt-6",children:[h.jsx("button",{onClick:se,className:"px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 rounded-md",children:l("backendServiceSwitcher.connectionWarning.cancel")}),h.jsx("button",{onClick:Z,className:"px-4 py-2 text-sm font-medium text-white bg-yellow-600 hover:bg-yellow-700 rounded-md",children:l("backendServiceSwitcher.connectionWarning.continue")})]})]})}),q&&h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-30 flex items-center justify-center z-[99]",children:h.jsx("div",{className:"bg-white dark:bg-gray-800 rounded-lg shadow-xl p-6",children:h.jsxs("div",{className:"flex items-center space-x-3",children:[h.jsx("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),h.jsx("p",{className:"text-sm text-gray-700 dark:text-gray-300",children:l("backendServiceSwitcher.testingConnection")})]})})})]})},tS=()=>{const[i,l]=S.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,"2xl":!1,"3xl":!1});return S.useEffect(()=>{const o=()=>{const r=window.innerWidth;l({xs:r>=475,sm:r>=640,md:r>=768,lg:r>=1024,xl:r>=1280,"2xl":r>=1536,"3xl":r>=1600})};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]),i},nS=()=>{const[i,l]=S.useState({width:typeof window<"u"?window.innerWidth:1024,height:typeof window<"u"?window.innerHeight:768});return S.useEffect(()=>{const o=()=>{l({width:window.innerWidth,height:window.innerHeight})};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]),i},aS=()=>{const[i,l]=S.useState("portrait");return S.useEffect(()=>{const o=()=>{l(window.innerHeight>window.innerWidth?"portrait":"landscape")};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[]),i},gg=S.createContext(void 0),lS=({children:i})=>{const l=tS(),o=nS(),r=aS(),u=!l.md,d=l.md&&!l.lg,m=l.lg,[p,y]=S.useState(!1),[f,b]=S.useState(!1),[x,T]=S.useState(null);S.useEffect(()=>{m&&(y(!1),b(!1),T(null))},[m]),S.useEffect(()=>{p?(b(!1),T("sidebar")):f?(y(!1),T("right")):T(null)},[p,f]),S.useEffect(()=>{u&&(y(!1),b(!1),T(null))},[r,u]);const D={isMobile:u,isTablet:d,isDesktop:m,breakpoints:l,screenSize:o,orientation:r,sidebarOpen:p,setSidebarOpen:y,rightPanelOpen:f,setRightPanelOpen:b,activePanel:x,setActivePanel:T};return h.jsx(gg.Provider,{value:D,children:i})},Jc=()=>{const i=S.useContext(gg);if(i===void 0)throw new Error("useMobileContext must be used within a MobileProvider");return i},iS=i=>[{name:i("nav.dashboard"),href:"/dashboard",icon:Jv},{name:i("nav.projects"),href:"/projects",icon:Wv},{name:i("nav.agents"),href:"/agents",icon:Jm},{name:i("nav.mcp"),href:"/mcp",icon:ca},{name:i("nav.settings"),href:"/settings",icon:qc,submenu:[{name:i("nav.settingsSubmenu.general"),href:"/settings/general",icon:eb},{name:i("nav.settingsSubmenu.versions"),href:"/settings/versions",icon:tb},{name:i("nav.settingsSubmenu.memory"),href:"/settings/memory",icon:nb},{name:i("nav.settingsSubmenu.commands"),href:"/settings/commands",icon:ab},{name:i("nav.settingsSubmenu.subagents"),href:"/settings/subagents",icon:Jm}]}],pg=({onClose:i})=>{const{t:l}=dn("pages"),o=_t(),r=yi(),{isMobile:u}=Jc(),[d,m]=S.useState(()=>o.pathname.startsWith("/settings")?[l("nav.settings")]:[]),[p,y]=S.useState(!1),[f,b]=S.useState("checking"),x=iS(l),T=async()=>{try{const A=$h();if(!A){b("disconnected");return}const z=`${A}/api/health`;(await fetch(z,{method:"GET",headers:{"Content-Type":"application/json"},signal:AbortSignal.timeout(3e3)})).ok?b("connected"):b("disconnected")}catch{b("disconnected")}};S.useEffect(()=>{T();const A=setInterval(T,3e4);return()=>clearInterval(A)},[]),S.useEffect(()=>{!p&&f!=="checking"&&setTimeout(T,1e3)},[p,f]);const D=A=>{m(z=>z.includes(A)?z.filter(q=>q!==A):[...z,A])},R=A=>d.includes(A),k=(A,z)=>z?o.pathname.startsWith(A):o.pathname===A,N=()=>{switch(f){case"connected":return{iconClass:"w-4 h-4 text-green-500",buttonClass:"p-1.5 text-green-500 hover:text-green-600 hover:bg-green-50 rounded-md transition-colors",title:l("footer.apiServerStatus.connected")};case"disconnected":return{iconClass:"w-4 h-4 text-red-500",buttonClass:"p-1.5 text-red-500 hover:text-red-600 hover:bg-red-50 rounded-md transition-colors",title:l("footer.apiServerStatus.disconnected")};case"checking":default:return{iconClass:"w-4 h-4 text-gray-400",buttonClass:"p-1.5 text-gray-400 hover:text-gray-600 hover:bg-gray-100 rounded-md transition-colors",title:l("footer.apiServerStatus.checking")}}},F=A=>{const z=A.submenu&&A.submenu.length>0,q=R(A.name),X=k(A.href,z);return z?h.jsx("li",{children:h.jsxs("div",{className:"space-y-1",children:[h.jsxs("button",{onClick:()=>D(A.name),className:`w-full flex items-center space-x-3 px-4 py-3 rounded-lg transition-colors ${X?"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 hover:text-gray-900 dark:hover:text-white"}`,children:[h.jsx(A.icon,{className:"w-5 h-5"}),h.jsx("span",{className:"font-medium flex-1 text-left",children:A.name}),q?h.jsx(Xh,{className:"w-4 h-4"}):h.jsx(lb,{className:"w-4 h-4"})]}),q&&h.jsx("ul",{className:"ml-6 space-y-1",children:A.submenu.map(Y=>h.jsx("li",{children:h.jsxs(Mc,{to:Y.href,onClick:()=>{u&&i&&i()},className:({isActive:I})=>`flex items-center space-x-3 px-4 py-2 rounded-lg transition-colors text-sm ${I?"bg-blue-100 dark:bg-blue-900/40 text-blue-700 dark:text-blue-300":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 hover:text-gray-900 dark:hover:text-white"}`,children:[h.jsx(Y.icon,{className:"w-4 h-4"}),h.jsx("span",{className:"font-medium",children:Y.name})]})},Y.name))})]})},A.nameKey):h.jsx("li",{children:h.jsxs(Mc,{to:A.href,onClick:()=>{u&&i&&i()},className:({isActive:Y})=>`flex items-center space-x-3 px-4 py-3 rounded-lg transition-colors ${Y?"bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300":"text-gray-600 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-700 hover:text-gray-900 dark:hover:text-white"}`,children:[h.jsx(A.icon,{className:"w-5 h-5"}),h.jsx("span",{className:"font-medium",children:A.name})]})},A.name)};return h.jsxs("div",{className:"w-64 bg-white dark:bg-gray-800 shadow-sm border-r border-gray-200 dark:border-gray-700 flex flex-col h-full z-40",children:[h.jsx("div",{className:"px-6 py-8 flex-shrink-0",children:h.jsxs("button",{onClick:()=>r("/"),className:"flex items-center space-x-3 w-full text-left hover:opacity-80 transition-opacity focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 rounded-lg p-2",children:[h.jsx("div",{className:"w-10 h-10 bg-blue-600 rounded-lg flex items-center justify-center",children:h.jsx("img",{src:"/cc-studio.png",alt:"CC Studio",className:"w-10 h-10"})}),h.jsxs("div",{className:"flex flex-col",children:[h.jsx("h1",{className:"text-xl font-bold text-gray-900 dark:text-white",children:"CC Studio"}),h.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Claude Code Studio"})]})]})}),h.jsx("nav",{className:"flex-1 overflow-y-auto px-4 pb-4",children:h.jsx("ul",{className:"space-y-2",children:x.map(F)})}),h.jsx("div",{className:"flex-shrink-0 p-4 border-t border-gray-200 dark:border-gray-700",children:h.jsx("div",{className:"space-y-3",children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx(eS,{}),h.jsxs("div",{className:"flex items-center space-x-2",children:[h.jsx("button",{onClick:()=>y(!0),className:N().buttonClass,title:N().title,children:h.jsx(ca,{className:N().iconClass})}),f==="disconnected"&&h.jsx("span",{className:"text-xs text-red-500 api-text-breathing cursor-pointer",onClick:()=>y(!0),children:l("footer.serviceStatus.unavailable")}),f==="connected"&&h.jsx("span",{className:"text-xs text-green-600",children:l("footer.serviceStatus.normal")}),f==="checking"&&h.jsx("span",{className:"text-xs text-gray-500",children:l("footer.serviceStatus.checking")})]})]})})}),h.jsx(W0,{isOpen:p,onClose:()=>y(!1)})]})},sS=({isOpen:i,onClose:l})=>{const{isMobile:o}=Jc();return o?h.jsxs(h.Fragment,{children:[i&&h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 lg:hidden",onClick:l,"aria-hidden":"true"}),h.jsxs("div",{className:`
|
|
63
|
-
fixed top-0 left-0 h-full w-72 bg-white dark:bg-gray-800 shadow-xl z-[60]
|
|
64
|
-
transform transition-transform duration-300 ease-in-out
|
|
65
|
-
${i?"translate-x-0":"-translate-x-full"}
|
|
66
|
-
lg:hidden
|
|
67
|
-
`,children:[h.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-gray-200 dark:border-gray-700",children:[h.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Menu"}),h.jsx("button",{onClick:l,className:"p-2 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors","aria-label":"Close sidebar",children:h.jsx(Qs,{className:"w-5 h-5"})})]}),h.jsx("div",{className:"overflow-y-auto h-full pb-20",children:h.jsx(pg,{onClose:l})})]})]}):null},sa=({children:i})=>{const{isMobile:l,sidebarOpen:o,setSidebarOpen:r}=Jc();return h.jsxs("div",{className:"h-screen bg-gray-50 dark:bg-gray-900 flex",children:[h.jsx("div",{className:"hidden md:block",children:h.jsx(pg,{})}),h.jsx(sS,{isOpen:o,onClose:()=>r(!1)}),h.jsxs("main",{className:"flex-1 overflow-auto relative",children:[l&&h.jsx("header",{className:"sticky top-0 z-40 bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 px-4 py-3",children:h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("button",{onClick:()=>r(!0),className:"p-2 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200 rounded-md hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors","aria-label":"Open sidebar",children:h.jsx(ib,{className:"w-5 h-5"})}),h.jsxs("div",{className:"flex items-center space-x-2",children:[h.jsx("div",{className:"w-8 h-8 bg-blue-600 rounded-lg flex items-center justify-center",children:h.jsx("img",{src:"/cc-studio.png",alt:"CC Studio",className:"w-8 h-8"})}),h.jsx("h1",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"CC Studio"})]}),h.jsx("div",{className:"w-9 h-9"})," "]})}),h.jsx("div",{className:l?"pb-4":"",children:i})]})]})},mh=i=>{let l;const o=new Set,r=(f,b)=>{const x=typeof f=="function"?f(l):f;if(!Object.is(x,l)){const T=l;l=b??(typeof x!="object"||x===null)?x:Object.assign({},l,x),o.forEach(D=>D(l,T))}},u=()=>l,p={setState:r,getState:u,getInitialState:()=>y,subscribe:f=>(o.add(f),()=>o.delete(f))},y=l=i(r,u,p);return p},oS=(i=>i?mh(i):mh),rS=i=>i;function cS(i,l=rS){const o=Ut.useSyncExternalStore(i.subscribe,Ut.useCallback(()=>l(i.getState()),[i,l]),Ut.useCallback(()=>l(i.getInitialState()),[i,l]));return Ut.useDebugValue(o),o}const hh=i=>{const l=oS(i),o=r=>cS(l,r);return Object.assign(o,l),o},uS=(i=>i?hh(i):hh);function dS(i,l){let o;try{o=i()}catch{return}return{getItem:u=>{var d;const m=y=>y===null?null:JSON.parse(y,void 0),p=(d=o.getItem(u))!=null?d:null;return p instanceof Promise?p.then(m):m(p)},setItem:(u,d)=>o.setItem(u,JSON.stringify(d,void 0)),removeItem:u=>o.removeItem(u)}}const Dc=i=>l=>{try{const o=i(l);return o instanceof Promise?o:{then(r){return Dc(r)(o)},catch(r){return this}}}catch(o){return{then(r){return this},catch(r){return Dc(r)(o)}}}},fS=(i,l)=>(o,r,u)=>{let d={storage:dS(()=>localStorage),partialize:k=>k,version:0,merge:(k,N)=>({...N,...k}),...l},m=!1;const p=new Set,y=new Set;let f=d.storage;if(!f)return i((...k)=>{console.warn(`[zustand persist middleware] Unable to update item '${d.name}', the given storage is currently unavailable.`),o(...k)},r,u);const b=()=>{const k=d.partialize({...r()});return f.setItem(d.name,{state:k,version:d.version})},x=u.setState;u.setState=(k,N)=>(x(k,N),b());const T=i((...k)=>(o(...k),b()),r,u);u.getInitialState=()=>T;let D;const R=()=>{var k,N;if(!f)return;m=!1,p.forEach(A=>{var z;return A((z=r())!=null?z:T)});const F=((N=d.onRehydrateStorage)==null?void 0:N.call(d,(k=r())!=null?k:T))||void 0;return Dc(f.getItem.bind(f))(d.name).then(A=>{if(A)if(typeof A.version=="number"&&A.version!==d.version){if(d.migrate){const z=d.migrate(A.state,A.version);return z instanceof Promise?z.then(q=>[!0,q]):[!0,z]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,A.state];return[!1,void 0]}).then(A=>{var z;const[q,X]=A;if(D=d.merge(X,(z=r())!=null?z:T),o(D,!0),q)return b()}).then(()=>{F?.(D,void 0),D=r(),m=!0,y.forEach(A=>A(D))}).catch(A=>{F?.(void 0,A)})};return u.persist={setOptions:k=>{d={...d,...k},k.storage&&(f=k.storage)},clearStorage:()=>{f?.removeItem(d.name)},getOptions:()=>d,rehydrate:()=>R(),hasHydrated:()=>m,onHydrate:k=>(p.add(k),()=>{p.delete(k)}),onFinishHydration:k=>(y.add(k),()=>{y.delete(k)})},d.skipHydration||R(),D||T},mS=fS,hS=uS()(mS((i,l)=>({token:null,tokens:{},isAuthenticated:!1,getToken:o=>{const{tokens:r}=l();return r[o]||null},setToken:o=>{i(r=>({tokens:{...r.tokens,[o.serviceId]:o},token:o,isAuthenticated:!0}))},removeToken:o=>{i(r=>{const u={...r.tokens};delete u[o];const d=r.token,m=d&&typeof d=="object"&&"serviceId"in d&&d.serviceId===o;return{tokens:u,token:m?null:r.token,isAuthenticated:m?!1:r.isAuthenticated}})},logout:()=>i({tokens:{},token:null,isAuthenticated:!1})}),{name:"auth-storage",migrate:(i,l)=>{if(i.token&&!i.tokens){const o=i.token;if(typeof o=="object"&&o.serviceId)return{...i,tokens:{[o.serviceId]:o}}}return i}})),gS=i=>{if(!i)return!0;if(typeof i=="string")return!1;const l=Date.now()-i.timestamp,o=1440*60*1e3;return l>o},pS=i=>i?typeof i=="object"&&"token"in i?i.token:i:null;function yS(){const{token:i,setToken:l,removeToken:o,getToken:r}=hS(),{currentService:u}=Js(),[d,m]=S.useState(!1),[p,y]=S.useState(null),f=u?.id,x=!!S.useMemo(()=>f?r(f):null,[f,r]),T=S.useCallback(async k=>{if(m(!0),y(null),!u)return y("No service selected"),m(!1),!1;try{const N=await fetch(`${ii}/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:k})}),F=await N.json();if(!N.ok){const z=new Error(F.error||"Login failed");return z.status=N.status,z.details=F,z.url=ii,z.timestamp=Date.now(),y(z),!1}const A={token:F.token,serviceId:u.id,serviceName:u.name,serviceUrl:u.url,timestamp:Date.now()};return l(A),!0}catch(N){const F=new Error("Network error occurred during login");return N instanceof Error?(F.originalError={message:N.message,stack:N.stack,name:N.name},F.type=N.name):(F.originalError=N,F.type=typeof N),F.url=ii,F.timestamp=Date.now(),y(F),!1}finally{m(!1)}},[u,l]),D=S.useCallback(async()=>{if(u)try{const k=r(u.id);k&&await fetch(`${ii}/auth/logout`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${k.token}`}})}catch(k){console.error("Logout error:",k)}finally{u&&o(u.id)}},[u,r,o]),R=S.useCallback(async()=>{if(!u)return!1;const k=r(u.id);if(!k)return!1;if(gS(k))return o(u.id),!1;try{const N=pS(k);if(!N)return o(u.id),!1;const F=await fetch(`${ii}/auth/verify`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:N})}),A=await F.json();return!F.ok||!A.valid?(o(u.id),!1):!0}catch(N){return console.error("Token verification error:",N),o(u.id),!1}},[u,r,o]);return{token:i,isAuthenticated:x,isLoading:d,error:p,login:T,logout:D,verifyToken:R}}const Wc="backend_onboarding_completed",tl="claude_setup_completed",vS=()=>{try{const i=localStorage.getItem(Wc);return i?JSON.parse(i):{completed:!1}}catch(i){return console.error("Failed to read backend onboarding status:",i),{completed:!1}}},Cc=(i=!1)=>{const l={completed:!0,completedAt:Date.now(),skipped:i};localStorage.setItem(Wc,JSON.stringify(l))},mE=()=>{localStorage.removeItem(Wc)},hE=i=>{try{const l=localStorage.getItem(tl);return l&&JSON.parse(l)[i]?.completed||!1}catch(l){return console.error("Failed to read Claude setup status:",l),!1}},gE=(i,l=!1)=>{try{const o=localStorage.getItem(tl),r=o?JSON.parse(o):{};r[i]={completed:!0,completedAt:Date.now(),skipped:l},localStorage.setItem(tl,JSON.stringify(r))}catch(o){console.error("Failed to save Claude setup status:",o)}},pE=i=>{if(!i){localStorage.removeItem(tl);return}try{const l=localStorage.getItem(tl);if(!l)return;const o=JSON.parse(l);delete o[i],localStorage.setItem(tl,JSON.stringify(o))}catch(l){console.error("Failed to reset Claude setup status:",l)}},bS=({onNext:i,onSkip:l})=>{const{t:o}=dn("onboarding");return h.jsxs("div",{className:"text-center space-y-6",children:[h.jsx("div",{className:"flex justify-center",children:h.jsx("div",{className:"p-4 bg-blue-100 dark:bg-blue-900/30 rounded-full",children:h.jsx(sb,{className:"w-12 h-12 text-blue-600 dark:text-blue-400"})})}),h.jsxs("div",{children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:o("backend.welcome.title")}),h.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:o("backend.welcome.subtitle")})]}),h.jsxs("div",{className:"bg-gray-50 dark:bg-gray-700/50 rounded-lg p-6 space-y-4 text-left",children:[h.jsx("p",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 mb-3",children:o("backend.welcome.features.title")}),h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{className:"flex items-start space-x-3",children:[h.jsx(ca,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 mt-0.5 flex-shrink-0"}),h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:o("backend.welcome.features.ai.title")}),h.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:o("backend.welcome.features.ai.description")})]})]}),h.jsxs("div",{className:"flex items-start space-x-3",children:[h.jsx(ob,{className:"w-5 h-5 text-green-600 dark:text-green-400 mt-0.5 flex-shrink-0"}),h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:o("backend.welcome.features.storage.title")}),h.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:o("backend.welcome.features.storage.description")})]})]}),h.jsxs("div",{className:"flex items-start space-x-3",children:[h.jsx(rb,{className:"w-5 h-5 text-purple-600 dark:text-purple-400 mt-0.5 flex-shrink-0"}),h.jsxs("div",{children:[h.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:o("backend.welcome.features.history.title")}),h.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:o("backend.welcome.features.history.description")})]})]})]})]}),h.jsxs("div",{className:"flex space-x-3",children:[h.jsxs("button",{onClick:l,className:"flex-1 flex items-center justify-center space-x-2 px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:[h.jsx(cb,{className:"w-4 h-4"}),h.jsx("span",{children:o("backend.actions.skip")})]}),h.jsxs("button",{onClick:i,className:"flex-1 flex items-center justify-center space-x-2 px-4 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:[h.jsx("span",{children:o("backend.actions.getStarted")}),h.jsx(ub,{className:"w-4 h-4"})]})]})]})},SS=()=>{const{t:i}=dn("onboarding");return h.jsxs("div",{className:"text-center py-8 space-y-6",children:[h.jsx(Jh,{className:"w-12 h-12 mx-auto animate-spin text-blue-600 dark:text-blue-400"}),h.jsxs("div",{children:[h.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:i("backend.detecting.title")}),h.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:i("backend.detecting.description")})]}),h.jsxs("div",{className:"bg-gray-50 dark:bg-gray-700/50 rounded-lg p-4 space-y-2 text-left",children:[h.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600 dark:text-gray-400",children:[h.jsx("div",{className:"w-2 h-2 bg-blue-600 rounded-full animate-pulse"}),h.jsx("span",{children:"http://127.0.0.1:4936"})]}),h.jsxs("div",{className:"flex items-center space-x-2 text-sm text-gray-600 dark:text-gray-400",children:[h.jsx("div",{className:"w-2 h-2 bg-blue-600 rounded-full animate-pulse"}),h.jsx("span",{children:"http://localhost:4936"})]})]})]})},xS=({serviceUrl:i,onUseService:l,onAddOther:o})=>{const{t:r}=dn("onboarding");return h.jsxs("div",{className:"space-y-6",children:[h.jsx("div",{className:"flex justify-center",children:h.jsx(ra,{className:"w-16 h-16 text-green-500"})}),h.jsxs("div",{className:"text-center",children:[h.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white mb-2",children:r("backend.found.title")}),h.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:r("backend.found.description")})]}),h.jsx("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4",children:h.jsxs("div",{className:"flex items-start space-x-3",children:[h.jsx(ca,{className:"w-5 h-5 text-green-600 dark:text-green-400 mt-0.5"}),h.jsxs("div",{className:"flex-1",children:[h.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white mb-1",children:r("backend.found.serviceAddress")}),h.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 font-mono",children:i}),h.jsxs("div",{className:"flex items-center space-x-2 mt-2",children:[h.jsx(ra,{className:"w-4 h-4 text-green-500"}),h.jsx("span",{className:"text-xs text-green-700 dark:text-green-300",children:r("backend.found.status")})]})]})]})}),h.jsxs("div",{className:"space-y-3",children:[h.jsxs("button",{onClick:l,className:"w-full flex items-center justify-center space-x-2 px-4 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:[h.jsx(ra,{className:"w-4 h-4"}),h.jsx("span",{children:r("backend.found.useThisService")})]}),h.jsxs("button",{onClick:o,className:"w-full flex items-center justify-center space-x-2 px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:[h.jsx(Ih,{className:"w-4 h-4"}),h.jsx("span",{children:r("backend.found.addOtherService")})]})]})]})},gh=({onRetry:i,onAddRemote:l,onBack:o,showWarning:r=!0})=>{const{t:u}=dn("onboarding"),[d,m]=S.useState(""),[p,y]=S.useState(""),[f,b]=S.useState(!1),[x,T]=S.useState(null),[D,R]=S.useState(!1),k=`git clone https://github.com/git-men/agentstudio.git
|
|
68
|
-
cd agentstudio
|
|
69
|
-
pnpm install
|
|
70
|
-
pnpm run dev:backend`,N=async()=>{try{await navigator.clipboard.writeText(k),R(!0),setTimeout(()=>R(!1),2e3)}catch(z){console.error("Failed to copy:",z)}},F=async()=>{if(p){b(!0),T(null);try{const z=`${p}/api/health`,q=await fetch(z,{method:"GET",headers:{"Content-Type":"application/json"},signal:AbortSignal.timeout(5e3)});T(q.ok?"success":"error")}catch{T("error")}finally{b(!1)}}},A=async()=>{if(!d.trim()||!p.trim())return;await l(d.trim(),p.trim())&&(m(""),y(""),T(null))};return h.jsxs("div",{className:"space-y-6",children:[o&&h.jsxs("button",{onClick:o,className:"flex items-center space-x-2 text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 transition-colors",children:[h.jsx(db,{className:"w-4 h-4"}),h.jsx("span",{children:u("backend.actions.back")})]}),r&&h.jsx("div",{className:"bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4",children:h.jsxs("div",{className:"flex items-start space-x-3",children:[h.jsx(Kh,{className:"w-5 h-5 text-yellow-600 dark:text-yellow-400 mt-0.5 flex-shrink-0"}),h.jsxs("div",{children:[h.jsx("h4",{className:"font-medium text-yellow-900 dark:text-yellow-200 mb-1",children:u("backend.notFound.title")}),h.jsx("p",{className:"text-sm text-yellow-800 dark:text-yellow-300",children:u("backend.notFound.description")})]})]})}),h.jsxs("div",{children:[h.jsx("h4",{className:"font-medium text-gray-900 dark:text-white mb-2",children:u("backend.addService.title")}),h.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:u("backend.addService.description")})]}),h.jsxs("div",{className:"space-y-3",children:[h.jsxs("div",{children:[h.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:u("backend.addService.serviceName")}),h.jsx("input",{type:"text",value:d,onChange:z=>m(z.target.value),placeholder:u("backend.addService.serviceNamePlaceholder"),className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-800 dark:text-white"})]}),h.jsxs("div",{children:[h.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:u("backend.addService.serviceUrl")}),h.jsx("input",{type:"url",value:p,onChange:z=>y(z.target.value),placeholder:"https://api.example.com",className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 dark:bg-gray-800 dark:text-white"})]})]}),h.jsxs("div",{className:"flex space-x-3",children:[h.jsx("button",{onClick:F,disabled:!p||f,className:"flex-1 flex items-center justify-center space-x-2 px-4 py-2.5 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:f?h.jsxs(h.Fragment,{children:[h.jsx(Jh,{className:"w-4 h-4 animate-spin"}),h.jsx("span",{children:u("backend.addService.testing")})]}):x==="success"?h.jsxs(h.Fragment,{children:[h.jsx(ra,{className:"w-4 h-4 text-green-500"}),h.jsx("span",{children:u("backend.addService.success")})]}):x==="error"?h.jsxs(h.Fragment,{children:[h.jsx(Qh,{className:"w-4 h-4 text-red-500"}),h.jsx("span",{children:u("backend.addService.failed")})]}):h.jsxs(h.Fragment,{children:[h.jsx(Wm,{className:"w-4 h-4"}),h.jsx("span",{children:u("backend.addService.testConnection")})]})}),h.jsx("button",{onClick:A,disabled:!d||!p||x!=="success",className:"flex-1 px-4 py-2.5 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors disabled:bg-gray-400 disabled:cursor-not-allowed",children:u("backend.addService.addButton")})]}),h.jsxs("div",{className:"bg-gray-50 dark:bg-gray-800/50 border border-gray-200 dark:border-gray-700 rounded-lg p-4 space-y-3",children:[h.jsxs("div",{className:"flex items-center space-x-2",children:[h.jsx(fb,{className:"w-4 h-4 text-blue-600 dark:text-blue-400"}),h.jsx("h5",{className:"font-medium text-gray-900 dark:text-white text-sm",children:u("backend.addService.installGuide.title")})]}),h.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:u("backend.addService.installGuide.description")}),h.jsxs("div",{className:"bg-gray-900 dark:bg-gray-950 rounded-lg p-3 relative",children:[h.jsx("pre",{className:"text-xs text-green-400 font-mono whitespace-pre-wrap",children:k}),h.jsx("button",{onClick:N,className:"absolute top-2 right-2 p-1.5 bg-gray-800 hover:bg-gray-700 rounded text-gray-400 hover:text-white transition-colors",title:u("backend.addService.installGuide.copyCommands"),children:D?h.jsx(ra,{className:"w-3.5 h-3.5 text-green-400"}):h.jsx(eh,{className:"w-3.5 h-3.5"})})]}),h.jsxs("div",{className:"flex space-x-2",children:[h.jsxs("button",{onClick:N,className:"flex-1 flex items-center justify-center space-x-1.5 px-3 py-1.5 border border-gray-300 dark:border-gray-600 rounded text-xs text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:[h.jsx(eh,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:u("backend.addService.installGuide.copyCommands")})]}),h.jsxs("a",{href:"https://github.com/git-men/agentstudio?tab=readme-ov-file#-quick-start",target:"_blank",rel:"noopener noreferrer",className:"flex-1 flex items-center justify-center space-x-1.5 px-3 py-1.5 border border-gray-300 dark:border-gray-600 rounded text-xs text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors",children:[h.jsx(mb,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:u("backend.addService.installGuide.viewDocs")})]})]})]}),i&&h.jsxs("button",{onClick:i,className:"w-full flex items-center justify-center space-x-2 px-4 py-2.5 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:[h.jsx(Wm,{className:"w-4 h-4"}),h.jsx("span",{children:u("backend.addService.retry")})]})]})},wS=({serviceName:i,serviceUrl:l,onGoToLogin:o,onManageServices:r})=>{const{t:u}=dn("onboarding");return h.jsxs("div",{className:"text-center space-y-6",children:[h.jsx("div",{className:"flex justify-center",children:h.jsx("div",{className:"p-4 bg-green-100 dark:bg-green-900/30 rounded-full",children:h.jsx(ra,{className:"w-12 h-12 text-green-600 dark:text-green-400"})})}),h.jsxs("div",{children:[h.jsx("h2",{className:"text-2xl font-bold text-gray-900 dark:text-white mb-2",children:u("backend.complete.title")}),h.jsx("p",{className:"text-gray-600 dark:text-gray-400",children:u("backend.complete.description")})]}),h.jsx("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg p-4 text-left",children:h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{children:[h.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:u("backend.complete.serviceName")}),h.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:i})]}),h.jsxs("div",{children:[h.jsx("p",{className:"text-xs text-gray-600 dark:text-gray-400",children:u("backend.complete.serviceUrl")}),h.jsx("p",{className:"text-sm font-mono text-gray-900 dark:text-white",children:l})]})]})}),h.jsxs("div",{className:"bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg p-4 text-left",children:[h.jsx("p",{className:"text-sm font-medium text-blue-900 dark:text-blue-200 mb-2",children:u("backend.complete.nextSteps.title")}),h.jsx("p",{className:"text-sm text-blue-800 dark:text-blue-300",children:u("backend.complete.nextSteps.description")})]}),h.jsxs("div",{className:"space-y-3",children:[h.jsxs("button",{onClick:o,className:"w-full flex items-center justify-center space-x-2 px-4 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:[h.jsx(hb,{className:"w-4 h-4"}),h.jsx("span",{children:u("backend.complete.goToLogin")})]}),h.jsxs("button",{onClick:r,className:"w-full flex items-center justify-center space-x-2 px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:[h.jsx(qc,{className:"w-4 h-4"}),h.jsx("span",{children:u("backend.complete.manageServices")})]})]})]})},CS=({onComplete:i})=>{const{t:l}=dn("onboarding"),o=yi(),{services:r,addService:u,switchService:d}=Js(),[m,p]=S.useState("welcome"),[y,f]=S.useState(null),[b,x]=S.useState(!1);S.useEffect(()=>{m==="detecting"&&T()},[m]);const T=async()=>{const G=["http://127.0.0.1:4936","http://localhost:4936"];for(const Z of G)try{if((await fetch(`${Z}/api/health`,{method:"GET",headers:{"Content-Type":"application/json"},signal:AbortSignal.timeout(3e3)})).ok){f({name:"Local Development Server",url:Z}),p("found");return}}catch{}p("not-found")},D=()=>{if(!y)return;const G=r.find(Z=>Z.url===y.url);if(G)d(G.id);else{const Z=u({name:y.name,url:y.url});d(Z.id)}Cc(!1),p("complete")},R=()=>{p("add-service")},k=()=>{p("detecting")},N=()=>{p("found")},F=async(G,Z)=>{try{const se=u({name:G,url:Z});return d(se.id),f({name:G,url:Z}),Cc(!1),p("complete"),!0}catch(se){return console.error("Failed to add remote service:",se),!1}},A=()=>{x(!0)},z=()=>{x(!1)},q=()=>{Cc(!0),i()},X=()=>{i()},Y=()=>{i(),o("/login")},I=()=>{switch(m){case"welcome":return h.jsx(bS,{onNext:()=>p("detecting"),onSkip:A});case"detecting":return h.jsx(SS,{});case"found":return y?h.jsx(xS,{serviceUrl:y.url,onUseService:D,onAddOther:R}):null;case"not-found":return h.jsx(gh,{onRetry:k,onAddRemote:F,showWarning:!0});case"add-service":return h.jsx(gh,{onAddRemote:F,onBack:N,showWarning:!1});case"complete":return y?h.jsx(wS,{serviceName:y.name,serviceUrl:y.url,onGoToLogin:X,onManageServices:Y}):null;default:return null}};return h.jsxs(h.Fragment,{children:[h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 p-4",children:h.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-xl border border-gray-200 dark:border-gray-700 p-6 max-w-2xl w-full max-h-[90vh] overflow-y-auto",children:[m==="welcome"&&h.jsx("button",{onClick:A,className:"absolute top-4 right-4 p-2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors","aria-label":"Close",children:h.jsx(Qs,{className:"w-5 h-5"})}),I()]})}),b&&h.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-60 flex items-center justify-center z-[60] p-4",children:h.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-xl shadow-xl border border-gray-200 dark:border-gray-700 p-6 max-w-md w-full",children:[h.jsxs("div",{className:"flex items-start space-x-3 mb-4",children:[h.jsx(Zh,{className:"w-6 h-6 text-yellow-600 dark:text-yellow-400 flex-shrink-0 mt-0.5"}),h.jsxs("div",{children:[h.jsx("h3",{className:"text-lg font-bold text-gray-900 dark:text-white mb-2",children:l("backend.skipConfirm.title")}),h.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-3",children:l("backend.skipConfirm.warning")}),h.jsxs("ul",{className:"text-sm text-gray-600 dark:text-gray-400 space-y-1 mb-3 list-disc list-inside",children:[h.jsx("li",{children:l("backend.skipConfirm.consequences.noAi")}),h.jsx("li",{children:l("backend.skipConfirm.consequences.noStorage")}),h.jsx("li",{children:l("backend.skipConfirm.consequences.noFeatures")})]}),h.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 mb-3",children:l("backend.skipConfirm.reconfigure")}),h.jsxs("ul",{className:"text-sm text-gray-600 dark:text-gray-400 space-y-1 list-disc list-inside",children:[h.jsx("li",{children:l("backend.skipConfirm.locations.loginPage")}),h.jsx("li",{children:l("backend.skipConfirm.locations.settingsPage")})]})]})]}),h.jsxs("div",{className:"flex space-x-3",children:[h.jsx("button",{onClick:z,className:"flex-1 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors",children:l("backend.skipConfirm.back")}),h.jsx("button",{onClick:q,className:"flex-1 px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-lg text-gray-700 dark:text-gray-300 hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors",children:l("backend.skipConfirm.skip")})]})]})})]})};function Fn({children:i}){const{isAuthenticated:l,verifyToken:o}=yS(),{currentService:r}=Js(),u=_t(),[d,m]=S.useState(!0),[p,y]=S.useState(!1),[f,b]=S.useState(!1),x=S.useRef(null);S.useEffect(()=>{vS().completed||(b(!0),m(!1))},[]),S.useEffect(()=>{(async()=>{if(f)return;const R=r?.id||null;if(!(!(R!==x.current)&&!d)){if(m(!0),x.current=R,l){const N=await o();y(N)}else y(!1);m(!1)}})()},[r?.id,f]);const T=()=>{b(!1),m(!0)};return f?h.jsx(CS,{onComplete:T}):d?h.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-50 dark:bg-gray-900",children:h.jsxs("div",{className:"text-center",children:[h.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600 mx-auto"}),h.jsx("p",{className:"mt-4 text-gray-600 dark:text-gray-400",children:"Verifying..."})]})}):!l||!p?h.jsx(d0,{to:"/login",state:{from:u},replace:!0}):h.jsx(h.Fragment,{children:i})}function vt(i,l,{checkForDefaultPrevented:o=!0}={}){return function(u){if(i?.(u),o===!1||!u.defaultPrevented)return l?.(u)}}function ph(i,l){if(typeof i=="function")return i(l);i!=null&&(i.current=l)}function yg(...i){return l=>{let o=!1;const r=i.map(u=>{const d=ph(u,l);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let u=0;u<r.length;u++){const d=r[u];typeof d=="function"?d():ph(i[u],null)}}}}function ua(...i){return S.useCallback(yg(...i),i)}function vg(i,l=[]){let o=[];function r(d,m){const p=S.createContext(m),y=o.length;o=[...o,m];const f=x=>{const{scope:T,children:D,...R}=x,k=T?.[i]?.[y]||p,N=S.useMemo(()=>R,Object.values(R));return h.jsx(k.Provider,{value:N,children:D})};f.displayName=d+"Provider";function b(x,T){const D=T?.[i]?.[y]||p,R=S.useContext(D);if(R)return R;if(m!==void 0)return m;throw new Error(`\`${x}\` must be used within \`${d}\``)}return[f,b]}const u=()=>{const d=o.map(m=>S.createContext(m));return function(p){const y=p?.[i]||d;return S.useMemo(()=>({[`__scope${i}`]:{...p,[i]:y}}),[p,y])}};return u.scopeName=i,[r,TS(u,...l)]}function TS(...i){const l=i[0];if(i.length===1)return l;const o=()=>{const r=i.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(d){const m=r.reduce((p,{useScope:y,scopeName:f})=>{const x=y(d)[`__scope${f}`];return{...p,...x}},{});return S.useMemo(()=>({[`__scope${l.scopeName}`]:m}),[m])}};return o.scopeName=l.scopeName,o}function Oc(i){const l=AS(i),o=S.forwardRef((r,u)=>{const{children:d,...m}=r,p=S.Children.toArray(d),y=p.find(kS);if(y){const f=y.props.children,b=p.map(x=>x===y?S.Children.count(f)>1?S.Children.only(null):S.isValidElement(f)?f.props.children:null:x);return h.jsx(l,{...m,ref:u,children:S.isValidElement(f)?S.cloneElement(f,void 0,b):null})}return h.jsx(l,{...m,ref:u,children:d})});return o.displayName=`${i}.Slot`,o}function AS(i){const l=S.forwardRef((o,r)=>{const{children:u,...d}=o;if(S.isValidElement(u)){const m=jS(u),p=NS(d,u.props);return u.type!==S.Fragment&&(p.ref=r?yg(r,m):m),S.cloneElement(u,p)}return S.Children.count(u)>1?S.Children.only(null):null});return l.displayName=`${i}.SlotClone`,l}var ES=Symbol("radix.slottable");function kS(i){return S.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===ES}function NS(i,l){const o={...l};for(const r in l){const u=i[r],d=l[r];/^on[A-Z]/.test(r)?u&&d?o[r]=(...p)=>{const y=d(...p);return u(...p),y}:u&&(o[r]=u):r==="style"?o[r]={...u,...d}:r==="className"&&(o[r]=[u,d].filter(Boolean).join(" "))}return{...i,...o}}function jS(i){let l=Object.getOwnPropertyDescriptor(i.props,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?i.ref:(l=Object.getOwnPropertyDescriptor(i,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?i.props.ref:i.props.ref||i.ref)}function RS(i){const l=i+"CollectionProvider",[o,r]=vg(l),[u,d]=o(l,{collectionRef:{current:null},itemMap:new Map}),m=k=>{const{scope:N,children:F}=k,A=Ut.useRef(null),z=Ut.useRef(new Map).current;return h.jsx(u,{scope:N,itemMap:z,collectionRef:A,children:F})};m.displayName=l;const p=i+"CollectionSlot",y=Oc(p),f=Ut.forwardRef((k,N)=>{const{scope:F,children:A}=k,z=d(p,F),q=ua(N,z.collectionRef);return h.jsx(y,{ref:q,children:A})});f.displayName=p;const b=i+"CollectionItemSlot",x="data-radix-collection-item",T=Oc(b),D=Ut.forwardRef((k,N)=>{const{scope:F,children:A,...z}=k,q=Ut.useRef(null),X=ua(N,q),Y=d(b,F);return Ut.useEffect(()=>(Y.itemMap.set(q,{ref:q,...z}),()=>void Y.itemMap.delete(q))),h.jsx(T,{[x]:"",ref:X,children:A})});D.displayName=b;function R(k){const N=d(i+"CollectionConsumer",k);return Ut.useCallback(()=>{const A=N.collectionRef.current;if(!A)return[];const z=Array.from(A.querySelectorAll(`[${x}]`));return Array.from(N.itemMap.values()).sort((Y,I)=>z.indexOf(Y.ref.current)-z.indexOf(I.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:m,Slot:f,ItemSlot:D},R,r]}var MS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Yt=MS.reduce((i,l)=>{const o=Oc(`Primitive.${l}`),r=S.forwardRef((u,d)=>{const{asChild:m,...p}=u,y=m?o:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(y,{...p,ref:d})});return r.displayName=`Primitive.${l}`,{...i,[l]:r}},{});function bg(i,l){i&&Zc.flushSync(()=>i.dispatchEvent(l))}function da(i){const l=S.useRef(i);return S.useEffect(()=>{l.current=i}),S.useMemo(()=>(...o)=>l.current?.(...o),[])}function DS(i,l=globalThis?.document){const o=da(i);S.useEffect(()=>{const r=u=>{u.key==="Escape"&&o(u)};return l.addEventListener("keydown",r,{capture:!0}),()=>l.removeEventListener("keydown",r,{capture:!0})},[o,l])}var OS="DismissableLayer",Lc="dismissableLayer.update",LS="dismissableLayer.pointerDownOutside",US="dismissableLayer.focusOutside",yh,Sg=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xg=S.forwardRef((i,l)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:r,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:m,onDismiss:p,...y}=i,f=S.useContext(Sg),[b,x]=S.useState(null),T=b?.ownerDocument??globalThis?.document,[,D]=S.useState({}),R=ua(l,I=>x(I)),k=Array.from(f.layers),[N]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),F=k.indexOf(N),A=b?k.indexOf(b):-1,z=f.layersWithOutsidePointerEventsDisabled.size>0,q=A>=F,X=_S(I=>{const G=I.target,Z=[...f.branches].some(se=>se.contains(G));!q||Z||(u?.(I),m?.(I),I.defaultPrevented||p?.())},T),Y=PS(I=>{const G=I.target;[...f.branches].some(se=>se.contains(G))||(d?.(I),m?.(I),I.defaultPrevented||p?.())},T);return DS(I=>{A===f.layers.size-1&&(r?.(I),!I.defaultPrevented&&p&&(I.preventDefault(),p()))},T),S.useEffect(()=>{if(b)return o&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(yh=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(b)),f.layers.add(b),vh(),()=>{o&&f.layersWithOutsidePointerEventsDisabled.size===1&&(T.body.style.pointerEvents=yh)}},[b,T,o,f]),S.useEffect(()=>()=>{b&&(f.layers.delete(b),f.layersWithOutsidePointerEventsDisabled.delete(b),vh())},[b,f]),S.useEffect(()=>{const I=()=>D({});return document.addEventListener(Lc,I),()=>document.removeEventListener(Lc,I)},[]),h.jsx(Yt.div,{...y,ref:R,style:{pointerEvents:z?q?"auto":"none":void 0,...i.style},onFocusCapture:vt(i.onFocusCapture,Y.onFocusCapture),onBlurCapture:vt(i.onBlurCapture,Y.onBlurCapture),onPointerDownCapture:vt(i.onPointerDownCapture,X.onPointerDownCapture)})});xg.displayName=OS;var zS="DismissableLayerBranch",wg=S.forwardRef((i,l)=>{const o=S.useContext(Sg),r=S.useRef(null),u=ua(l,r);return S.useEffect(()=>{const d=r.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),h.jsx(Yt.div,{...i,ref:u})});wg.displayName=zS;function _S(i,l=globalThis?.document){const o=da(i),r=S.useRef(!1),u=S.useRef(()=>{});return S.useEffect(()=>{const d=p=>{if(p.target&&!r.current){let y=function(){Cg(LS,o,f,{discrete:!0})};const f={originalEvent:p};p.pointerType==="touch"?(l.removeEventListener("click",u.current),u.current=y,l.addEventListener("click",u.current,{once:!0})):y()}else l.removeEventListener("click",u.current);r.current=!1},m=window.setTimeout(()=>{l.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),l.removeEventListener("pointerdown",d),l.removeEventListener("click",u.current)}},[l,o]),{onPointerDownCapture:()=>r.current=!0}}function PS(i,l=globalThis?.document){const o=da(i),r=S.useRef(!1);return S.useEffect(()=>{const u=d=>{d.target&&!r.current&&Cg(US,o,{originalEvent:d},{discrete:!1})};return l.addEventListener("focusin",u),()=>l.removeEventListener("focusin",u)},[l,o]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vh(){const i=new CustomEvent(Lc);document.dispatchEvent(i)}function Cg(i,l,o,{discrete:r}){const u=o.originalEvent.target,d=new CustomEvent(i,{bubbles:!1,cancelable:!0,detail:o});l&&u.addEventListener(i,l,{once:!0}),r?bg(u,d):u.dispatchEvent(d)}var FS=xg,HS=wg,mi=globalThis?.document?S.useLayoutEffect:()=>{},BS="Portal",Tg=S.forwardRef((i,l)=>{const{container:o,...r}=i,[u,d]=S.useState(!1);mi(()=>d(!0),[]);const m=o||u&&globalThis?.document?.body;return m?$0.createPortal(h.jsx(Yt.div,{...r,ref:l}),m):null});Tg.displayName=BS;function VS(i,l){return S.useReducer((o,r)=>l[o][r]??o,i)}var Ag=i=>{const{present:l,children:o}=i,r=qS(l),u=typeof o=="function"?o({present:r.isPresent}):S.Children.only(o),d=ua(r.ref,GS(u));return typeof o=="function"||r.isPresent?S.cloneElement(u,{ref:d}):null};Ag.displayName="Presence";function qS(i){const[l,o]=S.useState(),r=S.useRef(null),u=S.useRef(i),d=S.useRef("none"),m=i?"mounted":"unmounted",[p,y]=VS(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const f=Us(r.current);d.current=p==="mounted"?f:"none"},[p]),mi(()=>{const f=r.current,b=u.current;if(b!==i){const T=d.current,D=Us(f);i?y("MOUNT"):D==="none"||f?.display==="none"?y("UNMOUNT"):y(b&&T!==D?"ANIMATION_OUT":"UNMOUNT"),u.current=i}},[i,y]),mi(()=>{if(l){let f;const b=l.ownerDocument.defaultView??window,x=D=>{const k=Us(r.current).includes(CSS.escape(D.animationName));if(D.target===l&&k&&(y("ANIMATION_END"),!u.current)){const N=l.style.animationFillMode;l.style.animationFillMode="forwards",f=b.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=N)})}},T=D=>{D.target===l&&(d.current=Us(r.current))};return l.addEventListener("animationstart",T),l.addEventListener("animationcancel",x),l.addEventListener("animationend",x),()=>{b.clearTimeout(f),l.removeEventListener("animationstart",T),l.removeEventListener("animationcancel",x),l.removeEventListener("animationend",x)}}else y("ANIMATION_END")},[l,y]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:S.useCallback(f=>{r.current=f?getComputedStyle(f):null,o(f)},[])}}function Us(i){return i?.animationName||"none"}function GS(i){let l=Object.getOwnPropertyDescriptor(i.props,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?i.ref:(l=Object.getOwnPropertyDescriptor(i,"ref")?.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?i.props.ref:i.props.ref||i.ref)}var YS=_v[" useInsertionEffect ".trim().toString()]||mi;function $S({prop:i,defaultProp:l,onChange:o=()=>{},caller:r}){const[u,d,m]=KS({defaultProp:l,onChange:o}),p=i!==void 0,y=p?i:u;{const b=S.useRef(i!==void 0);S.useEffect(()=>{const x=b.current;x!==p&&console.warn(`${r} is changing from ${x?"controlled":"uncontrolled"} to ${p?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),b.current=p},[p,r])}const f=S.useCallback(b=>{if(p){const x=QS(b)?b(i):b;x!==i&&m.current?.(x)}else d(b)},[p,i,d,m]);return[y,f]}function KS({defaultProp:i,onChange:l}){const[o,r]=S.useState(i),u=S.useRef(o),d=S.useRef(l);return YS(()=>{d.current=l},[l]),S.useEffect(()=>{u.current!==o&&(d.current?.(o),u.current=o)},[o,u]),[o,r,d]}function QS(i){return typeof i=="function"}var XS=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),IS="VisuallyHidden",eu=S.forwardRef((i,l)=>h.jsx(Yt.span,{...i,ref:l,style:{...XS,...i.style}}));eu.displayName=IS;var tu="ToastProvider",[nu,ZS,JS]=RS("Toast"),[Eg]=vg("Toast",[JS]),[WS,Ws]=Eg(tu),kg=i=>{const{__scopeToast:l,label:o="Notification",duration:r=5e3,swipeDirection:u="right",swipeThreshold:d=50,children:m}=i,[p,y]=S.useState(null),[f,b]=S.useState(0),x=S.useRef(!1),T=S.useRef(!1);return o.trim()||console.error(`Invalid prop \`label\` supplied to \`${tu}\`. Expected non-empty \`string\`.`),h.jsx(nu.Provider,{scope:l,children:h.jsx(WS,{scope:l,label:o,duration:r,swipeDirection:u,swipeThreshold:d,toastCount:f,viewport:p,onViewportChange:y,onToastAdd:S.useCallback(()=>b(D=>D+1),[]),onToastRemove:S.useCallback(()=>b(D=>D-1),[]),isFocusedToastEscapeKeyDownRef:x,isClosePausedRef:T,children:m})})};kg.displayName=tu;var Ng="ToastViewport",ex=["F8"],Uc="toast.viewportPause",zc="toast.viewportResume",jg=S.forwardRef((i,l)=>{const{__scopeToast:o,hotkey:r=ex,label:u="Notifications ({hotkey})",...d}=i,m=Ws(Ng,o),p=ZS(o),y=S.useRef(null),f=S.useRef(null),b=S.useRef(null),x=S.useRef(null),T=ua(l,x,m.onViewportChange),D=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=m.toastCount>0;S.useEffect(()=>{const N=F=>{r.length!==0&&r.every(z=>F[z]||F.code===z)&&x.current?.focus()};return document.addEventListener("keydown",N),()=>document.removeEventListener("keydown",N)},[r]),S.useEffect(()=>{const N=y.current,F=x.current;if(R&&N&&F){const A=()=>{if(!m.isClosePausedRef.current){const Y=new CustomEvent(Uc);F.dispatchEvent(Y),m.isClosePausedRef.current=!0}},z=()=>{if(m.isClosePausedRef.current){const Y=new CustomEvent(zc);F.dispatchEvent(Y),m.isClosePausedRef.current=!1}},q=Y=>{!N.contains(Y.relatedTarget)&&z()},X=()=>{N.contains(document.activeElement)||z()};return N.addEventListener("focusin",A),N.addEventListener("focusout",q),N.addEventListener("pointermove",A),N.addEventListener("pointerleave",X),window.addEventListener("blur",A),window.addEventListener("focus",z),()=>{N.removeEventListener("focusin",A),N.removeEventListener("focusout",q),N.removeEventListener("pointermove",A),N.removeEventListener("pointerleave",X),window.removeEventListener("blur",A),window.removeEventListener("focus",z)}}},[R,m.isClosePausedRef]);const k=S.useCallback(({tabbingDirection:N})=>{const A=p().map(z=>{const q=z.ref.current,X=[q,...mx(q)];return N==="forwards"?X:X.reverse()});return(N==="forwards"?A.reverse():A).flat()},[p]);return S.useEffect(()=>{const N=x.current;if(N){const F=A=>{const z=A.altKey||A.ctrlKey||A.metaKey;if(A.key==="Tab"&&!z){const X=document.activeElement,Y=A.shiftKey;if(A.target===N&&Y){f.current?.focus();return}const Z=k({tabbingDirection:Y?"backwards":"forwards"}),se=Z.findIndex(Ne=>Ne===X);Tc(Z.slice(se+1))?A.preventDefault():Y?f.current?.focus():b.current?.focus()}};return N.addEventListener("keydown",F),()=>N.removeEventListener("keydown",F)}},[p,k]),h.jsxs(HS,{ref:y,role:"region","aria-label":u.replace("{hotkey}",D),tabIndex:-1,style:{pointerEvents:R?void 0:"none"},children:[R&&h.jsx(_c,{ref:f,onFocusFromOutsideViewport:()=>{const N=k({tabbingDirection:"forwards"});Tc(N)}}),h.jsx(nu.Slot,{scope:o,children:h.jsx(Yt.ol,{tabIndex:-1,...d,ref:T})}),R&&h.jsx(_c,{ref:b,onFocusFromOutsideViewport:()=>{const N=k({tabbingDirection:"backwards"});Tc(N)}})]})});jg.displayName=Ng;var Rg="ToastFocusProxy",_c=S.forwardRef((i,l)=>{const{__scopeToast:o,onFocusFromOutsideViewport:r,...u}=i,d=Ws(Rg,o);return h.jsx(eu,{tabIndex:0,...u,ref:l,style:{position:"fixed"},onFocus:m=>{const p=m.relatedTarget;!d.viewport?.contains(p)&&r()}})});_c.displayName=Rg;var bi="Toast",tx="toast.swipeStart",nx="toast.swipeMove",ax="toast.swipeCancel",lx="toast.swipeEnd",Mg=S.forwardRef((i,l)=>{const{forceMount:o,open:r,defaultOpen:u,onOpenChange:d,...m}=i,[p,y]=$S({prop:r,defaultProp:u??!0,onChange:d,caller:bi});return h.jsx(Ag,{present:o||p,children:h.jsx(ox,{open:p,...m,ref:l,onClose:()=>y(!1),onPause:da(i.onPause),onResume:da(i.onResume),onSwipeStart:vt(i.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:vt(i.onSwipeMove,f=>{const{x:b,y:x}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${b}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${x}px`)}),onSwipeCancel:vt(i.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:vt(i.onSwipeEnd,f=>{const{x:b,y:x}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${b}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${x}px`),y(!1)})})})});Mg.displayName=bi;var[ix,sx]=Eg(bi,{onClose(){}}),ox=S.forwardRef((i,l)=>{const{__scopeToast:o,type:r="foreground",duration:u,open:d,onClose:m,onEscapeKeyDown:p,onPause:y,onResume:f,onSwipeStart:b,onSwipeMove:x,onSwipeCancel:T,onSwipeEnd:D,...R}=i,k=Ws(bi,o),[N,F]=S.useState(null),A=ua(l,J=>F(J)),z=S.useRef(null),q=S.useRef(null),X=u||k.duration,Y=S.useRef(0),I=S.useRef(X),G=S.useRef(0),{onToastAdd:Z,onToastRemove:se}=k,Ne=da(()=>{N?.contains(document.activeElement)&&k.viewport?.focus(),m()}),Ee=S.useCallback(J=>{!J||J===1/0||(window.clearTimeout(G.current),Y.current=new Date().getTime(),G.current=window.setTimeout(Ne,J))},[Ne]);S.useEffect(()=>{const J=k.viewport;if(J){const ve=()=>{Ee(I.current),f?.()},U=()=>{const P=new Date().getTime()-Y.current;I.current=I.current-P,window.clearTimeout(G.current),y?.()};return J.addEventListener(Uc,U),J.addEventListener(zc,ve),()=>{J.removeEventListener(Uc,U),J.removeEventListener(zc,ve)}}},[k.viewport,X,y,f,Ee]),S.useEffect(()=>{d&&!k.isClosePausedRef.current&&Ee(X)},[d,X,k.isClosePausedRef,Ee]),S.useEffect(()=>(Z(),()=>se()),[Z,se]);const Me=S.useMemo(()=>N?Pg(N):null,[N]);return k.viewport?h.jsxs(h.Fragment,{children:[Me&&h.jsx(rx,{__scopeToast:o,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:Me}),h.jsx(ix,{scope:o,onClose:Ne,children:Zc.createPortal(h.jsx(nu.ItemSlot,{scope:o,children:h.jsx(FS,{asChild:!0,onEscapeKeyDown:vt(p,()=>{k.isFocusedToastEscapeKeyDownRef.current||Ne(),k.isFocusedToastEscapeKeyDownRef.current=!1}),children:h.jsx(Yt.li,{tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":k.swipeDirection,...R,ref:A,style:{userSelect:"none",touchAction:"none",...i.style},onKeyDown:vt(i.onKeyDown,J=>{J.key==="Escape"&&(p?.(J.nativeEvent),J.nativeEvent.defaultPrevented||(k.isFocusedToastEscapeKeyDownRef.current=!0,Ne()))}),onPointerDown:vt(i.onPointerDown,J=>{J.button===0&&(z.current={x:J.clientX,y:J.clientY})}),onPointerMove:vt(i.onPointerMove,J=>{if(!z.current)return;const ve=J.clientX-z.current.x,U=J.clientY-z.current.y,P=!!q.current,_=["left","right"].includes(k.swipeDirection),ie=["left","up"].includes(k.swipeDirection)?Math.min:Math.max,pe=_?ie(0,ve):0,he=_?0:ie(0,U),oe=J.pointerType==="touch"?10:2,ee={x:pe,y:he},ue={originalEvent:J,delta:ee};P?(q.current=ee,zs(nx,x,ue,{discrete:!1})):bh(ee,k.swipeDirection,oe)?(q.current=ee,zs(tx,b,ue,{discrete:!1}),J.target.setPointerCapture(J.pointerId)):(Math.abs(ve)>oe||Math.abs(U)>oe)&&(z.current=null)}),onPointerUp:vt(i.onPointerUp,J=>{const ve=q.current,U=J.target;if(U.hasPointerCapture(J.pointerId)&&U.releasePointerCapture(J.pointerId),q.current=null,z.current=null,ve){const P=J.currentTarget,_={originalEvent:J,delta:ve};bh(ve,k.swipeDirection,k.swipeThreshold)?zs(lx,D,_,{discrete:!0}):zs(ax,T,_,{discrete:!0}),P.addEventListener("click",ie=>ie.preventDefault(),{once:!0})}})})})}),k.viewport)})]}):null}),rx=i=>{const{__scopeToast:l,children:o,...r}=i,u=Ws(bi,l),[d,m]=S.useState(!1),[p,y]=S.useState(!1);return dx(()=>m(!0)),S.useEffect(()=>{const f=window.setTimeout(()=>y(!0),1e3);return()=>window.clearTimeout(f)},[]),p?null:h.jsx(Tg,{asChild:!0,children:h.jsx(eu,{...r,children:d&&h.jsxs(h.Fragment,{children:[u.label," ",o]})})})},cx="ToastTitle",Dg=S.forwardRef((i,l)=>{const{__scopeToast:o,...r}=i;return h.jsx(Yt.div,{...r,ref:l})});Dg.displayName=cx;var ux="ToastDescription",Og=S.forwardRef((i,l)=>{const{__scopeToast:o,...r}=i;return h.jsx(Yt.div,{...r,ref:l})});Og.displayName=ux;var Lg="ToastAction",Ug=S.forwardRef((i,l)=>{const{altText:o,...r}=i;return o.trim()?h.jsx(_g,{altText:o,asChild:!0,children:h.jsx(au,{...r,ref:l})}):(console.error(`Invalid prop \`altText\` supplied to \`${Lg}\`. Expected non-empty \`string\`.`),null)});Ug.displayName=Lg;var zg="ToastClose",au=S.forwardRef((i,l)=>{const{__scopeToast:o,...r}=i,u=sx(zg,o);return h.jsx(_g,{asChild:!0,children:h.jsx(Yt.button,{type:"button",...r,ref:l,onClick:vt(i.onClick,u.onClose)})})});au.displayName=zg;var _g=S.forwardRef((i,l)=>{const{__scopeToast:o,altText:r,...u}=i;return h.jsx(Yt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...u,ref:l})});function Pg(i){const l=[];return Array.from(i.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&l.push(r.textContent),fx(r)){const u=r.ariaHidden||r.hidden||r.style.display==="none",d=r.dataset.radixToastAnnounceExclude==="";if(!u)if(d){const m=r.dataset.radixToastAnnounceAlt;m&&l.push(m)}else l.push(...Pg(r))}}),l}function zs(i,l,o,{discrete:r}){const u=o.originalEvent.currentTarget,d=new CustomEvent(i,{bubbles:!0,cancelable:!0,detail:o});l&&u.addEventListener(i,l,{once:!0}),r?bg(u,d):u.dispatchEvent(d)}var bh=(i,l,o=0)=>{const r=Math.abs(i.x),u=Math.abs(i.y),d=r>u;return l==="left"||l==="right"?d&&r>o:!d&&u>o};function dx(i=()=>{}){const l=da(i);mi(()=>{let o=0,r=0;return o=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(l)),()=>{window.cancelAnimationFrame(o),window.cancelAnimationFrame(r)}},[l])}function fx(i){return i.nodeType===i.ELEMENT_NODE}function mx(i){const l=[],o=document.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)l.push(o.currentNode);return l}function Tc(i){const l=document.activeElement;return i.some(o=>o===l?!0:(o.focus(),document.activeElement!==l))}var hx=kg,Fg=jg,Hg=Mg,Bg=Dg,Vg=Og,qg=Ug,Gg=au;function Yg(i){var l,o,r="";if(typeof i=="string"||typeof i=="number")r+=i;else if(typeof i=="object")if(Array.isArray(i)){var u=i.length;for(l=0;l<u;l++)i[l]&&(o=Yg(i[l]))&&(r&&(r+=" "),r+=o)}else for(o in i)i[o]&&(r&&(r+=" "),r+=o);return r}function $g(){for(var i,l,o=0,r="",u=arguments.length;o<u;o++)(i=arguments[o])&&(l=Yg(i))&&(r&&(r+=" "),r+=l);return r}const Sh=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,xh=$g,gx=(i,l)=>o=>{var r;if(l?.variants==null)return xh(i,o?.class,o?.className);const{variants:u,defaultVariants:d}=l,m=Object.keys(u).map(f=>{const b=o?.[f],x=d?.[f];if(b===null)return null;const T=Sh(b)||Sh(x);return u[f][T]}),p=o&&Object.entries(o).reduce((f,b)=>{let[x,T]=b;return T===void 0||(f[x]=T),f},{}),y=l==null||(r=l.compoundVariants)===null||r===void 0?void 0:r.reduce((f,b)=>{let{class:x,className:T,...D}=b;return Object.entries(D).every(R=>{let[k,N]=R;return Array.isArray(N)?N.includes({...d,...p}[k]):{...d,...p}[k]===N})?[...f,x,T]:f},[]);return xh(i,m,y,o?.class,o?.className)},lu="-",px=i=>{const l=vx(i),{conflictingClassGroups:o,conflictingClassGroupModifiers:r}=i;return{getClassGroupId:m=>{const p=m.split(lu);return p[0]===""&&p.length!==1&&p.shift(),Kg(p,l)||yx(m)},getConflictingClassGroupIds:(m,p)=>{const y=o[m]||[];return p&&r[m]?[...y,...r[m]]:y}}},Kg=(i,l)=>{if(i.length===0)return l.classGroupId;const o=i[0],r=l.nextPart.get(o),u=r?Kg(i.slice(1),r):void 0;if(u)return u;if(l.validators.length===0)return;const d=i.join(lu);return l.validators.find(({validator:m})=>m(d))?.classGroupId},wh=/^\[(.+)\]$/,yx=i=>{if(wh.test(i)){const l=wh.exec(i)[1],o=l?.substring(0,l.indexOf(":"));if(o)return"arbitrary.."+o}},vx=i=>{const{theme:l,classGroups:o}=i,r={nextPart:new Map,validators:[]};for(const u in o)Pc(o[u],r,u,l);return r},Pc=(i,l,o,r)=>{i.forEach(u=>{if(typeof u=="string"){const d=u===""?l:Ch(l,u);d.classGroupId=o;return}if(typeof u=="function"){if(bx(u)){Pc(u(r),l,o,r);return}l.validators.push({validator:u,classGroupId:o});return}Object.entries(u).forEach(([d,m])=>{Pc(m,Ch(l,d),o,r)})})},Ch=(i,l)=>{let o=i;return l.split(lu).forEach(r=>{o.nextPart.has(r)||o.nextPart.set(r,{nextPart:new Map,validators:[]}),o=o.nextPart.get(r)}),o},bx=i=>i.isThemeGetter,Sx=i=>{if(i<1)return{get:()=>{},set:()=>{}};let l=0,o=new Map,r=new Map;const u=(d,m)=>{o.set(d,m),l++,l>i&&(l=0,r=o,o=new Map)};return{get(d){let m=o.get(d);if(m!==void 0)return m;if((m=r.get(d))!==void 0)return u(d,m),m},set(d,m){o.has(d)?o.set(d,m):u(d,m)}}},Fc="!",Hc=":",xx=Hc.length,wx=i=>{const{prefix:l,experimentalParseClassName:o}=i;let r=u=>{const d=[];let m=0,p=0,y=0,f;for(let R=0;R<u.length;R++){let k=u[R];if(m===0&&p===0){if(k===Hc){d.push(u.slice(y,R)),y=R+xx;continue}if(k==="/"){f=R;continue}}k==="["?m++:k==="]"?m--:k==="("?p++:k===")"&&p--}const b=d.length===0?u:u.substring(y),x=Cx(b),T=x!==b,D=f&&f>y?f-y:void 0;return{modifiers:d,hasImportantModifier:T,baseClassName:x,maybePostfixModifierPosition:D}};if(l){const u=l+Hc,d=r;r=m=>m.startsWith(u)?d(m.substring(u.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:m,maybePostfixModifierPosition:void 0}}if(o){const u=r;r=d=>o({className:d,parseClassName:u})}return r},Cx=i=>i.endsWith(Fc)?i.substring(0,i.length-1):i.startsWith(Fc)?i.substring(1):i,Tx=i=>{const l=Object.fromEntries(i.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const u=[];let d=[];return r.forEach(m=>{m[0]==="["||l[m]?(u.push(...d.sort(),m),d=[]):d.push(m)}),u.push(...d.sort()),u}},Ax=i=>({cache:Sx(i.cacheSize),parseClassName:wx(i),sortModifiers:Tx(i),...px(i)}),Ex=/\s+/,kx=(i,l)=>{const{parseClassName:o,getClassGroupId:r,getConflictingClassGroupIds:u,sortModifiers:d}=l,m=[],p=i.trim().split(Ex);let y="";for(let f=p.length-1;f>=0;f-=1){const b=p[f],{isExternal:x,modifiers:T,hasImportantModifier:D,baseClassName:R,maybePostfixModifierPosition:k}=o(b);if(x){y=b+(y.length>0?" "+y:y);continue}let N=!!k,F=r(N?R.substring(0,k):R);if(!F){if(!N){y=b+(y.length>0?" "+y:y);continue}if(F=r(R),!F){y=b+(y.length>0?" "+y:y);continue}N=!1}const A=d(T).join(":"),z=D?A+Fc:A,q=z+F;if(m.includes(q))continue;m.push(q);const X=u(F,N);for(let Y=0;Y<X.length;++Y){const I=X[Y];m.push(z+I)}y=b+(y.length>0?" "+y:y)}return y};function Nx(){let i=0,l,o,r="";for(;i<arguments.length;)(l=arguments[i++])&&(o=Qg(l))&&(r&&(r+=" "),r+=o);return r}const Qg=i=>{if(typeof i=="string")return i;let l,o="";for(let r=0;r<i.length;r++)i[r]&&(l=Qg(i[r]))&&(o&&(o+=" "),o+=l);return o};function jx(i,...l){let o,r,u,d=m;function m(y){const f=l.reduce((b,x)=>x(b),i());return o=Ax(f),r=o.cache.get,u=o.cache.set,d=p,p(y)}function p(y){const f=r(y);if(f)return f;const b=kx(y,o);return u(y,b),b}return function(){return d(Nx.apply(null,arguments))}}const Ve=i=>{const l=o=>o[i]||[];return l.isThemeGetter=!0,l},Xg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ig=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Rx=/^\d+\/\d+$/,Mx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ox=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Lx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ux=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Za=i=>Rx.test(i),ce=i=>!!i&&!Number.isNaN(Number(i)),Hn=i=>!!i&&Number.isInteger(Number(i)),Ac=i=>i.endsWith("%")&&ce(i.slice(0,-1)),rn=i=>Mx.test(i),zx=()=>!0,_x=i=>Dx.test(i)&&!Ox.test(i),Zg=()=>!1,Px=i=>Lx.test(i),Fx=i=>Ux.test(i),Hx=i=>!K(i)&&!Q(i),Bx=i=>il(i,ep,Zg),K=i=>Xg.test(i),oa=i=>il(i,tp,_x),Ec=i=>il(i,$x,ce),Th=i=>il(i,Jg,Zg),Vx=i=>il(i,Wg,Fx),_s=i=>il(i,np,Px),Q=i=>Ig.test(i),ri=i=>sl(i,tp),qx=i=>sl(i,Kx),Ah=i=>sl(i,Jg),Gx=i=>sl(i,ep),Yx=i=>sl(i,Wg),Ps=i=>sl(i,np,!0),il=(i,l,o)=>{const r=Xg.exec(i);return r?r[1]?l(r[1]):o(r[2]):!1},sl=(i,l,o=!1)=>{const r=Ig.exec(i);return r?r[1]?l(r[1]):o:!1},Jg=i=>i==="position"||i==="percentage",Wg=i=>i==="image"||i==="url",ep=i=>i==="length"||i==="size"||i==="bg-size",tp=i=>i==="length",$x=i=>i==="number",Kx=i=>i==="family-name",np=i=>i==="shadow",Qx=()=>{const i=Ve("color"),l=Ve("font"),o=Ve("text"),r=Ve("font-weight"),u=Ve("tracking"),d=Ve("leading"),m=Ve("breakpoint"),p=Ve("container"),y=Ve("spacing"),f=Ve("radius"),b=Ve("shadow"),x=Ve("inset-shadow"),T=Ve("text-shadow"),D=Ve("drop-shadow"),R=Ve("blur"),k=Ve("perspective"),N=Ve("aspect"),F=Ve("ease"),A=Ve("animate"),z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],X=()=>[...q(),Q,K],Y=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto","contain","none"],G=()=>[Q,K,y],Z=()=>[Za,"full","auto",...G()],se=()=>[Hn,"none","subgrid",Q,K],Ne=()=>["auto",{span:["full",Hn,Q,K]},Hn,Q,K],Ee=()=>[Hn,"auto",Q,K],Me=()=>["auto","min","max","fr",Q,K],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ve=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...G()],P=()=>[Za,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...G()],_=()=>[i,Q,K],ie=()=>[...q(),Ah,Th,{position:[Q,K]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],he=()=>["auto","cover","contain",Gx,Bx,{size:[Q,K]}],oe=()=>[Ac,ri,oa],ee=()=>["","none","full",f,Q,K],ue=()=>["",ce,ri,oa],tt=()=>["solid","dashed","dotted","double"],Rt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],De=()=>[ce,Ac,Ah,Th],Bn=()=>["","none",R,Q,K],Mt=()=>["none",ce,Q,K],fn=()=>["none",ce,Q,K],mn=()=>[ce,Q,K],hn=()=>[Za,"full",...G()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rn],breakpoint:[rn],color:[zx],container:[rn],"drop-shadow":[rn],ease:["in","out","in-out"],font:[Hx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rn],shadow:[rn],spacing:["px",ce],text:[rn],"text-shadow":[rn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Za,K,Q,N]}],container:["container"],columns:[{columns:[ce,K,Q,p]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:X()}],overflow:[{overflow:Y()}],"overflow-x":[{"overflow-x":Y()}],"overflow-y":[{"overflow-y":Y()}],overscroll:[{overscroll:I()}],"overscroll-x":[{"overscroll-x":I()}],"overscroll-y":[{"overscroll-y":I()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{start:Z()}],end:[{end:Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[Hn,"auto",Q,K]}],basis:[{basis:[Za,"full","auto",p,...G()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ce,Za,"auto","initial","none",K]}],grow:[{grow:["",ce,Q,K]}],shrink:[{shrink:["",ce,Q,K]}],order:[{order:[Hn,"first","last","none",Q,K]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:Ne()}],"col-start":[{"col-start":Ee()}],"col-end":[{"col-end":Ee()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:Ne()}],"row-start":[{"row-start":Ee()}],"row-end":[{"row-end":Ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Me()}],"auto-rows":[{"auto-rows":Me()}],gap:[{gap:G()}],"gap-x":[{"gap-x":G()}],"gap-y":[{"gap-y":G()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...ve(),"normal"]}],"justify-self":[{"justify-self":["auto",...ve()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...ve(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ve(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...ve(),"baseline"]}],"place-self":[{"place-self":["auto",...ve()]}],p:[{p:G()}],px:[{px:G()}],py:[{py:G()}],ps:[{ps:G()}],pe:[{pe:G()}],pt:[{pt:G()}],pr:[{pr:G()}],pb:[{pb:G()}],pl:[{pl:G()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":G()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":G()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],w:[{w:[p,"screen",...P()]}],"min-w":[{"min-w":[p,"screen","none",...P()]}],"max-w":[{"max-w":[p,"screen","none","prose",{screen:[m]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",o,ri,oa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Q,Ec]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ac,K]}],"font-family":[{font:[qx,K,l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[u,Q,K]}],"line-clamp":[{"line-clamp":[ce,"none",Q,Ec]}],leading:[{leading:[d,...G()]}],"list-image":[{"list-image":["none",Q,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...tt(),"wavy"]}],"text-decoration-thickness":[{decoration:[ce,"from-font","auto",Q,oa]}],"text-decoration-color":[{decoration:_()}],"underline-offset":[{"underline-offset":[ce,"auto",Q,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:G()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ie()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:he()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Hn,Q,K],radial:["",Q,K],conic:[Hn,Q,K]},Yx,Vx]}],"bg-color":[{bg:_()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...tt(),"hidden","none"]}],"divide-style":[{divide:[...tt(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...tt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ce,Q,K]}],"outline-w":[{outline:["",ce,ri,oa]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",b,Ps,_s]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",x,Ps,_s]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[ce,oa]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",T,Ps,_s]}],"text-shadow-color":[{"text-shadow":_()}],opacity:[{opacity:[ce,Q,K]}],"mix-blend":[{"mix-blend":[...Rt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Rt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":De()}],"mask-image-linear-to-pos":[{"mask-linear-to":De()}],"mask-image-linear-from-color":[{"mask-linear-from":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"mask-image-t-from-pos":[{"mask-t-from":De()}],"mask-image-t-to-pos":[{"mask-t-to":De()}],"mask-image-t-from-color":[{"mask-t-from":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"mask-image-r-from-pos":[{"mask-r-from":De()}],"mask-image-r-to-pos":[{"mask-r-to":De()}],"mask-image-r-from-color":[{"mask-r-from":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"mask-image-b-from-pos":[{"mask-b-from":De()}],"mask-image-b-to-pos":[{"mask-b-to":De()}],"mask-image-b-from-color":[{"mask-b-from":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"mask-image-l-from-pos":[{"mask-l-from":De()}],"mask-image-l-to-pos":[{"mask-l-to":De()}],"mask-image-l-from-color":[{"mask-l-from":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"mask-image-x-from-pos":[{"mask-x-from":De()}],"mask-image-x-to-pos":[{"mask-x-to":De()}],"mask-image-x-from-color":[{"mask-x-from":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"mask-image-y-from-pos":[{"mask-y-from":De()}],"mask-image-y-to-pos":[{"mask-y-to":De()}],"mask-image-y-from-color":[{"mask-y-from":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"mask-image-radial":[{"mask-radial":[Q,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":De()}],"mask-image-radial-to-pos":[{"mask-radial-to":De()}],"mask-image-radial-from-color":[{"mask-radial-from":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":q()}],"mask-image-conic-pos":[{"mask-conic":[ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":De()}],"mask-image-conic-to-pos":[{"mask-conic-to":De()}],"mask-image-conic-from-color":[{"mask-conic-from":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ie()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:he()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,K]}],filter:[{filter:["","none",Q,K]}],blur:[{blur:Bn()}],brightness:[{brightness:[ce,Q,K]}],contrast:[{contrast:[ce,Q,K]}],"drop-shadow":[{"drop-shadow":["","none",D,Ps,_s]}],"drop-shadow-color":[{"drop-shadow":_()}],grayscale:[{grayscale:["",ce,Q,K]}],"hue-rotate":[{"hue-rotate":[ce,Q,K]}],invert:[{invert:["",ce,Q,K]}],saturate:[{saturate:[ce,Q,K]}],sepia:[{sepia:["",ce,Q,K]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,K]}],"backdrop-blur":[{"backdrop-blur":Bn()}],"backdrop-brightness":[{"backdrop-brightness":[ce,Q,K]}],"backdrop-contrast":[{"backdrop-contrast":[ce,Q,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ce,Q,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ce,Q,K]}],"backdrop-invert":[{"backdrop-invert":["",ce,Q,K]}],"backdrop-opacity":[{"backdrop-opacity":[ce,Q,K]}],"backdrop-saturate":[{"backdrop-saturate":[ce,Q,K]}],"backdrop-sepia":[{"backdrop-sepia":["",ce,Q,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":G()}],"border-spacing-x":[{"border-spacing-x":G()}],"border-spacing-y":[{"border-spacing-y":G()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ce,"initial",Q,K]}],ease:[{ease:["linear","initial",F,Q,K]}],delay:[{delay:[ce,Q,K]}],animate:[{animate:["none",A,Q,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,Q,K]}],"perspective-origin":[{"perspective-origin":X()}],rotate:[{rotate:Mt()}],"rotate-x":[{"rotate-x":Mt()}],"rotate-y":[{"rotate-y":Mt()}],"rotate-z":[{"rotate-z":Mt()}],scale:[{scale:fn()}],"scale-x":[{"scale-x":fn()}],"scale-y":[{"scale-y":fn()}],"scale-z":[{"scale-z":fn()}],"scale-3d":["scale-3d"],skew:[{skew:mn()}],"skew-x":[{"skew-x":mn()}],"skew-y":[{"skew-y":mn()}],transform:[{transform:[Q,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:X()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:hn()}],"translate-x":[{"translate-x":hn()}],"translate-y":[{"translate-y":hn()}],"translate-z":[{"translate-z":hn()}],"translate-none":["translate-none"],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":G()}],"scroll-mx":[{"scroll-mx":G()}],"scroll-my":[{"scroll-my":G()}],"scroll-ms":[{"scroll-ms":G()}],"scroll-me":[{"scroll-me":G()}],"scroll-mt":[{"scroll-mt":G()}],"scroll-mr":[{"scroll-mr":G()}],"scroll-mb":[{"scroll-mb":G()}],"scroll-ml":[{"scroll-ml":G()}],"scroll-p":[{"scroll-p":G()}],"scroll-px":[{"scroll-px":G()}],"scroll-py":[{"scroll-py":G()}],"scroll-ps":[{"scroll-ps":G()}],"scroll-pe":[{"scroll-pe":G()}],"scroll-pt":[{"scroll-pt":G()}],"scroll-pr":[{"scroll-pr":G()}],"scroll-pb":[{"scroll-pb":G()}],"scroll-pl":[{"scroll-pl":G()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q,K]}],fill:[{fill:["none",..._()]}],"stroke-w":[{stroke:[ce,ri,oa,Ec]}],stroke:[{stroke:["none",..._()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Xx=jx(Qx);function ol(...i){return Xx($g(i))}const Ix=hx,ap=S.forwardRef(({className:i,...l},o)=>h.jsx(Fg,{ref:o,className:ol("fixed top-4 right-4 z-[100] flex max-h-screen w-full flex-col gap-2 p-4 md:max-w-[420px]",i),...l}));ap.displayName=Fg.displayName;const Zx=gx("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),lp=S.forwardRef(({className:i,variant:l,...o},r)=>h.jsx(Hg,{ref:r,className:ol(Zx({variant:l}),i),...o}));lp.displayName=Hg.displayName;const Jx=S.forwardRef(({className:i,...l},o)=>h.jsx(qg,{ref:o,className:ol("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",i),...l}));Jx.displayName=qg.displayName;const ip=S.forwardRef(({className:i,...l},o)=>h.jsx(Gg,{ref:o,className:ol("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",i),"toast-close":"",...l,children:h.jsx(Qs,{className:"h-4 w-4"})}));ip.displayName=Gg.displayName;const sp=S.forwardRef(({className:i,...l},o)=>h.jsx(Bg,{ref:o,className:ol("text-sm font-semibold",i),...l}));sp.displayName=Bg.displayName;const op=S.forwardRef(({className:i,...l},o)=>h.jsx(Vg,{ref:o,className:ol("text-sm opacity-90",i),...l}));op.displayName=Vg.displayName;function Wx(){const{toasts:i}=Z0();return h.jsxs(Ix,{children:[i.map(function({id:l,title:o,description:r,action:u,...d}){return h.jsxs(lp,{...d,children:[h.jsxs("div",{className:"grid gap-1",children:[o&&h.jsx(sp,{children:o}),r&&h.jsx(op,{children:r})]}),u,h.jsx(ip,{})]},l)}),h.jsx(ap,{})]})}const ew=S.lazy(()=>rt(()=>import("./DashboardPage-B3o4AYFT.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12])).then(i=>({default:i.DashboardPage}))),tw=S.lazy(()=>rt(()=>import("./AgentsPage-Dqb_aqAA.js"),__vite__mapDeps([13,1,2,3,14,4,5,6,7,8,9,15,16,17])).then(i=>({default:i.AgentsPage}))),nw=S.lazy(()=>rt(()=>import("./ProjectsPage-D399IM0c.js"),__vite__mapDeps([18,1,2,3,5,6,7,8,9,19,4,16,14,12,20,17,21])).then(i=>({default:i.ProjectsPage}))),aw=S.lazy(()=>rt(()=>import("./McpPage-CY3tYiqj.js"),__vite__mapDeps([22,1,2,3,5,6,7,8,9,14])).then(i=>({default:i.McpPage}))),lw=S.lazy(()=>rt(()=>import("./SettingsLayout-CL_K-lzJ.js"),__vite__mapDeps([23,1,2,3,5,6,7,8])).then(i=>({default:i.SettingsLayout}))),Eh=S.lazy(()=>rt(()=>import("./GeneralSettingsPage-CBN_de-V.js"),__vite__mapDeps([24,1,2,3,6,7,5,8])).then(i=>({default:i.GeneralSettingsPage}))),iw=S.lazy(()=>rt(()=>import("./VersionSettingsPage-74Q-LVgA.js"),__vite__mapDeps([25,1,2,3,5,6,7,8,9,11,16])).then(i=>({default:i.VersionSettingsPage}))),sw=S.lazy(()=>rt(()=>import("./MemorySettingsPage-DGxrok5K.js"),__vite__mapDeps([26,1,2,3,5,6,7,8,9])).then(i=>({default:i.MemorySettingsPage}))),ow=S.lazy(()=>rt(()=>import("./SubagentsPage-Chbhj8p2.js"),__vite__mapDeps([27,1,2,3,14,21,5,6,7,8,9,17,19])).then(i=>({default:i.SubagentsPage}))),rw=S.lazy(()=>rt(()=>import("./CommandsPage-Bzavq0Ec.js"),__vite__mapDeps([28,1,2,3,14,12,5,6,7,8,9,20,17,19])).then(i=>({default:i.CommandsPage}))),cw=S.lazy(()=>rt(()=>import("./ChatPage-L8Paywyc.js"),__vite__mapDeps([29,1,2,3,7,12,5,6,8,9,4,11,10,17,15,16,30])).then(i=>({default:i.ChatPage}))),uw=S.lazy(()=>rt(()=>import("./LandingPage-Dl4ioKos.js"),__vite__mapDeps([31,1,2,3,6,7,5,8])).then(i=>({default:i.default}))),dw=S.lazy(()=>rt(()=>import("./LoginPage-4QqRdiSi.js"),__vite__mapDeps([32,1,2,3,7,6,5,8])).then(i=>({default:i.LoginPage}))),fw=S.lazy(()=>rt(()=>import("./ToastTestPage-DT4wuN5C.js"),__vite__mapDeps([33,1,2,3,5,6,7,8])).then(i=>({default:i.ToastTestPage}))),mw=()=>h.jsx("div",{className:"flex items-center justify-center h-64",children:h.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-gray-900"})}),hw=new Yv({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}}),gw=()=>(S.useEffect(()=>{(()=>{const l=localStorage.getItem("theme")||"auto";if(l==="dark")document.documentElement.classList.add("dark");else if(l==="light")document.documentElement.classList.remove("dark");else{const o=window.matchMedia("(prefers-color-scheme: dark)");o.matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark");const r=u=>{localStorage.getItem("theme")==="auto"&&(u.matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))};return o.addEventListener("change",r),()=>o.removeEventListener("change",r)}})()},[]),h.jsx(_0,{children:h.jsx(S.Suspense,{fallback:h.jsx(mw,{}),children:h.jsxs(m0,{children:[h.jsx(Ie,{path:"/",element:h.jsx(uw,{})}),h.jsx(Ie,{path:"/login",element:h.jsx(dw,{})}),h.jsx(Ie,{path:"/chat/:agentId",element:h.jsx(Fn,{children:h.jsx(cw,{})})}),h.jsx(Ie,{path:"/dashboard",element:h.jsx(Fn,{children:h.jsx(sa,{children:h.jsx(ew,{})})})}),h.jsx(Ie,{path:"/agents",element:h.jsx(Fn,{children:h.jsx(sa,{children:h.jsx(tw,{})})})}),h.jsx(Ie,{path:"/projects",element:h.jsx(Fn,{children:h.jsx(sa,{children:h.jsx(nw,{})})})}),h.jsx(Ie,{path:"/mcp",element:h.jsx(Fn,{children:h.jsx(sa,{children:h.jsx(aw,{})})})}),h.jsxs(Ie,{path:"/settings",element:h.jsx(Fn,{children:h.jsx(sa,{children:h.jsx(lw,{})})}),children:[h.jsx(Ie,{index:!0,element:h.jsx(Eh,{})}),h.jsx(Ie,{path:"general",element:h.jsx(Eh,{})}),h.jsx(Ie,{path:"versions",element:h.jsx(iw,{})}),h.jsx(Ie,{path:"memory",element:h.jsx(sw,{})}),h.jsx(Ie,{path:"commands",element:h.jsx(rw,{})}),h.jsx(Ie,{path:"subagents",element:h.jsx(ow,{})})]}),h.jsx(Ie,{path:"/toast-test",element:h.jsx(Fn,{children:h.jsx(sa,{children:h.jsx(fw,{})})})}),h.jsx(Ie,{path:"*",element:h.jsx(Fn,{children:h.jsx(sa,{children:h.jsx("div",{className:"p-4 text-center",children:"Page not found"})})})})]})})}));function pw(){return h.jsx($v,{client:hw,children:h.jsxs(lS,{children:[h.jsx(gw,{}),h.jsx(Wx,{})]})})}const le=i=>typeof i=="string",ci=()=>{let i,l;const o=new Promise((r,u)=>{i=r,l=u});return o.resolve=i,o.reject=l,o},kh=i=>i==null?"":""+i,yw=(i,l,o)=>{i.forEach(r=>{l[r]&&(o[r]=l[r])})},vw=/###/g,Nh=i=>i&&i.indexOf("###")>-1?i.replace(vw,"."):i,jh=i=>!i||le(i),di=(i,l,o)=>{const r=le(l)?l.split("."):l;let u=0;for(;u<r.length-1;){if(jh(i))return{};const d=Nh(r[u]);!i[d]&&o&&(i[d]=new o),Object.prototype.hasOwnProperty.call(i,d)?i=i[d]:i={},++u}return jh(i)?{}:{obj:i,k:Nh(r[u])}},Rh=(i,l,o)=>{const{obj:r,k:u}=di(i,l,Object);if(r!==void 0||l.length===1){r[u]=o;return}let d=l[l.length-1],m=l.slice(0,l.length-1),p=di(i,m,Object);for(;p.obj===void 0&&m.length;)d=`${m[m.length-1]}.${d}`,m=m.slice(0,m.length-1),p=di(i,m,Object),p?.obj&&typeof p.obj[`${p.k}.${d}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${d}`]=o},bw=(i,l,o,r)=>{const{obj:u,k:d}=di(i,l,Object);u[d]=u[d]||[],u[d].push(o)},Ys=(i,l)=>{const{obj:o,k:r}=di(i,l);if(o&&Object.prototype.hasOwnProperty.call(o,r))return o[r]},Sw=(i,l,o)=>{const r=Ys(i,o);return r!==void 0?r:Ys(l,o)},rp=(i,l,o)=>{for(const r in l)r!=="__proto__"&&r!=="constructor"&&(r in i?le(i[r])||i[r]instanceof String||le(l[r])||l[r]instanceof String?o&&(i[r]=l[r]):rp(i[r],l[r],o):i[r]=l[r]);return i},Ja=i=>i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var xw={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ww=i=>le(i)?i.replace(/[&<>"'\/]/g,l=>xw[l]):i;class Cw{constructor(l){this.capacity=l,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(l){const o=this.regExpMap.get(l);if(o!==void 0)return o;const r=new RegExp(l);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(l,r),this.regExpQueue.push(l),r}}const Tw=[" ",",","?","!",";"],Aw=new Cw(20),Ew=(i,l,o)=>{l=l||"",o=o||"";const r=Tw.filter(m=>l.indexOf(m)<0&&o.indexOf(m)<0);if(r.length===0)return!0;const u=Aw.getRegExp(`(${r.map(m=>m==="?"?"\\?":m).join("|")})`);let d=!u.test(i);if(!d){const m=i.indexOf(o);m>0&&!u.test(i.substring(0,m))&&(d=!0)}return d},Bc=(i,l,o=".")=>{if(!i)return;if(i[l])return Object.prototype.hasOwnProperty.call(i,l)?i[l]:void 0;const r=l.split(o);let u=i;for(let d=0;d<r.length;){if(!u||typeof u!="object")return;let m,p="";for(let y=d;y<r.length;++y)if(y!==d&&(p+=o),p+=r[y],m=u[p],m!==void 0){if(["string","number","boolean"].indexOf(typeof m)>-1&&y<r.length-1)continue;d+=y-d+1;break}u=m}return u},hi=i=>i?.replace("_","-"),kw={type:"logger",log(i){this.output("log",i)},warn(i){this.output("warn",i)},error(i){this.output("error",i)},output(i,l){console?.[i]?.apply?.(console,l)}};class $s{constructor(l,o={}){this.init(l,o)}init(l,o={}){this.prefix=o.prefix||"i18next:",this.logger=l||kw,this.options=o,this.debug=o.debug}log(...l){return this.forward(l,"log","",!0)}warn(...l){return this.forward(l,"warn","",!0)}error(...l){return this.forward(l,"error","")}deprecate(...l){return this.forward(l,"warn","WARNING DEPRECATED: ",!0)}forward(l,o,r,u){return u&&!this.debug?null:(le(l[0])&&(l[0]=`${r}${this.prefix} ${l[0]}`),this.logger[o](l))}create(l){return new $s(this.logger,{prefix:`${this.prefix}:${l}:`,...this.options})}clone(l){return l=l||this.options,l.prefix=l.prefix||this.prefix,new $s(this.logger,l)}}var Gt=new $s;class eo{constructor(){this.observers={}}on(l,o){return l.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const u=this.observers[r].get(o)||0;this.observers[r].set(o,u+1)}),this}off(l,o){if(this.observers[l]){if(!o){delete this.observers[l];return}this.observers[l].delete(o)}}emit(l,...o){this.observers[l]&&Array.from(this.observers[l].entries()).forEach(([u,d])=>{for(let m=0;m<d;m++)u(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([u,d])=>{for(let m=0;m<d;m++)u.apply(u,[l,...o])})}}class Mh extends eo{constructor(l,o={ns:["translation"],defaultNS:"translation"}){super(),this.data=l||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(l){this.options.ns.indexOf(l)<0&&this.options.ns.push(l)}removeNamespaces(l){const o=this.options.ns.indexOf(l);o>-1&&this.options.ns.splice(o,1)}getResource(l,o,r,u={}){const d=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,m=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;l.indexOf(".")>-1?p=l.split("."):(p=[l,o],r&&(Array.isArray(r)?p.push(...r):le(r)&&d?p.push(...r.split(d)):p.push(r)));const y=Ys(this.data,p);return!y&&!o&&!r&&l.indexOf(".")>-1&&(l=p[0],o=p[1],r=p.slice(2).join(".")),y||!m||!le(r)?y:Bc(this.data?.[l]?.[o],r,d)}addResource(l,o,r,u,d={silent:!1}){const m=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let p=[l,o];r&&(p=p.concat(m?r.split(m):r)),l.indexOf(".")>-1&&(p=l.split("."),u=o,o=p[1]),this.addNamespaces(o),Rh(this.data,p,u),d.silent||this.emit("added",l,o,r,u)}addResources(l,o,r,u={silent:!1}){for(const d in r)(le(r[d])||Array.isArray(r[d]))&&this.addResource(l,o,d,r[d],{silent:!0});u.silent||this.emit("added",l,o,r)}addResourceBundle(l,o,r,u,d,m={silent:!1,skipCopy:!1}){let p=[l,o];l.indexOf(".")>-1&&(p=l.split("."),u=r,r=o,o=p[1]),this.addNamespaces(o);let y=Ys(this.data,p)||{};m.skipCopy||(r=JSON.parse(JSON.stringify(r))),u?rp(y,r,d):y={...y,...r},Rh(this.data,p,y),m.silent||this.emit("added",l,o,r)}removeResourceBundle(l,o){this.hasResourceBundle(l,o)&&delete this.data[l][o],this.removeNamespaces(o),this.emit("removed",l,o)}hasResourceBundle(l,o){return this.getResource(l,o)!==void 0}getResourceBundle(l,o){return o||(o=this.options.defaultNS),this.getResource(l,o)}getDataByLanguage(l){return this.data[l]}hasLanguageSomeTranslations(l){const o=this.getDataByLanguage(l);return!!(o&&Object.keys(o)||[]).find(u=>o[u]&&Object.keys(o[u]).length>0)}toJSON(){return this.data}}var cp={processors:{},addPostProcessor(i){this.processors[i.name]=i},handle(i,l,o,r,u){return i.forEach(d=>{l=this.processors[d]?.process(l,o,r,u)??l}),l}};const up=Symbol("i18next/PATH_KEY");function Nw(){const i=[],l=Object.create(null);let o;return l.get=(r,u)=>(o?.revoke?.(),u===up?i:(i.push(u),o=Proxy.revocable(r,l),o.proxy)),Proxy.revocable(Object.create(null),l).proxy}function Vc(i,l){const{[up]:o}=i(Nw());return o.join(l?.keySeparator??".")}const Dh={},Oh=i=>!le(i)&&typeof i!="boolean"&&typeof i!="number";class Ks extends eo{constructor(l,o={}){super(),yw(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],l,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Gt.create("translator")}changeLanguage(l){l&&(this.language=l)}exists(l,o={interpolation:{}}){const r={...o};return l==null?!1:this.resolve(l,r)?.res!==void 0}extractFromKey(l,o){let r=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let d=o.ns||this.options.defaultNS||[];const m=r&&l.indexOf(r)>-1,p=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!Ew(l,r,u);if(m&&!p){const y=l.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:l,namespaces:le(d)?[d]:d};const f=l.split(r);(r!==u||r===u&&this.options.ns.indexOf(f[0])>-1)&&(d=f.shift()),l=f.join(u)}return{key:l,namespaces:le(d)?[d]:d}}translate(l,o,r){let u=typeof o=="object"?{...o}:o;if(typeof u!="object"&&this.options.overloadTranslationOptionHandler&&(u=this.options.overloadTranslationOptionHandler(arguments)),typeof u=="object"&&(u={...u}),u||(u={}),l==null)return"";typeof l=="function"&&(l=Vc(l,{...this.options,...u})),Array.isArray(l)||(l=[String(l)]);const d=u.returnDetails!==void 0?u.returnDetails:this.options.returnDetails,m=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,{key:p,namespaces:y}=this.extractFromKey(l[l.length-1],u),f=y[y.length-1];let b=u.nsSeparator!==void 0?u.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const x=u.lng||this.language,T=u.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(x?.toLowerCase()==="cimode")return T?d?{res:`${f}${b}${p}`,usedKey:p,exactUsedKey:p,usedLng:x,usedNS:f,usedParams:this.getUsedParamsDetails(u)}:`${f}${b}${p}`:d?{res:p,usedKey:p,exactUsedKey:p,usedLng:x,usedNS:f,usedParams:this.getUsedParamsDetails(u)}:p;const D=this.resolve(l,u);let R=D?.res;const k=D?.usedKey||p,N=D?.exactUsedKey||p,F=["[object Number]","[object Function]","[object RegExp]"],A=u.joinArrays!==void 0?u.joinArrays:this.options.joinArrays,z=!this.i18nFormat||this.i18nFormat.handleAsObject,q=u.count!==void 0&&!le(u.count),X=Ks.hasDefaultValue(u),Y=q?this.pluralResolver.getSuffix(x,u.count,u):"",I=u.ordinal&&q?this.pluralResolver.getSuffix(x,u.count,{ordinal:!1}):"",G=q&&!u.ordinal&&u.count===0,Z=G&&u[`defaultValue${this.options.pluralSeparator}zero`]||u[`defaultValue${Y}`]||u[`defaultValue${I}`]||u.defaultValue;let se=R;z&&!R&&X&&(se=Z);const Ne=Oh(se),Ee=Object.prototype.toString.apply(se);if(z&&se&&Ne&&F.indexOf(Ee)<0&&!(le(A)&&Array.isArray(se))){if(!u.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const Me=this.options.returnedObjectHandler?this.options.returnedObjectHandler(k,se,{...u,ns:y}):`key '${p} (${this.language})' returned an object instead of string.`;return d?(D.res=Me,D.usedParams=this.getUsedParamsDetails(u),D):Me}if(m){const Me=Array.isArray(se),J=Me?[]:{},ve=Me?N:k;for(const U in se)if(Object.prototype.hasOwnProperty.call(se,U)){const P=`${ve}${m}${U}`;X&&!R?J[U]=this.translate(P,{...u,defaultValue:Oh(Z)?Z[U]:void 0,joinArrays:!1,ns:y}):J[U]=this.translate(P,{...u,joinArrays:!1,ns:y}),J[U]===P&&(J[U]=se[U])}R=J}}else if(z&&le(A)&&Array.isArray(R))R=R.join(A),R&&(R=this.extendTranslation(R,l,u,r));else{let Me=!1,J=!1;!this.isValidLookup(R)&&X&&(Me=!0,R=Z),this.isValidLookup(R)||(J=!0,R=p);const U=(u.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&J?void 0:R,P=X&&Z!==R&&this.options.updateMissing;if(J||Me||P){if(this.logger.log(P?"updateKey":"missingKey",x,f,p,P?Z:R),m){const he=this.resolve(p,{...u,keySeparator:!1});he&&he.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let _=[];const ie=this.languageUtils.getFallbackCodes(this.options.fallbackLng,u.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ie&&ie[0])for(let he=0;he<ie.length;he++)_.push(ie[he]);else this.options.saveMissingTo==="all"?_=this.languageUtils.toResolveHierarchy(u.lng||this.language):_.push(u.lng||this.language);const pe=(he,oe,ee)=>{const ue=X&&ee!==R?ee:U;this.options.missingKeyHandler?this.options.missingKeyHandler(he,f,oe,ue,P,u):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(he,f,oe,ue,P,u),this.emit("missingKey",he,f,oe,R)};this.options.saveMissing&&(this.options.saveMissingPlurals&&q?_.forEach(he=>{const oe=this.pluralResolver.getSuffixes(he,u);G&&u[`defaultValue${this.options.pluralSeparator}zero`]&&oe.indexOf(`${this.options.pluralSeparator}zero`)<0&&oe.push(`${this.options.pluralSeparator}zero`),oe.forEach(ee=>{pe([he],p+ee,u[`defaultValue${ee}`]||Z)})}):pe(_,p,Z))}R=this.extendTranslation(R,l,u,D,r),J&&R===p&&this.options.appendNamespaceToMissingKey&&(R=`${f}${b}${p}`),(J||Me)&&this.options.parseMissingKeyHandler&&(R=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${f}${b}${p}`:p,Me?R:void 0,u))}return d?(D.res=R,D.usedParams=this.getUsedParamsDetails(u),D):R}extendTranslation(l,o,r,u,d){if(this.i18nFormat?.parse)l=this.i18nFormat.parse(l,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const y=le(l)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(y){const x=l.match(this.interpolator.nestingRegexp);f=x&&x.length}let b=r.replace&&!le(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(b={...this.options.interpolation.defaultVariables,...b}),l=this.interpolator.interpolate(l,b,r.lng||this.language||u.usedLng,r),y){const x=l.match(this.interpolator.nestingRegexp),T=x&&x.length;f<T&&(r.nest=!1)}!r.lng&&u&&u.res&&(r.lng=this.language||u.usedLng),r.nest!==!1&&(l=this.interpolator.nest(l,(...x)=>d?.[0]===x[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${x[0]} in key: ${o[0]}`),null):this.translate(...x,o),r)),r.interpolation&&this.interpolator.reset()}const m=r.postProcess||this.options.postProcess,p=le(m)?[m]:m;return l!=null&&p?.length&&r.applyPostProcessor!==!1&&(l=cp.handle(p,l,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),l}resolve(l,o={}){let r,u,d,m,p;return le(l)&&(l=[l]),l.forEach(y=>{if(this.isValidLookup(r))return;const f=this.extractFromKey(y,o),b=f.key;u=b;let x=f.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const T=o.count!==void 0&&!le(o.count),D=T&&!o.ordinal&&o.count===0,R=o.context!==void 0&&(le(o.context)||typeof o.context=="number")&&o.context!=="",k=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);x.forEach(N=>{this.isValidLookup(r)||(p=N,!Dh[`${k[0]}-${N}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(p)&&(Dh[`${k[0]}-${N}`]=!0,this.logger.warn(`key "${u}" for languages "${k.join(", ")}" won't get resolved as namespace "${p}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),k.forEach(F=>{if(this.isValidLookup(r))return;m=F;const A=[b];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(A,b,F,N,o);else{let q;T&&(q=this.pluralResolver.getSuffix(F,o.count,o));const X=`${this.options.pluralSeparator}zero`,Y=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(o.ordinal&&q.indexOf(Y)===0&&A.push(b+q.replace(Y,this.options.pluralSeparator)),A.push(b+q),D&&A.push(b+X)),R){const I=`${b}${this.options.contextSeparator||"_"}${o.context}`;A.push(I),T&&(o.ordinal&&q.indexOf(Y)===0&&A.push(I+q.replace(Y,this.options.pluralSeparator)),A.push(I+q),D&&A.push(I+X))}}let z;for(;z=A.pop();)this.isValidLookup(r)||(d=z,r=this.getResource(F,N,z,o))}))})}),{res:r,usedKey:u,exactUsedKey:d,usedLng:m,usedNS:p}}isValidLookup(l){return l!==void 0&&!(!this.options.returnNull&&l===null)&&!(!this.options.returnEmptyString&&l==="")}getResource(l,o,r,u={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(l,o,r,u):this.resourceStore.getResource(l,o,r,u)}getUsedParamsDetails(l={}){const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=l.replace&&!le(l.replace);let u=r?l.replace:l;if(r&&typeof l.count<"u"&&(u.count=l.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!r){u={...u};for(const d of o)delete u[d]}return u}static hasDefaultValue(l){const o="defaultValue";for(const r in l)if(Object.prototype.hasOwnProperty.call(l,r)&&o===r.substring(0,o.length)&&l[r]!==void 0)return!0;return!1}}class Lh{constructor(l){this.options=l,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gt.create("languageUtils")}getScriptPartFromCode(l){if(l=hi(l),!l||l.indexOf("-")<0)return null;const o=l.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(l){if(l=hi(l),!l||l.indexOf("-")<0)return l;const o=l.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(l){if(le(l)&&l.indexOf("-")>-1){let o;try{o=Intl.getCanonicalLocales(l)[0]}catch{}return o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o||(this.options.lowerCaseLng?l.toLowerCase():l)}return this.options.cleanCode||this.options.lowerCaseLng?l.toLowerCase():l}isSupportedCode(l){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(l=this.getLanguagePartFromCode(l)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(l)>-1}getBestMatchFromCodes(l){if(!l)return null;let o;return l.forEach(r=>{if(o)return;const u=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(u))&&(o=u)}),!o&&this.options.supportedLngs&&l.forEach(r=>{if(o)return;const u=this.getScriptPartFromCode(r);if(this.isSupportedCode(u))return o=u;const d=this.getLanguagePartFromCode(r);if(this.isSupportedCode(d))return o=d;o=this.options.supportedLngs.find(m=>{if(m===d)return m;if(!(m.indexOf("-")<0&&d.indexOf("-")<0)&&(m.indexOf("-")>0&&d.indexOf("-")<0&&m.substring(0,m.indexOf("-"))===d||m.indexOf(d)===0&&d.length>1))return m})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(l,o){if(!l)return[];if(typeof l=="function"&&(l=l(o)),le(l)&&(l=[l]),Array.isArray(l))return l;if(!o)return l.default||[];let r=l[o];return r||(r=l[this.getScriptPartFromCode(o)]),r||(r=l[this.formatLanguageCode(o)]),r||(r=l[this.getLanguagePartFromCode(o)]),r||(r=l.default),r||[]}toResolveHierarchy(l,o){const r=this.getFallbackCodes((o===!1?[]:o)||this.options.fallbackLng||[],l),u=[],d=m=>{m&&(this.isSupportedCode(m)?u.push(m):this.logger.warn(`rejecting language code not found in supportedLngs: ${m}`))};return le(l)&&(l.indexOf("-")>-1||l.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(l)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(l)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(l))):le(l)&&d(this.formatLanguageCode(l)),r.forEach(m=>{u.indexOf(m)<0&&d(this.formatLanguageCode(m))}),u}}const Uh={zero:0,one:1,two:2,few:3,many:4,other:5},zh={select:i=>i===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class jw{constructor(l,o={}){this.languageUtils=l,this.options=o,this.logger=Gt.create("pluralResolver"),this.pluralRulesCache={}}addRule(l,o){this.rules[l]=o}clearCache(){this.pluralRulesCache={}}getRule(l,o={}){const r=hi(l==="dev"?"en":l),u=o.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:r,type:u});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let m;try{m=new Intl.PluralRules(r,{type:u})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),zh;if(!l.match(/-|_/))return zh;const y=this.languageUtils.getLanguagePartFromCode(l);m=this.getRule(y,o)}return this.pluralRulesCache[d]=m,m}needsPlural(l,o={}){let r=this.getRule(l,o);return r||(r=this.getRule("dev",o)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(l,o,r={}){return this.getSuffixes(l,r).map(u=>`${o}${u}`)}getSuffixes(l,o={}){let r=this.getRule(l,o);return r||(r=this.getRule("dev",o)),r?r.resolvedOptions().pluralCategories.sort((u,d)=>Uh[u]-Uh[d]).map(u=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${u}`):[]}getSuffix(l,o,r={}){const u=this.getRule(l,r);return u?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${u.select(o)}`:(this.logger.warn(`no plural rule found for: ${l}`),this.getSuffix("dev",o,r))}}const _h=(i,l,o,r=".",u=!0)=>{let d=Sw(i,l,o);return!d&&u&&le(o)&&(d=Bc(i,o,r),d===void 0&&(d=Bc(l,o,r))),d},kc=i=>i.replace(/\$/g,"$$$$");class Rw{constructor(l={}){this.logger=Gt.create("interpolator"),this.options=l,this.format=l?.interpolation?.format||(o=>o),this.init(l)}init(l={}){l.interpolation||(l.interpolation={escapeValue:!0});const{escape:o,escapeValue:r,useRawValueToEscape:u,prefix:d,prefixEscaped:m,suffix:p,suffixEscaped:y,formatSeparator:f,unescapeSuffix:b,unescapePrefix:x,nestingPrefix:T,nestingPrefixEscaped:D,nestingSuffix:R,nestingSuffixEscaped:k,nestingOptionsSeparator:N,maxReplaces:F,alwaysFormat:A}=l.interpolation;this.escape=o!==void 0?o:ww,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=u!==void 0?u:!1,this.prefix=d?Ja(d):m||"{{",this.suffix=p?Ja(p):y||"}}",this.formatSeparator=f||",",this.unescapePrefix=b?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":b||"",this.nestingPrefix=T?Ja(T):D||Ja("$t("),this.nestingSuffix=R?Ja(R):k||Ja(")"),this.nestingOptionsSeparator=N||",",this.maxReplaces=F||1e3,this.alwaysFormat=A!==void 0?A:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const l=(o,r)=>o?.source===r?(o.lastIndex=0,o):new RegExp(r,"g");this.regexp=l(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=l(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=l(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(l,o,r,u){let d,m,p;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},f=D=>{if(D.indexOf(this.formatSeparator)<0){const F=_h(o,y,D,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(F,void 0,r,{...u,...o,interpolationkey:D}):F}const R=D.split(this.formatSeparator),k=R.shift().trim(),N=R.join(this.formatSeparator).trim();return this.format(_h(o,y,k,this.options.keySeparator,this.options.ignoreJSONStructure),N,r,{...u,...o,interpolationkey:k})};this.resetRegExp();const b=u?.missingInterpolationHandler||this.options.missingInterpolationHandler,x=u?.interpolation?.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:D=>kc(D)},{regex:this.regexp,safeValue:D=>this.escapeValue?kc(this.escape(D)):kc(D)}].forEach(D=>{for(p=0;d=D.regex.exec(l);){const R=d[1].trim();if(m=f(R),m===void 0)if(typeof b=="function"){const N=b(l,d,u);m=le(N)?N:""}else if(u&&Object.prototype.hasOwnProperty.call(u,R))m="";else if(x){m=d[0];continue}else this.logger.warn(`missed to pass in variable ${R} for interpolating ${l}`),m="";else!le(m)&&!this.useRawValueToEscape&&(m=kh(m));const k=D.safeValue(m);if(l=l.replace(d[0],k),x?(D.regex.lastIndex+=m.length,D.regex.lastIndex-=d[0].length):D.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),l}nest(l,o,r={}){let u,d,m;const p=(y,f)=>{const b=this.nestingOptionsSeparator;if(y.indexOf(b)<0)return y;const x=y.split(new RegExp(`${b}[ ]*{`));let T=`{${x[1]}`;y=x[0],T=this.interpolate(T,m);const D=T.match(/'/g),R=T.match(/"/g);((D?.length??0)%2===0&&!R||R.length%2!==0)&&(T=T.replace(/'/g,'"'));try{m=JSON.parse(T),f&&(m={...f,...m})}catch(k){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,k),`${y}${b}${T}`}return m.defaultValue&&m.defaultValue.indexOf(this.prefix)>-1&&delete m.defaultValue,y};for(;u=this.nestingRegexp.exec(l);){let y=[];m={...r},m=m.replace&&!le(m.replace)?m.replace:m,m.applyPostProcessor=!1,delete m.defaultValue;const f=/{.*}/.test(u[1])?u[1].lastIndexOf("}")+1:u[1].indexOf(this.formatSeparator);if(f!==-1&&(y=u[1].slice(f).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),u[1]=u[1].slice(0,f)),d=o(p.call(this,u[1].trim(),m),m),d&&u[0]===l&&!le(d))return d;le(d)||(d=kh(d)),d||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${l}`),d=""),y.length&&(d=y.reduce((b,x)=>this.format(b,x,r.lng,{...r,interpolationkey:u[1].trim()}),d.trim())),l=l.replace(u[0],d),this.regexp.lastIndex=0}return l}}const Mw=i=>{let l=i.toLowerCase().trim();const o={};if(i.indexOf("(")>-1){const r=i.split("(");l=r[0].toLowerCase().trim();const u=r[1].substring(0,r[1].length-1);l==="currency"&&u.indexOf(":")<0?o.currency||(o.currency=u.trim()):l==="relativetime"&&u.indexOf(":")<0?o.range||(o.range=u.trim()):u.split(";").forEach(m=>{if(m){const[p,...y]=m.split(":"),f=y.join(":").trim().replace(/^'+|'+$/g,""),b=p.trim();o[b]||(o[b]=f),f==="false"&&(o[b]=!1),f==="true"&&(o[b]=!0),isNaN(f)||(o[b]=parseInt(f,10))}})}return{formatName:l,formatOptions:o}},Ph=i=>{const l={};return(o,r,u)=>{let d=u;u&&u.interpolationkey&&u.formatParams&&u.formatParams[u.interpolationkey]&&u[u.interpolationkey]&&(d={...d,[u.interpolationkey]:void 0});const m=r+JSON.stringify(d);let p=l[m];return p||(p=i(hi(r),u),l[m]=p),p(o)}},Dw=i=>(l,o,r)=>i(hi(o),r)(l);class Ow{constructor(l={}){this.logger=Gt.create("formatter"),this.options=l,this.init(l)}init(l,o={interpolation:{}}){this.formatSeparator=o.interpolation.formatSeparator||",";const r=o.cacheInBuiltFormats?Ph:Dw;this.formats={number:r((u,d)=>{const m=new Intl.NumberFormat(u,{...d});return p=>m.format(p)}),currency:r((u,d)=>{const m=new Intl.NumberFormat(u,{...d,style:"currency"});return p=>m.format(p)}),datetime:r((u,d)=>{const m=new Intl.DateTimeFormat(u,{...d});return p=>m.format(p)}),relativetime:r((u,d)=>{const m=new Intl.RelativeTimeFormat(u,{...d});return p=>m.format(p,d.range||"day")}),list:r((u,d)=>{const m=new Intl.ListFormat(u,{...d});return p=>m.format(p)})}}add(l,o){this.formats[l.toLowerCase().trim()]=o}addCached(l,o){this.formats[l.toLowerCase().trim()]=Ph(o)}format(l,o,r,u={}){const d=o.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&d[0].indexOf(")")<0&&d.find(p=>p.indexOf(")")>-1)){const p=d.findIndex(y=>y.indexOf(")")>-1);d[0]=[d[0],...d.splice(1,p)].join(this.formatSeparator)}return d.reduce((p,y)=>{const{formatName:f,formatOptions:b}=Mw(y);if(this.formats[f]){let x=p;try{const T=u?.formatParams?.[u.interpolationkey]||{},D=T.locale||T.lng||u.locale||u.lng||r;x=this.formats[f](p,D,{...b,...u,...T})}catch(T){this.logger.warn(T)}return x}else this.logger.warn(`there was no format function for ${f}`);return p},l)}}const Lw=(i,l)=>{i.pending[l]!==void 0&&(delete i.pending[l],i.pendingCount--)};class Uw extends eo{constructor(l,o,r,u={}){super(),this.backend=l,this.store=o,this.services=r,this.languageUtils=r.languageUtils,this.options=u,this.logger=Gt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,u.backend,u)}queueLoad(l,o,r,u){const d={},m={},p={},y={};return l.forEach(f=>{let b=!0;o.forEach(x=>{const T=`${f}|${x}`;!r.reload&&this.store.hasResourceBundle(f,x)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?m[T]===void 0&&(m[T]=!0):(this.state[T]=1,b=!1,m[T]===void 0&&(m[T]=!0),d[T]===void 0&&(d[T]=!0),y[x]===void 0&&(y[x]=!0)))}),b||(p[f]=!0)}),(Object.keys(d).length||Object.keys(m).length)&&this.queue.push({pending:m,pendingCount:Object.keys(m).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(d),pending:Object.keys(m),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(y)}}loaded(l,o,r){const u=l.split("|"),d=u[0],m=u[1];o&&this.emit("failedLoading",d,m,o),!o&&r&&this.store.addResourceBundle(d,m,r,void 0,void 0,{skipCopy:!0}),this.state[l]=o?-1:2,o&&r&&(this.state[l]=0);const p={};this.queue.forEach(y=>{bw(y.loaded,[d],m),Lw(y,l),o&&y.errors.push(o),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(f=>{p[f]||(p[f]={});const b=y.loaded[f];b.length&&b.forEach(x=>{p[f][x]===void 0&&(p[f][x]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(y=>!y.done)}read(l,o,r,u=0,d=this.retryTimeout,m){if(!l.length)return m(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:l,ns:o,fcName:r,tried:u,wait:d,callback:m});return}this.readingCalls++;const p=(f,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(f&&b&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,l,o,r,u+1,d*2,m)},d);return}m(f,b)},y=this.backend[r].bind(this.backend);if(y.length===2){try{const f=y(l,o);f&&typeof f.then=="function"?f.then(b=>p(null,b)).catch(p):p(null,f)}catch(f){p(f)}return}return y(l,o,p)}prepareLoading(l,o,r={},u){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();le(l)&&(l=this.languageUtils.toResolveHierarchy(l)),le(o)&&(o=[o]);const d=this.queueLoad(l,o,r,u);if(!d.toLoad.length)return d.pending.length||u(),null;d.toLoad.forEach(m=>{this.loadOne(m)})}load(l,o,r){this.prepareLoading(l,o,{},r)}reload(l,o,r){this.prepareLoading(l,o,{reload:!0},r)}loadOne(l,o=""){const r=l.split("|"),u=r[0],d=r[1];this.read(u,d,"read",void 0,void 0,(m,p)=>{m&&this.logger.warn(`${o}loading namespace ${d} for language ${u} failed`,m),!m&&p&&this.logger.log(`${o}loaded namespace ${d} for language ${u}`,p),this.loaded(l,m,p)})}saveMissing(l,o,r,u,d,m={},p=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${r}" as the namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const y={...m,isUpdate:d},f=this.backend.create.bind(this.backend);if(f.length<6)try{let b;f.length===5?b=f(l,o,r,u,y):b=f(l,o,r,u),b&&typeof b.then=="function"?b.then(x=>p(null,x)).catch(p):p(null,b)}catch(b){p(b)}else f(l,o,r,u,p,y)}!l||!l[0]||this.store.addResource(l[0],o,r,u)}}}const Fh=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:i=>{let l={};if(typeof i[1]=="object"&&(l=i[1]),le(i[1])&&(l.defaultValue=i[1]),le(i[2])&&(l.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const o=i[3]||i[2];Object.keys(o).forEach(r=>{l[r]=o[r]})}return l},interpolation:{escapeValue:!0,format:i=>i,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Hh=i=>(le(i.ns)&&(i.ns=[i.ns]),le(i.fallbackLng)&&(i.fallbackLng=[i.fallbackLng]),le(i.fallbackNS)&&(i.fallbackNS=[i.fallbackNS]),i.supportedLngs?.indexOf?.("cimode")<0&&(i.supportedLngs=i.supportedLngs.concat(["cimode"])),typeof i.initImmediate=="boolean"&&(i.initAsync=i.initImmediate),i),Fs=()=>{},zw=i=>{Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(o=>{typeof i[o]=="function"&&(i[o]=i[o].bind(i))})};class gi extends eo{constructor(l={},o){if(super(),this.options=Hh(l),this.services={},this.logger=Gt,this.modules={external:[]},zw(this),o&&!this.isInitialized&&!l.isClone){if(!this.options.initAsync)return this.init(l,o),this;setTimeout(()=>{this.init(l,o)},0)}}init(l={},o){this.isInitializing=!0,typeof l=="function"&&(o=l,l={}),l.defaultNS==null&&l.ns&&(le(l.ns)?l.defaultNS=l.ns:l.ns.indexOf("translation")<0&&(l.defaultNS=l.ns[0]));const r=Fh();this.options={...r,...this.options,...Hh(l)},this.options.interpolation={...r.interpolation,...this.options.interpolation},l.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=l.keySeparator),l.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=l.nsSeparator);const u=f=>f?typeof f=="function"?new f:f:null;if(!this.options.isClone){this.modules.logger?Gt.init(u(this.modules.logger),this.options):Gt.init(null,this.options);let f;this.modules.formatter?f=this.modules.formatter:f=Ow;const b=new Lh(this.options);this.store=new Mh(this.options.resources,this.options);const x=this.services;x.logger=Gt,x.resourceStore=this.store,x.languageUtils=b,x.pluralResolver=new jw(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),f&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(x.formatter=u(f),x.formatter.init&&x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new Rw(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new Uw(u(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",(D,...R)=>{this.emit(D,...R)}),this.modules.languageDetector&&(x.languageDetector=u(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=u(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new Ks(this.services,this.options),this.translator.on("*",(D,...R)=>{this.emit(D,...R)}),this.modules.external.forEach(D=>{D.init&&D.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Fs),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.length>0&&f[0]!=="dev"&&(this.options.lng=f[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(f=>{this[f]=(...b)=>this.store[f](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(f=>{this[f]=(...b)=>(this.store[f](...b),this)});const p=ci(),y=()=>{const f=(b,x)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(x),o(b,x)};if(this.languages&&!this.isInitialized)return f(null,this.t.bind(this));this.changeLanguage(this.options.lng,f)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),p}loadResources(l,o=Fs){let r=o;const u=le(l)?l:this.language;if(typeof l=="function"&&(r=l),!this.options.resources||this.options.partialBundledLanguages){if(u?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const d=[],m=p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(f=>{f!=="cimode"&&d.indexOf(f)<0&&d.push(f)})};u?m(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(y=>m(y)),this.options.preload?.forEach?.(p=>m(p)),this.services.backendConnector.load(d,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(p)})}else r(null)}reloadResources(l,o,r){const u=ci();return typeof l=="function"&&(r=l,l=void 0),typeof o=="function"&&(r=o,o=void 0),l||(l=this.languages),o||(o=this.options.ns),r||(r=Fs),this.services.backendConnector.reload(l,o,d=>{u.resolve(),r(d)}),u}use(l){if(!l)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!l.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return l.type==="backend"&&(this.modules.backend=l),(l.type==="logger"||l.log&&l.warn&&l.error)&&(this.modules.logger=l),l.type==="languageDetector"&&(this.modules.languageDetector=l),l.type==="i18nFormat"&&(this.modules.i18nFormat=l),l.type==="postProcessor"&&cp.addPostProcessor(l),l.type==="formatter"&&(this.modules.formatter=l),l.type==="3rdParty"&&this.modules.external.push(l),this}setResolvedLanguage(l){if(!(!l||!this.languages)&&!(["cimode","dev"].indexOf(l)>-1)){for(let o=0;o<this.languages.length;o++){const r=this.languages[o];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(l)<0&&this.store.hasLanguageSomeTranslations(l)&&(this.resolvedLanguage=l,this.languages.unshift(l))}}changeLanguage(l,o){this.isLanguageChangingTo=l;const r=ci();this.emit("languageChanging",l);const u=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},d=(p,y)=>{y?this.isLanguageChangingTo===l&&(u(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,r.resolve((...f)=>this.t(...f)),o&&o(p,(...f)=>this.t(...f))},m=p=>{!l&&!p&&this.services.languageDetector&&(p=[]);const y=le(p)?p:p&&p[0],f=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(le(p)?[p]:p);f&&(this.language||u(f),this.translator.language||this.translator.changeLanguage(f),this.services.languageDetector?.cacheUserLanguage?.(f)),this.loadResources(f,b=>{d(b,f)})};return!l&&this.services.languageDetector&&!this.services.languageDetector.async?m(this.services.languageDetector.detect()):!l&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(m):this.services.languageDetector.detect(m):m(l),r}getFixedT(l,o,r){const u=(d,m,...p)=>{let y;typeof m!="object"?y=this.options.overloadTranslationOptionHandler([d,m].concat(p)):y={...m},y.lng=y.lng||u.lng,y.lngs=y.lngs||u.lngs,y.ns=y.ns||u.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||r||u.keyPrefix);const f=this.options.keySeparator||".";let b;return y.keyPrefix&&Array.isArray(d)?b=d.map(x=>(typeof x=="function"&&(x=Vc(x,{...this.options,...m})),`${y.keyPrefix}${f}${x}`)):(typeof d=="function"&&(d=Vc(d,{...this.options,...m})),b=y.keyPrefix?`${y.keyPrefix}${f}${d}`:d),this.t(b,y)};return le(l)?u.lng=l:u.lngs=l,u.ns=o,u.keyPrefix=r,u}t(...l){return this.translator?.translate(...l)}exists(...l){return this.translator?.exists(...l)}setDefaultNamespace(l){this.options.defaultNS=l}hasLoadedNamespace(l,o={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=o.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const m=(p,y)=>{const f=this.services.backendConnector.state[`${p}|${y}`];return f===-1||f===0||f===2};if(o.precheck){const p=o.precheck(this,m);if(p!==void 0)return p}return!!(this.hasResourceBundle(r,l)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||m(r,l)&&(!u||m(d,l)))}loadNamespaces(l,o){const r=ci();return this.options.ns?(le(l)&&(l=[l]),l.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{r.resolve(),o&&o(u)}),r):(o&&o(),Promise.resolve())}loadLanguages(l,o){const r=ci();le(l)&&(l=[l]);const u=this.options.preload||[],d=l.filter(m=>u.indexOf(m)<0&&this.services.languageUtils.isSupportedCode(m));return d.length?(this.options.preload=u.concat(d),this.loadResources(m=>{r.resolve(),o&&o(m)}),r):(o&&o(),Promise.resolve())}dir(l){if(l||(l=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!l)return"rtl";try{const u=new Intl.Locale(l);if(u&&u.getTextInfo){const d=u.getTextInfo();if(d&&d.direction)return d.direction}}catch{}const o=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new Lh(Fh());return l.toLowerCase().indexOf("-latn")>1?"ltr":o.indexOf(r.getLanguagePartFromCode(l))>-1||l.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(l={},o){return new gi(l,o)}cloneInstance(l={},o=Fs){const r=l.forkResourceStore;r&&delete l.forkResourceStore;const u={...this.options,...l,isClone:!0},d=new gi(u);if((l.debug!==void 0||l.prefix!==void 0)&&(d.logger=d.logger.clone(l)),["store","services","language"].forEach(p=>{d[p]=this[p]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},r){const p=Object.keys(this.store.data).reduce((y,f)=>(y[f]={...this.store.data[f]},y[f]=Object.keys(y[f]).reduce((b,x)=>(b[x]={...y[f][x]},b),y[f]),y),{});d.store=new Mh(p,u),d.services.resourceStore=d.store}return d.translator=new Ks(d.services,u),d.translator.on("*",(p,...y)=>{d.emit(p,...y)}),d.init(u,o),d.translator.options=u,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const et=gi.createInstance();et.createInstance=gi.createInstance;et.createInstance;et.dir;et.init;et.loadResources;et.reloadResources;et.use;et.changeLanguage;et.getFixedT;et.t;et.exists;et.setDefaultNamespace;et.hasLoadedNamespace;et.loadNamespaces;et.loadLanguages;const{slice:_w,forEach:Pw}=[];function Fw(i){return Pw.call(_w.call(arguments,1),l=>{if(l)for(const o in l)i[o]===void 0&&(i[o]=l[o])}),i}function Hw(i){return typeof i!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(o=>o.test(i))}const Bh=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,Bw=function(i,l){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},u=encodeURIComponent(l);let d=`${i}=${u}`;if(r.maxAge>0){const m=r.maxAge-0;if(Number.isNaN(m))throw new Error("maxAge should be a Number");d+=`; Max-Age=${Math.floor(m)}`}if(r.domain){if(!Bh.test(r.domain))throw new TypeError("option domain is invalid");d+=`; Domain=${r.domain}`}if(r.path){if(!Bh.test(r.path))throw new TypeError("option path is invalid");d+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");d+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(d+="; HttpOnly"),r.secure&&(d+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:d+="; SameSite=Strict";break;case"lax":d+="; SameSite=Lax";break;case"strict":d+="; SameSite=Strict";break;case"none":d+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(d+="; Partitioned"),d},Vh={create(i,l,o,r){let u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};o&&(u.expires=new Date,u.expires.setTime(u.expires.getTime()+o*60*1e3)),r&&(u.domain=r),document.cookie=Bw(i,l,u)},read(i){const l=`${i}=`,o=document.cookie.split(";");for(let r=0;r<o.length;r++){let u=o[r];for(;u.charAt(0)===" ";)u=u.substring(1,u.length);if(u.indexOf(l)===0)return u.substring(l.length,u.length)}return null},remove(i,l){this.create(i,"",-1,l)}};var Vw={name:"cookie",lookup(i){let{lookupCookie:l}=i;if(l&&typeof document<"u")return Vh.read(l)||void 0},cacheUserLanguage(i,l){let{lookupCookie:o,cookieMinutes:r,cookieDomain:u,cookieOptions:d}=l;o&&typeof document<"u"&&Vh.create(o,i,r,u,d)}},qw={name:"querystring",lookup(i){let{lookupQuerystring:l}=i,o;if(typeof window<"u"){let{search:r}=window.location;!window.location.search&&window.location.hash?.indexOf("?")>-1&&(r=window.location.hash.substring(window.location.hash.indexOf("?")));const d=r.substring(1).split("&");for(let m=0;m<d.length;m++){const p=d[m].indexOf("=");p>0&&d[m].substring(0,p)===l&&(o=d[m].substring(p+1))}}return o}},Gw={name:"hash",lookup(i){let{lookupHash:l,lookupFromHashIndex:o}=i,r;if(typeof window<"u"){const{hash:u}=window.location;if(u&&u.length>2){const d=u.substring(1);if(l){const m=d.split("&");for(let p=0;p<m.length;p++){const y=m[p].indexOf("=");y>0&&m[p].substring(0,y)===l&&(r=m[p].substring(y+1))}}if(r)return r;if(!r&&o>-1){const m=u.match(/\/([a-zA-Z-]*)/g);return Array.isArray(m)?m[typeof o=="number"?o:0]?.replace("/",""):void 0}}}return r}};let Wa=null;const qh=()=>{if(Wa!==null)return Wa;try{if(Wa=typeof window<"u"&&window.localStorage!==null,!Wa)return!1;const i="i18next.translate.boo";window.localStorage.setItem(i,"foo"),window.localStorage.removeItem(i)}catch{Wa=!1}return Wa};var Yw={name:"localStorage",lookup(i){let{lookupLocalStorage:l}=i;if(l&&qh())return window.localStorage.getItem(l)||void 0},cacheUserLanguage(i,l){let{lookupLocalStorage:o}=l;o&&qh()&&window.localStorage.setItem(o,i)}};let el=null;const Gh=()=>{if(el!==null)return el;try{if(el=typeof window<"u"&&window.sessionStorage!==null,!el)return!1;const i="i18next.translate.boo";window.sessionStorage.setItem(i,"foo"),window.sessionStorage.removeItem(i)}catch{el=!1}return el};var $w={name:"sessionStorage",lookup(i){let{lookupSessionStorage:l}=i;if(l&&Gh())return window.sessionStorage.getItem(l)||void 0},cacheUserLanguage(i,l){let{lookupSessionStorage:o}=l;o&&Gh()&&window.sessionStorage.setItem(o,i)}},Kw={name:"navigator",lookup(i){const l=[];if(typeof navigator<"u"){const{languages:o,userLanguage:r,language:u}=navigator;if(o)for(let d=0;d<o.length;d++)l.push(o[d]);r&&l.push(r),u&&l.push(u)}return l.length>0?l:void 0}},Qw={name:"htmlTag",lookup(i){let{htmlTag:l}=i,o;const r=l||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(o=r.getAttribute("lang")),o}},Xw={name:"path",lookup(i){let{lookupFromPathIndex:l}=i;if(typeof window>"u")return;const o=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?o[typeof l=="number"?l:0]?.replace("/",""):void 0}},Iw={name:"subdomain",lookup(i){let{lookupFromSubdomainIndex:l}=i;const o=typeof l=="number"?l+1:1,r=typeof window<"u"&&window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);if(r)return r[o]}};let dp=!1;try{document.cookie,dp=!0}catch{}const fp=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];dp||fp.splice(1,1);const Zw=()=>({order:fp,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:i=>i});class mp{constructor(l){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(l,o)}init(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=l,this.options=Fw(o,this.options||{},Zw()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=u=>u.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(Vw),this.addDetector(qw),this.addDetector(Yw),this.addDetector($w),this.addDetector(Kw),this.addDetector(Qw),this.addDetector(Xw),this.addDetector(Iw),this.addDetector(Gw)}addDetector(l){return this.detectors[l.name]=l,this}detect(){let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,o=[];return l.forEach(r=>{if(this.detectors[r]){let u=this.detectors[r].lookup(this.options);u&&typeof u=="string"&&(u=[u]),u&&(o=o.concat(u))}}),o=o.filter(r=>r!=null&&!Hw(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?o:o.length>0?o[0]:null}cacheUserLanguage(l){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;o&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(l)>-1||o.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(l,this.options)}))}}mp.type="languageDetector";const Jw={create:"创建",delete:"删除",save:"保存",cancel:"取消",confirm:"确定",edit:"编辑",close:"关闭",back:"返回",refresh:"刷新",submit:"提交",reset:"重置",search:"搜索",add:"添加",remove:"移除",update:"更新",upload:"上传",download:"下载",export:"导出",import:"导入",copy:"复制",paste:"粘贴",cut:"剪切"},Ww={loading:"加载中...",processing:"处理中...",success:"操作成功",failed:"操作失败",saving:"保存中...",deleting:"删除中...",uploading:"上传中...",downloading:"下载中...",completed:"已完成",pending:"待处理",active:"活跃",inactive:"未激活",enabled:"已启用",disabled:"已禁用"},eC={yes:"是",no:"否",ok:"好的",all:"全部",none:"无",or:"或",and:"和",more:"更多",less:"更少",unknown:"未知",optional:"可选",required:"必填",default:"默认",custom:"自定义"},tC="路径",nC="创建时间",aC={init:{description:""},clear:{description:""},compact:{description:""},agents:{description:""},settings:{description:""},help:{description:""}},lC={sendImage:""},iC={chinese:"",english:""},sC={pageTitle:"",metaDescription:"",nav:{enterWorkspace:""},hero:{title:"",subtitle:"",description:"",startNow:"",viewSource:""},features:{title:"",subtitle:"",modernWeb:{title:"",description:""},multiModel:{title:"",description:""},agentSystem:{title:"",description:""},fileManagement:{title:"",description:""},professionalTools:{title:"",description:""},secureReliable:{title:"",description:""}},quickStart:{title:"",subtitle:"",endUserTitle:"",endUserDescription:"",developerTitle:"",developerDescription:""},cta:{title:"",subtitle:"",start:""},footer:{description:"",copyright:"",product:"",workspace:"",sourceCode:"",releases:"",support:"",documentation:"",issues:"",discussions:""}},oC={actions:Jw,status:Ww,common:eC,path:tC,createdAt:nC,systemCommands:aC,agentChat:lC,languageSwitcher:iC,landing:sC},rC={dashboard:"仪表板",projects:"项目管理",agents:"Agent管理",mcp:"MCP服务",settings:"系统设置",settingsSubmenu:{general:"通用设置",versions:"版本管理",memory:"全局记忆",commands:"自定义命令",subagents:"Subagent管理"}},cC={version:"版本 {{version}}",apiServerStatus:{connected:"API服务器设置 - 连接正常",disconnected:"API服务器设置 - 连接失败",checking:"API服务器设置 - 检查中..."},serviceStatus:{normal:"服务正常",unavailable:"服务不可用",checking:"检查中..."}},uC={title:"登录",subtitle:"请输入密码以继续",passwordLabel:"密码",passwordPlaceholder:"请输入密码",loginButton:"登录",loggingIn:"登录中...",footer:"如果您忘记了密码,请联系管理员",manageServices:"管理后端服务",serviceName:"服务名称",serviceUrl:"服务地址",current:"当前",testConnection:"测试连接",switchTo:"切换到此服务",edit:"编辑",delete:"删除",save:"保存",cancel:"取消",add:"添加",addService:"添加新服务",rerunOnboarding:"重新运行配置向导"},dC={pageTitle:"AgentStudio - 智能体工作平台 | Claude Code 驱动的 AI 助手",metaDescription:"基于 Claude Code SDK 的现代化个人智能体工作平台。通过直观的 Web 界面,轻松访问强大的 AI 能力,支持多种大语言模型,提升工作效率。",nav:{enterWorkspace:"进入工作台"},hero:{title:"智能体工作平台",subtitle:"让AI成为你的得力助手",description:"基于 Claude Code SDK 构建的现代化个人智能体工作平台。通过直观的 Web 界面,轻松访问强大的 AI 能力,提升工作效率。",startNow:"立即开始",viewSource:"查看源码"},features:{title:"核心特性",subtitle:"为现代化AI工作流程设计的全面功能集",modernWeb:{title:"现代化Web界面",description:"专业直观的 Web UI,实时流式响应,分屏布局设计,适合开发者和普通用户使用"},multiModel:{title:"多模型支持",description:"支持 Claude、OpenAI、GLM、DeepSeek 等多种大语言模型,灵活切换,满足不同需求"},agentSystem:{title:"智能体系统",description:"内置多种专业智能体,支持自定义智能体创建,消息级工具定制,扩展开发框架"},fileManagement:{title:"文件管理",description:"内置文件浏览器,项目感知操作,版本控制集成,支持图片上传和内容预览"},professionalTools:{title:"专业工具",description:"幻灯片智能体、代码探索器、文档大纲、工具渲染器等专业工具,提升工作效率"},secureReliable:{title:"安全可靠",description:"环境变量保护API密钥,CORS配置,输入验证,沙盒文件系统访问,确保安全性"}},quickStart:{title:"快速开始",subtitle:"选择适合你的安装方式,几分钟内即可开始使用",endUserTitle:"普通用户 - 一键安装",endUserDescription:"无需配置,自动安装所有依赖,适合快速体验和日常使用",developerTitle:"开发者 - 源码部署",developerDescription:"完整开发环境,支持热重载,适合定制开发和功能扩展"},cta:{title:"准备好开始你的AI工作流程了吗?",subtitle:"加入使用AgentStudio的开发者和团队,体验AI驱动的高效工作方式",start:"开始使用"},footer:{description:"基于 Claude Code SDK 的个人智能体工作平台,让AI成为你的得力助手。",copyright:"© 2024 AgentStudio. MIT License.",product:"产品",workspace:"工作台",sourceCode:"源码",releases:"发布版本",support:"支持",documentation:"文档",issues:"问题反馈",discussions:"社区讨论"}},fC={title:"Agent管理",subtitle:"管理专门的 AI 代理",createButton:"创建助手",editButton:"编辑助手",deleteButton:"删除助手",enableButton:"启用助手",disableButton:"禁用助手",useButton:"使用",startUsingButton:"开始使用助手",noAgents:"暂无助手",noAgentsSearch:"未找到匹配的助手",searchPlaceholder:"搜索助手...",createFirst:"创建你的第一个智能助手",adjustSearch:"尝试调整搜索条件",loading:"正在加载智能助手...",filter:{all:"全部",enabled:"已启用",disabled:"已禁用"},table:{agent:"智能助手",type:"类型",config:"配置",tools:"工具",status:"状态",actions:"操作",maxTurns:"最大轮次",unlimited:"不限制",permission:"权限",toolsCount:"{{count}} 个工具"},form:{create:"创建助手",edit:"编辑助手",name:"名称",description:"描述",maxTurns:"最大轮次",maxTurnsPlaceholder:"不限制",maxTurnsError:"最大轮次必须在1-100之间",maxTurnsExceeded:"最大轮次不能超过{{maximum}}",permissionMode:"权限模式",icon:"图标",primaryColor:"主题颜色",enabledTools:"启用的工具",selectTools:"选择工具",toolsRegular:"常规工具 {{count}} 个",toolsMcp:"MCP工具 {{count}} 个",systemPrompt:"系统提示词",systemPromptPlaceholder:"输入助手的系统提示词...",nameRequired:"请填写助手名称",save:"保存",cancel:"取消"},permissions:{default:"默认",acceptEdits:"自动接受编辑",bypassPermissions:"绕过权限检查",plan:"规划模式"},status:{enabled:"已启用",disabled:"已禁用"},errors:{createFailed:"创建失败,请重试。",saveFailed:"保存失败,请重试。",deleteFailed:"删除失败,请重试。",toggleFailed:"操作失败,请重试。",builtinCannotDelete:"内置助手无法删除,但可以禁用。"},confirmDelete:`确定要删除助手"{{name}}"吗?
|
|
71
|
-
|
|
72
|
-
此操作无法撤销,相关的所有会话也会被删除。`},mC={title:"项目管理",subtitle:"管理你的所有工作项目",createButton:"创建新项目",selectType:"选择助手类型创建工作项目",noProjects:"暂无项目",searchPlaceholder:"搜索项目...",loading:"正在加载项目...",filter:{all:"全部",active:"活跃",inactive:"未活跃"},table:{project:"项目",agent:"助手",lastActive:"最后活跃",sessions:"会话",actions:"操作",sessionsCount:"{{count}} 个会话"},form:{create:"创建项目",edit:"编辑项目",name:"项目名称",namePlaceholder:"输入项目名称",nameRequired:"项目名称 *",agentType:"选择助手类型 *",agentTypePlaceholder:"选择一个助手类型",directory:"项目目录",directoryNote:"项目将在此目录下创建一个新文件夹",description:"项目描述",descriptionPlaceholder:"简单描述这个项目的用途...",save:"保存",cancel:"取消"},actions:{open:"打开",openInNewTab:"在新标签页打开",edit:"编辑",delete:"删除"},status:{active:"活跃",inactive:"未活跃",never:"从未"},errors:{createFailed:"创建项目失败",updateFailed:"更新项目失败",deleteFailed:"删除项目失败",loadFailed:"加载项目失败"},deleteConfirm:"确定要删除项目吗?",deleteNote:"注意:这只会从列表中移除项目,不会删除实际的文件目录。",deleteSuccess:"项目已删除"},hC={title:"对话",inputPlaceholder:"输入消息...",aiTyping:"AI正在输入中",newSession:"新对话",sessionHistory:"历史会话",loading:"正在加载智能助手...",agentNotFound:"助手未找到",agentNotFoundDesc:"无法找到指定的智能助手,可能已被删除或禁用。",agentDisabled:"助手已禁用",agentDisabledDesc:'智能助手 "{{name}}" 目前已被禁用,无法使用。',closePage:"关闭页面"},gC={title:"仪表板",welcome:"欢迎回到Claude Code工作台",stats:{agentManagement:"Agent管理",workProjects:"工作项目",slashCommands:"Slash命令",activeSessions:"活跃会话"},recentAgents:{title:"常用助手",viewAll:"查看全部",types:{slides:"演示文稿",code:"代码开发",documents:"文档写作"},noAgents:"暂无可用助手",goEnable:"去启用助手"},quickActions:{title:"快速操作",createProject:{title:"创建新项目",description:"选择助手类型创建工作项目"},createAgent:{title:"创建新助手",description:"配置自定义AI助手"},addMcp:{title:"添加MCP服务",description:"连接新的MCP服务器"},viewAnalytics:{title:"查看统计",description:"分析使用情况和性能"}},overview:"概览",statistics:"统计信息",recentActivity:"最近活动"},pC={title:"设置",general:{title:"通用设置",description:"配置界面主题和基本设置",interfaceSettings:"界面设置",theme:{label:"主题",description:"选择界面主题模式",auto:"跟随系统",light:"浅色模式",dark:"深色模式"},language:{label:"语言",description:"选择界面语言"},appInfo:{title:"应用信息",name:"AgentStudio",buildDate:"构建日期",versionNote:"查看详细版本信息和更新请转至【版本管理】页面"},settingsSaved:"设置已保存"},api:"API服务器设置",memory:"全局记忆",memorySettings:{title:"全局记忆设置",description:"全局记忆是所有AI助手共享的背景信息,包含您的工作偏好、项目信息等",fileSourceInfo:"内容来自用户目录下的 ~/.claude/CLAUDE.md 文件。",memoryContent:"记忆内容",edit:"编辑",cancelEdit:"取消编辑",refresh:"刷新",refreshing:"刷新中...",placeholder:"在这里编写您的全局记忆内容...",cancel:"取消",saveMemory:"保存记忆",loading:"正在加载全局记忆...",noMemory:"暂无全局记忆内容",clickEditToStart:'点击"编辑"按钮开始添加',infoAutoLoad:"全局记忆将在每次对话时自动加载,为AI提供背景信息",infoSuggestions:"建议包含:工作偏好、项目背景、个人信息等",infoFileLocation:"文件位置:~/.claude/CLAUDE.md",saveSuccess:"全局记忆已保存",saveFailed:"保存失败,请重试"},version:{title:"版本管理",subtitle:"管理多个 Claude Code 版本,指定可执行路径、别名和环境变量",addVersion:"添加版本",reinitialize:"重新初始化",reinitializeTitle:"重新运行 Claude 版本配置向导",reinitializeSuccess:"配置已重置,即将重新加载页面",noVersions:"还没有配置 Claude 版本",clickToAddFirst:'点击"添加版本"来配置第一个 Claude 版本',systemLabel:"系统",defaultLabel:"默认",pathLabel:"路径",envVarsLabel:"环境变量",modelsLabel:"支持的模型",setAsDefault:"设为默认",copyCommand:"复制命令",edit:"编辑",delete:"删除",confirmDelete:'确定要删除版本 "{{alias}}" 吗?',currentVersion:{title:"当前版本",checking:"检查中...",checkVersion:"检查版本",claudeDesc:"AI编程助手",updating:"更新中...",update:"更新",willUse:"将使用",toUpdate:"更新",nodejsDesc:"JavaScript运行环境",preferred:"推荐",packageManager:"包管理器",lastChecked:"最后检查时间",clickToCheck:'点击"检查版本"获取版本信息',updateSuccess:"更新成功",updateFailed:"更新失败",info1:"Claude Code 是 AI 编程助手,支持代码生成、编辑和项目管理",info2:"Node.js 是系统运行的基础环境",info3:"支持多种包管理器:npm、pnpm、yarn(优先级:pnpm > yarn > npm)",info4:"系统会自动选择推荐的包管理器进行更新操作",info5:"建议保持 Claude Code 为最新版本以获得最佳体验"},templates:{title:"服务商快速配置模板",description:"选择预设模板快速配置第三方API服务商,自动填充环境变量配置",providers:{glm:{name:"GLM (智谱AI)",description:"使用智谱AI的GLM模型服务,兼容Anthropic API"},deepseek:{name:"DeepSeek",description:"使用DeepSeek的高性能模型服务"},kimi:{name:"Kimi K2 (月之暗面)",description:"使用Kimi K2模型服务,支持Anthropic API兼容"}}},form:{createTitle:"添加新版本",editTitle:"编辑版本",versionName:"版本名称",versionNamePlaceholder:"例如: Claude Code v1.2.3",alias:"别名",aliasPlaceholder:"例如: claude-1.2.3",description:"描述",descriptionPlaceholder:"版本描述(可选)",executablePath:"可执行文件路径",executablePathPlaceholder:"不指定则使用系统默认路径",browseFile:"浏览文件",envVars:"环境变量",varName:"变量名",varValue:"变量值",emptyValue:"未设置",getApiKey:"获取密钥",models:"模型配置",modelId:"模型ID",modelName:"模型名称",visionModel:"视觉模型",addModel:"添加模型",cancel:"取消",saving:"保存中...",update:"更新",create:"创建",selectExecutable:"选择Claude可执行文件"},errors:{requiredFields:"请填写所有必填字段",saveFailed:"保存失败",deleteFailed:"删除失败",setDefaultFailed:"设置默认版本失败",cannotDeleteSystem:"不能删除系统版本",copyFailed:"复制失败,请手动复制以下命令:"},success:{createVersion:"版本创建成功",updateVersion:"版本更新成功",deleteVersion:"版本删除成功",setDefault:'已将 "{{alias}}" 设置为默认版本',copyCommand:"命令已复制到剪贴板"}},language:"语言设置",subagents:{title:"Subagent 管理",subtitle:"管理专门的 AI 子代理",loading:"正在加载 Subagents...",loadFailed:"加载失败",loadFailedMessage:"无法加载 Subagents 列表",retry:"重试",searchPlaceholder:"搜索 Subagents...",createButton:"新建 Subagent",noSubagents:"还没有 Subagents",noSubagentsSearch:"未找到匹配的 Subagents",adjustSearch:"尝试调整搜索条件",createFirst:"创建你的第一个专门的 AI 子代理来处理特定任务",table:{subagent:"Subagent",tools:"工具",createdAt:"创建时间",actions:"操作",toolsCount:"{{count}} 个工具",inheritSettings:"继承对话设置"},actions:{edit:"编辑",editTitle:"编辑 Subagent",deleteTitle:"删除 Subagent"},deleteConfirm:{title:"确认删除",message:'确定要删除 Subagent "{{name}}" 吗?',warning:"此操作无法撤销。",cancel:"取消",delete:"删除"}},apiSettings:{title:"API服务器设置",hostLabel:"API服务器地址",hostPlaceholder:"http://localhost:4936 或 https://your-domain.com",testConnection:"测试连接",quickSelect:"快捷选择:",connectionStatus:"连接状态",status:{success:"连接成功",error:"连接失败",untested:"未测试"},serverError:"服务器响应错误: {{status}} {{statusText}}",connectionFailed:"连接失败: {{message}}",connectionUnknownError:"连接失败: 未知错误",enterApiHost:"请输入API服务器地址",settingsSavedRefresh:"设置已保存,页面将刷新以应用新设置",usage:{title:"使用说明:",localDev:"在本地开发时,使用",production:"在生产环境中,使用您的服务器域名,如",cors:"确保服务器支持CORS访问,允许前端域名访问",refresh:"修改后需要刷新页面才能生效"},resetToDefault:"重置为默认",saveSettings:"保存设置"}},yC={title:"数据分析",usage:"使用统计",performance:"性能指标"},vC={title:"MCP服务",subtitle:"管理和监控Model Context Protocol服务器",loading:"正在加载MCP配置...",searchPlaceholder:"搜索配置名称、命令或参数...",addServer:"添加服务",noServers:"还没有MCP服务配置",noResults:"未找到匹配的配置",adjustSearch:"尝试调整搜索条件",addFirstServer:"添加你的第一个MCP服务配置",confirmDelete:'确定要删除 "{{name}}" 配置吗?',import:{button:"从Claude Code导入",noConfigFound:"没有找到Claude Code的MCP配置",success:"成功导入 {{imported}} 个MCP服务器配置{{skipped, select, 0{} other{,跳过 {{skipped}} 个已存在的配置}}",allExist:"所有配置都已存在,没有导入新的配置"},table:{server:"服务",type:"类型",status:"状态",tools:"可用工具",actions:"操作",toolsCount:"{{count}} 个工具",noTools:"无工具"},status:{active:"可用",error:"错误",validating:"验证中",unvalidated:"未验证"},actions:{validate:"重新验证",edit:"编辑",delete:"删除配置"},modal:{addTitle:"添加MCP服务配置",editTitle:"编辑MCP服务配置",saving:"保存中...",saveConfig:"保存配置",addConfig:"添加配置"},form:{serverName:"服务名称 *",serverNamePlaceholder:"例如:playwright",nameNotEditable:"服务名称不可修改",nameRequired:"请输入服务名称",mcpType:"MCP 类型 *",stdioOption:"Stdio (本地进程)",httpOption:"HTTP (远程服务)",selectConnectionType:"选择 MCP 服务器的连接类型",configuration:"配置 * (JSON格式)",configInvalid:"配置格式不正确,请确保包含必需的 {{fields}} 字段,并且格式正确",configFormatError:"⚠️ 配置格式不正确,请确保包含必需的 {{fields}} 字段",requiredFields:"必需字段:",requiredFieldsStdio:"type, command 和 args",requiredFieldsHttp:"type 和 url",optionalFields:"可选字段:",typeField:'字符串,MCP 类型("stdio" 或 "http")',commandField:'字符串,执行命令(如 "npx", "uvx")',argsField:"数组,命令参数",urlField:"字符串,HTTP MCP 服务器的 URL",timeoutField:"数字,超时时间(毫秒)",autoApproveField:"数组,自动批准的操作"},errors:{validationFailed:"验证失败",networkError:"网络错误或服务不可用",deleteFailed:"删除配置失败",importFailed:"导入失败",saveFailed:"保存配置失败"}},bC={title:"自定义命令",subtitle:"管理 Slash Commands",loading:"加载命令中...",searchPlaceholder:"搜索命令...",createButton:"新建命令",error:{loadFailed:"加载失败",cannotLoadCommands:"无法加载自定义命令",retry:"重试"},empty:{noCommands:"还没有自定义命令",noMatchingCommands:"未找到匹配的命令",adjustSearch:"尝试调整搜索条件或筛选器",createFirst:"创建你的第一个自定义 Slash Command"},table:{command:"命令",model:"模型",tools:"工具",createdAt:"创建时间",actions:"操作",inheritSettings:"继承对话设置",toolsCount:"{{count}} 个工具"},actions:{edit:"编辑",editCommand:"编辑命令",deleteCommand:"删除命令"},delete:{title:"删除命令",confirmMessage:'确定要删除命令 "/{{name}}" 吗?此操作无法撤销。',cancel:"取消",delete:"删除",deleting:"删除中..."}},SC={nav:rC,footer:cC,login:uC,landing:dC,agents:fC,projects:mC,chat:hC,dashboard:gC,settings:pC,analytics:yC,mcp:vC,commands:bC},xC="AgentStudio",wC="选择一个智能助手开始工作",CC="正在加载...",TC="可用的智能助手",AC="已禁用的助手",EC="共 {{count}} 个助手",kC="创建自定义助手",NC="自定义助手功能即将推出!",jC="还没有可用的智能助手",RC="启用一些内置助手或创建自己的自定义助手开始使用",MC="管理智能助手",DC="开始使用",OC="编辑助手",LC="禁用助手",UC="启用助手",zC="已禁用",_C="启用助手",PC={slides:"幻灯片",code:"代码",documents:"文档",chat:"对话"},FC={toggleFailed:"操作失败,请重试"},HC={title:xC,subtitle:wC,loading:CC,availableAgents:TC,disabledAgents:AC,agentCount:EC,createCustomAgent:kC,customAgentComingSoon:NC,noAgentsTitle:jC,noAgentsDescription:RC,manageAgents:MC,startUsing:DC,editAgent:OC,disableAgent:LC,enableAgent:UC,disabledStatus:zC,enableAgentButton:_C,componentTypes:PC,errors:FC},BC={name:"项目名称",nameRequired:"项目名称 *",namePlaceholder:"输入项目名称",description:"项目描述",descriptionPlaceholder:"简单描述这个项目的用途...",directory:"项目目录",directoryNote:"项目将在此目录下创建一个新文件夹",agentType:"选择助手类型 *",agentTypePlaceholder:"选择一个助手类型"},VC={name:"助手名称",namePlaceholder:"输入助手名称",description:"助手描述",descriptionPlaceholder:"描述这个助手的功能...",systemPrompt:"系统提示",systemPromptPlaceholder:"输入系统提示词...",tools:"可用工具",selectTools:"选择工具"},qC={editTitle:"编辑命令",createTitle:"新建命令",formMode:"表单",codeMode:"代码",saveChanges:"保存更改",createCommand:"创建命令",nameLabel:"命令名称",nameHint:"只能包含字母、数字、下划线和短划线",modelLabel:"指定模型",inheritModel:"继承对话设置",modelHint:"为此命令指定特定的 AI 模型。",namespaceLabel:"命名空间",namespaceHint:"用于组织命令,可以包含 / 分隔符",argumentHintLabel:"参数提示",argumentHintHint:"在自动完成时显示的参数提示",descriptionLabel:"描述",descriptionPlaceholder:"优化代码性能和可读性",descriptionHint:"命令的简短描述,如果不填写将使用内容的第一行",allowedToolsLabel:"允许的工具",selectTools:"选择工具",regularToolsCount:"常规工具 {{count}} 个",mcpToolsCount:"MCP工具 {{count}} 个",allowedToolsHint:"留空则继承对话权限",contentLabel:"命令内容",contentPlaceholder:`分析这段代码的性能问题并提供优化建议:
|
|
73
|
-
|
|
74
|
-
使用参数:$ARGUMENTS
|
|
75
|
-
使用第一个参数:$1
|
|
76
|
-
使用第二个参数:$2
|
|
77
|
-
|
|
78
|
-
引用文件:@src/utils/helpers.js
|
|
79
|
-
执行命令:!\`git status\``,supportedFeatures:"支持的功能:",features:{arguments:"获取所有参数",positionArgs:"获取指定位置的参数",fileRef:"引用文件内容",bashCommand:"执行 bash 命令并包含输出"},markdownSource:"Markdown 源代码",markdownPlaceholder:`---
|
|
80
|
-
description: 优化代码性能和可读性
|
|
81
|
-
argument-hint: [filename] [options]
|
|
82
|
-
namespace: frontend
|
|
83
|
-
allowed-tools: Read, Write, Edit
|
|
84
|
-
model: claude-3-5-sonnet-20241022
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
分析这段代码的性能问题并提供优化建议:
|
|
88
|
-
|
|
89
|
-
使用参数:$ARGUMENTS
|
|
90
|
-
使用第一个参数:$1
|
|
91
|
-
使用第二个参数:$2
|
|
92
|
-
|
|
93
|
-
引用文件:@src/utils/helpers.js
|
|
94
|
-
执行命令:!\`git status\``,frontmatterSupported:"Frontmatter 支持的字段:",frontmatterFields:{description:"命令描述",argumentHint:"参数提示",namespace:"命名空间",allowedTools:"允许的工具(逗号分隔)",model:"指定模型"},exampleDescription:"优化代码性能和可读性",exampleContent:`分析这段代码的性能问题并提供优化建议:
|
|
95
|
-
|
|
96
|
-
使用参数:$ARGUMENTS
|
|
97
|
-
使用第一个参数:$1
|
|
98
|
-
使用第二个参数:$2
|
|
99
|
-
|
|
100
|
-
引用文件:@src/utils/helpers.js
|
|
101
|
-
执行命令:!\`git status\``,errors:{nameRequired:"命令名称不能为空",nameFormat:"命令名称只能包含字母、数字、下划线和短划线",contentRequired:"命令内容不能为空",scopeRequired:"请选择命令作用域",saveFailed:"保存失败"}},GC={title:"文件浏览器",searchPlaceholder:"搜索文件...",uploadButton:"上传文件",createFolder:"新建文件夹",rename:"重命名",deleteFile:"删除文件",downloadFile:"下载文件",noFiles:"暂无文件",loading:"加载文件中...",loadFailed:"加载项目文件失败",retry:"重新加载",projectPath:"项目路径",emptyDirectory:"项目目录为空",selectFile:"选择一个文件进行预览",previewNotSupported:"不支持预览此文件类型",fileLabel:"文件",imageLoadFailed:"图片加载失败",cannotReadFile:"无法获取文件内容",noOpenFiles:"暂无打开的文件",moreTabsCount:"还有 {{count}} 个标签",pinnedTab:"固定",temporaryTab:"临时",closeTab:"关闭标签"},YC={title:"会话管理",sessionHistory:"会话历史",searchPlaceholder:"搜索会话...",noSessions:"暂无会话",noSessionHistory:"暂无会话历史",noMatchingSessions:"未找到匹配的会话",sessionWillAppear:"开始聊天后会显示会话",messageCount:"{{count}} 条消息",newSession:"新建会话",deleteSession:"删除会话",renameSession:"重命名会话"},$C={title:"工具选择器",searchPlaceholder:"搜索工具...",noTools:"暂无可用工具",selectedTools:"已选工具",selectButton:"选择工具",toolsCount:"常规工具 {{count}} 个",mcpToolsCount:"MCP工具 {{count}} 个"},KC={title:"语言",chinese:"中文",english:"English"},QC={newSession:"新建会话",sessionHistory:"会话历史",refreshMessages:"刷新消息",messagesRefreshed:"消息已刷新",loadingMessages:"正在加载消息...",currentSession:"当前会话",imagePreview:"预览",deleteImage:"删除图片",dropImageHere:"拖放图片到这里",sendImage:"发送了图片",addDescription:"添加描述文字... (可选)",inputPlaceholder:"输入你的消息... (Shift+Enter 换行,Enter 发送,/ 触发命令)",toolSelection:"工具选择",imageSelection:"选择图片",selectedCount:"已选择{{count}}张",stop:"停止",send:"发送",aiTyping:"AI正在输入中",noContent:"无内容可发送",unknownCommand:"未知命令",sendMessage:"发送消息",permissionMode:{default:"默认",acceptEdits:"接受编辑",bypassPermissions:"绕过权限",plan:"计划模式"},model:{sonnet:"Sonnet",opus:"Opus"},claudeVersion:{title:"选择Claude版本",default:"Claude",custom:"自定义",system:"系统",locked:"版本已锁定(活跃会话)"},settings:{title:"设置",permissionMode:"权限模式",claudeVersion:"Claude版本",model:"模型",noSettings:"暂无可用设置"},commandWarning:"未知命令: {{command}}。可用命令: {{commands}}",navigateTo:"导航到: {{path}}",errorMessages:{claudeCodeSDKError:"❌ **Claude Code SDK 错误**",parseError:"解析响应数据时出现错误,可能是由于网络中断或服务器响应格式异常。",timeout:"请求处理超时,服务器响应时间过长。",unknownError:"未知错误,请稍后重试。",networkError:`❌ **网络连接错误**
|
|
102
|
-
|
|
103
|
-
无法连接到AI服务,请检查网络连接后重试。`,requestTimeout:`⏰ **请求超时**
|
|
104
|
-
|
|
105
|
-
请求处理时间过长,请稍后重试。`,rateLimit:`🚫 **请求频率限制**
|
|
106
|
-
|
|
107
|
-
请求过于频繁,请稍后再试。`,unauthorized:`🔐 **认证失败**
|
|
108
|
-
|
|
109
|
-
请检查API密钥配置。`,forbidden:`⛔ **权限不足**
|
|
110
|
-
|
|
111
|
-
没有权限执行此操作。`,internalServerError:`🔧 **服务器内部错误**
|
|
112
|
-
|
|
113
|
-
服务器遇到问题,请稍后重试。`,connectionFailed:`❌ **连接失败**
|
|
114
|
-
|
|
115
|
-
无法连接到AI服务,请检查网络连接后重试。`,connectionTimeout:`⏰ **连接超时**
|
|
116
|
-
|
|
117
|
-
连接服务器超时,请稍后重试。`,suggestions:"**建议操作:**",checkNetwork:"检查网络连接",retryMessage:"重新发送消息",simplifyRequest:"简化请求内容",refreshPage:"刷新页面重试",contactAdmin:"如果问题持续存在,请联系管理员"},sessionResumed:"🔄 **会话已恢复**",sessionIdUpdated:"*会话ID已自动更新,历史记录已重新加载*",taskComplete:"✅ 任务完成",executionCompleted:"(执行完成)",genericError:"抱歉,处理您的请求时出现了错误。",unknownCommandWarning:"未知命令: /{{command}}。可用命令: {{commands}}",navigateToAlert:"导航到: {{path}}",generationStopped:"⏹️ 生成已停止",stopping:"正在停止...",stopFailed:"❌ **停止失败**",initializingSession:"正在启动新会话,请稍候...",maxTurnsReached:"⏱️ **达到最大轮次限制**",permissionDenials:"⚠️ **权限拒绝的操作**:",permissionNote:"💡 某些操作需要用户权限确认才能执行。",executionError:`❌ **执行过程中出现错误**
|
|
118
|
-
|
|
119
|
-
请检查输入或稍后重试。`,processingError:`❌ **处理过程中出现错误**
|
|
120
|
-
|
|
121
|
-
请稍后重试或检查输入内容。`,processingComplete:"✅ **处理完成**"},XC={init:{name:"init",description:"初始化项目或重置对话上下文"},clear:{name:"clear",description:"清空当前对话历史"},compact:{name:"compact",description:"压缩对话历史,保留关键信息"},agents:{name:"agents",description:"管理AI代理和子代理"},settings:{name:"settings",description:"打开设置页面"},help:{name:"help",description:"显示帮助信息"}},IC={title:"记忆管理"},ZC={title:"命令管理"},JC={title:"子Agent管理"},WC={title:"活跃会话",activeCount:"当前活跃: {{count}} 个会话",loadingMessage:"加载会话信息...",status:{pending:"等待中",active:"活跃",idle:"空闲"},labels:{session:"会话",agent:"Agent",project:"项目",activity:"活动"},time:{hoursMinutes:"{{hours}}小时{{minutes}}分钟",minutesSeconds:"{{minutes}}分钟{{seconds}}秒",seconds:"{{seconds}}秒"},heartbeat:{none:"无心跳",timeout:"心跳超时"},actions:{openChat:"打开聊天窗口",cleanup:"清理会话"},errors:{loadFailed:"加载会话信息失败",cleanupFailed:"清理会话失败,请重试",navigationFailed:"导航失败,已降级处理"},empty:{noSessions:"暂无活跃会话",startChatHint:"开始与助手对话即可创建会话"}},e1={title:"选择文件或目录",emptyDirectory:"此目录为空",toolbar:{homeDirectory:"主目录",parentDirectory:"上级目录",loadingPath:"加载中...",newDirectory:"新建目录",showHidden:"显示隐藏文件",hideHidden:"隐藏隐藏文件"},table:{name:"名称",size:"大小",modified:"修改时间",actions:"操作"},actions:{select:"选择",cancel:"取消",createFolder:"创建目录",creating:"创建中..."},dialog:{newFolder:"新建目录",createAt:"在以下位置创建新目录:",folderName:"目录名称",folderNamePlaceholder:"输入目录名称"},footer:{itemsCount:"{{count}} 个项目"},errors:{error:"错误",loadFailed:"加载目录失败",browseFailed:"浏览目录失败",createFailed:"创建目录失败"}},t1={title:"工具选择",tabs:{regular:"常规工具",mcp:"MCP工具"},selectAll:"全选",preset:"预设",enableMcpTools:"启用MCP工具",loading:"加载中...",noMcpServers:"没有可用的MCP服务器",toolsCount:"{{count}} 个工具",serverUnavailable:"服务器不可用"},n1={title:{create:"创建 Subagent",edit:"编辑 Subagent"},mode:{form:"表单",code:"代码"},actions:{cancel:"取消",create:"创建 Subagent",saving:"保存中...",saveChanges:"保存更改"},codeMode:{title:"代码模式",description:"在此模式下,你可以直接编辑 Markdown 格式的 subagent 文件,包括 YAML frontmatter 和系统提示词内容。",label:"Subagent 文件内容",placeholder:`---
|
|
122
|
-
name: my-subagent
|
|
123
|
-
description: 专门处理特定任务的subagent
|
|
124
|
-
tools: read_file, write, search_replace
|
|
125
|
-
---
|
|
126
|
-
|
|
127
|
-
你是一个专门处理...的AI助手。
|
|
128
|
-
|
|
129
|
-
你的任务是...`},fields:{name:{label:"名称 *",placeholder:"my-subagent"},scope:{label:"作用域",projectScope:"项目 Subagent"},description:{label:"描述 *",placeholder:"描述这个subagent的用途和应该在什么时候被调用"},tools:{label:"允许的工具",selectTools:"选择工具",regularToolsCount:"常规工具 {{count}} 个",mcpToolsCount:"MCP工具 {{count}} 个",hint:"留空则继承所有可用工具"},content:{label:"系统提示词 *",placeholder:`你是一个专门处理...的AI助手。
|
|
130
|
-
|
|
131
|
-
你的任务是...
|
|
132
|
-
|
|
133
|
-
请确保...
|
|
134
|
-
|
|
135
|
-
当遇到...时,你应该...`}},validation:{nameRequired:"名称不能为空",nameFormat:"名称只能包含小写字母、数字和连字符",descriptionRequired:"描述不能为空",contentRequired:"系统提示词不能为空"},errors:{saveFailed:"保存失败"}},a1={systemCommands:{init:{description:"初始化项目或重置对话上下文"},clear:{description:"清空当前对话历史"},compact:{description:"压缩对话历史,保留关键信息"},agents:{description:"管理AI代理和子代理"},settings:{description:"打开设置页面"},help:{description:"显示帮助信息"}}},l1={title:"API服务器设置",fields:{address:"API服务器地址",addressPlaceholder:"http://localhost:4936 或 https://your-domain.com"},actions:{test:"测试",reset:"重置",cancel:"取消",save:"保存"},quickSelect:{title:"快捷选择:",localDev:"本地开发",officialServer:"官方服务器"},status:{label:"连接状态",success:"连接成功",error:"连接失败",untested:"未测试"},instructions:{title:"使用说明:",localDev:"本地开发时使用",production:"生产环境使用您的服务器域名",cors:"确保服务器支持CORS访问",refresh:"修改后页面会自动刷新"},errors:{serverError:"服务器响应错误: {{status}} {{statusText}}",connectionFailed:"连接失败: {{message}}",connectionFailedUnknown:"连接失败: 未知错误",enterAddress:"请输入API服务器地址"},saveSuccess:"设置已保存,页面将刷新以应用新设置"},i1={title:"项目命令管理",loading:"正在加载项目命令...",searchPlaceholder:"搜索命令...",createButton:"新建命令",error:{title:"加载失败",message:"无法加载项目命令",retry:"重试",close:"关闭"},emptyState:{noCommandsTitle:"还没有项目命令",noCommandsDescription:"为这个项目创建专用的 Slash Command",noMatchTitle:"未找到匹配的命令",noMatchDescription:"尝试调整搜索条件"},table:{command:"命令",model:"模型",tools:"工具",createdAt:"创建时间",actions:"操作",inheritSettings:"继承对话设置",toolsCount:"{{count}} 个工具"},actions:{edit:"编辑",editTooltip:"编辑命令",deleteTooltip:"删除命令"},deleteConfirm:{title:"删除命令",message:'确定要删除命令 "/{{name}}" 吗?此操作无法撤销。',cancel:"取消",confirm:"删除",deleting:"删除中..."}},s1={title:"项目 Subagent 管理",loading:"正在加载项目 Subagents...",searchPlaceholder:"搜索 Subagents...",error:{loadFailed:"加载失败",loadFailedMessage:"无法加载项目 Subagents"},actions:{retry:"重试",close:"关闭",create:"新建 Subagent",edit:"编辑",editTooltip:"编辑 Subagent",delete:"删除",deleteTooltip:"删除 Subagent",cancel:"取消"},emptyState:{noSubagents:"还没有项目 Subagents",noResults:"未找到匹配的 Subagents",tryAdjust:"尝试调整搜索条件",description:"为这个项目创建专门的 AI 子代理来处理特定任务"},table:{subagent:"Subagent",tools:"工具",createdAt:"创建时间",actions:"操作",toolsCount:"{{count}} 个工具",inheritSettings:"继承对话设置"},deleteConfirm:{title:"确认删除",message:'确定要删除 Subagent "<strong>{{name}}</strong>" 吗?',warning:"此操作无法撤销。"}},o1={selectProjectDirectory:"选择项目目录",projectActions:"项目操作",quickCreateProject:"快速新建项目",creatingProject:"正在创建项目...",quickCreateDescription:"在 ~/claude-code-projects 中自动创建",customLocationCreate:"自定义位置新建",customLocationDescription:"选择目录和项目名称",browseProject:"浏览选择项目",browseDescription:"通过文件浏览器选择项目目录",recentProjects:"最近使用的项目",loadingProjects:"正在加载项目...",lastAccessed:"最后访问: {{date}}",noRecentProjects:"暂无最近使用的项目",createProjectToStart:"创建新项目开始使用",cancel:"取消",selectParentDirectory:"选择新项目的父目录",createProjectFailed:"创建项目失败: {{error}}",unknownError:"未知错误",importConfirmation:`该目录尚未作为 {{agentName}} 的项目。
|
|
136
|
-
|
|
137
|
-
是否要将此目录导入作为新项目?
|
|
138
|
-
|
|
139
|
-
路径: {{path}}`,dialog:{createNewProject:"创建新项目",projectWillBeCreatedAt:"项目将在以下目录中创建:",projectName:"项目名称",projectNamePlaceholder:"输入项目名称",cancel:"取消",createProject:"创建项目"}},r1={image:"图片 ({{mimeType}})",resource:"资源",uri:"URI",name:"名称",description:"描述",type:"类型",unknownType:"未知类型 ({{type}})",errorMessage:"错误信息:",executionResult:"执行结果:",progress:"进度: {{current}} / {{total}}",subtitle:"MCP: {{toolName}} @ {{serverName}}",parameters:"参数"},c1={executing:"执行中...",executionError:"执行出错",timeout:"超时时间: {{timeout}}ms"},u1={readFile:"读取文件",startLine:"起始行",readLines:"读取行数"},d1={filePath:"文件路径",fileSize:"文件大小: {{size}} 字符"},f1={editFile:"编辑文件",replaceAll:"全部替换",yes:"是"},m1={noFilesFound:"没有找到匹配的文件",patternLabel:"匹配模式",pathLabel:"搜索路径",matchingResults:"匹配结果:"},h1={noMatchesFound:"没有找到匹配项",matchStatistics:"匹配统计",patternLabel:"搜索模式",pathLabel:"搜索路径",globLabel:"文件过滤",typeLabel:"文件类型",outputModeLabel:"输出模式",ignoreCase:"忽略大小写",showLineNumbers:"显示行号",afterLines:"后 {{count}} 行",beforeLines:"前 {{count}} 行",contextLines:"上下 {{count}} 行",multilineMode:"多行模式",searchResults:"搜索结果:"},g1={urlLabel:"URL:",analysisPromptLabel:"分析提示",truncated:"...(已截断)",webAnalysisResult:"网页分析结果:"},p1={searchQueryLabel:"搜索查询",allowedDomains:"允许域名:",blockedDomains:"屏蔽域名:",searchResults:"搜索结果:"},y1={taskDescriptionLabel:"任务描述",taskPromptLabel:"任务提示",truncated:"...(已截断)",totalLength:"总长度: {{length}} 字符"},v1={allTasksCompleted:"所有任务已完成",currentTaskProgress:"{{completed}}/{{total}} {{task}}",pendingTasks:"{{completed}}/{{total}} 待办任务",completedCount:"已完成: {{count}}",inProgressCount:"进行中: {{count}}",pendingCount:"待处理: {{count}}"},b1={implementationPlan:"实施计划:",planModeExited:"计划模式已退出,准备开始实施"},S1={notebookPath:"Notebook 路径",insert:"插入",delete:"删除",replace:"替换",code:"代码",markdown:"Markdown",cellId:"单元格 ID",newContent:"新内容",truncated:"...(已截断)"},x1={unknownToolType:"未知工具类型"},w1={executionResult:"执行结果:"},C1={shellPrefix:"Shell",exitCode:"退出码",stdout:"标准输出",stderr:"错误输出",fetchingOutput:"正在获取 Shell {{shellId}} 的输出...",filterCondition:"过滤条件",status:{running:"运行中",completed:"已完成",killed:"已终止",failed:"执行失败"}},T1={subtitle:"终止 Shell {{shellId}}",subtitleWithProcess:"终止 Shell {{shellId}} ({{processName}})",shellId:"Shell ID",status:{terminating:"正在终止进程...",success:"进程已成功终止",failed:"终止进程失败",ready:"准备终止进程"}},A1={directoryPath:"目录路径",ignorePatterns:"忽略模式",directoryStructure:"目录结构:"},E1={filePath:"文件路径",batchEdit:"批量编辑 ({{count}} 个操作):",operation:"操作 #{{number}}",replaceAll:"全部替换"},k1={notebookPath:"Notebook 路径",cellId:"单元格 ID"},N1={send:"发送",stop:"停止",stopping:"停止中...",sendMessage:"发送消息",stopGeneration:"停止生成",aiTyping:"AI正在输入中",noContentToSend:"无内容可发送",unknownCommand:"未知命令",errors:{jsonParseError:`解析响应数据时出现错误,可能是由于网络中断或服务器响应格式异常。
|
|
140
|
-
|
|
141
|
-
**建议操作:**
|
|
142
|
-
- 检查网络连接
|
|
143
|
-
- 重新发送消息
|
|
144
|
-
- 如果问题持续存在,请联系管理员`,timeoutError:`请求处理超时,服务器响应时间过长。
|
|
145
|
-
|
|
146
|
-
**建议操作:**
|
|
147
|
-
- 简化请求内容
|
|
148
|
-
- 稍后重试
|
|
149
|
-
- 检查网络连接状态`,suggestedActions:"建议操作",resendMessage:"重新发送消息",refreshPage:"刷新页面重试",unknownError:"未知错误",networkError:`❌ **网络连接错误**
|
|
150
|
-
|
|
151
|
-
无法连接到AI服务,请检查网络连接后重试。`,requestTimeout:`⏰ **请求超时**
|
|
152
|
-
|
|
153
|
-
请求处理时间过长,请稍后重试。`,rateLimit:`🚫 **请求频率限制**
|
|
154
|
-
|
|
155
|
-
请求过于频繁,请稍后再试。`,unauthorized:`🔐 **认证失败**
|
|
156
|
-
|
|
157
|
-
请检查API密钥配置。`,forbidden:`⛔ **权限不足**
|
|
158
|
-
|
|
159
|
-
没有权限执行此操作。`,internalServerError:`🔧 **服务器内部错误**
|
|
160
|
-
|
|
161
|
-
服务器遇到问题,请稍后重试。`,processingError:"处理错误",unknownErrorRetry:"未知错误,请稍后重试。",connectionFailed:`❌ **连接失败**
|
|
162
|
-
|
|
163
|
-
无法连接到AI服务,请检查网络连接后重试。`,networkConnectionFailed:`🌐 **网络连接失败**
|
|
164
|
-
|
|
165
|
-
无法连接到服务器,请检查网络连接。`,connectionTimeout:`⏰ **连接超时**
|
|
166
|
-
|
|
167
|
-
连接服务器超时,请稍后重试。`,connectionError:"连接错误",cannotConnectRetry:"无法连接到AI服务,请稍后重试。"}},j1={title:"已压缩上下文",expand:"展开查看",collapse:"收起"},R1={title:"最近活动",empty:"暂无最近活动",time:{justNow:"刚刚",minutesAgo:"{{count}} 分钟前",hoursAgo:"{{count}} 小时前",daysAgo:"{{count}} 天前"}},M1={title:"后端服务",noService:"无服务",namePlaceholder:"服务名称",urlPlaceholder:"服务地址",add:"添加",save:"保存",cancel:"取消",edit:"编辑",delete:"删除",addNew:"添加新服务",testingConnection:"正在测试连接...",connectionWarning:{title:"无法连接到服务",message:'无法连接到服务 "{{name}}" ({{url}})。',consequence:"如果继续切换,您将无法登录或使用该服务,但可以在登录页面中重新配置服务地址。",cancel:"取消",continue:"仍然切换"}},D1={detecting:{title:"正在检测 Claude CLI",description:"正在检测您的系统中是否安装了 Claude..."},selection:{title:"选择 Claude 版本",description:"我们检测到以下 Claude CLI 安装,请选择要使用的版本",userInstalled:"用户全局安装",systemInstalled:"系统 npm 包",path:"路径",version:"版本",packageManager:"包管理器",useUserInstalled:"使用用户安装的 Claude",useUserInstalledDesc:"使用您通过包管理器全局安装的 Claude CLI",useSystemPackage:"使用系统 npm 包",useSystemPackageDesc:"使用本项目 node_modules 中自带的 Claude CLI",noClaudeFound:"未检测到 Claude CLI",noClaudeFoundDesc:"请先安装 Claude CLI 或确保项目依赖已正确安装"},config:{title:"配置认证方式",description:"选择如何配置 Claude 的认证凭证",skipToken:"暂不配置(推荐)",skipTokenDesc:"跳过认证配置,效果与 Claude Pro 订阅用户一样",claudePro:"Claude Pro 订阅用户",claudeProDesc:"我是 Claude Pro 订阅用户,将在 CLI 中自行登录",enterToken:"手动输入 Token",enterTokenDesc:"手动输入 ANTHROPIC_AUTH_TOKEN 环境变量",tokenPlaceholder:"输入您的 ANTHROPIC_AUTH_TOKEN"},creating:{title:"正在创建系统版本",description:"正在为您配置 Claude 版本,请稍候..."},success:{title:"配置成功!",description:"Claude 版本已成功创建,即将返回控制台..."},actions:{skip:"跳过",next:"下一步",back:"上一步",create:"创建版本"}},O1={projectForm:BC,agentForm:VC,commandForm:qC,fileExplorer:GC,sessionDropdown:YC,toolSelector:$C,languageSwitcher:KC,agentChat:QC,systemCommands:XC,projectMemory:IC,projectCommands:ZC,projectSubAgents:JC,sessionsDashboard:WC,fileBrowser:e1,unifiedToolSelector:t1,subagentForm:n1,commandSelector:a1,apiSettingsModal:l1,projectCommandsModal:i1,projectSubAgentsModal:s1,projectSelector:o1,mcpTool:r1,bashTool:c1,readTool:u1,writeTool:d1,editTool:f1,globTool:m1,grepTool:h1,webFetchTool:g1,webSearchTool:p1,taskTool:y1,todoWriteTool:v1,exitPlanModeTool:b1,notebookEditTool:S1,toolRenderer:x1,baseToolComponent:w1,bashOutputTool:C1,killBashTool:T1,lsTool:A1,multiEditTool:E1,notebookReadTool:k1,agentChatPanel:N1,compactSummary:j1,recentActivity:R1,backendServiceSwitcher:M1,claudeVersionSetup:D1},L1={connectionFailed:"网络连接错误,无法连接到AI服务",connectionFailedRetry:"网络连接错误,无法连接到AI服务,请检查网络连接后重试",timeout:"请求超时,请重试",serverError:"服务器错误,请稍后重试",unknownError:"未知错误,请重试"},U1={createFailed:"创建项目失败",deleteFailed:"删除项目失败",updateFailed:"更新项目失败",notFound:"未找到匹配的项目",loadFailed:"加载项目失败",nameRequired:"项目名称不能为空",nameInvalid:"项目名称包含非法字符"},z1={createFailed:"创建助手失败",deleteFailed:"删除助手失败",updateFailed:"更新助手失败",notFound:"无法找到指定的智能助手,可能已被删除或禁用",loadFailed:"加载助手失败",setFailed:"设置Agent失败",builtinCannotDelete:"内置助手无法删除,但可以禁用",nameRequired:"助手名称不能为空"},_1={uploadFailed:"上传文件失败",deleteFailed:"删除文件失败",downloadFailed:"下载文件失败",readFailed:"读取文件失败",writeFailed:"写入文件失败",notFound:"文件不存在",tooLarge:"文件过大"},P1={createFailed:"创建会话失败",deleteFailed:"删除会话失败",loadFailed:"加载会话失败",notFound:"会话不存在"},F1={executeFailed:"命令执行失败",notFound:"未找到匹配的命令",loadFailed:"无法加载自定义命令",invalidFormat:"命令格式错误"},H1={saveFailed:"保存失败,请重试",loadFailed:"加载失败",operationFailed:"操作失败,请重试",invalidInput:"输入内容无效",permissionDenied:"权限不足"},B1={network:L1,project:U1,agent:z1,file:_1,session:P1,command:F1,common:H1},V1={pptEditor:"PPT编辑助手",codeAssistant:"AI编程助手",documentWriter:"文档写作助手",generalChat:"通用对话助手",custom:"自定义助手"},q1={loading:"正在加载智能助手...",loadingProjects:"正在加载项目...",loadingMcp:"正在加载MCP配置...",loadingSubagents:"正在加载 Subagents...",loadingCommands:"加载命令中...",loadingSession:"加载会话信息...",creating:"正在创建项目...",notFound:"无法找到指定的智能助手",noAgents:"暂无智能助手"},G1={bash:"命令行工具",read:"文件读取",write:"文件写入",edit:"文件编辑",search:"代码搜索",webSearch:"网络搜索",webFetch:"网页抓取"},Y1={active:"活跃",inactive:"未激活",running:"运行中",stopped:"已停止",error:"错误"},$1={createAgent:"创建助手",editAgent:"编辑助手",deleteAgent:"删除助手",enableAgent:"启用助手",disableAgent:"禁用助手",testAgent:"测试助手",configureAgent:"配置助手"},K1={taskCompleted:"✅ 任务完成",generationStopped:"⏹️ 生成已停止",sessionRestored:"🔄 会话已恢复",executionCompleted:"(执行完成)"},Q1={title:"文档大纲",description:"文档结构和章节管理",createSection:"新建章节",featureTitle:"文档大纲功能",comingSoon:"即将推出...",chatManagement:"您可以通过聊天来管理文档内容"},X1={title:"代码浏览器",description:"代码文件和结构管理",projectWithPath:"项目: {{path}}",openFile:"打开文件",featureTitle:"代码浏览器功能",comingSoon:"即将推出...",chatManagement:"您可以通过聊天来管理代码文件"},I1={title:"幻灯片预览",refreshTitle:"刷新幻灯片",refresh:"刷新",slideCount:"共 {{count}} 张幻灯片",noSlides:"还没有幻灯片",createWithAI:"与AI聊天来创建幻灯片",loading:"加载中...",loadError:"加载失败,请刷新页面重试",tabs:{preview:"预览",code:"代码"},loadFailed:"加载失败",fileNotFound:"文件不存在",loadingCode:"加载代码中..."},Z1={types:V1,messages:q1,tools:G1,status:Y1,actions:$1,notifications:K1,documentOutline:Q1,codeExplorer:X1,slidePreview:I1},J1={welcome:{title:"欢迎使用 AgentStudio",subtitle:"在开始之前,我们需要配置后端服务连接",features:{title:"后端服务负责:",ai:{title:"AI 模型调用",description:"连接 Claude 等 AI 模型进行智能对话"},storage:{title:"文件存储和管理",description:"保存您的工作内容和项目文件"},history:{title:"会话历史记录",description:"保存和管理您的对话历史"}}},detecting:{title:"检测后端服务",description:"正在检测本地后端服务..."},found:{title:"检测到本地后端服务",description:"我们在您的系统中发现了可用的后端服务",serviceAddress:"服务地址",status:"连接正常",useThisService:"使用此服务",addOtherService:"添加其他服务"},notFound:{title:"未检测到本地后端服务",description:"请选择以下方式之一来配置后端服务",tabs:{install:"本地安装",remote:"使用远程服务"},install:{title:"安装本地后端服务",description:"按照以下步骤在本地安装后端服务:",copyCommands:"复制安装命令",viewDocs:"查看完整文档",retry:"重新检测"},remote:{title:"使用远程后端服务",description:"如果您已有远程服务,可以在这里配置连接",serviceName:"服务名称",serviceNamePlaceholder:"例如:公司服务器",serviceUrl:"服务地址",testConnection:"测试连接",testing:"测试中...",success:"连接成功",failed:"连接失败",addService:"添加服务",commonServices:"常用服务:",official:"官方服务",local:"本地服务"}},complete:{title:"配置完成!",description:"已成功连接到后端服务",serviceName:"服务名称",serviceUrl:"服务地址",nextSteps:{title:"接下来",description:"请登录系统开始使用 AgentStudio"},goToLogin:"前往登录",manageServices:"管理服务"},skipConfirm:{title:"确定要跳过配置?",warning:"未配置后端服务可能导致:",consequences:{noAi:"无法连接 AI 服务",noStorage:"无法保存工作内容",noFeatures:"系统功能不可用"},reconfigure:"您可以随时在以下位置重新配置:",locations:{loginPage:"登录页面的服务管理",settingsPage:"设置页面的 API 配置"},back:"返回配置",skip:"仍要跳过"},addService:{title:"添加后端服务",description:"输入后端服务的地址和名称进行连接",installHelp:"安装帮助",installGuide:{title:"本地安装指南",description:"按照以下步骤在本地安装后端服务:",copyCommands:"复制命令",viewDocs:"查看文档"},serviceName:"服务名称",serviceNamePlaceholder:"例如:公司服务器",serviceUrl:"服务地址",testConnection:"测试连接",testing:"测试中...",success:"连接成功",failed:"连接失败",commonServices:"常用服务:",official:"官方服务",local:"本地服务",retry:"重新检测",addButton:"添加服务"},actions:{skip:"跳过",getStarted:"开始配置",next:"下一步",back:"上一步"}},W1={backend:J1},eT={create:"Create",delete:"Delete",save:"Save",cancel:"Cancel",confirm:"Confirm",edit:"Edit",close:"Close",back:"Back",refresh:"Refresh",submit:"Submit",reset:"Reset",search:"Search",add:"Add",remove:"Remove",update:"Update",upload:"Upload",download:"Download",export:"Export",import:"Import",copy:"Copy",paste:"Paste",cut:"Cut"},tT={loading:"Loading...",processing:"Processing...",success:"Success",failed:"Failed",saving:"Saving...",deleting:"Deleting...",uploading:"Uploading...",downloading:"Downloading...",completed:"Completed",pending:"Pending",active:"Active",inactive:"Inactive",enabled:"Enabled",disabled:"Disabled"},nT={yes:"Yes",no:"No",ok:"OK",all:"All",none:"None",or:"Or",and:"And",more:"More",less:"Less",unknown:"Unknown",optional:"Optional",required:"Required",default:"Default",custom:"Custom"},aT="Path",lT="Created",iT={init:{description:""},clear:{description:""},compact:{description:""},agents:{description:""},settings:{description:""},help:{description:""}},sT={sendImage:""},oT={chinese:"",english:""},rT={pageTitle:"",metaDescription:"",nav:{enterWorkspace:""},hero:{title:"",subtitle:"",description:"",startNow:"",viewSource:""},features:{title:"",subtitle:"",modernWeb:{title:"",description:""},multiModel:{title:"",description:""},agentSystem:{title:"",description:""},fileManagement:{title:"",description:""},professionalTools:{title:"",description:""},secureReliable:{title:"",description:""}},quickStart:{title:"",subtitle:"",endUserTitle:"",endUserDescription:"",developerTitle:"",developerDescription:""},cta:{title:"",subtitle:"",start:""},footer:{description:"",copyright:"",product:"",workspace:"",sourceCode:"",releases:"",support:"",documentation:"",issues:"",discussions:""}},cT={actions:eT,status:tT,common:nT,path:aT,createdAt:lT,systemCommands:iT,agentChat:sT,languageSwitcher:oT,landing:rT},uT={dashboard:"Dashboard",projects:"Projects",agents:"Agents",mcp:"MCP Services",settings:"Settings",settingsSubmenu:{general:"General",versions:"Versions",memory:"Memory",commands:"Commands",subagents:"Subagents"}},dT={version:"Version {{version}}",apiServerStatus:{connected:"API Server Settings - Connected",disconnected:"API Server Settings - Connection Failed",checking:"API Server Settings - Checking..."},serviceStatus:{normal:"Service Normal",unavailable:"Service Unavailable",checking:"Checking..."}},fT={title:"Sign In",subtitle:"Enter your password to continue",passwordLabel:"Password",passwordPlaceholder:"Enter password",loginButton:"Sign In",loggingIn:"Signing in...",footer:"Please contact your administrator if you forgot your password",manageServices:"Manage Backend Services",serviceName:"Service Name",serviceUrl:"Service URL",current:"Current",testConnection:"Test Connection",switchTo:"Switch to this service",edit:"Edit",delete:"Delete",save:"Save",cancel:"Cancel",add:"Add",addService:"Add New Service",rerunOnboarding:"Rerun Configuration Wizard"},mT={pageTitle:"AgentStudio - AI Agent Platform | Powered by Claude Code",metaDescription:"A modern personal agent platform built on Claude Code SDK. Access powerful AI capabilities through an intuitive web interface, supporting multiple LLMs to boost productivity.",nav:{enterWorkspace:"Enter Workspace"},hero:{title:"AI Agent Platform",subtitle:"Make AI Your Powerful Assistant",description:"A modern personal agent platform built on Claude Code SDK. Access powerful AI capabilities through an intuitive web interface to boost productivity.",startNow:"Get Started",viewSource:"View Source"},features:{title:"Core Features",subtitle:"Comprehensive Features for Modern AI Workflows",modernWeb:{title:"Modern Web Interface",description:"Professional intuitive Web UI, real-time streaming responses, split-panel design, suitable for developers and general users"},multiModel:{title:"Multi-Model Support",description:"Support for Claude, OpenAI, GLM, DeepSeek and other LLMs, flexible switching to meet different needs"},agentSystem:{title:"Agent System",description:"Built-in professional agents, custom agent creation, message-level tool customization, extensible development framework"},fileManagement:{title:"File Management",description:"Built-in file explorer, project-aware operations, version control integration, support for image upload and content preview"},professionalTools:{title:"Professional Tools",description:"Slide agents, code explorer, document outline, tool renderer and other professional tools to boost productivity"},secureReliable:{title:"Secure & Reliable",description:"Environment variables protect API keys, CORS configuration, input validation, sandboxed file system access to ensure security"}},quickStart:{title:"Quick Start",subtitle:"Choose your preferred installation method and start using within minutes",endUserTitle:"End Users - One-Click Install",endUserDescription:"No configuration needed, auto-installs all dependencies, perfect for quick experience and daily use",developerTitle:"Developers - Source Deployment",developerDescription:"Full development environment, supports hot reload, perfect for custom development and feature extension"},cta:{title:"Ready to start your AI workflow?",subtitle:"Join developers and teams using AgentStudio and experience AI-driven productivity",start:"Get Started"},footer:{description:"Personal agent platform built on Claude Code SDK, make AI your powerful assistant.",copyright:"© 2024 AgentStudio. MIT License.",product:"Product",workspace:"Workspace",sourceCode:"Source Code",releases:"Releases",support:"Support",documentation:"Documentation",issues:"Issues",discussions:"Discussions"}},hT={title:"Agent Management",subtitle:"Manage Specialized AI Agents",createButton:"Create Assistant",editButton:"Edit Assistant",deleteButton:"Delete Assistant",enableButton:"Enable Assistant",disableButton:"Disable Assistant",useButton:"Use",startUsingButton:"Start using assistant",noAgents:"No assistants yet",noAgentsSearch:"No matching assistants found",searchPlaceholder:"Search assistants...",createFirst:"Create your first AI assistant",adjustSearch:"Try adjusting search criteria",loading:"Loading AI assistants...",filter:{all:"All",enabled:"Enabled",disabled:"Disabled"},table:{agent:"AI Assistant",type:"Type",config:"Configuration",tools:"Tools",status:"Status",actions:"Actions",maxTurns:"Max Turns",unlimited:"Unlimited",permission:"Permission",toolsCount:"{{count}} tools"},form:{create:"Create Assistant",edit:"Edit Assistant",name:"Name",description:"Description",maxTurns:"Max Turns",maxTurnsPlaceholder:"Unlimited",maxTurnsError:"Max turns must be between 1-100",maxTurnsExceeded:"Max turns cannot exceed {{maximum}}",permissionMode:"Permission Mode",icon:"Icon",primaryColor:"Primary Color",enabledTools:"Enabled Tools",selectTools:"Select Tools",toolsRegular:"{{count}} regular tools",toolsMcp:"{{count}} MCP tools",systemPrompt:"System Prompt",systemPromptPlaceholder:"Enter assistant's system prompt...",nameRequired:"Please enter assistant name",save:"Save",cancel:"Cancel"},permissions:{default:"Default",acceptEdits:"Auto-accept edits",bypassPermissions:"Bypass permission checks",plan:"Plan mode"},status:{enabled:"Enabled",disabled:"Disabled"},errors:{createFailed:"Failed to create, please try again.",saveFailed:"Failed to save, please try again.",deleteFailed:"Failed to delete, please try again.",toggleFailed:"Operation failed, please try again.",builtinCannotDelete:"Built-in assistants cannot be deleted, but can be disabled."},confirmDelete:`Are you sure you want to delete assistant "{{name}}"?
|
|
168
|
-
|
|
169
|
-
This action cannot be undone, and all related sessions will also be deleted.`},gT={title:"Project Management",subtitle:"Manage All Your Work Projects",createButton:"Create New Project",selectType:"Select Assistant Type to Create Work Project",noProjects:"No projects yet",searchPlaceholder:"Search projects...",loading:"Loading projects...",filter:{all:"All",active:"Active",inactive:"Inactive"},table:{project:"Project",agent:"Assistant",lastActive:"Last Active",sessions:"Sessions",actions:"Actions",sessionsCount:"{{count}} sessions"},form:{create:"Create Project",edit:"Edit Project",name:"Project Name",namePlaceholder:"Enter project name",nameRequired:"Project Name *",agentType:"Select Assistant Type *",agentTypePlaceholder:"Choose an assistant type",directory:"Project Directory",directoryNote:"A new folder will be created under this directory",description:"Project Description",descriptionPlaceholder:"Briefly describe the purpose of this project...",save:"Save",cancel:"Cancel"},actions:{open:"Open",openInNewTab:"Open in new tab",edit:"Edit",delete:"Delete"},status:{active:"Active",inactive:"Inactive",never:"Never"},errors:{createFailed:"Failed to create project",updateFailed:"Failed to update project",deleteFailed:"Failed to delete project",loadFailed:"Failed to load projects"},deleteConfirm:"Are you sure you want to delete this project?",deleteNote:"Note: This will only remove the project from the list, not delete the actual file directory.",deleteSuccess:"Project deleted"},pT={title:"Chat",inputPlaceholder:"Type a message...",aiTyping:"AI is typing",newSession:"New Chat",sessionHistory:"Chat History",loading:"Loading AI assistant...",agentNotFound:"Assistant Not Found",agentNotFoundDesc:"Unable to find the specified AI assistant, it may have been deleted or disabled.",agentDisabled:"Assistant Disabled",agentDisabledDesc:'AI assistant "{{name}}" is currently disabled and cannot be used.',closePage:"Close Page"},yT={title:"Dashboard",welcome:"Welcome back to Claude Code workspace",stats:{agentManagement:"Agent Management",workProjects:"Work Projects",slashCommands:"Slash Commands",activeSessions:"Active Sessions"},recentAgents:{title:"Frequently Used Assistants",viewAll:"View All",types:{slides:"Presentations",code:"Code Development",documents:"Document Writing"},noAgents:"No assistants available",goEnable:"Enable assistants"},quickActions:{title:"Quick Actions",createProject:{title:"Create New Project",description:"Select assistant type to create work project"},createAgent:{title:"Create New Assistant",description:"Configure custom AI assistant"},addMcp:{title:"Add MCP Service",description:"Connect new MCP server"},viewAnalytics:{title:"View Analytics",description:"Analyze usage and performance"}},overview:"Overview",statistics:"Statistics",recentActivity:"Recent Activity"},vT={title:"Settings",general:{title:"General Settings",description:"Configure interface theme and basic settings",interfaceSettings:"Interface Settings",theme:{label:"Theme",description:"Select interface theme mode",auto:"Follow System",light:"Light Mode",dark:"Dark Mode"},language:{label:"Language",description:"Select interface language"},appInfo:{title:"Application Info",name:"AgentStudio",buildDate:"Build Date",versionNote:"Go to Version Management page for detailed version info and updates"},settingsSaved:"Settings saved"},api:"API Server Settings",memory:"Global Memory",memorySettings:{title:"Global Memory Settings",description:"Global memory is shared background information for all AI assistants, including your work preferences, project information, etc.",fileSourceInfo:"Content is sourced from the ~/.claude/CLAUDE.md file in your user directory.",memoryContent:"Memory Content",edit:"Edit",cancelEdit:"Cancel Edit",refresh:"Refresh",refreshing:"Refreshing...",placeholder:"Write your global memory content here...",cancel:"Cancel",saveMemory:"Save Memory",loading:"Loading global memory...",noMemory:"No global memory content yet",clickEditToStart:'Click "Edit" button to start adding',infoAutoLoad:"Global memory will be automatically loaded in every conversation to provide background information for AI",infoSuggestions:"Recommended to include: work preferences, project background, personal information, etc.",infoFileLocation:"File location: ~/.claude/CLAUDE.md",saveSuccess:"Global memory saved successfully",saveFailed:"Failed to save, please try again"},version:{title:"Version Management",subtitle:"Manage multiple Claude Code versions, specify executable paths, aliases and environment variables",addVersion:"Add Version",reinitialize:"Reinitialize",reinitializeTitle:"Rerun Claude version setup wizard",reinitializeSuccess:"Configuration has been reset, reloading page",noVersions:"No Claude versions configured yet",clickToAddFirst:'Click "Add Version" to configure your first Claude version',systemLabel:"System",defaultLabel:"Default",pathLabel:"Path",envVarsLabel:"Environment Variables",modelsLabel:"Supported Models",setAsDefault:"Set as Default",copyCommand:"Copy Command",edit:"Edit",delete:"Delete",confirmDelete:'Are you sure you want to delete version "{{alias}}"?',currentVersion:{title:"Current Version",checking:"Checking...",checkVersion:"Check Version",claudeDesc:"AI Programming Assistant",updating:"Updating...",update:"Update",willUse:"Will use",toUpdate:"to update",nodejsDesc:"JavaScript Runtime Environment",preferred:"Preferred",packageManager:"Package Manager",lastChecked:"Last Checked",clickToCheck:'Click "Check Version" to get version info',updateSuccess:"Update Successful",updateFailed:"Update Failed",info1:"Claude Code is an AI programming assistant that supports code generation, editing and project management",info2:"Node.js is the fundamental runtime environment for the system",info3:"Supports multiple package managers: npm, pnpm, yarn (Priority: pnpm > yarn > npm)",info4:"The system will automatically select the preferred package manager for update operations",info5:"It is recommended to keep Claude Code up to date for the best experience"},templates:{title:"Quick Configuration Templates",description:"Select a preset template to quickly configure third-party API providers with auto-filled environment variables",providers:{glm:{name:"GLM (Zhipu AI)",description:"Use Zhipu AI's GLM model service, compatible with Anthropic API"},deepseek:{name:"DeepSeek",description:"Use DeepSeek's high-performance model service"},kimi:{name:"Kimi K2 (Moonshot AI)",description:"Use Kimi K2 model service, compatible with Anthropic API"}}},form:{createTitle:"Add New Version",editTitle:"Edit Version",versionName:"Version Name",versionNamePlaceholder:"e.g., Claude Code v1.2.3",alias:"Alias",aliasPlaceholder:"e.g., claude-1.2.3",description:"Description",descriptionPlaceholder:"Version description (optional)",executablePath:"Executable Path",executablePathPlaceholder:"Leave empty to use system default path",browseFile:"Browse Files",envVars:"Environment Variables",varName:"Variable Name",varValue:"Variable Value",emptyValue:"Not set",getApiKey:"Get API Key",models:"Model Configuration",modelId:"Model ID",modelName:"Model Name",visionModel:"Vision Model",addModel:"Add Model",cancel:"Cancel",saving:"Saving...",update:"Update",create:"Create",selectExecutable:"Select Claude Executable"},errors:{requiredFields:"Please fill in all required fields",saveFailed:"Save failed",cannotDeleteSystem:"Cannot delete system version",deleteFailed:"Delete failed",setDefaultFailed:"Failed to set default version",copyFailed:"Copy failed, please manually copy the following command:"},success:{createVersion:"Version created successfully",updateVersion:"Version updated successfully",deleteVersion:"Version deleted successfully",setDefault:'Set "{{alias}}" as default version',copyCommand:"Command copied to clipboard"}},language:"Language Settings",subagents:{title:"Subagent Management",subtitle:"Manage Specialized AI Subagents",loading:"Loading Subagents...",loadFailed:"Load Failed",loadFailedMessage:"Unable to load Subagents list",retry:"Retry",searchPlaceholder:"Search Subagents...",createButton:"New Subagent",noSubagents:"No Subagents Yet",noSubagentsSearch:"No Matching Subagents Found",adjustSearch:"Try adjusting search criteria",createFirst:"Create your first specialized AI subagent to handle specific tasks",table:{subagent:"Subagent",tools:"Tools",createdAt:"Created At",actions:"Actions",toolsCount:"{{count}} tools",inheritSettings:"Inherit conversation settings"},actions:{edit:"Edit",editTitle:"Edit Subagent",deleteTitle:"Delete Subagent"},deleteConfirm:{title:"Confirm Delete",message:'Are you sure you want to delete Subagent "{{name}}"?',warning:"This action cannot be undone.",cancel:"Cancel",delete:"Delete"}},apiSettings:{title:"API Server Settings",hostLabel:"API Server Address",hostPlaceholder:"http://localhost:4936 or https://your-domain.com",testConnection:"Test Connection",quickSelect:"Quick Select:",connectionStatus:"Connection Status",status:{success:"Connected",error:"Connection Failed",untested:"Not Tested"},serverError:"Server error: {{status}} {{statusText}}",connectionFailed:"Connection failed: {{message}}",connectionUnknownError:"Connection failed: Unknown error",enterApiHost:"Please enter API server address",settingsSavedRefresh:"Settings saved. Page will refresh to apply new settings",usage:{title:"Usage Instructions:",localDev:"For local development, use",production:"For production environment, use your server domain such as",cors:"Ensure the server supports CORS access and allows frontend domain access",refresh:"Page needs to be refreshed after modification to take effect"},resetToDefault:"Reset to Default",saveSettings:"Save Settings"}},bT={title:"Analytics",usage:"Usage Statistics",performance:"Performance Metrics"},ST={title:"MCP Services",subtitle:"Manage and monitor Model Context Protocol servers",loading:"Loading MCP configurations...",searchPlaceholder:"Search by name, command or arguments...",addServer:"Add Service",noServers:"No MCP service configurations yet",noResults:"No matching configurations found",adjustSearch:"Try adjusting search criteria",addFirstServer:"Add your first MCP service configuration",confirmDelete:'Are you sure you want to delete configuration "{{name}}"?',import:{button:"Import from Claude Code",noConfigFound:"No MCP configurations found in Claude Code",success:"Successfully imported {{imported}} MCP server configuration(s){{skipped, select, 0{} other{, skipped {{skipped}} existing configuration(s)}}",allExist:"All configurations already exist, no new imports"},table:{server:"Server",type:"Type",status:"Status",tools:"Available Tools",actions:"Actions",toolsCount:"{{count}} tools",noTools:"No tools"},status:{active:"Active",error:"Error",validating:"Validating",unvalidated:"Unvalidated"},actions:{validate:"Re-validate",edit:"Edit",delete:"Delete configuration"},modal:{addTitle:"Add MCP Service Configuration",editTitle:"Edit MCP Service Configuration",saving:"Saving...",saveConfig:"Save Configuration",addConfig:"Add Configuration"},form:{serverName:"Service Name *",serverNamePlaceholder:"e.g., playwright",nameNotEditable:"Service name cannot be modified",nameRequired:"Please enter service name",mcpType:"MCP Type *",stdioOption:"Stdio (Local Process)",httpOption:"HTTP (Remote Service)",selectConnectionType:"Select MCP server connection type",configuration:"Configuration * (JSON format)",configInvalid:"Configuration format is incorrect, please ensure required {{fields}} fields are included and properly formatted",configFormatError:"⚠️ Configuration format is incorrect, please ensure required {{fields}} fields are included",requiredFields:"Required fields:",requiredFieldsStdio:"type, command and args",requiredFieldsHttp:"type and url",optionalFields:"Optional fields:",typeField:'String, MCP type ("stdio" or "http")',commandField:'String, execution command (e.g. "npx", "uvx")',argsField:"Array, command arguments",urlField:"String, HTTP MCP server URL",timeoutField:"Number, timeout in milliseconds",autoApproveField:"Array, auto-approve operations"},errors:{validationFailed:"Validation failed",networkError:"Network error or service unavailable",deleteFailed:"Failed to delete configuration",importFailed:"Import failed",saveFailed:"Failed to save configuration"}},xT={title:"Custom Commands",subtitle:"Manage Slash Commands",loading:"Loading commands...",searchPlaceholder:"Search commands...",createButton:"New Command",error:{loadFailed:"Load Failed",cannotLoadCommands:"Unable to load custom commands",retry:"Retry"},empty:{noCommands:"No custom commands yet",noMatchingCommands:"No matching commands found",adjustSearch:"Try adjusting search criteria or filters",createFirst:"Create your first custom Slash Command"},table:{command:"Command",model:"Model",tools:"Tools",createdAt:"Created",actions:"Actions",inheritSettings:"Inherit conversation settings",toolsCount:"{{count}} tools"},actions:{edit:"Edit",editCommand:"Edit command",deleteCommand:"Delete command"},delete:{title:"Delete Command",confirmMessage:'Are you sure you want to delete command "/{{name}}"? This action cannot be undone.',cancel:"Cancel",delete:"Delete",deleting:"Deleting..."}},wT={nav:uT,footer:dT,login:fT,landing:mT,agents:hT,projects:gT,chat:pT,dashboard:yT,settings:vT,analytics:bT,mcp:ST,commands:xT},CT="AgentStudio",TT="Select an AI assistant to start working",AT="Loading...",ET="Available Assistants",kT="Disabled Assistants",NT="{{count}} assistants",jT="Create Custom Assistant",RT="Custom assistant feature coming soon!",MT="No Available Assistants Yet",DT="Enable some built-in assistants or create your own custom assistants to get started",OT="Manage Assistants",LT="Start Using",UT="Edit Assistant",zT="Disable Assistant",_T="Enable Assistant",PT="Disabled",FT="Enable Assistant",HT={slides:"Slides",code:"Code",documents:"Documents",chat:"Chat"},BT={toggleFailed:"Operation failed, please try again"},VT={title:CT,subtitle:TT,loading:AT,availableAgents:ET,disabledAgents:kT,agentCount:NT,createCustomAgent:jT,customAgentComingSoon:RT,noAgentsTitle:MT,noAgentsDescription:DT,manageAgents:OT,startUsing:LT,editAgent:UT,disableAgent:zT,enableAgent:_T,disabledStatus:PT,enableAgentButton:FT,componentTypes:HT,errors:BT},qT={name:"Project Name",nameRequired:"Project Name *",namePlaceholder:"Enter project name",description:"Project Description",descriptionPlaceholder:"Briefly describe the purpose of this project...",directory:"Project Directory",directoryNote:"A new folder will be created under this directory",agentType:"Select Assistant Type *",agentTypePlaceholder:"Choose an assistant type"},GT={name:"Assistant Name",namePlaceholder:"Enter assistant name",description:"Assistant Description",descriptionPlaceholder:"Describe the assistant's capabilities...",systemPrompt:"System Prompt",systemPromptPlaceholder:"Enter system prompt...",tools:"Available Tools",selectTools:"Select Tools"},YT={editTitle:"Edit Command",createTitle:"Create Command",formMode:"Form",codeMode:"Code",saveChanges:"Save Changes",createCommand:"Create Command",nameLabel:"Command Name",nameHint:"Can only contain letters, numbers, underscores, and hyphens",modelLabel:"Specify Model",inheritModel:"Inherit conversation settings",modelHint:"Specify a specific AI model for this command.",namespaceLabel:"Namespace",namespaceHint:"Used to organize commands, can include / separator",argumentHintLabel:"Argument Hint",argumentHintHint:"Argument hint displayed in autocomplete",descriptionLabel:"Description",descriptionPlaceholder:"Optimize code performance and readability",descriptionHint:"Brief description of the command, will use the first line of content if not provided",allowedToolsLabel:"Allowed Tools",selectTools:"Select Tools",regularToolsCount:"{{count}} regular tools",mcpToolsCount:"{{count}} MCP tools",allowedToolsHint:"Leave empty to inherit conversation permissions",contentLabel:"Command Content",contentPlaceholder:`Analyze performance issues in this code and provide optimization suggestions:
|
|
170
|
-
|
|
171
|
-
Use arguments: $ARGUMENTS
|
|
172
|
-
Use first argument: $1
|
|
173
|
-
Use second argument: $2
|
|
174
|
-
|
|
175
|
-
Reference file: @src/utils/helpers.js
|
|
176
|
-
Execute command: !\`git status\``,supportedFeatures:"Supported Features:",features:{arguments:"Get all arguments",positionArgs:"Get argument at specific position",fileRef:"Reference file content",bashCommand:"Execute bash command and include output"},markdownSource:"Markdown Source",markdownPlaceholder:`---
|
|
177
|
-
description: Optimize code performance and readability
|
|
178
|
-
argument-hint: [filename] [options]
|
|
179
|
-
namespace: frontend
|
|
180
|
-
allowed-tools: Read, Write, Edit
|
|
181
|
-
model: claude-3-5-sonnet-20241022
|
|
182
|
-
---
|
|
183
|
-
|
|
184
|
-
Analyze performance issues in this code and provide optimization suggestions:
|
|
185
|
-
|
|
186
|
-
Use arguments: $ARGUMENTS
|
|
187
|
-
Use first argument: $1
|
|
188
|
-
Use second argument: $2
|
|
189
|
-
|
|
190
|
-
Reference file: @src/utils/helpers.js
|
|
191
|
-
Execute command: !\`git status\``,frontmatterSupported:"Supported Frontmatter Fields:",frontmatterFields:{description:"Command description",argumentHint:"Argument hint",namespace:"Namespace",allowedTools:"Allowed tools (comma separated)",model:"Specify model"},exampleDescription:"Optimize code performance and readability",exampleContent:`Analyze performance issues in this code and provide optimization suggestions:
|
|
192
|
-
|
|
193
|
-
Use arguments: $ARGUMENTS
|
|
194
|
-
Use first argument: $1
|
|
195
|
-
Use second argument: $2
|
|
196
|
-
|
|
197
|
-
Reference file: @src/utils/helpers.js
|
|
198
|
-
Execute command: !\`git status\``,errors:{nameRequired:"Command name is required",nameFormat:"Command name can only contain letters, numbers, underscores, and hyphens",contentRequired:"Command content is required",scopeRequired:"Please select command scope",saveFailed:"Save failed"}},$T={title:"File Explorer",searchPlaceholder:"Search files...",uploadButton:"Upload File",createFolder:"New Folder",rename:"Rename",deleteFile:"Delete File",downloadFile:"Download File",noFiles:"No files",loading:"Loading files...",loadFailed:"Failed to load project files",retry:"Retry",projectPath:"Project path",emptyDirectory:"Project directory is empty",selectFile:"Select a file to preview",previewNotSupported:"Preview not supported for this file type",fileLabel:"File",imageLoadFailed:"Failed to load image",cannotReadFile:"Unable to read file content",noOpenFiles:"No open files",moreTabsCount:"{{count}} more tabs",pinnedTab:"pinned",temporaryTab:"temporary",closeTab:"Close tab"},KT={title:"Session Management",sessionHistory:"Session History",searchPlaceholder:"Search sessions...",noSessions:"No sessions",noSessionHistory:"No session history",noMatchingSessions:"No matching sessions found",sessionWillAppear:"Sessions will appear after you start chatting",messageCount:"{{count}} messages",newSession:"New Session",deleteSession:"Delete Session",renameSession:"Rename Session"},QT={title:"Tool Selector",searchPlaceholder:"Search tools...",noTools:"No tools available",selectedTools:"Selected Tools",selectButton:"Select Tools",toolsCount:"{{count}} regular tools",mcpToolsCount:"{{count}} MCP tools"},XT={title:"Language",chinese:"中文",english:"English"},IT={newSession:"New Session",sessionHistory:"Session History",refreshMessages:"Refresh Messages",messagesRefreshed:"Messages refreshed",loadingMessages:"Loading messages...",currentSession:"Current Session",imagePreview:"Preview",deleteImage:"Delete Image",dropImageHere:"Drop images here",sendImage:"Sent an image",addDescription:"Add description text... (optional)",inputPlaceholder:"Type your message... (Shift+Enter for new line, Enter to send, / for commands)",toolSelection:"Tool Selection",imageSelection:"Image Selection",selectedCount:"{{count}} selected",stop:"Stop",send:"Send",aiTyping:"AI is typing",noContent:"No content to send",unknownCommand:"Unknown command",sendMessage:"Send message",permissionMode:{default:"Default",acceptEdits:"Accept Edits",bypassPermissions:"Bypass Permissions",plan:"Plan Mode"},model:{sonnet:"Sonnet",opus:"Opus"},claudeVersion:{title:"Select Claude Version",default:"Claude",custom:"Custom",system:"System",locked:"Version Locked (Active Session)"},settings:{title:"Settings",permissionMode:"Permission Mode",claudeVersion:"Claude Version",model:"Model",noSettings:"No settings available"},commandWarning:"Unknown command: {{command}}. Available commands: {{commands}}",navigateTo:"Navigate to: {{path}}",errorMessages:{claudeCodeSDKError:"❌ **Claude Code SDK Error**",parseError:"An error occurred while parsing response data. This may be caused by network interruption or abnormal server response format.",timeout:"Request processing timeout. Server response time is too long.",unknownError:"Unknown error. Please try again later.",networkError:`❌ **Network Connection Error**
|
|
199
|
-
|
|
200
|
-
Unable to connect to AI service. Please check your network connection and try again.`,requestTimeout:`⏰ **Request Timeout**
|
|
201
|
-
|
|
202
|
-
Request processing time is too long. Please try again later.`,rateLimit:`🚫 **Rate Limit**
|
|
203
|
-
|
|
204
|
-
Too many requests. Please try again later.`,unauthorized:`🔐 **Authentication Failed**
|
|
205
|
-
|
|
206
|
-
Please check your API key configuration.`,forbidden:`⛔ **Permission Denied**
|
|
207
|
-
|
|
208
|
-
No permission to perform this operation.`,internalServerError:`🔧 **Internal Server Error**
|
|
209
|
-
|
|
210
|
-
The server encountered a problem. Please try again later.`,connectionFailed:`❌ **Connection Failed**
|
|
211
|
-
|
|
212
|
-
Unable to connect to AI service. Please check your network connection and try again.`,connectionTimeout:`⏰ **Connection Timeout**
|
|
213
|
-
|
|
214
|
-
Connection to server timed out. Please try again later.`,suggestions:"**Suggested Actions:**",checkNetwork:"Check network connection",retryMessage:"Retry sending message",simplifyRequest:"Simplify request content",refreshPage:"Refresh page and retry",contactAdmin:"Contact administrator if the issue persists"},sessionResumed:"🔄 **Session Resumed**",sessionIdUpdated:"*Session ID has been automatically updated, history has been reloaded*",taskComplete:"✅ Task Complete",executionCompleted:"(Execution Completed)",genericError:"Sorry, an error occurred while processing your request.",unknownCommandWarning:"Unknown command: /{{command}}. Available commands: {{commands}}",navigateToAlert:"Navigate to: {{path}}",generationStopped:"⏹️ Generation stopped",stopping:"Stopping...",stopFailed:"❌ **Stop Failed**",initializingSession:"Initializing new session, please wait...",maxTurnsReached:"⏱️ **Maximum turns reached**",permissionDenials:"⚠️ **Permission Denied Operations:**",permissionNote:"💡 Some operations require user permission confirmation to execute.",executionError:`❌ **Error During Execution**
|
|
215
|
-
|
|
216
|
-
Please check your input or try again later.`,processingError:`❌ **Processing Error**
|
|
217
|
-
|
|
218
|
-
Please try again later or check your input.`,processingComplete:"✅ **Processing Complete**"},ZT={init:{name:"init",description:"Initialize project or reset conversation context"},clear:{name:"clear",description:"Clear current conversation history"},compact:{name:"compact",description:"Compact conversation history, keep key information"},agents:{name:"agents",description:"Manage AI agents and subagents"},settings:{name:"settings",description:"Open settings page"},help:{name:"help",description:"Show help information"}},JT={title:"Memory Management"},WT={title:"Commands Management"},eA={title:"SubAgents Management"},tA={title:"Active Sessions",activeCount:"Currently active: {{count}} sessions",loadingMessage:"Loading session information...",status:{pending:"Pending",active:"Active",idle:"Idle"},labels:{session:"Session",agent:"Agent",project:"Project",activity:"Activity"},time:{hoursMinutes:"{{hours}}h {{minutes}}m",minutesSeconds:"{{minutes}}m {{seconds}}s",seconds:"{{seconds}}s"},heartbeat:{none:"No heartbeat",timeout:"Heartbeat timeout"},actions:{openChat:"Open chat window",cleanup:"Cleanup session"},errors:{loadFailed:"Failed to load session information",cleanupFailed:"Failed to cleanup session, please retry",navigationFailed:"Navigation failed, fallback applied"},empty:{noSessions:"No active sessions",startChatHint:"Start a conversation with an assistant to create a session"}},nA={title:"Select File or Directory",emptyDirectory:"This directory is empty",toolbar:{homeDirectory:"Home Directory",parentDirectory:"Parent Directory",loadingPath:"Loading...",newDirectory:"New Directory",showHidden:"Show Hidden Files",hideHidden:"Hide Hidden Files"},table:{name:"Name",size:"Size",modified:"Modified",actions:"Actions"},actions:{select:"Select",cancel:"Cancel",createFolder:"Create Folder",creating:"Creating..."},dialog:{newFolder:"New Folder",createAt:"Create new directory at:",folderName:"Folder Name",folderNamePlaceholder:"Enter folder name"},footer:{itemsCount:"{{count}} items"},errors:{error:"Error",loadFailed:"Failed to load directory",browseFailed:"Failed to browse directory",createFailed:"Failed to create directory"}},aA={title:"Tool Selection",tabs:{regular:"Regular Tools",mcp:"MCP Tools"},selectAll:"Select All",preset:"Preset",enableMcpTools:"Enable MCP Tools",loading:"Loading...",noMcpServers:"No MCP servers available",toolsCount:"{{count}} tools",serverUnavailable:"Server unavailable"},lA={title:{create:"Create Subagent",edit:"Edit Subagent"},mode:{form:"Form",code:"Code"},actions:{cancel:"Cancel",create:"Create Subagent",saving:"Saving...",saveChanges:"Save Changes"},codeMode:{title:"Code Mode",description:"In this mode, you can directly edit the Markdown format subagent file, including YAML frontmatter and system prompt content.",label:"Subagent File Content",placeholder:`---
|
|
219
|
-
name: my-subagent
|
|
220
|
-
description: A subagent specialized for handling specific tasks
|
|
221
|
-
tools: read_file, write, search_replace
|
|
222
|
-
---
|
|
223
|
-
|
|
224
|
-
You are an AI assistant specialized in...
|
|
225
|
-
|
|
226
|
-
Your task is to...
|
|
227
|
-
|
|
228
|
-
Please ensure...
|
|
229
|
-
|
|
230
|
-
When encountering..., you should...`},fields:{name:{label:"Name *",placeholder:"my-subagent"},scope:{label:"Scope",projectScope:"Project Subagent"},description:{label:"Description *",placeholder:"Describe the purpose of this subagent and when it should be invoked"},tools:{label:"Allowed Tools",selectTools:"Select Tools",regularToolsCount:"{{count}} regular tools",mcpToolsCount:"{{count}} MCP tools",hint:"Leave empty to inherit all available tools"},content:{label:"System Prompt *",placeholder:`You are an AI assistant specialized in...
|
|
231
|
-
|
|
232
|
-
Your task is to...
|
|
233
|
-
|
|
234
|
-
Please ensure...
|
|
235
|
-
|
|
236
|
-
When encountering..., you should...`}},validation:{nameRequired:"Name is required",nameFormat:"Name can only contain lowercase letters, numbers, and hyphens",descriptionRequired:"Description is required",contentRequired:"System prompt is required"},errors:{saveFailed:"Save failed"}},iA={systemCommands:{init:{description:"Initialize project or reset conversation context"},clear:{description:"Clear current conversation history"},compact:{description:"Compact conversation history, keep key information"},agents:{description:"Manage AI agents and subagents"},settings:{description:"Open settings page"},help:{description:"Show help information"}}},sA={title:"API Server Settings",fields:{address:"API Server Address",addressPlaceholder:"http://localhost:4936 or https://your-domain.com"},actions:{test:"Test",reset:"Reset",cancel:"Cancel",save:"Save"},quickSelect:{title:"Quick Select:",localDev:"Local Development",officialServer:"Official Server"},status:{label:"Connection Status",success:"Connected",error:"Connection Failed",untested:"Not Tested"},instructions:{title:"Instructions:",localDev:"Use for local development",production:"Use your server domain for production",cors:"Ensure the server supports CORS access",refresh:"The page will refresh automatically after changes"},errors:{serverError:"Server response error: {{status}} {{statusText}}",connectionFailed:"Connection failed: {{message}}",connectionFailedUnknown:"Connection failed: Unknown error",enterAddress:"Please enter API server address"},saveSuccess:"Settings saved, the page will refresh to apply new settings"},oA={title:"Project Commands Management",loading:"Loading project commands...",searchPlaceholder:"Search commands...",createButton:"New Command",error:{title:"Load Failed",message:"Unable to load project commands",retry:"Retry",close:"Close"},emptyState:{noCommandsTitle:"No project commands yet",noCommandsDescription:"Create dedicated Slash Commands for this project",noMatchTitle:"No matching commands found",noMatchDescription:"Try adjusting your search criteria"},table:{command:"Command",model:"Model",tools:"Tools",createdAt:"Created",actions:"Actions",inheritSettings:"Inherit conversation settings",toolsCount:"{{count}} tools"},actions:{edit:"Edit",editTooltip:"Edit command",deleteTooltip:"Delete command"},deleteConfirm:{title:"Delete Command",message:'Are you sure you want to delete command "/{{name}}"? This action cannot be undone.',cancel:"Cancel",confirm:"Delete",deleting:"Deleting..."}},rA={title:"Project Subagent Management",loading:"Loading project subagents...",searchPlaceholder:"Search subagents...",error:{loadFailed:"Load Failed",loadFailedMessage:"Unable to load project subagents"},actions:{retry:"Retry",close:"Close",create:"New Subagent",edit:"Edit",editTooltip:"Edit Subagent",delete:"Delete",deleteTooltip:"Delete Subagent",cancel:"Cancel"},emptyState:{noSubagents:"No Project Subagents Yet",noResults:"No Matching Subagents Found",tryAdjust:"Try adjusting your search criteria",description:"Create specialized AI subagents for this project to handle specific tasks"},table:{subagent:"Subagent",tools:"Tools",createdAt:"Created",actions:"Actions",toolsCount:"{{count}} tools",inheritSettings:"Inherit conversation settings"},deleteConfirm:{title:"Confirm Delete",message:'Are you sure you want to delete subagent "<strong>{{name}}</strong>"?',warning:"This action cannot be undone."}},cA={selectProjectDirectory:"Select Project Directory",projectActions:"Project Actions",quickCreateProject:"Quick Create Project",creatingProject:"Creating project...",quickCreateDescription:"Automatically create in ~/claude-code-projects",customLocationCreate:"Custom Location Create",customLocationDescription:"Choose directory and project name",browseProject:"Browse Projects",browseDescription:"Select project directory via file browser",recentProjects:"Recent Projects",loadingProjects:"Loading projects...",lastAccessed:"Last accessed: {{date}}",noRecentProjects:"No recent projects",createProjectToStart:"Create a new project to get started",cancel:"Cancel",selectParentDirectory:"Select Parent Directory for New Project",createProjectFailed:"Failed to create project: {{error}}",unknownError:"Unknown error",importConfirmation:`This directory is not yet a project for {{agentName}}.
|
|
237
|
-
|
|
238
|
-
Do you want to import this directory as a new project?
|
|
239
|
-
|
|
240
|
-
Path: {{path}}`,dialog:{createNewProject:"Create New Project",projectWillBeCreatedAt:"Project will be created in the following directory:",projectName:"Project Name",projectNamePlaceholder:"Enter project name",cancel:"Cancel",createProject:"Create Project"}},uA={image:"Image ({{mimeType}})",resource:"Resource",uri:"URI",name:"Name",description:"Description",type:"Type",unknownType:"Unknown type ({{type}})",errorMessage:"Error message:",executionResult:"Execution result:",progress:"Progress: {{current}} / {{total}}",subtitle:"MCP: {{toolName}} @ {{serverName}}",parameters:"Parameters"},dA={executing:"Executing...",executionError:"Execution error",timeout:"Timeout: {{timeout}}ms"},fA={readFile:"Read file",startLine:"Start line",readLines:"Read lines"},mA={filePath:"File path",fileSize:"File size: {{size}} characters"},hA={editFile:"Edit file",replaceAll:"Replace all",yes:"Yes"},gA={noFilesFound:"No matching files found",patternLabel:"Pattern",pathLabel:"Search path",matchingResults:"Matching results:"},pA={noMatchesFound:"No matches found",matchStatistics:"Match statistics",patternLabel:"Search pattern",pathLabel:"Search path",globLabel:"File filter",typeLabel:"File type",outputModeLabel:"Output mode",ignoreCase:"Ignore case",showLineNumbers:"Show line numbers",afterLines:"After {{count}} lines",beforeLines:"Before {{count}} lines",contextLines:"Context {{count}} lines",multilineMode:"Multiline mode",searchResults:"Search results:"},yA={urlLabel:"URL:",analysisPromptLabel:"Analysis prompt",truncated:"...(truncated)",webAnalysisResult:"Web analysis result:"},vA={searchQueryLabel:"Search query",allowedDomains:"Allowed domains:",blockedDomains:"Blocked domains:",searchResults:"Search results:"},bA={taskDescriptionLabel:"Task description",taskPromptLabel:"Task prompt",truncated:"...(truncated)",totalLength:"Total length: {{length}} characters"},SA={allTasksCompleted:"All tasks completed",currentTaskProgress:"{{completed}}/{{total}} {{task}}",pendingTasks:"{{completed}}/{{total}} pending tasks",completedCount:"Completed: {{count}}",inProgressCount:"In progress: {{count}}",pendingCount:"Pending: {{count}}"},xA={implementationPlan:"Implementation Plan:",planModeExited:"Plan mode exited, ready to start implementation"},wA={notebookPath:"Notebook path",insert:"Insert",delete:"Delete",replace:"Replace",code:"Code",markdown:"Markdown",cellId:"Cell ID",newContent:"New content",truncated:"...(truncated)"},CA={unknownToolType:"Unknown tool type"},TA={executionResult:"Execution result:"},AA={shellPrefix:"Shell",exitCode:"Exit code",stdout:"Standard output",stderr:"Error output",fetchingOutput:"Fetching output for Shell {{shellId}}...",filterCondition:"Filter condition",status:{running:"Running",completed:"Completed",killed:"Killed",failed:"Execution failed"}},EA={subtitle:"Kill Shell {{shellId}}",subtitleWithProcess:"Kill Shell {{shellId}} ({{processName}})",shellId:"Shell ID",status:{terminating:"Terminating process...",success:"Process successfully terminated",failed:"Failed to terminate process",ready:"Ready to terminate process"}},kA={directoryPath:"Directory path",ignorePatterns:"Ignore patterns",directoryStructure:"Directory structure:"},NA={filePath:"File path",batchEdit:"Batch edit ({{count}} operations):",operation:"Operation #{{number}}",replaceAll:"Replace all"},jA={notebookPath:"Notebook path",cellId:"Cell ID"},RA={send:"Send",stop:"Stop",stopping:"Stopping...",sendMessage:"Send message",stopGeneration:"Stop generation",aiTyping:"AI is typing",noContentToSend:"No content to send",unknownCommand:"Unknown command",errors:{jsonParseError:`An error occurred while parsing response data. This may be caused by network interruption or abnormal server response format.
|
|
241
|
-
|
|
242
|
-
**Suggested Actions:**
|
|
243
|
-
- Check network connection
|
|
244
|
-
- Resend message
|
|
245
|
-
- Contact administrator if the issue persists`,timeoutError:`Request processing timeout. Server response time is too long.
|
|
246
|
-
|
|
247
|
-
**Suggested Actions:**
|
|
248
|
-
- Simplify request content
|
|
249
|
-
- Try again later
|
|
250
|
-
- Check network connection status`,suggestedActions:"Suggested Actions",resendMessage:"Resend message",refreshPage:"Refresh page and retry",unknownError:"Unknown error",networkError:`❌ **Network Connection Error**
|
|
251
|
-
|
|
252
|
-
Unable to connect to AI service. Please check your network connection and try again.`,requestTimeout:`⏰ **Request Timeout**
|
|
253
|
-
|
|
254
|
-
Request processing time is too long. Please try again later.`,rateLimit:`🚫 **Rate Limit**
|
|
255
|
-
|
|
256
|
-
Too many requests. Please try again later.`,unauthorized:`🔐 **Authentication Failed**
|
|
257
|
-
|
|
258
|
-
Please check your API key configuration.`,forbidden:`⛔ **Permission Denied**
|
|
259
|
-
|
|
260
|
-
No permission to perform this operation.`,internalServerError:`🔧 **Internal Server Error**
|
|
261
|
-
|
|
262
|
-
The server encountered a problem. Please try again later.`,processingError:"Processing Error",unknownErrorRetry:"Unknown error. Please try again later.",connectionFailed:`❌ **Connection Failed**
|
|
263
|
-
|
|
264
|
-
Unable to connect to AI service. Please check your network connection and try again.`,networkConnectionFailed:`🌐 **Network Connection Failed**
|
|
265
|
-
|
|
266
|
-
Unable to connect to server. Please check your network connection.`,connectionTimeout:`⏰ **Connection Timeout**
|
|
267
|
-
|
|
268
|
-
Connection to server timed out. Please try again later.`,connectionError:"Connection Error",cannotConnectRetry:"Unable to connect to AI service. Please try again later."}},MA={title:"Recent Activity",empty:"No recent activity",time:{justNow:"Just now",minutesAgo:"{{count}} minutes ago",minutesAgo_one:"{{count}} minute ago",hoursAgo:"{{count}} hours ago",hoursAgo_one:"{{count}} hour ago",daysAgo:"{{count}} days ago",daysAgo_one:"{{count}} day ago"}},DA={title:"Backend Services",noService:"No Service",namePlaceholder:"Service Name",urlPlaceholder:"Service URL",add:"Add",save:"Save",cancel:"Cancel",edit:"Edit",delete:"Delete",addNew:"Add New Service",testingConnection:"Testing connection...",connectionWarning:{title:"Unable to Connect to Service",message:'Cannot connect to service "{{name}}" ({{url}}).',consequence:"If you continue switching, you won't be able to login or use this service, but you can reconfigure the service address on the login page.",cancel:"Cancel",continue:"Switch Anyway"}},OA={detecting:{title:"Detecting Claude CLI",description:"Checking if Claude is installed on your system..."},selection:{title:"Select Claude Version",description:"We detected the following Claude CLI installations, please select which one to use",userInstalled:"User Global Installation",systemInstalled:"System npm Package",path:"Path",version:"Version",packageManager:"Package Manager",useUserInstalled:"Use User-Installed Claude",useUserInstalledDesc:"Use the Claude CLI installed globally via package manager",useSystemPackage:"Use System npm Package",useSystemPackageDesc:"Use the Claude CLI bundled in project's node_modules",noClaudeFound:"No Claude CLI Found",noClaudeFoundDesc:"Please install Claude CLI or ensure project dependencies are properly installed"},config:{title:"Configure Authentication",description:"Choose how to configure Claude authentication credentials",skipToken:"Skip Configuration (Recommended)",skipTokenDesc:"Skip authentication setup, works the same as Claude Pro subscription",claudePro:"Claude Pro Subscriber",claudeProDesc:"I'm a Claude Pro subscriber, will login via CLI myself",enterToken:"Enter Token Manually",enterTokenDesc:"Manually enter ANTHROPIC_AUTH_TOKEN environment variable",tokenPlaceholder:"Enter your ANTHROPIC_AUTH_TOKEN"},creating:{title:"Creating System Version",description:"Configuring Claude version for you, please wait..."},success:{title:"Setup Successful!",description:"Claude version has been created successfully, returning to dashboard..."},actions:{skip:"Skip",next:"Next",back:"Back",create:"Create Version"}},LA={projectForm:qT,agentForm:GT,commandForm:YT,fileExplorer:$T,sessionDropdown:KT,toolSelector:QT,languageSwitcher:XT,agentChat:IT,systemCommands:ZT,projectMemory:JT,projectCommands:WT,projectSubAgents:eA,sessionsDashboard:tA,fileBrowser:nA,unifiedToolSelector:aA,subagentForm:lA,commandSelector:iA,apiSettingsModal:sA,projectCommandsModal:oA,projectSubAgentsModal:rA,projectSelector:cA,mcpTool:uA,bashTool:dA,readTool:fA,writeTool:mA,editTool:hA,globTool:gA,grepTool:pA,webFetchTool:yA,webSearchTool:vA,taskTool:bA,todoWriteTool:SA,exitPlanModeTool:xA,notebookEditTool:wA,toolRenderer:CA,baseToolComponent:TA,bashOutputTool:AA,killBashTool:EA,lsTool:kA,multiEditTool:NA,notebookReadTool:jA,agentChatPanel:RA,recentActivity:MA,backendServiceSwitcher:DA,claudeVersionSetup:OA},UA={connectionFailed:"Network connection error, unable to connect to AI service",connectionFailedRetry:"Network connection error, unable to connect to AI service. Please check your network connection and try again",timeout:"Request timeout, please try again",serverError:"Server error, please try again later",unknownError:"Unknown error, please try again"},zA={createFailed:"Failed to create project",deleteFailed:"Failed to delete project",updateFailed:"Failed to update project",notFound:"Project not found",loadFailed:"Failed to load project",nameRequired:"Project name is required",nameInvalid:"Project name contains invalid characters"},_A={createFailed:"Failed to create assistant",deleteFailed:"Failed to delete assistant",updateFailed:"Failed to update assistant",notFound:"The specified assistant could not be found. It may have been deleted or disabled",loadFailed:"Failed to load assistant",setFailed:"Failed to set agent",builtinCannotDelete:"Built-in assistants cannot be deleted, but can be disabled",nameRequired:"Assistant name is required"},PA={uploadFailed:"Failed to upload file",deleteFailed:"Failed to delete file",downloadFailed:"Failed to download file",readFailed:"Failed to read file",writeFailed:"Failed to write file",notFound:"File not found",tooLarge:"File is too large"},FA={createFailed:"Failed to create session",deleteFailed:"Failed to delete session",loadFailed:"Failed to load session",notFound:"Session not found"},HA={executeFailed:"Command execution failed",notFound:"Command not found",loadFailed:"Failed to load custom commands",invalidFormat:"Invalid command format"},BA={saveFailed:"Save failed, please try again",loadFailed:"Load failed",operationFailed:"Operation failed, please try again",invalidInput:"Invalid input",permissionDenied:"Permission denied"},VA={network:UA,project:zA,agent:_A,file:PA,session:FA,command:HA,common:BA},qA={pptEditor:"PPT Editor Assistant",codeAssistant:"AI Code Assistant",documentWriter:"Document Writer Assistant",generalChat:"General Chat Assistant",custom:"Custom Assistant"},GA={loading:"Loading AI assistants...",loadingProjects:"Loading projects...",loadingMcp:"Loading MCP configuration...",loadingSubagents:"Loading Subagents...",loadingCommands:"Loading commands...",loadingSession:"Loading session info...",creating:"Creating project...",notFound:"Unable to find the specified assistant",noAgents:"No AI assistants available"},YA={bash:"Command Line Tool",read:"File Read",write:"File Write",edit:"File Edit",search:"Code Search",webSearch:"Web Search",webFetch:"Web Fetch"},$A={active:"Active",inactive:"Inactive",running:"Running",stopped:"Stopped",error:"Error"},KA={createAgent:"Create Assistant",editAgent:"Edit Assistant",deleteAgent:"Delete Assistant",enableAgent:"Enable Assistant",disableAgent:"Disable Assistant",testAgent:"Test Assistant",configureAgent:"Configure Assistant"},QA={taskCompleted:"✅ Task completed",generationStopped:"⏹️ Generation stopped",sessionRestored:"🔄 Session restored",executionCompleted:"(Execution completed)"},XA={title:"Document Outline",description:"Document structure and chapter management",createSection:"New Section",featureTitle:"Document Outline Feature",comingSoon:"Coming soon...",chatManagement:"You can manage document content through chat"},IA={title:"Code Explorer",description:"Code files and structure management",projectWithPath:"Project: {{path}}",openFile:"Open File",featureTitle:"Code Explorer Feature",comingSoon:"Coming soon...",chatManagement:"You can manage code files through chat"},ZA={title:"Slide Preview",refreshTitle:"Refresh Slides",refresh:"Refresh",slideCount:"{{count}} slides total",noSlides:"No slides yet",createWithAI:"Chat with AI to create slides",loading:"Loading...",loadError:"Failed to load, please refresh the page and try again",tabs:{preview:"Preview",code:"Code"},loadFailed:"Failed to load",fileNotFound:"File not found",loadingCode:"Loading code..."},JA={types:qA,messages:GA,tools:YA,status:$A,actions:KA,notifications:QA,documentOutline:XA,codeExplorer:IA,slidePreview:ZA},WA={welcome:{title:"Welcome to AgentStudio",subtitle:"Before we start, we need to configure the backend service connection",features:{title:"Backend service is responsible for:",ai:{title:"AI Model Integration",description:"Connect to AI models like Claude for intelligent conversations"},storage:{title:"File Storage & Management",description:"Save your work content and project files"},history:{title:"Session History",description:"Save and manage your conversation history"}}},detecting:{title:"Detecting Backend Service",description:"Detecting local backend service..."},found:{title:"Local Backend Service Found",description:"We found an available backend service on your system",serviceAddress:"Service Address",status:"Connection OK",useThisService:"Use This Service",addOtherService:"Add Other Service"},notFound:{title:"No Local Backend Service Found",description:"Please choose one of the following options to configure backend service",tabs:{install:"Local Install",remote:"Remote Service"},install:{title:"Install Local Backend Service",description:"Follow these steps to install backend service locally:",copyCommands:"Copy Install Commands",viewDocs:"View Full Documentation",retry:"Retry Detection"},remote:{title:"Use Remote Backend Service",description:"If you have a remote service, you can configure it here",serviceName:"Service Name",serviceNamePlaceholder:"e.g., Company Server",serviceUrl:"Service URL",testConnection:"Test Connection",testing:"Testing...",success:"Connection Successful",failed:"Connection Failed",addService:"Add Service",commonServices:"Common Services:",official:"Official Service",local:"Local Service"}},complete:{title:"Configuration Complete!",description:"Successfully connected to backend service",serviceName:"Service Name",serviceUrl:"Service URL",nextSteps:{title:"Next Steps",description:"Please log in to start using AgentStudio"},goToLogin:"Go to Login",manageServices:"Manage Services"},skipConfirm:{title:"Are you sure you want to skip?",warning:"Without backend service configuration, you may experience:",consequences:{noAi:"Unable to connect to AI services",noStorage:"Unable to save work content",noFeatures:"System features unavailable"},reconfigure:"You can reconfigure at any time from:",locations:{loginPage:"Service management on login page",settingsPage:"API configuration in settings"},back:"Back to Configuration",skip:"Skip Anyway"},addService:{title:"Add Backend Service",description:"Enter the backend service address and name to connect",installHelp:"Install Help",installGuide:{title:"Local Installation Guide",description:"Follow these steps to install backend service locally:",copyCommands:"Copy Commands",viewDocs:"View Docs"},serviceName:"Service Name",serviceNamePlaceholder:"e.g., Company Server",serviceUrl:"Service URL",testConnection:"Test Connection",testing:"Testing...",success:"Connection Successful",failed:"Connection Failed",commonServices:"Common Services:",official:"Official Service",local:"Local Service",retry:"Retry Detection",addButton:"Add Service"},actions:{skip:"Skip",getStarted:"Get Started",next:"Next",back:"Back"}},eE={backend:WA},tE={"zh-CN":{common:oC,pages:SC,home:HC,components:O1,errors:B1,agents:Z1,onboarding:W1},"en-US":{common:cT,pages:wT,home:VT,components:LA,errors:VA,agents:JA,onboarding:eE}};et.use(mp).use(Kv).init({resources:tE,fallbackLng:"zh-CN",defaultNS:"common",ns:["common","pages","home","components","errors","agents","onboarding"],interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"]}});Sb.createRoot(document.getElementById("root")).render(h.jsx(S.StrictMode,{children:h.jsx(pw,{})}));export{mg as L,cE as O,gE as a,Jc as b,fE as c,J0 as d,ol as e,uS as f,hE as g,rE as h,uE as i,yi as j,hS as k,pS as l,yS as m,_t as n,mE as o,pE as r,dE as s,Js as u};
|